From 5eec5b77886d25f8b0521f566592f8b4aefdbba5 Mon Sep 17 00:00:00 2001 From: iscai-msft Date: Mon, 7 Feb 2022 18:13:23 -0500 Subject: [PATCH 1/6] move url logic to serializer --- .../codegen/serializers/builder_serializer.py | 16 +- .../templates/request_builder.py.jinja2 | 7 +- .../operations/_http_success_operations.py | 6 +- .../operations/_http_success_operations.py | 12 +- .../operations/_http_success_operations.py | 6 +- .../operations/_http_success_operations.py | 12 +- .../_polling_paging_example_operations.py | 6 +- .../_polling_paging_example_operations.py | 10 +- .../operations/_http_success_operations.py | 6 +- .../operations/_http_success_operations.py | 12 +- .../_multiapi_service_client_operations.py | 12 +- .../_operation_group_one_operations.py | 2 +- .../_multiapi_service_client_operations.py | 20 +-- .../_operation_group_one_operations.py | 4 +- .../_multiapi_service_client_operations.py | 4 +- .../_operation_group_one_operations.py | 4 +- .../_operation_group_two_operations.py | 2 +- .../_multiapi_service_client_operations.py | 8 +- .../_operation_group_one_operations.py | 8 +- .../_operation_group_two_operations.py | 4 +- .../_multiapi_service_client_operations.py | 4 +- .../_operation_group_one_operations.py | 2 +- .../_operation_group_two_operations.py | 4 +- .../_multiapi_service_client_operations.py | 8 +- .../_operation_group_one_operations.py | 4 +- .../_operation_group_two_operations.py | 8 +- .../operations/_duration_operations.py | 8 +- .../_parameter_grouping_operations.py | 10 +- ...est_report_service_for_azure_operations.py | 2 +- .../_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 +- .../operations/_paths_operations.py | 2 +- .../aio/operations/_paging_operations.py | 36 ++--- .../operations/_paging_operations.py | 144 +++++++++--------- .../operations/_paging_operations.py | 6 +- .../operations/_http_success_operations.py | 6 +- .../operations/_head_exception_operations.py | 6 +- .../operations/_http_success_operations.py | 6 +- .../_lr_os_custom_header_operations.py | 8 +- .../lro/operations/_lro_retrys_operations.py | 14 +- .../Lro/lro/operations/_lros_operations.py | 88 +++++------ .../Lro/lro/operations/_lrosads_operations.py | 52 +++---- ...with_paramaterized_endpoints_operations.py | 4 +- .../paging/operations/_paging_operations.py | 40 ++--- .../_storage_accounts_operations.py | 18 +-- .../storage/operations/_usage_operations.py | 2 +- .../operations/_group_operations.py | 2 +- .../rest/duration/_request_builders.py | 8 +- .../parameter_grouping/_request_builders.py | 10 +- .../rest/_request_builders.py | 2 +- .../api_version_default/_request_builders.py | 8 +- .../api_version_local/_request_builders.py | 8 +- .../rest/header/_request_builders.py | 6 +- .../rest/odata/_request_builders.py | 2 +- .../skip_url_encoding/_request_builders.py | 14 +- .../_request_builders.py | 10 +- .../_request_builders.py | 8 +- .../_request_builders.py | 4 +- .../rest/paths/_request_builders.py | 2 +- .../rest/paging/_request_builders.py | 6 +- .../rest/head_exception/_request_builders.py | 6 +- .../rest/http_success/_request_builders.py | 6 +- .../lr_os_custom_header/_request_builders.py | 8 +- .../rest/lro_retrys/_request_builders.py | 14 +- .../rest/lros/_request_builders.py | 88 +++++------ .../rest/lrosads/_request_builders.py | 52 +++---- .../rest/_request_builders.py | 4 +- .../rest/paging/_request_builders.py | 40 ++--- .../storage_accounts/_request_builders.py | 18 +-- .../rest/usage/_request_builders.py | 2 +- .../rest/group/_request_builders.py | 2 +- .../rest/params/_request_builders.py | 10 +- .../rest/params/_request_builders.py | 14 +- .../_operation_group_one_operations.py | 2 +- .../_operation_group_one_operations.py | 4 +- .../_multiapi_service_client_operations.py | 12 +- .../_operation_group_one_operations.py | 2 +- .../_multiapi_service_client_operations.py | 20 +-- .../_operation_group_one_operations.py | 4 +- .../_multiapi_service_client_operations.py | 4 +- .../_operation_group_one_operations.py | 4 +- .../_operation_group_two_operations.py | 2 +- .../_multiapi_service_client_operations.py | 8 +- .../_operation_group_one_operations.py | 8 +- .../_operation_group_two_operations.py | 4 +- .../_multiapi_service_client_operations.py | 4 +- .../_operation_group_one_operations.py | 2 +- .../_operation_group_two_operations.py | 4 +- .../_multiapi_service_client_operations.py | 8 +- .../_operation_group_one_operations.py | 4 +- .../_operation_group_two_operations.py | 8 +- .../_multiapi_service_client_operations.py | 12 +- .../_operation_group_one_operations.py | 2 +- .../_multiapi_service_client_operations.py | 20 +-- .../_operation_group_one_operations.py | 4 +- .../_multiapi_service_client_operations.py | 4 +- .../_operation_group_one_operations.py | 4 +- .../_operation_group_two_operations.py | 2 +- .../_multiapi_service_client_operations.py | 8 +- .../_operation_group_one_operations.py | 8 +- .../_operation_group_two_operations.py | 4 +- .../_multiapi_service_client_operations.py | 4 +- .../_operation_group_one_operations.py | 2 +- .../_operation_group_two_operations.py | 4 +- .../_multiapi_service_client_operations.py | 8 +- .../_operation_group_one_operations.py | 4 +- .../_operation_group_two_operations.py | 8 +- ...stom_base_url_service_client_operations.py | 2 +- ...stom_base_url_service_client_operations.py | 4 +- ...stom_base_url_service_client_operations.py | 2 +- ...stom_base_url_service_client_operations.py | 4 +- .../_multiapi_service_client_operations.py | 12 +- .../_operation_group_one_operations.py | 2 +- .../_multiapi_service_client_operations.py | 20 +-- .../_operation_group_one_operations.py | 4 +- .../_multiapi_service_client_operations.py | 4 +- .../_operation_group_one_operations.py | 4 +- .../_operation_group_two_operations.py | 2 +- .../_multiapi_service_client_operations.py | 8 +- .../_operation_group_one_operations.py | 8 +- .../_operation_group_two_operations.py | 4 +- .../_multiapi_service_client_operations.py | 4 +- .../_operation_group_one_operations.py | 2 +- .../_operation_group_two_operations.py | 4 +- .../_multiapi_service_client_operations.py | 8 +- .../_operation_group_one_operations.py | 4 +- .../_operation_group_two_operations.py | 8 +- .../_multiapi_service_client_operations.py | 20 +-- .../_operation_group_one_operations.py | 4 +- .../_multiapi_service_client_operations.py | 8 +- .../_operation_group_one_operations.py | 8 +- .../_operation_group_two_operations.py | 4 +- .../_multiapi_service_client_operations.py | 8 +- .../_operation_group_one_operations.py | 4 +- .../_operation_group_two_operations.py | 8 +- .../_multiapi_service_client_operations.py | 12 +- .../_operation_group_one_operations.py | 2 +- .../_multiapi_service_client_operations.py | 20 +-- .../_operation_group_one_operations.py | 4 +- .../_multiapi_service_client_operations.py | 4 +- .../_operation_group_one_operations.py | 4 +- .../_operation_group_two_operations.py | 2 +- .../_multiapi_service_client_operations.py | 8 +- .../_operation_group_one_operations.py | 8 +- .../_operation_group_two_operations.py | 4 +- .../_multiapi_service_client_operations.py | 4 +- .../_operation_group_one_operations.py | 2 +- .../_operation_group_two_operations.py | 4 +- .../_multiapi_service_client_operations.py | 8 +- .../_operation_group_one_operations.py | 4 +- .../_operation_group_two_operations.py | 8 +- .../operations/_pets_operations.py | 12 +- .../operations/_anything_client_operations.py | 12 +- .../bodyarray/operations/_array_operations.py | 138 ++++++++--------- .../array/operations/_array_operations.py | 138 ++++++++--------- .../operations/_array_operations.py | 138 ++++++++--------- .../operations/_upload_operations.py | 4 +- .../operations/_bool_operations.py | 12 +- .../bodybyte/operations/_byte_operations.py | 10 +- .../operations/_byte_operations.py | 10 +- .../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 +- .../bodydate/operations/_date_operations.py | 16 +- .../operations/_datetime_operations.py | 44 +++--- .../operations/_datetimerfc1123_operations.py | 18 +-- .../operations/_dictionary_operations.py | 130 ++++++++-------- .../operations/_duration_operations.py | 8 +- .../bodyfile/operations/_files_operations.py | 6 +- .../operations/_formdata_operations.py | 6 +- .../_formdataurlencoded_operations.py | 4 +- .../bodyinteger/operations/_int_operations.py | 28 ++-- .../operations/_number_operations.py | 48 +++--- .../bodystring/operations/_enum_operations.py | 12 +- .../operations/_string_operations.py | 26 ++-- .../bodytime/operations/_time_operations.py | 4 +- .../operations/_contants_operations.py | 34 ++--- .../operations/_paths_operations.py | 2 +- .../operations/_paths_operations.py | 2 +- .../operations/_pet_operations.py | 4 +- .../header/operations/_header_operations.py | 58 +++---- .../_http_client_failure_operations.py | 52 +++---- .../operations/_http_failure_operations.py | 6 +- .../operations/_http_redirects_operations.py | 32 ++-- .../operations/_http_retry_operations.py | 18 +-- .../_http_server_failure_operations.py | 8 +- .../operations/_http_success_operations.py | 38 ++--- .../_multiple_responses_operations.py | 68 ++++----- ...correct_returned_error_model_operations.py | 2 +- .../_media_types_client_operations.py | 12 +- .../_merge_patch_json_client_operations.py | 2 +- ...urce_flattening_test_service_operations.py | 22 +-- ...e_inheritance_service_client_operations.py | 20 +-- .../operations/_float_operations.py | 4 +- .../operations/_int_operations.py | 4 +- .../_object_type_client_operations.py | 4 +- .../_availability_sets_operations.py | 2 +- ...parmaterized_endpoint_client_operations.py | 2 +- .../_auto_rest_report_service_operations.py | 4 +- .../operations/_explicit_operations.py | 48 +++--- .../operations/_implicit_operations.py | 16 +- .../_import_operations_operations.py | 2 +- .../_reserved_words_client_operations.py | 8 +- .../url/operations/_path_items_operations.py | 8 +- .../Url/url/operations/_paths_operations.py | 54 +++---- .../Url/url/operations/_queries_operations.py | 70 ++++----- .../operations/_queries_operations.py | 6 +- .../_auto_rest_validation_test_operations.py | 8 +- .../xmlservice/operations/_xml_operations.py | 68 ++++----- .../operations/_pet_operations.py | 6 +- .../rest/pets/_request_builders.py | 12 +- .../rest/_request_builders.py | 12 +- .../rest/array/_request_builders.py | 138 ++++++++--------- .../rest/upload/_request_builders.py | 4 +- .../rest/bool/_request_builders.py | 12 +- .../rest/byte/_request_builders.py | 10 +- .../rest/array/_request_builders.py | 10 +- .../rest/basic/_request_builders.py | 12 +- .../rest/dictionary/_request_builders.py | 12 +- .../rest/flattencomplex/_request_builders.py | 2 +- .../rest/inheritance/_request_builders.py | 4 +- .../polymorphicrecursive/_request_builders.py | 4 +- .../rest/polymorphism/_request_builders.py | 18 +-- .../rest/primitive/_request_builders.py | 44 +++--- .../readonlyproperty/_request_builders.py | 4 +- .../rest/date/_request_builders.py | 16 +- .../rest/datetime/_request_builders.py | 44 +++--- .../rest/datetimerfc1123/_request_builders.py | 18 +-- .../rest/dictionary/_request_builders.py | 130 ++++++++-------- .../rest/duration/_request_builders.py | 8 +- .../rest/files/_request_builders.py | 6 +- .../rest/formdata/_request_builders.py | 6 +- .../formdataurlencoded/_request_builders.py | 4 +- .../rest/int/_request_builders.py | 28 ++-- .../rest/number/_request_builders.py | 48 +++--- .../rest/enum/_request_builders.py | 12 +- .../rest/string/_request_builders.py | 26 ++-- .../rest/time/_request_builders.py | 4 +- .../rest/contants/_request_builders.py | 34 ++--- .../rest/paths/_request_builders.py | 2 +- .../rest/paths/_request_builders.py | 2 +- .../rest/pet/_request_builders.py | 4 +- .../rest/header/_request_builders.py | 58 +++---- .../http_client_failure/_request_builders.py | 52 +++---- .../rest/http_failure/_request_builders.py | 6 +- .../rest/http_redirects/_request_builders.py | 32 ++-- .../rest/http_retry/_request_builders.py | 18 +-- .../http_server_failure/_request_builders.py | 8 +- .../rest/http_success/_request_builders.py | 38 ++--- .../multiple_responses/_request_builders.py | 68 ++++----- .../rest/_request_builders.py | 2 +- .../rest/_request_builders.py | 12 +- .../rest/_request_builders.py | 2 +- .../rest/_request_builders.py | 22 +-- .../rest/_request_builders.py | 20 +-- .../rest/float/_request_builders.py | 4 +- .../rest/int/_request_builders.py | 4 +- .../rest/_request_builders.py | 4 +- .../availability_sets/_request_builders.py | 2 +- .../rest/_request_builders.py | 2 +- .../reportlowlevel/rest/_request_builders.py | 4 +- .../rest/explicit/_request_builders.py | 48 +++--- .../rest/implicit/_request_builders.py | 16 +- .../rest/_request_builders.py | 8 +- .../rest/import_builders/_request_builders.py | 2 +- .../rest/path_items/_request_builders.py | 8 +- .../rest/paths/_request_builders.py | 54 +++---- .../rest/queries/_request_builders.py | 70 ++++----- .../rest/queries/_request_builders.py | 6 +- .../rest/_request_builders.py | 8 +- .../rest/xml/_request_builders.py | 68 ++++----- .../rest/pet/_request_builders.py | 6 +- 284 files changed, 2254 insertions(+), 2247 deletions(-) diff --git a/autorest/codegen/serializers/builder_serializer.py b/autorest/codegen/serializers/builder_serializer.py index 1e7884e616b..dc402af039d 100644 --- a/autorest/codegen/serializers/builder_serializer.py +++ b/autorest/codegen/serializers/builder_serializer.py @@ -10,6 +10,8 @@ from abc import abstractmethod, ABC from typing import Any, List, TypeVar, Dict, Union, Optional, cast +from autorest.codegen.models import request_builder + from ..models import ( Operation, CodeModel, @@ -33,6 +35,9 @@ T = TypeVar("T") OrderedSet = Dict[T, None] +def _escape_str(input_str: str) -> str: + replace = input_str.replace("'", "\\'") + return f'"{replace}"' def _improve_json_string(template_representation: str) -> Any: origin = template_representation.split('\n') @@ -533,6 +538,13 @@ def serialize_query(self, builder) -> List[str]: )) return retval + def construct_url(self, builder) -> str: + if any(o for o in ["low_level_client", "version_tolerant"] if self.code_model.options.get(o)): + url_value = _escape_str(builder.url) + else: + url_value = f'kwargs.pop("template_url", {_escape_str(builder.url)})' + return f"url = {url_value}{' # pylint: disable=line-too-long' if len(url_value) > 114 else ''}" + class RequestBuilderGenericSerializer(_RequestBuilderBaseSerializer): @property def _want_inline_type_hints(self) -> bool: @@ -986,8 +998,8 @@ def error_map(self, builder) -> List[str]: @staticmethod def get_metadata_url(builder) -> str: - url = builder.request_builder.url.replace("'", "\\'") - return f"{builder.python_name}.metadata = {{'url': '{ url }'}} # type: ignore" + url = _escape_str(builder.request_builder.url) + return f"{builder.python_name}.metadata = {{'url': { url }}} # type: ignore" class _SyncOperationBaseSerializer(_OperationBaseSerializer): # pylint: disable=abstract-method @property diff --git a/autorest/codegen/templates/request_builder.py.jinja2 b/autorest/codegen/templates/request_builder.py.jinja2 index adfcd4a4e39..d2b7b729bf5 100644 --- a/autorest/codegen/templates/request_builder.py.jinja2 +++ b/autorest/codegen/templates/request_builder.py.jinja2 @@ -13,12 +13,7 @@ {% endfor %} {% endif %} # Construct URL -{% if code_model.options["version_tolerant"] or code_model.options["low_level_client"] %} - {% set url_value = keywords.escape_str(request_builder.url) %} -{% else %} - {% set url_value = 'kwargs.pop("template_url", ' + keywords.escape_str(request_builder.url) + ')' %} -{% endif %} - url = {{ url_value }}{{ " # pylint: disable=line-too-long" if (url_value | length) > 114 else "" }} + {{ request_builder_serializer.construct_url(request_builder) }} {% if request_builder.parameters.path %} {{ op_tools.serialize(request_builder_serializer.serialize_path(request_builder)) | indent }} url = _format_url_section(url, **path_format_arguments) diff --git a/docs/samples/specification/azure_key_credential/generated/azure/key/credential/sample/aio/operations/_http_success_operations.py b/docs/samples/specification/azure_key_credential/generated/azure/key/credential/sample/aio/operations/_http_success_operations.py index 8f242475fd9..d76e6173f75 100644 --- a/docs/samples/specification/azure_key_credential/generated/azure/key/credential/sample/aio/operations/_http_success_operations.py +++ b/docs/samples/specification/azure_key_credential/generated/azure/key/credential/sample/aio/operations/_http_success_operations.py @@ -76,7 +76,7 @@ async def head200( if cls: return cls(pipeline_response, None, {}) - head200.metadata = {'url': '/http/success/200'} # type: ignore + head200.metadata = {'url': "/http/success/200"} # type: ignore @distributed_trace_async @@ -118,7 +118,7 @@ async def head204( if cls: return cls(pipeline_response, None, {}) - head204.metadata = {'url': '/http/success/204'} # type: ignore + head204.metadata = {'url': "/http/success/204"} # type: ignore @distributed_trace_async @@ -160,5 +160,5 @@ async def head404( if cls: return cls(pipeline_response, None, {}) - head404.metadata = {'url': '/http/success/404'} # type: ignore + head404.metadata = {'url': "/http/success/404"} # type: ignore diff --git a/docs/samples/specification/azure_key_credential/generated/azure/key/credential/sample/operations/_http_success_operations.py b/docs/samples/specification/azure_key_credential/generated/azure/key/credential/sample/operations/_http_success_operations.py index 110aa76ffe3..c0d85f4e572 100644 --- a/docs/samples/specification/azure_key_credential/generated/azure/key/credential/sample/operations/_http_success_operations.py +++ b/docs/samples/specification/azure_key_credential/generated/azure/key/credential/sample/operations/_http_success_operations.py @@ -32,7 +32,7 @@ def build_head200_request( ): # type: (...) -> HttpRequest # Construct URL - url = kwargs.pop("template_url", '/http/success/200') + url = kwargs.pop("template_url", "/http/success/200") return HttpRequest( method="HEAD", @@ -46,7 +46,7 @@ def build_head204_request( ): # type: (...) -> HttpRequest # Construct URL - url = kwargs.pop("template_url", '/http/success/204') + url = kwargs.pop("template_url", "/http/success/204") return HttpRequest( method="HEAD", @@ -60,7 +60,7 @@ def build_head404_request( ): # type: (...) -> HttpRequest # Construct URL - url = kwargs.pop("template_url", '/http/success/404') + url = kwargs.pop("template_url", "/http/success/404") return HttpRequest( method="HEAD", @@ -127,7 +127,7 @@ def head200( if cls: return cls(pipeline_response, None, {}) - head200.metadata = {'url': '/http/success/200'} # type: ignore + head200.metadata = {'url': "/http/success/200"} # type: ignore @distributed_trace @@ -170,7 +170,7 @@ def head204( if cls: return cls(pipeline_response, None, {}) - head204.metadata = {'url': '/http/success/204'} # type: ignore + head204.metadata = {'url': "/http/success/204"} # type: ignore @distributed_trace @@ -213,5 +213,5 @@ def head404( if cls: return cls(pipeline_response, None, {}) - head404.metadata = {'url': '/http/success/404'} # type: ignore + head404.metadata = {'url': "/http/success/404"} # type: ignore diff --git a/docs/samples/specification/basic/generated/azure/basic/sample/aio/operations/_http_success_operations.py b/docs/samples/specification/basic/generated/azure/basic/sample/aio/operations/_http_success_operations.py index 8f242475fd9..d76e6173f75 100644 --- a/docs/samples/specification/basic/generated/azure/basic/sample/aio/operations/_http_success_operations.py +++ b/docs/samples/specification/basic/generated/azure/basic/sample/aio/operations/_http_success_operations.py @@ -76,7 +76,7 @@ async def head200( if cls: return cls(pipeline_response, None, {}) - head200.metadata = {'url': '/http/success/200'} # type: ignore + head200.metadata = {'url': "/http/success/200"} # type: ignore @distributed_trace_async @@ -118,7 +118,7 @@ async def head204( if cls: return cls(pipeline_response, None, {}) - head204.metadata = {'url': '/http/success/204'} # type: ignore + head204.metadata = {'url': "/http/success/204"} # type: ignore @distributed_trace_async @@ -160,5 +160,5 @@ async def head404( if cls: return cls(pipeline_response, None, {}) - head404.metadata = {'url': '/http/success/404'} # type: ignore + head404.metadata = {'url': "/http/success/404"} # type: ignore diff --git a/docs/samples/specification/basic/generated/azure/basic/sample/operations/_http_success_operations.py b/docs/samples/specification/basic/generated/azure/basic/sample/operations/_http_success_operations.py index 110aa76ffe3..c0d85f4e572 100644 --- a/docs/samples/specification/basic/generated/azure/basic/sample/operations/_http_success_operations.py +++ b/docs/samples/specification/basic/generated/azure/basic/sample/operations/_http_success_operations.py @@ -32,7 +32,7 @@ def build_head200_request( ): # type: (...) -> HttpRequest # Construct URL - url = kwargs.pop("template_url", '/http/success/200') + url = kwargs.pop("template_url", "/http/success/200") return HttpRequest( method="HEAD", @@ -46,7 +46,7 @@ def build_head204_request( ): # type: (...) -> HttpRequest # Construct URL - url = kwargs.pop("template_url", '/http/success/204') + url = kwargs.pop("template_url", "/http/success/204") return HttpRequest( method="HEAD", @@ -60,7 +60,7 @@ def build_head404_request( ): # type: (...) -> HttpRequest # Construct URL - url = kwargs.pop("template_url", '/http/success/404') + url = kwargs.pop("template_url", "/http/success/404") return HttpRequest( method="HEAD", @@ -127,7 +127,7 @@ def head200( if cls: return cls(pipeline_response, None, {}) - head200.metadata = {'url': '/http/success/200'} # type: ignore + head200.metadata = {'url': "/http/success/200"} # type: ignore @distributed_trace @@ -170,7 +170,7 @@ def head204( if cls: return cls(pipeline_response, None, {}) - head204.metadata = {'url': '/http/success/204'} # type: ignore + head204.metadata = {'url': "/http/success/204"} # type: ignore @distributed_trace @@ -213,5 +213,5 @@ def head404( if cls: return cls(pipeline_response, None, {}) - head404.metadata = {'url': '/http/success/404'} # type: ignore + head404.metadata = {'url': "/http/success/404"} # type: ignore diff --git a/docs/samples/specification/directives/generated/azure/directives/sample/aio/operations/_polling_paging_example_operations.py b/docs/samples/specification/directives/generated/azure/directives/sample/aio/operations/_polling_paging_example_operations.py index 206af0b29e0..1bae075e2fd 100644 --- a/docs/samples/specification/directives/generated/azure/directives/sample/aio/operations/_polling_paging_example_operations.py +++ b/docs/samples/specification/directives/generated/azure/directives/sample/aio/operations/_polling_paging_example_operations.py @@ -72,7 +72,7 @@ async def _basic_polling_initial( return deserialized - _basic_polling_initial.metadata = {'url': '/basic/polling'} # type: ignore + _basic_polling_initial.metadata = {'url': "/basic/polling"} # type: ignore @distributed_trace_async @@ -135,7 +135,7 @@ def get_long_running_output(pipeline_response): ) return AsyncCustomPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_basic_polling.metadata = {'url': '/basic/polling'} # type: ignore + begin_basic_polling.metadata = {'url': "/basic/polling"} # type: ignore @distributed_trace def basic_paging( @@ -200,4 +200,4 @@ async def get_next(next_link=None): return AsyncCustomPager( get_next, extract_data ) - basic_paging.metadata = {'url': '/basic/paging'} # type: ignore + basic_paging.metadata = {'url': "/basic/paging"} # type: ignore diff --git a/docs/samples/specification/directives/generated/azure/directives/sample/operations/_polling_paging_example_operations.py b/docs/samples/specification/directives/generated/azure/directives/sample/operations/_polling_paging_example_operations.py index 22762872465..691a46ce42f 100644 --- a/docs/samples/specification/directives/generated/azure/directives/sample/operations/_polling_paging_example_operations.py +++ b/docs/samples/specification/directives/generated/azure/directives/sample/operations/_polling_paging_example_operations.py @@ -38,7 +38,7 @@ def build_basic_polling_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/basic/polling') + url = kwargs.pop("template_url", "/basic/polling") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -60,7 +60,7 @@ def build_basic_paging_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/basic/paging') + url = kwargs.pop("template_url", "/basic/paging") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -123,7 +123,7 @@ def _basic_polling_initial( return deserialized - _basic_polling_initial.metadata = {'url': '/basic/polling'} # type: ignore + _basic_polling_initial.metadata = {'url': "/basic/polling"} # type: ignore @distributed_trace @@ -186,7 +186,7 @@ def get_long_running_output(pipeline_response): ) return CustomPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_basic_polling.metadata = {'url': '/basic/polling'} # type: ignore + begin_basic_polling.metadata = {'url': "/basic/polling"} # type: ignore @distributed_trace def basic_paging( @@ -252,4 +252,4 @@ def get_next(next_link=None): return CustomPager( get_next, extract_data ) - basic_paging.metadata = {'url': '/basic/paging'} # type: ignore + basic_paging.metadata = {'url': "/basic/paging"} # type: ignore diff --git a/docs/samples/specification/management/generated/azure/mgmt/sample/aio/operations/_http_success_operations.py b/docs/samples/specification/management/generated/azure/mgmt/sample/aio/operations/_http_success_operations.py index 614687053ae..26d5d2f349a 100644 --- a/docs/samples/specification/management/generated/azure/mgmt/sample/aio/operations/_http_success_operations.py +++ b/docs/samples/specification/management/generated/azure/mgmt/sample/aio/operations/_http_success_operations.py @@ -78,7 +78,7 @@ async def head200( return cls(pipeline_response, None, {}) return 200 <= response.status_code <= 299 - head200.metadata = {'url': '/http/success/200'} # type: ignore + head200.metadata = {'url': "/http/success/200"} # type: ignore @distributed_trace_async @@ -121,7 +121,7 @@ async def head204( return cls(pipeline_response, None, {}) return 200 <= response.status_code <= 299 - head204.metadata = {'url': '/http/success/204'} # type: ignore + head204.metadata = {'url': "/http/success/204"} # type: ignore @distributed_trace_async @@ -164,5 +164,5 @@ async def head404( return cls(pipeline_response, None, {}) return 200 <= response.status_code <= 299 - head404.metadata = {'url': '/http/success/404'} # type: ignore + head404.metadata = {'url': "/http/success/404"} # type: ignore diff --git a/docs/samples/specification/management/generated/azure/mgmt/sample/operations/_http_success_operations.py b/docs/samples/specification/management/generated/azure/mgmt/sample/operations/_http_success_operations.py index 20ac9f413f2..0b2ecaadf13 100644 --- a/docs/samples/specification/management/generated/azure/mgmt/sample/operations/_http_success_operations.py +++ b/docs/samples/specification/management/generated/azure/mgmt/sample/operations/_http_success_operations.py @@ -33,7 +33,7 @@ def build_head200_request( ): # type: (...) -> HttpRequest # Construct URL - url = kwargs.pop("template_url", '/http/success/200') + url = kwargs.pop("template_url", "/http/success/200") return HttpRequest( method="HEAD", @@ -47,7 +47,7 @@ def build_head204_request( ): # type: (...) -> HttpRequest # Construct URL - url = kwargs.pop("template_url", '/http/success/204') + url = kwargs.pop("template_url", "/http/success/204") return HttpRequest( method="HEAD", @@ -61,7 +61,7 @@ def build_head404_request( ): # type: (...) -> HttpRequest # Construct URL - url = kwargs.pop("template_url", '/http/success/404') + url = kwargs.pop("template_url", "/http/success/404") return HttpRequest( method="HEAD", @@ -129,7 +129,7 @@ def head200( return cls(pipeline_response, None, {}) return 200 <= response.status_code <= 299 - head200.metadata = {'url': '/http/success/200'} # type: ignore + head200.metadata = {'url': "/http/success/200"} # type: ignore @distributed_trace @@ -173,7 +173,7 @@ def head204( return cls(pipeline_response, None, {}) return 200 <= response.status_code <= 299 - head204.metadata = {'url': '/http/success/204'} # type: ignore + head204.metadata = {'url': "/http/success/204"} # type: ignore @distributed_trace @@ -217,5 +217,5 @@ def head404( return cls(pipeline_response, None, {}) return 200 <= response.status_code <= 299 - head404.metadata = {'url': '/http/success/404'} # type: ignore + head404.metadata = {'url': "/http/success/404"} # type: ignore diff --git a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v1/aio/operations/_multiapi_service_client_operations.py b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v1/aio/operations/_multiapi_service_client_operations.py index c0e06f6eba5..ac35aa217a2 100644 --- a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v1/aio/operations/_multiapi_service_client_operations.py +++ b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v1/aio/operations/_multiapi_service_client_operations.py @@ -78,7 +78,7 @@ async def test_one( if cls: return cls(pipeline_response, None, {}) - test_one.metadata = {'url': '/multiapi/testOneEndpoint'} # type: ignore + test_one.metadata = {'url': "/multiapi/testOneEndpoint"} # type: ignore async def _test_lro_initial( @@ -127,7 +127,7 @@ async def _test_lro_initial( return deserialized - _test_lro_initial.metadata = {'url': '/multiapi/lro'} # type: ignore + _test_lro_initial.metadata = {'url': "/multiapi/lro"} # type: ignore @distributed_trace_async @@ -190,7 +190,7 @@ def get_long_running_output(pipeline_response): ) return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_test_lro.metadata = {'url': '/multiapi/lro'} # type: ignore + begin_test_lro.metadata = {'url': "/multiapi/lro"} # type: ignore async def _test_lro_and_paging_initial( self, @@ -237,7 +237,7 @@ async def _test_lro_and_paging_initial( return deserialized - _test_lro_and_paging_initial.metadata = {'url': '/multiapi/lroAndPaging'} # type: ignore + _test_lro_and_paging_initial.metadata = {'url': "/multiapi/lroAndPaging"} # type: ignore @distributed_trace_async @@ -370,7 +370,7 @@ async def internal_get_next(next_link=None): ) return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_test_lro_and_paging.metadata = {'url': '/multiapi/lroAndPaging'} # type: ignore + begin_test_lro_and_paging.metadata = {'url': "/multiapi/lroAndPaging"} # type: ignore @distributed_trace_async @@ -420,5 +420,5 @@ async def test_different_calls( if cls: return cls(pipeline_response, None, {}) - test_different_calls.metadata = {'url': '/multiapi/testDifferentCalls'} # type: ignore + test_different_calls.metadata = {'url': "/multiapi/testDifferentCalls"} # type: ignore diff --git a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v1/aio/operations/_operation_group_one_operations.py b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v1/aio/operations/_operation_group_one_operations.py index 0e464be80e1..a544d63be21 100644 --- a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v1/aio/operations/_operation_group_one_operations.py +++ b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v1/aio/operations/_operation_group_one_operations.py @@ -86,5 +86,5 @@ async def test_two( if cls: return cls(pipeline_response, None, {}) - test_two.metadata = {'url': '/multiapi/one/testTwoEndpoint'} # type: ignore + test_two.metadata = {'url': "/multiapi/one/testTwoEndpoint"} # type: ignore diff --git a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v1/operations/_multiapi_service_client_operations.py b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v1/operations/_multiapi_service_client_operations.py index 8c029f8c926..b887f43f707 100644 --- a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v1/operations/_multiapi_service_client_operations.py +++ b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v1/operations/_multiapi_service_client_operations.py @@ -42,7 +42,7 @@ def build_test_one_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/multiapi/testOneEndpoint') + url = kwargs.pop("template_url", "/multiapi/testOneEndpoint") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -72,7 +72,7 @@ def build_test_lro_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/multiapi/lro') + url = kwargs.pop("template_url", "/multiapi/lro") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -98,7 +98,7 @@ def build_test_lro_and_paging_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/multiapi/lroAndPaging') + url = kwargs.pop("template_url", "/multiapi/lroAndPaging") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -127,7 +127,7 @@ def build_test_different_calls_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/multiapi/testDifferentCalls') + url = kwargs.pop("template_url", "/multiapi/testDifferentCalls") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -201,7 +201,7 @@ def test_one( if cls: return cls(pipeline_response, None, {}) - test_one.metadata = {'url': '/multiapi/testOneEndpoint'} # type: ignore + test_one.metadata = {'url': "/multiapi/testOneEndpoint"} # type: ignore def _test_lro_initial( @@ -251,7 +251,7 @@ def _test_lro_initial( return deserialized - _test_lro_initial.metadata = {'url': '/multiapi/lro'} # type: ignore + _test_lro_initial.metadata = {'url': "/multiapi/lro"} # type: ignore @distributed_trace @@ -314,7 +314,7 @@ def get_long_running_output(pipeline_response): ) return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_test_lro.metadata = {'url': '/multiapi/lro'} # type: ignore + begin_test_lro.metadata = {'url': "/multiapi/lro"} # type: ignore def _test_lro_and_paging_initial( self, @@ -362,7 +362,7 @@ def _test_lro_and_paging_initial( return deserialized - _test_lro_and_paging_initial.metadata = {'url': '/multiapi/lroAndPaging'} # type: ignore + _test_lro_and_paging_initial.metadata = {'url': "/multiapi/lroAndPaging"} # type: ignore @distributed_trace @@ -496,7 +496,7 @@ def internal_get_next(next_link=None): ) return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_test_lro_and_paging.metadata = {'url': '/multiapi/lroAndPaging'} # type: ignore + begin_test_lro_and_paging.metadata = {'url': "/multiapi/lroAndPaging"} # type: ignore @distributed_trace @@ -547,5 +547,5 @@ def test_different_calls( if cls: return cls(pipeline_response, None, {}) - test_different_calls.metadata = {'url': '/multiapi/testDifferentCalls'} # type: ignore + test_different_calls.metadata = {'url': "/multiapi/testDifferentCalls"} # type: ignore diff --git a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v1/operations/_operation_group_one_operations.py b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v1/operations/_operation_group_one_operations.py index 92c032e0f22..0f3c2490f49 100644 --- a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v1/operations/_operation_group_one_operations.py +++ b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v1/operations/_operation_group_one_operations.py @@ -37,7 +37,7 @@ def build_test_two_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/multiapi/one/testTwoEndpoint') + url = kwargs.pop("template_url", "/multiapi/one/testTwoEndpoint") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -122,5 +122,5 @@ def test_two( if cls: return cls(pipeline_response, None, {}) - test_two.metadata = {'url': '/multiapi/one/testTwoEndpoint'} # type: ignore + test_two.metadata = {'url': "/multiapi/one/testTwoEndpoint"} # type: ignore diff --git a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v2/aio/operations/_multiapi_service_client_operations.py b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v2/aio/operations/_multiapi_service_client_operations.py index 2ffc334eb1c..941f706e995 100644 --- a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v2/aio/operations/_multiapi_service_client_operations.py +++ b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v2/aio/operations/_multiapi_service_client_operations.py @@ -78,7 +78,7 @@ async def test_one( return deserialized - test_one.metadata = {'url': '/multiapi/testOneEndpoint'} # type: ignore + test_one.metadata = {'url': "/multiapi/testOneEndpoint"} # type: ignore @distributed_trace_async @@ -132,5 +132,5 @@ async def test_different_calls( if cls: return cls(pipeline_response, None, {}) - test_different_calls.metadata = {'url': '/multiapi/testDifferentCalls'} # type: ignore + test_different_calls.metadata = {'url': "/multiapi/testDifferentCalls"} # type: ignore diff --git a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v2/aio/operations/_operation_group_one_operations.py b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v2/aio/operations/_operation_group_one_operations.py index 2a937989f62..2b231f11eb8 100644 --- a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v2/aio/operations/_operation_group_one_operations.py +++ b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v2/aio/operations/_operation_group_one_operations.py @@ -100,7 +100,7 @@ async def test_two( return deserialized - test_two.metadata = {'url': '/multiapi/one/testTwoEndpoint'} # type: ignore + test_two.metadata = {'url': "/multiapi/one/testTwoEndpoint"} # type: ignore @distributed_trace_async @@ -146,5 +146,5 @@ async def test_three( if cls: return cls(pipeline_response, None, {}) - test_three.metadata = {'url': '/multiapi/one/testThreeEndpoint'} # type: ignore + test_three.metadata = {'url': "/multiapi/one/testThreeEndpoint"} # type: ignore diff --git a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v2/aio/operations/_operation_group_two_operations.py b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v2/aio/operations/_operation_group_two_operations.py index e403a5f2430..c88ee12ba24 100644 --- a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v2/aio/operations/_operation_group_two_operations.py +++ b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v2/aio/operations/_operation_group_two_operations.py @@ -90,5 +90,5 @@ async def test_four( if cls: return cls(pipeline_response, None, {}) - test_four.metadata = {'url': '/multiapi/two/testFourEndpoint'} # type: ignore + test_four.metadata = {'url': "/multiapi/two/testFourEndpoint"} # type: ignore diff --git a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v2/operations/_multiapi_service_client_operations.py b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v2/operations/_multiapi_service_client_operations.py index 690faa8c4ce..76fbbf3c27c 100644 --- a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v2/operations/_multiapi_service_client_operations.py +++ b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v2/operations/_multiapi_service_client_operations.py @@ -39,7 +39,7 @@ def build_test_one_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/multiapi/testOneEndpoint') + url = kwargs.pop("template_url", "/multiapi/testOneEndpoint") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -71,7 +71,7 @@ def build_test_different_calls_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/multiapi/testDifferentCalls') + url = kwargs.pop("template_url", "/multiapi/testDifferentCalls") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -151,7 +151,7 @@ def test_one( return deserialized - test_one.metadata = {'url': '/multiapi/testOneEndpoint'} # type: ignore + test_one.metadata = {'url': "/multiapi/testOneEndpoint"} # type: ignore @distributed_trace @@ -206,5 +206,5 @@ def test_different_calls( if cls: return cls(pipeline_response, None, {}) - test_different_calls.metadata = {'url': '/multiapi/testDifferentCalls'} # type: ignore + test_different_calls.metadata = {'url': "/multiapi/testDifferentCalls"} # type: ignore diff --git a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v2/operations/_operation_group_one_operations.py b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v2/operations/_operation_group_one_operations.py index f0868b0019f..913f6a82294 100644 --- a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v2/operations/_operation_group_one_operations.py +++ b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v2/operations/_operation_group_one_operations.py @@ -38,7 +38,7 @@ def build_test_two_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/multiapi/one/testTwoEndpoint') + url = kwargs.pop("template_url", "/multiapi/one/testTwoEndpoint") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -67,7 +67,7 @@ def build_test_three_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/multiapi/one/testThreeEndpoint') + url = kwargs.pop("template_url", "/multiapi/one/testThreeEndpoint") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -166,7 +166,7 @@ def test_two( return deserialized - test_two.metadata = {'url': '/multiapi/one/testTwoEndpoint'} # type: ignore + test_two.metadata = {'url': "/multiapi/one/testTwoEndpoint"} # type: ignore @distributed_trace @@ -213,5 +213,5 @@ def test_three( if cls: return cls(pipeline_response, None, {}) - test_three.metadata = {'url': '/multiapi/one/testThreeEndpoint'} # type: ignore + test_three.metadata = {'url': "/multiapi/one/testThreeEndpoint"} # type: ignore diff --git a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v2/operations/_operation_group_two_operations.py b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v2/operations/_operation_group_two_operations.py index b538d6eb530..58761ed176d 100644 --- a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v2/operations/_operation_group_two_operations.py +++ b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v2/operations/_operation_group_two_operations.py @@ -38,7 +38,7 @@ def build_test_four_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/multiapi/two/testFourEndpoint') + url = kwargs.pop("template_url", "/multiapi/two/testFourEndpoint") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -128,5 +128,5 @@ def test_four( if cls: return cls(pipeline_response, None, {}) - test_four.metadata = {'url': '/multiapi/two/testFourEndpoint'} # type: ignore + test_four.metadata = {'url': "/multiapi/two/testFourEndpoint"} # type: ignore diff --git a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v3/aio/operations/_multiapi_service_client_operations.py b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v3/aio/operations/_multiapi_service_client_operations.py index d1d2fb329b5..65269eda674 100644 --- a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v3/aio/operations/_multiapi_service_client_operations.py +++ b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v3/aio/operations/_multiapi_service_client_operations.py @@ -88,7 +88,7 @@ async def get_next(next_link=None): return AsyncItemPaged( get_next, extract_data ) - test_paging.metadata = {'url': '/multiapi/paging'} # type: ignore + test_paging.metadata = {'url': "/multiapi/paging"} # type: ignore @distributed_trace_async async def test_different_calls( @@ -145,5 +145,5 @@ async def test_different_calls( if cls: return cls(pipeline_response, None, {}) - test_different_calls.metadata = {'url': '/multiapi/testDifferentCalls'} # type: ignore + test_different_calls.metadata = {'url': "/multiapi/testDifferentCalls"} # type: ignore diff --git a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v3/aio/operations/_operation_group_one_operations.py b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v3/aio/operations/_operation_group_one_operations.py index 53e084d678b..e8de643ee0c 100644 --- a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v3/aio/operations/_operation_group_one_operations.py +++ b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v3/aio/operations/_operation_group_one_operations.py @@ -100,5 +100,5 @@ async def test_two( return deserialized - test_two.metadata = {'url': '/multiapi/one/testTwoEndpoint'} # type: ignore + test_two.metadata = {'url': "/multiapi/one/testTwoEndpoint"} # type: ignore diff --git a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v3/aio/operations/_operation_group_two_operations.py b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v3/aio/operations/_operation_group_two_operations.py index e1290f4dd90..28b4040ad74 100644 --- a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v3/aio/operations/_operation_group_two_operations.py +++ b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v3/aio/operations/_operation_group_two_operations.py @@ -108,7 +108,7 @@ async def test_four( if cls: return cls(pipeline_response, None, {}) - test_four.metadata = {'url': '/multiapi/two/testFourEndpoint'} # type: ignore + test_four.metadata = {'url': "/multiapi/two/testFourEndpoint"} # type: ignore @distributed_trace_async @@ -154,5 +154,5 @@ async def test_five( if cls: return cls(pipeline_response, None, {}) - test_five.metadata = {'url': '/multiapi/two/testFiveEndpoint'} # type: ignore + test_five.metadata = {'url': "/multiapi/two/testFiveEndpoint"} # type: ignore diff --git a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v3/operations/_multiapi_service_client_operations.py b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v3/operations/_multiapi_service_client_operations.py index 1fea5bc2ef6..c7ef2374fa3 100644 --- a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v3/operations/_multiapi_service_client_operations.py +++ b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v3/operations/_multiapi_service_client_operations.py @@ -36,7 +36,7 @@ def build_test_paging_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/multiapi/paging') + url = kwargs.pop("template_url", "/multiapi/paging") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -61,7 +61,7 @@ def build_test_different_calls_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/multiapi/testDifferentCalls') + url = kwargs.pop("template_url", "/multiapi/testDifferentCalls") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -151,7 +151,7 @@ def get_next(next_link=None): return ItemPaged( get_next, extract_data ) - test_paging.metadata = {'url': '/multiapi/paging'} # type: ignore + test_paging.metadata = {'url': "/multiapi/paging"} # type: ignore @distributed_trace def test_different_calls( @@ -209,5 +209,5 @@ def test_different_calls( if cls: return cls(pipeline_response, None, {}) - test_different_calls.metadata = {'url': '/multiapi/testDifferentCalls'} # type: ignore + test_different_calls.metadata = {'url': "/multiapi/testDifferentCalls"} # type: ignore diff --git a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v3/operations/_operation_group_one_operations.py b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v3/operations/_operation_group_one_operations.py index db0b4afb127..c027246ad12 100644 --- a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v3/operations/_operation_group_one_operations.py +++ b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v3/operations/_operation_group_one_operations.py @@ -38,7 +38,7 @@ def build_test_two_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/multiapi/one/testTwoEndpoint') + url = kwargs.pop("template_url", "/multiapi/one/testTwoEndpoint") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -139,5 +139,5 @@ def test_two( return deserialized - test_two.metadata = {'url': '/multiapi/one/testTwoEndpoint'} # type: ignore + test_two.metadata = {'url': "/multiapi/one/testTwoEndpoint"} # type: ignore diff --git a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v3/operations/_operation_group_two_operations.py b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v3/operations/_operation_group_two_operations.py index 76c46796345..50502dc3ef0 100644 --- a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v3/operations/_operation_group_two_operations.py +++ b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v3/operations/_operation_group_two_operations.py @@ -38,7 +38,7 @@ def build_test_four_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/multiapi/two/testFourEndpoint') + url = kwargs.pop("template_url", "/multiapi/two/testFourEndpoint") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -67,7 +67,7 @@ def build_test_five_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/multiapi/two/testFiveEndpoint') + url = kwargs.pop("template_url", "/multiapi/two/testFiveEndpoint") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -174,7 +174,7 @@ def test_four( if cls: return cls(pipeline_response, None, {}) - test_four.metadata = {'url': '/multiapi/two/testFourEndpoint'} # type: ignore + test_four.metadata = {'url': "/multiapi/two/testFourEndpoint"} # type: ignore @distributed_trace @@ -221,5 +221,5 @@ def test_five( if cls: return cls(pipeline_response, None, {}) - test_five.metadata = {'url': '/multiapi/two/testFiveEndpoint'} # type: ignore + test_five.metadata = {'url': "/multiapi/two/testFiveEndpoint"} # type: ignore diff --git a/test/azure/legacy/Expected/AcceptanceTests/AzureBodyDuration/bodyduration/operations/_duration_operations.py b/test/azure/legacy/Expected/AcceptanceTests/AzureBodyDuration/bodyduration/operations/_duration_operations.py index 128e21e33c1..8c6bdd8385c 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/AzureBodyDuration/bodyduration/operations/_duration_operations.py +++ b/test/azure/legacy/Expected/AcceptanceTests/AzureBodyDuration/bodyduration/operations/_duration_operations.py @@ -42,7 +42,7 @@ def build_get_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/duration/null') + url = kwargs.pop("template_url", "/duration/null") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -64,7 +64,7 @@ def build_put_positive_duration_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/duration/positiveduration') + url = kwargs.pop("template_url", "/duration/positiveduration") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -86,7 +86,7 @@ def build_get_positive_duration_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/duration/positiveduration') + url = kwargs.pop("template_url", "/duration/positiveduration") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -106,7 +106,7 @@ def build_get_invalid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/duration/invalid') + url = kwargs.pop("template_url", "/duration/invalid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/azure/legacy/Expected/AcceptanceTests/AzureParameterGrouping/azureparametergrouping/operations/_parameter_grouping_operations.py b/test/azure/legacy/Expected/AcceptanceTests/AzureParameterGrouping/azureparametergrouping/operations/_parameter_grouping_operations.py index 59e4370a5ea..c91258fdbb5 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/AzureParameterGrouping/azureparametergrouping/operations/_parameter_grouping_operations.py +++ b/test/azure/legacy/Expected/AcceptanceTests/AzureParameterGrouping/azureparametergrouping/operations/_parameter_grouping_operations.py @@ -45,7 +45,7 @@ def build_post_required_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/parameterGrouping/postRequired/{path}') + url = kwargs.pop("template_url", "/parameterGrouping/postRequired/{path}") path_format_arguments = { "path": _SERIALIZER.url("path", path, 'str'), } @@ -83,7 +83,7 @@ def build_post_optional_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/parameterGrouping/postOptional') + url = kwargs.pop("template_url", "/parameterGrouping/postOptional") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -114,7 +114,7 @@ def build_post_reserved_words_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/parameterGrouping/postReservedWords') + url = kwargs.pop("template_url", "/parameterGrouping/postReservedWords") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -147,7 +147,7 @@ def build_post_multi_param_groups_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/parameterGrouping/postMultipleParameterGroups') + url = kwargs.pop("template_url", "/parameterGrouping/postMultipleParameterGroups") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -182,7 +182,7 @@ def build_post_shared_parameter_group_object_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/parameterGrouping/sharedParameterGroupObject') + url = kwargs.pop("template_url", "/parameterGrouping/sharedParameterGroupObject") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] diff --git a/test/azure/legacy/Expected/AcceptanceTests/AzureReport/azurereport/operations/_auto_rest_report_service_for_azure_operations.py b/test/azure/legacy/Expected/AcceptanceTests/AzureReport/azurereport/operations/_auto_rest_report_service_for_azure_operations.py index 1d38430906f..2115afe6686 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/AzureReport/azurereport/operations/_auto_rest_report_service_for_azure_operations.py +++ b/test/azure/legacy/Expected/AcceptanceTests/AzureReport/azurereport/operations/_auto_rest_report_service_for_azure_operations.py @@ -43,7 +43,7 @@ def build_get_report_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/report/azure') + url = kwargs.pop("template_url", "/report/azure") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] diff --git a/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_api_version_default_operations.py b/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_api_version_default_operations.py index 9ee5d2a97ee..b48392d8f77 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_api_version_default_operations.py +++ b/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_api_version_default_operations.py @@ -43,7 +43,7 @@ def build_get_method_global_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/azurespecials/apiVersion/method/string/none/query/global/2015-07-01-preview') + url = kwargs.pop("template_url", "/azurespecials/apiVersion/method/string/none/query/global/2015-07-01-preview") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -70,7 +70,7 @@ def build_get_method_global_not_provided_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/azurespecials/apiVersion/method/string/none/query/globalNotProvided/2015-07-01-preview') # pylint: disable=line-too-long + url = kwargs.pop("template_url", "/azurespecials/apiVersion/method/string/none/query/globalNotProvided/2015-07-01-preview") # pylint: disable=line-too-long # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -97,7 +97,7 @@ def build_get_path_global_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/azurespecials/apiVersion/path/string/none/query/global/2015-07-01-preview') + url = kwargs.pop("template_url", "/azurespecials/apiVersion/path/string/none/query/global/2015-07-01-preview") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -124,7 +124,7 @@ def build_get_swagger_global_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/azurespecials/apiVersion/swagger/string/none/query/global/2015-07-01-preview') + url = kwargs.pop("template_url", "/azurespecials/apiVersion/swagger/string/none/query/global/2015-07-01-preview") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] diff --git a/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_api_version_local_operations.py b/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_api_version_local_operations.py index a7f84c760c9..38b8aef50fd 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_api_version_local_operations.py +++ b/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_api_version_local_operations.py @@ -43,7 +43,7 @@ def build_get_method_local_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/azurespecials/apiVersion/method/string/none/query/local/2.0') + url = kwargs.pop("template_url", "/azurespecials/apiVersion/method/string/none/query/local/2.0") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -70,7 +70,7 @@ def build_get_method_local_null_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/azurespecials/apiVersion/method/string/none/query/local/null') + url = kwargs.pop("template_url", "/azurespecials/apiVersion/method/string/none/query/local/null") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -98,7 +98,7 @@ def build_get_path_local_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/azurespecials/apiVersion/path/string/none/query/local/2.0') + url = kwargs.pop("template_url", "/azurespecials/apiVersion/path/string/none/query/local/2.0") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -125,7 +125,7 @@ def build_get_swagger_local_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/azurespecials/apiVersion/swagger/string/none/query/local/2.0') + url = kwargs.pop("template_url", "/azurespecials/apiVersion/swagger/string/none/query/local/2.0") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] diff --git a/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_header_operations.py b/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_header_operations.py index 4fce9e5c027..2c72145b4f6 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_header_operations.py +++ b/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_header_operations.py @@ -43,7 +43,7 @@ def build_custom_named_request_id_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/azurespecials/customNamedRequestId') + url = kwargs.pop("template_url", "/azurespecials/customNamedRequestId") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -66,7 +66,7 @@ def build_custom_named_request_id_param_grouping_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/azurespecials/customNamedRequestIdParamGrouping') + url = kwargs.pop("template_url", "/azurespecials/customNamedRequestIdParamGrouping") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -89,7 +89,7 @@ def build_custom_named_request_id_head_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/azurespecials/customNamedRequestIdHead') + url = kwargs.pop("template_url", "/azurespecials/customNamedRequestIdHead") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_odata_operations.py b/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_odata_operations.py index 44509762465..01dbbf353d1 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_odata_operations.py +++ b/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_odata_operations.py @@ -45,7 +45,7 @@ def build_get_with_filter_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/azurespecials/odata/filter') + url = kwargs.pop("template_url", "/azurespecials/odata/filter") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] diff --git a/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_skip_url_encoding_operations.py b/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_skip_url_encoding_operations.py index 1cad5a9cfd2..eb72d7cd15a 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_skip_url_encoding_operations.py +++ b/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_skip_url_encoding_operations.py @@ -42,7 +42,7 @@ def build_get_method_path_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/azurespecials/skipUrlEncoding/method/path/valid/{unencodedPathParam}') + url = kwargs.pop("template_url", "/azurespecials/skipUrlEncoding/method/path/valid/{unencodedPathParam}") path_format_arguments = { "unencodedPathParam": _SERIALIZER.url("unencoded_path_param", unencoded_path_param, 'str', skip_quote=True), } @@ -68,7 +68,7 @@ def build_get_path_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/azurespecials/skipUrlEncoding/path/path/valid/{unencodedPathParam}') + url = kwargs.pop("template_url", "/azurespecials/skipUrlEncoding/path/path/valid/{unencodedPathParam}") path_format_arguments = { "unencodedPathParam": _SERIALIZER.url("unencoded_path_param", unencoded_path_param, 'str', skip_quote=True), } @@ -95,7 +95,7 @@ def build_get_swagger_path_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/azurespecials/skipUrlEncoding/swagger/path/valid/{unencodedPathParam}') + url = kwargs.pop("template_url", "/azurespecials/skipUrlEncoding/swagger/path/valid/{unencodedPathParam}") path_format_arguments = { "unencodedPathParam": _SERIALIZER.url("unencoded_path_param", unencoded_path_param, 'str', skip_quote=True), } @@ -122,7 +122,7 @@ def build_get_method_query_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/azurespecials/skipUrlEncoding/method/query/valid') + url = kwargs.pop("template_url", "/azurespecials/skipUrlEncoding/method/query/valid") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -149,7 +149,7 @@ def build_get_method_query_null_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/azurespecials/skipUrlEncoding/method/query/null') + url = kwargs.pop("template_url", "/azurespecials/skipUrlEncoding/method/query/null") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -177,7 +177,7 @@ def build_get_path_query_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/azurespecials/skipUrlEncoding/path/query/valid') + url = kwargs.pop("template_url", "/azurespecials/skipUrlEncoding/path/query/valid") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -204,7 +204,7 @@ def build_get_swagger_query_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/azurespecials/skipUrlEncoding/swagger/query/valid') + url = kwargs.pop("template_url", "/azurespecials/skipUrlEncoding/swagger/query/valid") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] diff --git a/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_subscription_in_credentials_operations.py b/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_subscription_in_credentials_operations.py index 21c69470be7..f9bdac614b2 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_subscription_in_credentials_operations.py +++ b/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_subscription_in_credentials_operations.py @@ -42,7 +42,7 @@ def build_post_method_global_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/azurespecials/subscriptionId/method/string/none/path/global/1234-5678-9012-3456/{subscriptionId}') # pylint: disable=line-too-long + url = kwargs.pop("template_url", "/azurespecials/subscriptionId/method/string/none/path/global/1234-5678-9012-3456/{subscriptionId}") # pylint: disable=line-too-long path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), } @@ -68,7 +68,7 @@ def build_post_method_global_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/azurespecials/subscriptionId/method/string/none/path/global/null/{subscriptionId}') + url = kwargs.pop("template_url", "/azurespecials/subscriptionId/method/string/none/path/global/null/{subscriptionId}") path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), } @@ -96,7 +96,7 @@ def build_post_method_global_not_provided_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/azurespecials/subscriptionId/method/string/none/path/globalNotProvided/1234-5678-9012-3456/{subscriptionId}') # pylint: disable=line-too-long + url = kwargs.pop("template_url", "/azurespecials/subscriptionId/method/string/none/path/globalNotProvided/1234-5678-9012-3456/{subscriptionId}") # pylint: disable=line-too-long path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), } @@ -127,7 +127,7 @@ def build_post_path_global_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/azurespecials/subscriptionId/path/string/none/path/global/1234-5678-9012-3456/{subscriptionId}') # pylint: disable=line-too-long + url = kwargs.pop("template_url", "/azurespecials/subscriptionId/path/string/none/path/global/1234-5678-9012-3456/{subscriptionId}") # pylint: disable=line-too-long path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), } @@ -153,7 +153,7 @@ def build_post_swagger_global_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/azurespecials/subscriptionId/swagger/string/none/path/global/1234-5678-9012-3456/{subscriptionId}') # pylint: disable=line-too-long + url = kwargs.pop("template_url", "/azurespecials/subscriptionId/swagger/string/none/path/global/1234-5678-9012-3456/{subscriptionId}") # pylint: disable=line-too-long path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), } diff --git a/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_subscription_in_method_operations.py b/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_subscription_in_method_operations.py index 0defab44275..0a3cd4c3310 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_subscription_in_method_operations.py +++ b/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_subscription_in_method_operations.py @@ -42,7 +42,7 @@ def build_post_method_local_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/azurespecials/subscriptionId/method/string/none/path/local/1234-5678-9012-3456/{subscriptionId}') # pylint: disable=line-too-long + url = kwargs.pop("template_url", "/azurespecials/subscriptionId/method/string/none/path/local/1234-5678-9012-3456/{subscriptionId}") # pylint: disable=line-too-long path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), } @@ -68,7 +68,7 @@ def build_post_method_local_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/azurespecials/subscriptionId/method/string/none/path/local/null/{subscriptionId}') + url = kwargs.pop("template_url", "/azurespecials/subscriptionId/method/string/none/path/local/null/{subscriptionId}") path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), } @@ -94,7 +94,7 @@ def build_post_path_local_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/azurespecials/subscriptionId/path/string/none/path/local/1234-5678-9012-3456/{subscriptionId}') # pylint: disable=line-too-long + url = kwargs.pop("template_url", "/azurespecials/subscriptionId/path/string/none/path/local/1234-5678-9012-3456/{subscriptionId}") # pylint: disable=line-too-long path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), } @@ -120,7 +120,7 @@ def build_post_swagger_local_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/azurespecials/subscriptionId/swagger/string/none/path/local/1234-5678-9012-3456/{subscriptionId}') # pylint: disable=line-too-long + url = kwargs.pop("template_url", "/azurespecials/subscriptionId/swagger/string/none/path/local/1234-5678-9012-3456/{subscriptionId}") # pylint: disable=line-too-long path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), } diff --git a/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_xms_client_request_id_operations.py b/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_xms_client_request_id_operations.py index 25642febf07..c6a6da065e2 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_xms_client_request_id_operations.py +++ b/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_xms_client_request_id_operations.py @@ -40,7 +40,7 @@ def build_get_request( ): # type: (...) -> HttpRequest # Construct URL - url = kwargs.pop("template_url", '/azurespecials/overwrite/x-ms-client-request-id/method/') + url = kwargs.pop("template_url", "/azurespecials/overwrite/x-ms-client-request-id/method/") return HttpRequest( method="GET", @@ -57,7 +57,7 @@ def build_param_get_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/azurespecials/overwrite/x-ms-client-request-id/via-param/method/') + url = kwargs.pop("template_url", "/azurespecials/overwrite/x-ms-client-request-id/via-param/method/") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/azure/legacy/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/operations/_paths_operations.py b/test/azure/legacy/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/operations/_paths_operations.py index 664c8c47974..5a6ef601186 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/operations/_paths_operations.py +++ b/test/azure/legacy/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/operations/_paths_operations.py @@ -40,7 +40,7 @@ def build_get_empty_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/customuri') + url = kwargs.pop("template_url", "/customuri") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/azure/legacy/Expected/AcceptanceTests/CustomPollerPager/custompollerpager/aio/operations/_paging_operations.py b/test/azure/legacy/Expected/AcceptanceTests/CustomPollerPager/custompollerpager/aio/operations/_paging_operations.py index a0108397a87..ab953548f39 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/CustomPollerPager/custompollerpager/aio/operations/_paging_operations.py +++ b/test/azure/legacy/Expected/AcceptanceTests/CustomPollerPager/custompollerpager/aio/operations/_paging_operations.py @@ -111,7 +111,7 @@ async def get_next(next_link=None): return AsyncItemPaged( get_next, extract_data ) - get_no_item_name_pages.metadata = {'url': '/paging/noitemname'} # type: ignore + get_no_item_name_pages.metadata = {'url': "/paging/noitemname"} # type: ignore @distributed_trace def get_null_next_link_name_pages( @@ -176,7 +176,7 @@ async def get_next(next_link=None): return AsyncItemPaged( get_next, extract_data ) - get_null_next_link_name_pages.metadata = {'url': '/paging/nullnextlink'} # type: ignore + get_null_next_link_name_pages.metadata = {'url': "/paging/nullnextlink"} # type: ignore @distributed_trace def get_single_pages( @@ -242,7 +242,7 @@ async def get_next(next_link=None): return AsyncCustomPager( get_next, extract_data ) - get_single_pages.metadata = {'url': '/paging/single'} # type: ignore + get_single_pages.metadata = {'url': "/paging/single"} # type: ignore @distributed_trace def first_response_empty( @@ -308,7 +308,7 @@ async def get_next(next_link=None): return AsyncItemPaged( get_next, extract_data ) - first_response_empty.metadata = {'url': '/paging/firstResponseEmpty/1'} # type: ignore + first_response_empty.metadata = {'url': "/paging/firstResponseEmpty/1"} # type: ignore @distributed_trace def get_multiple_pages( @@ -396,7 +396,7 @@ async def get_next(next_link=None): return AsyncItemPaged( get_next, extract_data ) - get_multiple_pages.metadata = {'url': '/paging/multiple'} # type: ignore + get_multiple_pages.metadata = {'url': "/paging/multiple"} # type: ignore @distributed_trace def get_with_query_params( @@ -475,7 +475,7 @@ async def get_next(next_link=None): return AsyncItemPaged( get_next, extract_data ) - get_with_query_params.metadata = {'url': '/paging/multiple/getWithQueryParams'} # type: ignore + get_with_query_params.metadata = {'url': "/paging/multiple/getWithQueryParams"} # type: ignore @distributed_trace def get_odata_multiple_pages( @@ -563,7 +563,7 @@ async def get_next(next_link=None): return AsyncItemPaged( get_next, extract_data ) - get_odata_multiple_pages.metadata = {'url': '/paging/multiple/odata'} # type: ignore + get_odata_multiple_pages.metadata = {'url': "/paging/multiple/odata"} # type: ignore @distributed_trace def get_multiple_pages_with_offset( @@ -657,7 +657,7 @@ async def get_next(next_link=None): return AsyncItemPaged( get_next, extract_data ) - get_multiple_pages_with_offset.metadata = {'url': '/paging/multiple/withpath/{offset}'} # type: ignore + get_multiple_pages_with_offset.metadata = {'url': "/paging/multiple/withpath/{offset}"} # type: ignore @distributed_trace def get_multiple_pages_retry_first( @@ -723,7 +723,7 @@ async def get_next(next_link=None): return AsyncItemPaged( get_next, extract_data ) - get_multiple_pages_retry_first.metadata = {'url': '/paging/multiple/retryfirst'} # type: ignore + get_multiple_pages_retry_first.metadata = {'url': "/paging/multiple/retryfirst"} # type: ignore @distributed_trace def get_multiple_pages_retry_second( @@ -789,7 +789,7 @@ async def get_next(next_link=None): return AsyncItemPaged( get_next, extract_data ) - get_multiple_pages_retry_second.metadata = {'url': '/paging/multiple/retrysecond'} # type: ignore + get_multiple_pages_retry_second.metadata = {'url': "/paging/multiple/retrysecond"} # type: ignore @distributed_trace def get_single_pages_failure( @@ -854,7 +854,7 @@ async def get_next(next_link=None): return AsyncItemPaged( get_next, extract_data ) - get_single_pages_failure.metadata = {'url': '/paging/single/failure'} # type: ignore + get_single_pages_failure.metadata = {'url': "/paging/single/failure"} # type: ignore @distributed_trace def get_multiple_pages_failure( @@ -919,7 +919,7 @@ async def get_next(next_link=None): return AsyncItemPaged( get_next, extract_data ) - get_multiple_pages_failure.metadata = {'url': '/paging/multiple/failure'} # type: ignore + get_multiple_pages_failure.metadata = {'url': "/paging/multiple/failure"} # type: ignore @distributed_trace def get_multiple_pages_failure_uri( @@ -984,7 +984,7 @@ async def get_next(next_link=None): return AsyncItemPaged( get_next, extract_data ) - get_multiple_pages_failure_uri.metadata = {'url': '/paging/multiple/failureuri'} # type: ignore + get_multiple_pages_failure_uri.metadata = {'url': "/paging/multiple/failureuri"} # type: ignore @distributed_trace def get_multiple_pages_fragment_next_link( @@ -1060,7 +1060,7 @@ async def get_next(next_link=None): return AsyncItemPaged( get_next, extract_data ) - get_multiple_pages_fragment_next_link.metadata = {'url': '/paging/multiple/fragment/{tenant}'} # type: ignore + get_multiple_pages_fragment_next_link.metadata = {'url': "/paging/multiple/fragment/{tenant}"} # type: ignore @distributed_trace def get_multiple_pages_fragment_with_grouping_next_link( @@ -1143,7 +1143,7 @@ async def get_next(next_link=None): return AsyncItemPaged( get_next, extract_data ) - get_multiple_pages_fragment_with_grouping_next_link.metadata = {'url': '/paging/multiple/fragmentwithgrouping/{tenant}'} # type: ignore + get_multiple_pages_fragment_with_grouping_next_link.metadata = {'url': "/paging/multiple/fragmentwithgrouping/{tenant}"} # type: ignore async def _get_multiple_pages_lro_initial( self, @@ -1190,7 +1190,7 @@ async def _get_multiple_pages_lro_initial( return deserialized - _get_multiple_pages_lro_initial.metadata = {'url': '/paging/multiple/lro'} # type: ignore + _get_multiple_pages_lro_initial.metadata = {'url': "/paging/multiple/lro"} # type: ignore @distributed_trace_async @@ -1324,7 +1324,7 @@ async def internal_get_next(next_link=None): ) return AsyncCustomPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_get_multiple_pages_lro.metadata = {'url': '/paging/multiple/lro'} # type: ignore + begin_get_multiple_pages_lro.metadata = {'url': "/paging/multiple/lro"} # type: ignore @distributed_trace @@ -1393,4 +1393,4 @@ async def get_next(next_link=None): return AsyncItemPaged( get_next, extract_data ) - get_paging_model_with_item_name_with_xms_client_name.metadata = {'url': '/paging/itemNameWithXMSClientName'} # type: ignore + get_paging_model_with_item_name_with_xms_client_name.metadata = {'url': "/paging/itemNameWithXMSClientName"} # type: ignore diff --git a/test/azure/legacy/Expected/AcceptanceTests/CustomPollerPager/custompollerpager/operations/_paging_operations.py b/test/azure/legacy/Expected/AcceptanceTests/CustomPollerPager/custompollerpager/operations/_paging_operations.py index 969a0eeffab..2c1d76bd007 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/CustomPollerPager/custompollerpager/operations/_paging_operations.py +++ b/test/azure/legacy/Expected/AcceptanceTests/CustomPollerPager/custompollerpager/operations/_paging_operations.py @@ -39,7 +39,7 @@ def build_get_no_item_name_pages_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/paging/noitemname') + url = kwargs.pop("template_url", "/paging/noitemname") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -59,7 +59,7 @@ def build_get_null_next_link_name_pages_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/paging/nullnextlink') + url = kwargs.pop("template_url", "/paging/nullnextlink") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -79,7 +79,7 @@ def build_get_single_pages_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/paging/single') + url = kwargs.pop("template_url", "/paging/single") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -99,7 +99,7 @@ def build_first_response_empty_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/paging/firstResponseEmpty/1') + url = kwargs.pop("template_url", "/paging/firstResponseEmpty/1") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -123,7 +123,7 @@ def build_get_multiple_pages_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/paging/multiple') + url = kwargs.pop("template_url", "/paging/multiple") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -152,7 +152,7 @@ def build_get_with_query_params_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/paging/multiple/getWithQueryParams') + url = kwargs.pop("template_url", "/paging/multiple/getWithQueryParams") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -180,7 +180,7 @@ def build_next_operation_with_query_params_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/paging/multiple/nextOperationWithQueryParams') + url = kwargs.pop("template_url", "/paging/multiple/nextOperationWithQueryParams") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -209,7 +209,7 @@ def build_get_odata_multiple_pages_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/paging/multiple/odata') + url = kwargs.pop("template_url", "/paging/multiple/odata") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -240,7 +240,7 @@ def build_get_multiple_pages_with_offset_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/paging/multiple/withpath/{offset}') + url = kwargs.pop("template_url", "/paging/multiple/withpath/{offset}") path_format_arguments = { "offset": _SERIALIZER.url("offset", offset, 'int'), } @@ -271,7 +271,7 @@ def build_get_multiple_pages_retry_first_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/paging/multiple/retryfirst') + url = kwargs.pop("template_url", "/paging/multiple/retryfirst") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -291,7 +291,7 @@ def build_get_multiple_pages_retry_second_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/paging/multiple/retrysecond') + url = kwargs.pop("template_url", "/paging/multiple/retrysecond") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -311,7 +311,7 @@ def build_get_single_pages_failure_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/paging/single/failure') + url = kwargs.pop("template_url", "/paging/single/failure") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -331,7 +331,7 @@ def build_get_multiple_pages_failure_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/paging/multiple/failure') + url = kwargs.pop("template_url", "/paging/multiple/failure") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -351,7 +351,7 @@ def build_get_multiple_pages_failure_uri_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/paging/multiple/failureuri') + url = kwargs.pop("template_url", "/paging/multiple/failureuri") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -374,7 +374,7 @@ def build_get_multiple_pages_fragment_next_link_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/paging/multiple/fragment/{tenant}') + url = kwargs.pop("template_url", "/paging/multiple/fragment/{tenant}") path_format_arguments = { "tenant": _SERIALIZER.url("tenant", tenant, 'str'), } @@ -407,7 +407,7 @@ def build_get_multiple_pages_fragment_with_grouping_next_link_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/paging/multiple/fragmentwithgrouping/{tenant}') + url = kwargs.pop("template_url", "/paging/multiple/fragmentwithgrouping/{tenant}") path_format_arguments = { "tenant": _SERIALIZER.url("tenant", tenant, 'str'), } @@ -441,7 +441,7 @@ def build_get_multiple_pages_lro_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/paging/multiple/lro') + url = kwargs.pop("template_url", "/paging/multiple/lro") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -471,7 +471,7 @@ def build_next_fragment_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/paging/multiple/fragment/{tenant}/{nextLink}') + url = kwargs.pop("template_url", "/paging/multiple/fragment/{tenant}/{nextLink}") path_format_arguments = { "tenant": _SERIALIZER.url("tenant", tenant, 'str'), "nextLink": _SERIALIZER.url("next_link", next_link, 'str', skip_quote=True), @@ -506,7 +506,7 @@ def build_next_fragment_with_grouping_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/paging/multiple/fragmentwithgrouping/{tenant}/{nextLink}') + url = kwargs.pop("template_url", "/paging/multiple/fragmentwithgrouping/{tenant}/{nextLink}") path_format_arguments = { "tenant": _SERIALIZER.url("tenant", tenant, 'str'), "nextLink": _SERIALIZER.url("next_link", next_link, 'str', skip_quote=True), @@ -537,7 +537,7 @@ def build_get_paging_model_with_item_name_with_xms_client_name_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/paging/itemNameWithXMSClientName') + url = kwargs.pop("template_url", "/paging/itemNameWithXMSClientName") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -593,7 +593,7 @@ def get_no_item_name_pages( error_map.update(kwargs.pop('error_map', {})) def prepare_request(next_link=None): if not next_link: - + request = build_get_no_item_name_pages_request( template_url=self.get_no_item_name_pages.metadata['url'], ) @@ -601,7 +601,7 @@ def prepare_request(next_link=None): request.url = self._client.format_url(request.url) else: - + request = build_get_no_item_name_pages_request( template_url=next_link, ) @@ -637,7 +637,7 @@ def get_next(next_link=None): return ItemPaged( get_next, extract_data ) - get_no_item_name_pages.metadata = {'url': '/paging/noitemname'} # type: ignore + get_no_item_name_pages.metadata = {'url': "/paging/noitemname"} # type: ignore @distributed_trace def get_null_next_link_name_pages( @@ -659,7 +659,7 @@ def get_null_next_link_name_pages( error_map.update(kwargs.pop('error_map', {})) def prepare_request(next_link=None): if not next_link: - + request = build_get_null_next_link_name_pages_request( template_url=self.get_null_next_link_name_pages.metadata['url'], ) @@ -667,7 +667,7 @@ def prepare_request(next_link=None): request.url = self._client.format_url(request.url) else: - + request = build_get_null_next_link_name_pages_request( template_url=next_link, ) @@ -703,7 +703,7 @@ def get_next(next_link=None): return ItemPaged( get_next, extract_data ) - get_null_next_link_name_pages.metadata = {'url': '/paging/nullnextlink'} # type: ignore + get_null_next_link_name_pages.metadata = {'url': "/paging/nullnextlink"} # type: ignore @distributed_trace def get_single_pages( @@ -725,7 +725,7 @@ def get_single_pages( error_map.update(kwargs.pop('error_map', {})) def prepare_request(next_link=None): if not next_link: - + request = build_get_single_pages_request( template_url=self.get_single_pages.metadata['url'], ) @@ -733,7 +733,7 @@ def prepare_request(next_link=None): request.url = self._client.format_url(request.url) else: - + request = build_get_single_pages_request( template_url=next_link, ) @@ -769,7 +769,7 @@ def get_next(next_link=None): return CustomPager( get_next, extract_data ) - get_single_pages.metadata = {'url': '/paging/single'} # type: ignore + get_single_pages.metadata = {'url': "/paging/single"} # type: ignore @distributed_trace def first_response_empty( @@ -792,7 +792,7 @@ def first_response_empty( error_map.update(kwargs.pop('error_map', {})) def prepare_request(next_link=None): if not next_link: - + request = build_first_response_empty_request( template_url=self.first_response_empty.metadata['url'], ) @@ -800,7 +800,7 @@ def prepare_request(next_link=None): request.url = self._client.format_url(request.url) else: - + request = build_first_response_empty_request( template_url=next_link, ) @@ -836,7 +836,7 @@ def get_next(next_link=None): return ItemPaged( get_next, extract_data ) - first_response_empty.metadata = {'url': '/paging/firstResponseEmpty/1'} # type: ignore + first_response_empty.metadata = {'url': "/paging/firstResponseEmpty/1"} # type: ignore @distributed_trace def get_multiple_pages( @@ -870,7 +870,7 @@ def prepare_request(next_link=None): if paging_get_multiple_pages_options is not None: _maxresults = paging_get_multiple_pages_options.maxresults _timeout = paging_get_multiple_pages_options.timeout - + request = build_get_multiple_pages_request( client_request_id=client_request_id, maxresults=_maxresults, @@ -886,7 +886,7 @@ def prepare_request(next_link=None): if paging_get_multiple_pages_options is not None: _maxresults = paging_get_multiple_pages_options.maxresults _timeout = paging_get_multiple_pages_options.timeout - + request = build_get_multiple_pages_request( client_request_id=client_request_id, maxresults=_maxresults, @@ -925,7 +925,7 @@ def get_next(next_link=None): return ItemPaged( get_next, extract_data ) - get_multiple_pages.metadata = {'url': '/paging/multiple'} # type: ignore + get_multiple_pages.metadata = {'url': "/paging/multiple"} # type: ignore @distributed_trace def get_with_query_params( @@ -958,7 +958,7 @@ def get_with_query_params( error_map.update(kwargs.pop('error_map', {})) def prepare_request(next_link=None): if not next_link: - + request = build_get_with_query_params_request( query_constant=query_constant, required_query_parameter=required_query_parameter, @@ -968,7 +968,7 @@ def prepare_request(next_link=None): request.url = self._client.format_url(request.url) else: - + request = build_next_operation_with_query_params_request( query_constant=query_constant, template_url='/paging/multiple/nextOperationWithQueryParams', @@ -1005,7 +1005,7 @@ def get_next(next_link=None): return ItemPaged( get_next, extract_data ) - get_with_query_params.metadata = {'url': '/paging/multiple/getWithQueryParams'} # type: ignore + get_with_query_params.metadata = {'url': "/paging/multiple/getWithQueryParams"} # type: ignore @distributed_trace def get_odata_multiple_pages( @@ -1039,7 +1039,7 @@ def prepare_request(next_link=None): if paging_get_odata_multiple_pages_options is not None: _maxresults = paging_get_odata_multiple_pages_options.maxresults _timeout = paging_get_odata_multiple_pages_options.timeout - + request = build_get_odata_multiple_pages_request( client_request_id=client_request_id, maxresults=_maxresults, @@ -1055,7 +1055,7 @@ def prepare_request(next_link=None): if paging_get_odata_multiple_pages_options is not None: _maxresults = paging_get_odata_multiple_pages_options.maxresults _timeout = paging_get_odata_multiple_pages_options.timeout - + request = build_get_odata_multiple_pages_request( client_request_id=client_request_id, maxresults=_maxresults, @@ -1094,7 +1094,7 @@ def get_next(next_link=None): return ItemPaged( get_next, extract_data ) - get_odata_multiple_pages.metadata = {'url': '/paging/multiple/odata'} # type: ignore + get_odata_multiple_pages.metadata = {'url': "/paging/multiple/odata"} # type: ignore @distributed_trace def get_multiple_pages_with_offset( @@ -1130,7 +1130,7 @@ def prepare_request(next_link=None): _maxresults = paging_get_multiple_pages_with_offset_options.maxresults _offset = paging_get_multiple_pages_with_offset_options.offset _timeout = paging_get_multiple_pages_with_offset_options.timeout - + request = build_get_multiple_pages_with_offset_request( offset=_offset, client_request_id=client_request_id, @@ -1149,7 +1149,7 @@ def prepare_request(next_link=None): _maxresults = paging_get_multiple_pages_with_offset_options.maxresults _offset = paging_get_multiple_pages_with_offset_options.offset _timeout = paging_get_multiple_pages_with_offset_options.timeout - + request = build_get_multiple_pages_with_offset_request( offset=_offset, client_request_id=client_request_id, @@ -1189,7 +1189,7 @@ def get_next(next_link=None): return ItemPaged( get_next, extract_data ) - get_multiple_pages_with_offset.metadata = {'url': '/paging/multiple/withpath/{offset}'} # type: ignore + get_multiple_pages_with_offset.metadata = {'url': "/paging/multiple/withpath/{offset}"} # type: ignore @distributed_trace def get_multiple_pages_retry_first( @@ -1212,7 +1212,7 @@ def get_multiple_pages_retry_first( error_map.update(kwargs.pop('error_map', {})) def prepare_request(next_link=None): if not next_link: - + request = build_get_multiple_pages_retry_first_request( template_url=self.get_multiple_pages_retry_first.metadata['url'], ) @@ -1220,7 +1220,7 @@ def prepare_request(next_link=None): request.url = self._client.format_url(request.url) else: - + request = build_get_multiple_pages_retry_first_request( template_url=next_link, ) @@ -1256,7 +1256,7 @@ def get_next(next_link=None): return ItemPaged( get_next, extract_data ) - get_multiple_pages_retry_first.metadata = {'url': '/paging/multiple/retryfirst'} # type: ignore + get_multiple_pages_retry_first.metadata = {'url': "/paging/multiple/retryfirst"} # type: ignore @distributed_trace def get_multiple_pages_retry_second( @@ -1279,7 +1279,7 @@ def get_multiple_pages_retry_second( error_map.update(kwargs.pop('error_map', {})) def prepare_request(next_link=None): if not next_link: - + request = build_get_multiple_pages_retry_second_request( template_url=self.get_multiple_pages_retry_second.metadata['url'], ) @@ -1287,7 +1287,7 @@ def prepare_request(next_link=None): request.url = self._client.format_url(request.url) else: - + request = build_get_multiple_pages_retry_second_request( template_url=next_link, ) @@ -1323,7 +1323,7 @@ def get_next(next_link=None): return ItemPaged( get_next, extract_data ) - get_multiple_pages_retry_second.metadata = {'url': '/paging/multiple/retrysecond'} # type: ignore + get_multiple_pages_retry_second.metadata = {'url': "/paging/multiple/retrysecond"} # type: ignore @distributed_trace def get_single_pages_failure( @@ -1345,7 +1345,7 @@ def get_single_pages_failure( error_map.update(kwargs.pop('error_map', {})) def prepare_request(next_link=None): if not next_link: - + request = build_get_single_pages_failure_request( template_url=self.get_single_pages_failure.metadata['url'], ) @@ -1353,7 +1353,7 @@ def prepare_request(next_link=None): request.url = self._client.format_url(request.url) else: - + request = build_get_single_pages_failure_request( template_url=next_link, ) @@ -1389,7 +1389,7 @@ def get_next(next_link=None): return ItemPaged( get_next, extract_data ) - get_single_pages_failure.metadata = {'url': '/paging/single/failure'} # type: ignore + get_single_pages_failure.metadata = {'url': "/paging/single/failure"} # type: ignore @distributed_trace def get_multiple_pages_failure( @@ -1411,7 +1411,7 @@ def get_multiple_pages_failure( error_map.update(kwargs.pop('error_map', {})) def prepare_request(next_link=None): if not next_link: - + request = build_get_multiple_pages_failure_request( template_url=self.get_multiple_pages_failure.metadata['url'], ) @@ -1419,7 +1419,7 @@ def prepare_request(next_link=None): request.url = self._client.format_url(request.url) else: - + request = build_get_multiple_pages_failure_request( template_url=next_link, ) @@ -1455,7 +1455,7 @@ def get_next(next_link=None): return ItemPaged( get_next, extract_data ) - get_multiple_pages_failure.metadata = {'url': '/paging/multiple/failure'} # type: ignore + get_multiple_pages_failure.metadata = {'url': "/paging/multiple/failure"} # type: ignore @distributed_trace def get_multiple_pages_failure_uri( @@ -1477,7 +1477,7 @@ def get_multiple_pages_failure_uri( error_map.update(kwargs.pop('error_map', {})) def prepare_request(next_link=None): if not next_link: - + request = build_get_multiple_pages_failure_uri_request( template_url=self.get_multiple_pages_failure_uri.metadata['url'], ) @@ -1485,7 +1485,7 @@ def prepare_request(next_link=None): request.url = self._client.format_url(request.url) else: - + request = build_get_multiple_pages_failure_uri_request( template_url=next_link, ) @@ -1521,7 +1521,7 @@ def get_next(next_link=None): return ItemPaged( get_next, extract_data ) - get_multiple_pages_failure_uri.metadata = {'url': '/paging/multiple/failureuri'} # type: ignore + get_multiple_pages_failure_uri.metadata = {'url': "/paging/multiple/failureuri"} # type: ignore @distributed_trace def get_multiple_pages_fragment_next_link( @@ -1549,7 +1549,7 @@ def get_multiple_pages_fragment_next_link( error_map.update(kwargs.pop('error_map', {})) def prepare_request(next_link=None): if not next_link: - + request = build_get_multiple_pages_fragment_next_link_request( tenant=tenant, api_version=api_version, @@ -1559,7 +1559,7 @@ def prepare_request(next_link=None): request.url = self._client.format_url(request.url) else: - + request = build_next_fragment_request( tenant=tenant, next_link=next_link, @@ -1598,7 +1598,7 @@ def get_next(next_link=None): return ItemPaged( get_next, extract_data ) - get_multiple_pages_fragment_next_link.metadata = {'url': '/paging/multiple/fragment/{tenant}'} # type: ignore + get_multiple_pages_fragment_next_link.metadata = {'url': "/paging/multiple/fragment/{tenant}"} # type: ignore @distributed_trace def get_multiple_pages_fragment_with_grouping_next_link( @@ -1628,7 +1628,7 @@ def prepare_request(next_link=None): if custom_parameter_group is not None: _api_version = custom_parameter_group.api_version _tenant = custom_parameter_group.tenant - + request = build_get_multiple_pages_fragment_with_grouping_next_link_request( tenant=_tenant, api_version=_api_version, @@ -1643,7 +1643,7 @@ def prepare_request(next_link=None): if custom_parameter_group is not None: _api_version = custom_parameter_group.api_version _tenant = custom_parameter_group.tenant - + request = build_next_fragment_with_grouping_request( tenant=_tenant, next_link=next_link, @@ -1682,7 +1682,7 @@ def get_next(next_link=None): return ItemPaged( get_next, extract_data ) - get_multiple_pages_fragment_with_grouping_next_link.metadata = {'url': '/paging/multiple/fragmentwithgrouping/{tenant}'} # type: ignore + get_multiple_pages_fragment_with_grouping_next_link.metadata = {'url': "/paging/multiple/fragmentwithgrouping/{tenant}"} # type: ignore def _get_multiple_pages_lro_initial( self, @@ -1730,7 +1730,7 @@ def _get_multiple_pages_lro_initial( return deserialized - _get_multiple_pages_lro_initial.metadata = {'url': '/paging/multiple/lro'} # type: ignore + _get_multiple_pages_lro_initial.metadata = {'url': "/paging/multiple/lro"} # type: ignore @distributed_trace @@ -1775,7 +1775,7 @@ def prepare_request(next_link=None): if paging_get_multiple_pages_lro_options is not None: _maxresults = paging_get_multiple_pages_lro_options.maxresults _timeout = paging_get_multiple_pages_lro_options.timeout - + request = build_get_multiple_pages_lro_request_initial( client_request_id=client_request_id, maxresults=_maxresults, @@ -1791,7 +1791,7 @@ def prepare_request(next_link=None): if paging_get_multiple_pages_lro_options is not None: _maxresults = paging_get_multiple_pages_lro_options.maxresults _timeout = paging_get_multiple_pages_lro_options.timeout - + request = build_get_multiple_pages_lro_request_initial( client_request_id=client_request_id, maxresults=_maxresults, @@ -1865,7 +1865,7 @@ def internal_get_next(next_link=None): ) return CustomPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_get_multiple_pages_lro.metadata = {'url': '/paging/multiple/lro'} # type: ignore + begin_get_multiple_pages_lro.metadata = {'url': "/paging/multiple/lro"} # type: ignore @distributed_trace @@ -1891,7 +1891,7 @@ def get_paging_model_with_item_name_with_xms_client_name( error_map.update(kwargs.pop('error_map', {})) def prepare_request(next_link=None): if not next_link: - + request = build_get_paging_model_with_item_name_with_xms_client_name_request( template_url=self.get_paging_model_with_item_name_with_xms_client_name.metadata['url'], ) @@ -1899,7 +1899,7 @@ def prepare_request(next_link=None): request.url = self._client.format_url(request.url) else: - + request = build_get_paging_model_with_item_name_with_xms_client_name_request( template_url=next_link, ) @@ -1935,4 +1935,4 @@ def get_next(next_link=None): return ItemPaged( get_next, extract_data ) - get_paging_model_with_item_name_with_xms_client_name.metadata = {'url': '/paging/itemNameWithXMSClientName'} # type: ignore + get_paging_model_with_item_name_with_xms_client_name.metadata = {'url': "/paging/itemNameWithXMSClientName"} # type: ignore diff --git a/test/azure/legacy/Expected/AcceptanceTests/CustomUrlPaging/custombaseurlpaging/operations/_paging_operations.py b/test/azure/legacy/Expected/AcceptanceTests/CustomUrlPaging/custombaseurlpaging/operations/_paging_operations.py index d303433c721..6a382583fc0 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/CustomUrlPaging/custombaseurlpaging/operations/_paging_operations.py +++ b/test/azure/legacy/Expected/AcceptanceTests/CustomUrlPaging/custombaseurlpaging/operations/_paging_operations.py @@ -42,7 +42,7 @@ def build_get_pages_partial_url_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/paging/customurl/partialnextlink') + url = kwargs.pop("template_url", "/paging/customurl/partialnextlink") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -62,7 +62,7 @@ def build_get_pages_partial_url_operation_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/paging/customurl/partialnextlinkop') + url = kwargs.pop("template_url", "/paging/customurl/partialnextlinkop") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -83,7 +83,7 @@ def build_get_pages_partial_url_operation_next_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/paging/customurl/{nextLink}') + url = kwargs.pop("template_url", "/paging/customurl/{nextLink}") path_format_arguments = { "nextLink": _SERIALIZER.url("next_link", next_link, 'str', skip_quote=True), } diff --git a/test/azure/legacy/Expected/AcceptanceTests/Head/head/operations/_http_success_operations.py b/test/azure/legacy/Expected/AcceptanceTests/Head/head/operations/_http_success_operations.py index e99151c6b1e..de0fefe186d 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/Head/head/operations/_http_success_operations.py +++ b/test/azure/legacy/Expected/AcceptanceTests/Head/head/operations/_http_success_operations.py @@ -40,7 +40,7 @@ def build_head200_request( ): # type: (...) -> HttpRequest # Construct URL - url = kwargs.pop("template_url", '/http/success/200') + url = kwargs.pop("template_url", "/http/success/200") return HttpRequest( method="HEAD", @@ -54,7 +54,7 @@ def build_head204_request( ): # type: (...) -> HttpRequest # Construct URL - url = kwargs.pop("template_url", '/http/success/204') + url = kwargs.pop("template_url", "/http/success/204") return HttpRequest( method="HEAD", @@ -68,7 +68,7 @@ def build_head404_request( ): # type: (...) -> HttpRequest # Construct URL - url = kwargs.pop("template_url", '/http/success/404') + url = kwargs.pop("template_url", "/http/success/404") return HttpRequest( method="HEAD", diff --git a/test/azure/legacy/Expected/AcceptanceTests/HeadExceptions/headexceptions/operations/_head_exception_operations.py b/test/azure/legacy/Expected/AcceptanceTests/HeadExceptions/headexceptions/operations/_head_exception_operations.py index 03d423518f7..de8fa60eed5 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/HeadExceptions/headexceptions/operations/_head_exception_operations.py +++ b/test/azure/legacy/Expected/AcceptanceTests/HeadExceptions/headexceptions/operations/_head_exception_operations.py @@ -40,7 +40,7 @@ def build_head200_request( ): # type: (...) -> HttpRequest # Construct URL - url = kwargs.pop("template_url", '/http/success/200') + url = kwargs.pop("template_url", "/http/success/200") return HttpRequest( method="HEAD", @@ -54,7 +54,7 @@ def build_head204_request( ): # type: (...) -> HttpRequest # Construct URL - url = kwargs.pop("template_url", '/http/success/204') + url = kwargs.pop("template_url", "/http/success/204") return HttpRequest( method="HEAD", @@ -68,7 +68,7 @@ def build_head404_request( ): # type: (...) -> HttpRequest # Construct URL - url = kwargs.pop("template_url", '/http/success/404') + url = kwargs.pop("template_url", "/http/success/404") return HttpRequest( method="HEAD", diff --git a/test/azure/legacy/Expected/AcceptanceTests/HeadWithAzureKeyCredentialPolicy/headwithazurekeycredentialpolicy/operations/_http_success_operations.py b/test/azure/legacy/Expected/AcceptanceTests/HeadWithAzureKeyCredentialPolicy/headwithazurekeycredentialpolicy/operations/_http_success_operations.py index e99151c6b1e..de0fefe186d 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/HeadWithAzureKeyCredentialPolicy/headwithazurekeycredentialpolicy/operations/_http_success_operations.py +++ b/test/azure/legacy/Expected/AcceptanceTests/HeadWithAzureKeyCredentialPolicy/headwithazurekeycredentialpolicy/operations/_http_success_operations.py @@ -40,7 +40,7 @@ def build_head200_request( ): # type: (...) -> HttpRequest # Construct URL - url = kwargs.pop("template_url", '/http/success/200') + url = kwargs.pop("template_url", "/http/success/200") return HttpRequest( method="HEAD", @@ -54,7 +54,7 @@ def build_head204_request( ): # type: (...) -> HttpRequest # Construct URL - url = kwargs.pop("template_url", '/http/success/204') + url = kwargs.pop("template_url", "/http/success/204") return HttpRequest( method="HEAD", @@ -68,7 +68,7 @@ def build_head404_request( ): # type: (...) -> HttpRequest # Construct URL - url = kwargs.pop("template_url", '/http/success/404') + url = kwargs.pop("template_url", "/http/success/404") return HttpRequest( method="HEAD", diff --git a/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/operations/_lr_os_custom_header_operations.py b/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/operations/_lr_os_custom_header_operations.py index f735a2de5ee..d6e22848eea 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/operations/_lr_os_custom_header_operations.py +++ b/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/operations/_lr_os_custom_header_operations.py @@ -46,7 +46,7 @@ def build_put_async_retry_succeeded_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/lro/customheader/putasync/retry/succeeded') + url = kwargs.pop("template_url", "/lro/customheader/putasync/retry/succeeded") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -70,7 +70,7 @@ def build_put201_creating_succeeded200_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/lro/customheader/put/201/creating/succeeded/200') + url = kwargs.pop("template_url", "/lro/customheader/put/201/creating/succeeded/200") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -94,7 +94,7 @@ def build_post202_retry200_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/lro/customheader/post/202/retry/200') + url = kwargs.pop("template_url", "/lro/customheader/post/202/retry/200") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -118,7 +118,7 @@ def build_post_async_retry_succeeded_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/lro/customheader/postasync/retry/succeeded') + url = kwargs.pop("template_url", "/lro/customheader/postasync/retry/succeeded") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/operations/_lro_retrys_operations.py b/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/operations/_lro_retrys_operations.py index 1fa8bef7b7a..815f0e3ac30 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/operations/_lro_retrys_operations.py +++ b/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/operations/_lro_retrys_operations.py @@ -46,7 +46,7 @@ def build_put201_creating_succeeded200_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/lro/retryerror/put/201/creating/succeeded/200') + url = kwargs.pop("template_url", "/lro/retryerror/put/201/creating/succeeded/200") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -70,7 +70,7 @@ def build_put_async_relative_retry_succeeded_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/lro/retryerror/putasync/retry/succeeded') + url = kwargs.pop("template_url", "/lro/retryerror/putasync/retry/succeeded") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -92,7 +92,7 @@ def build_delete_provisioning202_accepted200_succeeded_request_initial( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/lro/retryerror/delete/provisioning/202/accepted/200/succeeded') + url = kwargs.pop("template_url", "/lro/retryerror/delete/provisioning/202/accepted/200/succeeded") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -112,7 +112,7 @@ def build_delete202_retry200_request_initial( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/lro/retryerror/delete/202/retry/200') + url = kwargs.pop("template_url", "/lro/retryerror/delete/202/retry/200") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -132,7 +132,7 @@ def build_delete_async_relative_retry_succeeded_request_initial( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/lro/retryerror/deleteasync/retry/succeeded') + url = kwargs.pop("template_url", "/lro/retryerror/deleteasync/retry/succeeded") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -154,7 +154,7 @@ def build_post202_retry200_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/lro/retryerror/post/202/retry/200') + url = kwargs.pop("template_url", "/lro/retryerror/post/202/retry/200") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -178,7 +178,7 @@ def build_post_async_relative_retry_succeeded_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/lro/retryerror/postasync/retry/succeeded') + url = kwargs.pop("template_url", "/lro/retryerror/postasync/retry/succeeded") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/operations/_lros_operations.py b/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/operations/_lros_operations.py index 5b8726455f1..42a3ac48c07 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/operations/_lros_operations.py +++ b/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/operations/_lros_operations.py @@ -46,7 +46,7 @@ def build_put200_succeeded_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/lro/put/200/succeeded') + url = kwargs.pop("template_url", "/lro/put/200/succeeded") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -70,7 +70,7 @@ def build_patch200_succeeded_ignore_headers_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/lro/patch/200/succeeded/ignoreheaders') + url = kwargs.pop("template_url", "/lro/patch/200/succeeded/ignoreheaders") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -94,7 +94,7 @@ def build_patch201_retry_with_async_header_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/lro/patch/201/retry/onlyAsyncHeader') + url = kwargs.pop("template_url", "/lro/patch/201/retry/onlyAsyncHeader") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -118,7 +118,7 @@ def build_patch202_retry_with_async_and_location_header_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/lro/patch/202/retry/asyncAndLocationHeader') + url = kwargs.pop("template_url", "/lro/patch/202/retry/asyncAndLocationHeader") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -142,7 +142,7 @@ def build_put201_succeeded_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/lro/put/201/succeeded') + url = kwargs.pop("template_url", "/lro/put/201/succeeded") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -164,7 +164,7 @@ def build_post202_list_request_initial( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/lro/list') + url = kwargs.pop("template_url", "/lro/list") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -186,7 +186,7 @@ def build_put200_succeeded_no_state_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/lro/put/200/succeeded/nostate') + url = kwargs.pop("template_url", "/lro/put/200/succeeded/nostate") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -210,7 +210,7 @@ def build_put202_retry200_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/lro/put/202/retry/200') + url = kwargs.pop("template_url", "/lro/put/202/retry/200") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -234,7 +234,7 @@ def build_put201_creating_succeeded200_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/lro/put/201/creating/succeeded/200') + url = kwargs.pop("template_url", "/lro/put/201/creating/succeeded/200") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -258,7 +258,7 @@ def build_put200_updating_succeeded204_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/lro/put/200/updating/succeeded/200') + url = kwargs.pop("template_url", "/lro/put/200/updating/succeeded/200") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -282,7 +282,7 @@ def build_put201_creating_failed200_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/lro/put/201/created/failed/200') + url = kwargs.pop("template_url", "/lro/put/201/created/failed/200") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -306,7 +306,7 @@ def build_put200_acceptedcanceled200_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/lro/put/200/accepted/canceled/200') + url = kwargs.pop("template_url", "/lro/put/200/accepted/canceled/200") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -330,7 +330,7 @@ def build_put_no_header_in_retry_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/lro/put/noheader/202/200') + url = kwargs.pop("template_url", "/lro/put/noheader/202/200") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -354,7 +354,7 @@ def build_put_async_retry_succeeded_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/lro/putasync/retry/succeeded') + url = kwargs.pop("template_url", "/lro/putasync/retry/succeeded") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -378,7 +378,7 @@ def build_put_async_no_retry_succeeded_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/lro/putasync/noretry/succeeded') + url = kwargs.pop("template_url", "/lro/putasync/noretry/succeeded") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -402,7 +402,7 @@ def build_put_async_retry_failed_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/lro/putasync/retry/failed') + url = kwargs.pop("template_url", "/lro/putasync/retry/failed") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -426,7 +426,7 @@ def build_put_async_no_retrycanceled_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/lro/putasync/noretry/canceled') + url = kwargs.pop("template_url", "/lro/putasync/noretry/canceled") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -450,7 +450,7 @@ def build_put_async_no_header_in_retry_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/lro/putasync/noheader/201/200') + url = kwargs.pop("template_url", "/lro/putasync/noheader/201/200") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -474,7 +474,7 @@ def build_put_non_resource_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/lro/putnonresource/202/200') + url = kwargs.pop("template_url", "/lro/putnonresource/202/200") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -498,7 +498,7 @@ def build_put_async_non_resource_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/lro/putnonresourceasync/202/200') + url = kwargs.pop("template_url", "/lro/putnonresourceasync/202/200") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -522,7 +522,7 @@ def build_put_sub_resource_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/lro/putsubresource/202/200') + url = kwargs.pop("template_url", "/lro/putsubresource/202/200") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -546,7 +546,7 @@ def build_put_async_sub_resource_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/lro/putsubresourceasync/202/200') + url = kwargs.pop("template_url", "/lro/putsubresourceasync/202/200") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -568,7 +568,7 @@ def build_delete_provisioning202_accepted200_succeeded_request_initial( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/lro/delete/provisioning/202/accepted/200/succeeded') + url = kwargs.pop("template_url", "/lro/delete/provisioning/202/accepted/200/succeeded") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -588,7 +588,7 @@ def build_delete_provisioning202_deleting_failed200_request_initial( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/lro/delete/provisioning/202/deleting/200/failed') + url = kwargs.pop("template_url", "/lro/delete/provisioning/202/deleting/200/failed") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -608,7 +608,7 @@ def build_delete_provisioning202_deletingcanceled200_request_initial( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/lro/delete/provisioning/202/deleting/200/canceled') + url = kwargs.pop("template_url", "/lro/delete/provisioning/202/deleting/200/canceled") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -628,7 +628,7 @@ def build_delete204_succeeded_request_initial( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/lro/delete/204/succeeded') + url = kwargs.pop("template_url", "/lro/delete/204/succeeded") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -648,7 +648,7 @@ def build_delete202_retry200_request_initial( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/lro/delete/202/retry/200') + url = kwargs.pop("template_url", "/lro/delete/202/retry/200") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -668,7 +668,7 @@ def build_delete202_no_retry204_request_initial( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/lro/delete/202/noretry/204') + url = kwargs.pop("template_url", "/lro/delete/202/noretry/204") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -688,7 +688,7 @@ def build_delete_no_header_in_retry_request_initial( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/lro/delete/noheader') + url = kwargs.pop("template_url", "/lro/delete/noheader") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -708,7 +708,7 @@ def build_delete_async_no_header_in_retry_request_initial( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/lro/deleteasync/noheader/202/204') + url = kwargs.pop("template_url", "/lro/deleteasync/noheader/202/204") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -728,7 +728,7 @@ def build_delete_async_retry_succeeded_request_initial( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/lro/deleteasync/retry/succeeded') + url = kwargs.pop("template_url", "/lro/deleteasync/retry/succeeded") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -748,7 +748,7 @@ def build_delete_async_no_retry_succeeded_request_initial( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/lro/deleteasync/noretry/succeeded') + url = kwargs.pop("template_url", "/lro/deleteasync/noretry/succeeded") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -768,7 +768,7 @@ def build_delete_async_retry_failed_request_initial( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/lro/deleteasync/retry/failed') + url = kwargs.pop("template_url", "/lro/deleteasync/retry/failed") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -788,7 +788,7 @@ def build_delete_async_retrycanceled_request_initial( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/lro/deleteasync/retry/canceled') + url = kwargs.pop("template_url", "/lro/deleteasync/retry/canceled") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -808,7 +808,7 @@ def build_post200_with_payload_request_initial( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/lro/post/payload/200') + url = kwargs.pop("template_url", "/lro/post/payload/200") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -830,7 +830,7 @@ def build_post202_retry200_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/lro/post/202/retry/200') + url = kwargs.pop("template_url", "/lro/post/202/retry/200") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -854,7 +854,7 @@ def build_post202_no_retry204_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/lro/post/202/noretry/204') + url = kwargs.pop("template_url", "/lro/post/202/noretry/204") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -876,7 +876,7 @@ def build_post_double_headers_final_location_get_request_initial( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/lro/LROPostDoubleHeadersFinalLocationGet') + url = kwargs.pop("template_url", "/lro/LROPostDoubleHeadersFinalLocationGet") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -896,7 +896,7 @@ def build_post_double_headers_final_azure_header_get_request_initial( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/lro/LROPostDoubleHeadersFinalAzureHeaderGet') + url = kwargs.pop("template_url", "/lro/LROPostDoubleHeadersFinalAzureHeaderGet") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -916,7 +916,7 @@ def build_post_double_headers_final_azure_header_get_default_request_initial( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/lro/LROPostDoubleHeadersFinalAzureHeaderGetDefault') + url = kwargs.pop("template_url", "/lro/LROPostDoubleHeadersFinalAzureHeaderGetDefault") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -938,7 +938,7 @@ def build_post_async_retry_succeeded_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/lro/postasync/retry/succeeded') + url = kwargs.pop("template_url", "/lro/postasync/retry/succeeded") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -962,7 +962,7 @@ def build_post_async_no_retry_succeeded_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/lro/postasync/noretry/succeeded') + url = kwargs.pop("template_url", "/lro/postasync/noretry/succeeded") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -986,7 +986,7 @@ def build_post_async_retry_failed_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/lro/postasync/retry/failed') + url = kwargs.pop("template_url", "/lro/postasync/retry/failed") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1010,7 +1010,7 @@ def build_post_async_retrycanceled_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/lro/postasync/retry/canceled') + url = kwargs.pop("template_url", "/lro/postasync/retry/canceled") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/operations/_lrosads_operations.py b/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/operations/_lrosads_operations.py index 1b376f73beb..1bd71fd0623 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/operations/_lrosads_operations.py +++ b/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/operations/_lrosads_operations.py @@ -46,7 +46,7 @@ def build_put_non_retry400_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/lro/nonretryerror/put/400') + url = kwargs.pop("template_url", "/lro/nonretryerror/put/400") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -70,7 +70,7 @@ def build_put_non_retry201_creating400_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/lro/nonretryerror/put/201/creating/400') + url = kwargs.pop("template_url", "/lro/nonretryerror/put/201/creating/400") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -94,7 +94,7 @@ def build_put_non_retry201_creating400_invalid_json_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/lro/nonretryerror/put/201/creating/400/invalidjson') + url = kwargs.pop("template_url", "/lro/nonretryerror/put/201/creating/400/invalidjson") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -118,7 +118,7 @@ def build_put_async_relative_retry400_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/lro/nonretryerror/putasync/retry/400') + url = kwargs.pop("template_url", "/lro/nonretryerror/putasync/retry/400") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -140,7 +140,7 @@ def build_delete_non_retry400_request_initial( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/lro/nonretryerror/delete/400') + url = kwargs.pop("template_url", "/lro/nonretryerror/delete/400") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -160,7 +160,7 @@ def build_delete202_non_retry400_request_initial( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/lro/nonretryerror/delete/202/retry/400') + url = kwargs.pop("template_url", "/lro/nonretryerror/delete/202/retry/400") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -180,7 +180,7 @@ def build_delete_async_relative_retry400_request_initial( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/lro/nonretryerror/deleteasync/retry/400') + url = kwargs.pop("template_url", "/lro/nonretryerror/deleteasync/retry/400") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -202,7 +202,7 @@ def build_post_non_retry400_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/lro/nonretryerror/post/400') + url = kwargs.pop("template_url", "/lro/nonretryerror/post/400") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -226,7 +226,7 @@ def build_post202_non_retry400_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/lro/nonretryerror/post/202/retry/400') + url = kwargs.pop("template_url", "/lro/nonretryerror/post/202/retry/400") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -250,7 +250,7 @@ def build_post_async_relative_retry400_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/lro/nonretryerror/postasync/retry/400') + url = kwargs.pop("template_url", "/lro/nonretryerror/postasync/retry/400") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -274,7 +274,7 @@ def build_put_error201_no_provisioning_state_payload_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/lro/error/put/201/noprovisioningstatepayload') + url = kwargs.pop("template_url", "/lro/error/put/201/noprovisioningstatepayload") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -298,7 +298,7 @@ def build_put_async_relative_retry_no_status_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/lro/error/putasync/retry/nostatus') + url = kwargs.pop("template_url", "/lro/error/putasync/retry/nostatus") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -322,7 +322,7 @@ def build_put_async_relative_retry_no_status_payload_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/lro/error/putasync/retry/nostatuspayload') + url = kwargs.pop("template_url", "/lro/error/putasync/retry/nostatuspayload") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -344,7 +344,7 @@ def build_delete204_succeeded_request_initial( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/lro/error/delete/204/nolocation') + url = kwargs.pop("template_url", "/lro/error/delete/204/nolocation") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -364,7 +364,7 @@ def build_delete_async_relative_retry_no_status_request_initial( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/lro/error/deleteasync/retry/nostatus') + url = kwargs.pop("template_url", "/lro/error/deleteasync/retry/nostatus") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -386,7 +386,7 @@ def build_post202_no_location_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/lro/error/post/202/nolocation') + url = kwargs.pop("template_url", "/lro/error/post/202/nolocation") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -410,7 +410,7 @@ def build_post_async_relative_retry_no_payload_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/lro/error/postasync/retry/nopayload') + url = kwargs.pop("template_url", "/lro/error/postasync/retry/nopayload") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -434,7 +434,7 @@ def build_put200_invalid_json_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/lro/error/put/200/invalidjson') + url = kwargs.pop("template_url", "/lro/error/put/200/invalidjson") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -458,7 +458,7 @@ def build_put_async_relative_retry_invalid_header_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/lro/error/putasync/retry/invalidheader') + url = kwargs.pop("template_url", "/lro/error/putasync/retry/invalidheader") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -482,7 +482,7 @@ def build_put_async_relative_retry_invalid_json_polling_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/lro/error/putasync/retry/invalidjsonpolling') + url = kwargs.pop("template_url", "/lro/error/putasync/retry/invalidjsonpolling") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -504,7 +504,7 @@ def build_delete202_retry_invalid_header_request_initial( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/lro/error/delete/202/retry/invalidheader') + url = kwargs.pop("template_url", "/lro/error/delete/202/retry/invalidheader") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -524,7 +524,7 @@ def build_delete_async_relative_retry_invalid_header_request_initial( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/lro/error/deleteasync/retry/invalidheader') + url = kwargs.pop("template_url", "/lro/error/deleteasync/retry/invalidheader") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -544,7 +544,7 @@ def build_delete_async_relative_retry_invalid_json_polling_request_initial( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/lro/error/deleteasync/retry/invalidjsonpolling') + url = kwargs.pop("template_url", "/lro/error/deleteasync/retry/invalidjsonpolling") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -566,7 +566,7 @@ def build_post202_retry_invalid_header_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/lro/error/post/202/retry/invalidheader') + url = kwargs.pop("template_url", "/lro/error/post/202/retry/invalidheader") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -590,7 +590,7 @@ def build_post_async_relative_retry_invalid_header_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/lro/error/postasync/retry/invalidheader') + url = kwargs.pop("template_url", "/lro/error/postasync/retry/invalidheader") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -614,7 +614,7 @@ def build_post_async_relative_retry_invalid_json_polling_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/lro/error/postasync/retry/invalidjsonpolling') + url = kwargs.pop("template_url", "/lro/error/postasync/retry/invalidjsonpolling") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/azure/legacy/Expected/AcceptanceTests/LroWithParameterizedEndpoints/lrowithparameterizedendpoints/operations/_lro_with_paramaterized_endpoints_operations.py b/test/azure/legacy/Expected/AcceptanceTests/LroWithParameterizedEndpoints/lrowithparameterizedendpoints/operations/_lro_with_paramaterized_endpoints_operations.py index b895aa70d0a..5809b91b210 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/LroWithParameterizedEndpoints/lrowithparameterizedendpoints/operations/_lro_with_paramaterized_endpoints_operations.py +++ b/test/azure/legacy/Expected/AcceptanceTests/LroWithParameterizedEndpoints/lrowithparameterizedendpoints/operations/_lro_with_paramaterized_endpoints_operations.py @@ -43,7 +43,7 @@ def build_poll_with_parameterized_endpoints_request_initial( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/lroParameterizedEndpoints') + url = kwargs.pop("template_url", "/lroParameterizedEndpoints") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -65,7 +65,7 @@ def build_poll_with_constant_parameterized_endpoints_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/lroConstantParameterizedEndpoints/{constantParameter}') + url = kwargs.pop("template_url", "/lroConstantParameterizedEndpoints/{constantParameter}") path_format_arguments = { "constantParameter": _SERIALIZER.url("constant_parameter", constant_parameter, 'str', skip_quote=True), } diff --git a/test/azure/legacy/Expected/AcceptanceTests/Paging/paging/operations/_paging_operations.py b/test/azure/legacy/Expected/AcceptanceTests/Paging/paging/operations/_paging_operations.py index 44e6a1d910e..1f43a6889c7 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/Paging/paging/operations/_paging_operations.py +++ b/test/azure/legacy/Expected/AcceptanceTests/Paging/paging/operations/_paging_operations.py @@ -44,7 +44,7 @@ def build_get_no_item_name_pages_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/paging/noitemname') + url = kwargs.pop("template_url", "/paging/noitemname") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -64,7 +64,7 @@ def build_get_null_next_link_name_pages_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/paging/nullnextlink') + url = kwargs.pop("template_url", "/paging/nullnextlink") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -84,7 +84,7 @@ def build_get_single_pages_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/paging/single') + url = kwargs.pop("template_url", "/paging/single") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -104,7 +104,7 @@ def build_first_response_empty_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/paging/firstResponseEmpty/1') + url = kwargs.pop("template_url", "/paging/firstResponseEmpty/1") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -128,7 +128,7 @@ def build_get_multiple_pages_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/paging/multiple') + url = kwargs.pop("template_url", "/paging/multiple") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -157,7 +157,7 @@ def build_get_with_query_params_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/paging/multiple/getWithQueryParams') + url = kwargs.pop("template_url", "/paging/multiple/getWithQueryParams") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -185,7 +185,7 @@ def build_next_operation_with_query_params_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/paging/multiple/nextOperationWithQueryParams') + url = kwargs.pop("template_url", "/paging/multiple/nextOperationWithQueryParams") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -214,7 +214,7 @@ def build_get_odata_multiple_pages_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/paging/multiple/odata') + url = kwargs.pop("template_url", "/paging/multiple/odata") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -245,7 +245,7 @@ def build_get_multiple_pages_with_offset_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/paging/multiple/withpath/{offset}') + url = kwargs.pop("template_url", "/paging/multiple/withpath/{offset}") path_format_arguments = { "offset": _SERIALIZER.url("offset", offset, 'int'), } @@ -276,7 +276,7 @@ def build_get_multiple_pages_retry_first_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/paging/multiple/retryfirst') + url = kwargs.pop("template_url", "/paging/multiple/retryfirst") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -296,7 +296,7 @@ def build_get_multiple_pages_retry_second_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/paging/multiple/retrysecond') + url = kwargs.pop("template_url", "/paging/multiple/retrysecond") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -316,7 +316,7 @@ def build_get_single_pages_failure_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/paging/single/failure') + url = kwargs.pop("template_url", "/paging/single/failure") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -336,7 +336,7 @@ def build_get_multiple_pages_failure_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/paging/multiple/failure') + url = kwargs.pop("template_url", "/paging/multiple/failure") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -356,7 +356,7 @@ def build_get_multiple_pages_failure_uri_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/paging/multiple/failureuri') + url = kwargs.pop("template_url", "/paging/multiple/failureuri") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -379,7 +379,7 @@ def build_get_multiple_pages_fragment_next_link_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/paging/multiple/fragment/{tenant}') + url = kwargs.pop("template_url", "/paging/multiple/fragment/{tenant}") path_format_arguments = { "tenant": _SERIALIZER.url("tenant", tenant, 'str'), } @@ -412,7 +412,7 @@ def build_get_multiple_pages_fragment_with_grouping_next_link_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/paging/multiple/fragmentwithgrouping/{tenant}') + url = kwargs.pop("template_url", "/paging/multiple/fragmentwithgrouping/{tenant}") path_format_arguments = { "tenant": _SERIALIZER.url("tenant", tenant, 'str'), } @@ -446,7 +446,7 @@ def build_get_multiple_pages_lro_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/paging/multiple/lro') + url = kwargs.pop("template_url", "/paging/multiple/lro") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -476,7 +476,7 @@ def build_next_fragment_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/paging/multiple/fragment/{tenant}/{nextLink}') + url = kwargs.pop("template_url", "/paging/multiple/fragment/{tenant}/{nextLink}") path_format_arguments = { "tenant": _SERIALIZER.url("tenant", tenant, 'str'), "nextLink": _SERIALIZER.url("next_link", next_link, 'str', skip_quote=True), @@ -511,7 +511,7 @@ def build_next_fragment_with_grouping_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/paging/multiple/fragmentwithgrouping/{tenant}/{nextLink}') + url = kwargs.pop("template_url", "/paging/multiple/fragmentwithgrouping/{tenant}/{nextLink}") path_format_arguments = { "tenant": _SERIALIZER.url("tenant", tenant, 'str'), "nextLink": _SERIALIZER.url("next_link", next_link, 'str', skip_quote=True), @@ -542,7 +542,7 @@ def build_get_paging_model_with_item_name_with_xms_client_name_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/paging/itemNameWithXMSClientName') + url = kwargs.pop("template_url", "/paging/itemNameWithXMSClientName") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/azure/legacy/Expected/AcceptanceTests/StorageManagementClient/storage/operations/_storage_accounts_operations.py b/test/azure/legacy/Expected/AcceptanceTests/StorageManagementClient/storage/operations/_storage_accounts_operations.py index 9bec48d6c42..e5daa15de8b 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/StorageManagementClient/storage/operations/_storage_accounts_operations.py +++ b/test/azure/legacy/Expected/AcceptanceTests/StorageManagementClient/storage/operations/_storage_accounts_operations.py @@ -49,7 +49,7 @@ def build_check_name_availability_request( accept = "application/json, text/json" # Construct URL - url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/providers/Microsoft.Storage/checkNameAvailability') + url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/providers/Microsoft.Storage/checkNameAvailability") path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), } @@ -87,7 +87,7 @@ def build_create_request_initial( accept = "application/json, text/json" # Construct URL - url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}') # pylint: disable=line-too-long + url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}") # pylint: disable=line-too-long path_format_arguments = { "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str'), "accountName": _SERIALIZER.url("account_name", account_name, 'str'), @@ -125,7 +125,7 @@ def build_delete_request( api_version = kwargs.pop('api_version', "2015-05-01-preview") # type: str # Construct URL - url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}') # pylint: disable=line-too-long + url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}") # pylint: disable=line-too-long path_format_arguments = { "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str'), "accountName": _SERIALIZER.url("account_name", account_name, 'str'), @@ -157,7 +157,7 @@ def build_get_properties_request( accept = "application/json, text/json" # Construct URL - url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}') # pylint: disable=line-too-long + url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}") # pylint: disable=line-too-long path_format_arguments = { "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str'), "accountName": _SERIALIZER.url("account_name", account_name, 'str'), @@ -195,7 +195,7 @@ def build_update_request( accept = "application/json, text/json" # Construct URL - url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}') # pylint: disable=line-too-long + url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}") # pylint: disable=line-too-long path_format_arguments = { "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str'), "accountName": _SERIALIZER.url("account_name", account_name, 'str'), @@ -234,7 +234,7 @@ def build_list_keys_request( accept = "application/json, text/json" # Construct URL - url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/listKeys') # pylint: disable=line-too-long + url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/listKeys") # pylint: disable=line-too-long path_format_arguments = { "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str'), "accountName": _SERIALIZER.url("account_name", account_name, 'str'), @@ -269,7 +269,7 @@ def build_list_request( accept = "application/json, text/json" # Construct URL - url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/providers/Microsoft.Storage/storageAccounts') + url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/providers/Microsoft.Storage/storageAccounts") path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), } @@ -303,7 +303,7 @@ def build_list_by_resource_group_request( accept = "application/json, text/json" # Construct URL - url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts') # pylint: disable=line-too-long + url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts") # pylint: disable=line-too-long path_format_arguments = { "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str'), "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), @@ -340,7 +340,7 @@ def build_regenerate_key_request( accept = "application/json, text/json" # Construct URL - url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/regenerateKey') # pylint: disable=line-too-long + url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/regenerateKey") # pylint: disable=line-too-long path_format_arguments = { "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str'), "accountName": _SERIALIZER.url("account_name", account_name, 'str'), diff --git a/test/azure/legacy/Expected/AcceptanceTests/StorageManagementClient/storage/operations/_usage_operations.py b/test/azure/legacy/Expected/AcceptanceTests/StorageManagementClient/storage/operations/_usage_operations.py index 38cb57b68ad..70cd1b0cab7 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/StorageManagementClient/storage/operations/_usage_operations.py +++ b/test/azure/legacy/Expected/AcceptanceTests/StorageManagementClient/storage/operations/_usage_operations.py @@ -45,7 +45,7 @@ def build_list_request( accept = "application/json, text/json" # Construct URL - url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/providers/Microsoft.Storage/usages') + url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/providers/Microsoft.Storage/usages") path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), } diff --git a/test/azure/legacy/Expected/AcceptanceTests/SubscriptionIdApiVersion/subscriptionidapiversion/operations/_group_operations.py b/test/azure/legacy/Expected/AcceptanceTests/SubscriptionIdApiVersion/subscriptionidapiversion/operations/_group_operations.py index 1476b140d5f..acf9bbaabc9 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/SubscriptionIdApiVersion/subscriptionidapiversion/operations/_group_operations.py +++ b/test/azure/legacy/Expected/AcceptanceTests/SubscriptionIdApiVersion/subscriptionidapiversion/operations/_group_operations.py @@ -46,7 +46,7 @@ def build_get_sample_resource_group_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}') + url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}") path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str'), diff --git a/test/azure/low-level/Expected/AcceptanceTests/AzureBodyDurationLowLevel/bodydurationlowlevel/rest/duration/_request_builders.py b/test/azure/low-level/Expected/AcceptanceTests/AzureBodyDurationLowLevel/bodydurationlowlevel/rest/duration/_request_builders.py index 396abf38448..66f8d460b1e 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/AzureBodyDurationLowLevel/bodydurationlowlevel/rest/duration/_request_builders.py +++ b/test/azure/low-level/Expected/AcceptanceTests/AzureBodyDurationLowLevel/bodydurationlowlevel/rest/duration/_request_builders.py @@ -39,7 +39,7 @@ def build_get_null_request( accept = "application/json" # Construct URL - url = '/duration/null' + url = "/duration/null" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -84,7 +84,7 @@ def build_put_positive_duration_request( accept = "application/json" # Construct URL - url = '/duration/positiveduration' + url = "/duration/positiveduration" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -117,7 +117,7 @@ def build_get_positive_duration_request( accept = "application/json" # Construct URL - url = '/duration/positiveduration' + url = "/duration/positiveduration" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -148,7 +148,7 @@ def build_get_invalid_request( accept = "application/json" # Construct URL - url = '/duration/invalid' + url = "/duration/invalid" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/azure/low-level/Expected/AcceptanceTests/AzureParameterGroupingLowLevel/azureparametergroupinglowlevel/rest/parameter_grouping/_request_builders.py b/test/azure/low-level/Expected/AcceptanceTests/AzureParameterGroupingLowLevel/azureparametergroupinglowlevel/rest/parameter_grouping/_request_builders.py index 339e436afe0..672d0a47554 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/AzureParameterGroupingLowLevel/azureparametergroupinglowlevel/rest/parameter_grouping/_request_builders.py +++ b/test/azure/low-level/Expected/AcceptanceTests/AzureParameterGroupingLowLevel/azureparametergroupinglowlevel/rest/parameter_grouping/_request_builders.py @@ -63,7 +63,7 @@ def build_post_required_request( accept = "application/json" # Construct URL - url = '/parameterGrouping/postRequired/{path}' + url = "/parameterGrouping/postRequired/{path}" path_format_arguments = { "path": _SERIALIZER.url("path", path, 'str'), } @@ -116,7 +116,7 @@ def build_post_optional_request( accept = "application/json" # Construct URL - url = '/parameterGrouping/postOptional' + url = "/parameterGrouping/postOptional" # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -162,7 +162,7 @@ def build_post_reserved_words_request( accept = "application/json" # Construct URL - url = '/parameterGrouping/postReservedWords' + url = "/parameterGrouping/postReservedWords" # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -214,7 +214,7 @@ def build_post_multi_param_groups_request( accept = "application/json" # Construct URL - url = '/parameterGrouping/postMultipleParameterGroups' + url = "/parameterGrouping/postMultipleParameterGroups" # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -264,7 +264,7 @@ def build_post_shared_parameter_group_object_request( accept = "application/json" # Construct URL - url = '/parameterGrouping/sharedParameterGroupObject' + url = "/parameterGrouping/sharedParameterGroupObject" # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] diff --git a/test/azure/low-level/Expected/AcceptanceTests/AzureReportLowLevel/azurereportlowlevel/rest/_request_builders.py b/test/azure/low-level/Expected/AcceptanceTests/AzureReportLowLevel/azurereportlowlevel/rest/_request_builders.py index 9636440f902..f49eeba9b80 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/AzureReportLowLevel/azurereportlowlevel/rest/_request_builders.py +++ b/test/azure/low-level/Expected/AcceptanceTests/AzureReportLowLevel/azurereportlowlevel/rest/_request_builders.py @@ -50,7 +50,7 @@ def build_get_report_request( accept = "application/json" # Construct URL - url = '/report/azure' + url = "/report/azure" # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] diff --git a/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/rest/api_version_default/_request_builders.py b/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/rest/api_version_default/_request_builders.py index cb082bf3566..fc1807a9ebf 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/rest/api_version_default/_request_builders.py +++ b/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/rest/api_version_default/_request_builders.py @@ -37,7 +37,7 @@ def build_get_method_global_valid_request( accept = "application/json" # Construct URL - url = '/azurespecials/apiVersion/method/string/none/query/global/2015-07-01-preview' + url = "/azurespecials/apiVersion/method/string/none/query/global/2015-07-01-preview" # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -75,7 +75,7 @@ def build_get_method_global_not_provided_valid_request( accept = "application/json" # Construct URL - url = '/azurespecials/apiVersion/method/string/none/query/globalNotProvided/2015-07-01-preview' + url = "/azurespecials/apiVersion/method/string/none/query/globalNotProvided/2015-07-01-preview" # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -113,7 +113,7 @@ def build_get_path_global_valid_request( accept = "application/json" # Construct URL - url = '/azurespecials/apiVersion/path/string/none/query/global/2015-07-01-preview' + url = "/azurespecials/apiVersion/path/string/none/query/global/2015-07-01-preview" # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -151,7 +151,7 @@ def build_get_swagger_global_valid_request( accept = "application/json" # Construct URL - url = '/azurespecials/apiVersion/swagger/string/none/query/global/2015-07-01-preview' + url = "/azurespecials/apiVersion/swagger/string/none/query/global/2015-07-01-preview" # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] diff --git a/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/rest/api_version_local/_request_builders.py b/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/rest/api_version_local/_request_builders.py index 700efe45457..899e8153f8a 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/rest/api_version_local/_request_builders.py +++ b/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/rest/api_version_local/_request_builders.py @@ -40,7 +40,7 @@ def build_get_method_local_valid_request( accept = "application/json" # Construct URL - url = '/azurespecials/apiVersion/method/string/none/query/local/2.0' + url = "/azurespecials/apiVersion/method/string/none/query/local/2.0" # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -81,7 +81,7 @@ def build_get_method_local_null_request( accept = "application/json" # Construct URL - url = '/azurespecials/apiVersion/method/string/none/query/local/null' + url = "/azurespecials/apiVersion/method/string/none/query/local/null" # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -123,7 +123,7 @@ def build_get_path_local_valid_request( accept = "application/json" # Construct URL - url = '/azurespecials/apiVersion/path/string/none/query/local/2.0' + url = "/azurespecials/apiVersion/path/string/none/query/local/2.0" # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -165,7 +165,7 @@ def build_get_swagger_local_valid_request( accept = "application/json" # Construct URL - url = '/azurespecials/apiVersion/swagger/string/none/query/local/2.0' + url = "/azurespecials/apiVersion/swagger/string/none/query/local/2.0" # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] diff --git a/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/rest/header/_request_builders.py b/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/rest/header/_request_builders.py index 7122fcc2168..c9868b00eca 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/rest/header/_request_builders.py +++ b/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/rest/header/_request_builders.py @@ -39,7 +39,7 @@ def build_custom_named_request_id_request( accept = "application/json" # Construct URL - url = '/azurespecials/customNamedRequestId' + url = "/azurespecials/customNamedRequestId" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -76,7 +76,7 @@ def build_custom_named_request_id_param_grouping_request( accept = "application/json" # Construct URL - url = '/azurespecials/customNamedRequestIdParamGrouping' + url = "/azurespecials/customNamedRequestIdParamGrouping" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -112,7 +112,7 @@ def build_custom_named_request_id_head_request( accept = "application/json" # Construct URL - url = '/azurespecials/customNamedRequestIdHead' + url = "/azurespecials/customNamedRequestIdHead" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/rest/odata/_request_builders.py b/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/rest/odata/_request_builders.py index ca2a4cb792c..a4c67034a4a 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/rest/odata/_request_builders.py +++ b/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/rest/odata/_request_builders.py @@ -45,7 +45,7 @@ def build_get_with_filter_request( accept = "application/json" # Construct URL - url = '/azurespecials/odata/filter' + url = "/azurespecials/odata/filter" # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] diff --git a/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/rest/skip_url_encoding/_request_builders.py b/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/rest/skip_url_encoding/_request_builders.py index 36b6f40e317..8700ad6d4a0 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/rest/skip_url_encoding/_request_builders.py +++ b/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/rest/skip_url_encoding/_request_builders.py @@ -40,7 +40,7 @@ def build_get_method_path_valid_request( accept = "application/json" # Construct URL - url = '/azurespecials/skipUrlEncoding/method/path/valid/{unencodedPathParam}' + url = "/azurespecials/skipUrlEncoding/method/path/valid/{unencodedPathParam}" path_format_arguments = { "unencodedPathParam": _SERIALIZER.url("unencoded_path_param", unencoded_path_param, 'str', skip_quote=True), } @@ -79,7 +79,7 @@ def build_get_path_valid_request( accept = "application/json" # Construct URL - url = '/azurespecials/skipUrlEncoding/path/path/valid/{unencodedPathParam}' + url = "/azurespecials/skipUrlEncoding/path/path/valid/{unencodedPathParam}" path_format_arguments = { "unencodedPathParam": _SERIALIZER.url("unencoded_path_param", unencoded_path_param, 'str', skip_quote=True), } @@ -121,7 +121,7 @@ def build_get_swagger_path_valid_request( accept = "application/json" # Construct URL - url = '/azurespecials/skipUrlEncoding/swagger/path/valid/{unencodedPathParam}' + url = "/azurespecials/skipUrlEncoding/swagger/path/valid/{unencodedPathParam}" path_format_arguments = { "unencodedPathParam": _SERIALIZER.url("unencoded_path_param", unencoded_path_param, 'str', skip_quote=True), } @@ -161,7 +161,7 @@ def build_get_method_query_valid_request( accept = "application/json" # Construct URL - url = '/azurespecials/skipUrlEncoding/method/query/valid' + url = "/azurespecials/skipUrlEncoding/method/query/valid" # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -201,7 +201,7 @@ def build_get_method_query_null_request( accept = "application/json" # Construct URL - url = '/azurespecials/skipUrlEncoding/method/query/null' + url = "/azurespecials/skipUrlEncoding/method/query/null" # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -242,7 +242,7 @@ def build_get_path_query_valid_request( accept = "application/json" # Construct URL - url = '/azurespecials/skipUrlEncoding/path/query/valid' + url = "/azurespecials/skipUrlEncoding/path/query/valid" # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -284,7 +284,7 @@ def build_get_swagger_query_valid_request( accept = "application/json" # Construct URL - url = '/azurespecials/skipUrlEncoding/swagger/query/valid' + url = "/azurespecials/skipUrlEncoding/swagger/query/valid" # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] diff --git a/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/rest/subscription_in_credentials/_request_builders.py b/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/rest/subscription_in_credentials/_request_builders.py index 61f20cd03ad..709c0908099 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/rest/subscription_in_credentials/_request_builders.py +++ b/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/rest/subscription_in_credentials/_request_builders.py @@ -42,7 +42,7 @@ def build_post_method_global_valid_request( accept = "application/json" # Construct URL - url = '/azurespecials/subscriptionId/method/string/none/path/global/1234-5678-9012-3456/{subscriptionId}' + url = "/azurespecials/subscriptionId/method/string/none/path/global/1234-5678-9012-3456/{subscriptionId}" path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), } @@ -83,7 +83,7 @@ def build_post_method_global_null_request( accept = "application/json" # Construct URL - url = '/azurespecials/subscriptionId/method/string/none/path/global/null/{subscriptionId}' + url = "/azurespecials/subscriptionId/method/string/none/path/global/null/{subscriptionId}" path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), } @@ -126,7 +126,7 @@ def build_post_method_global_not_provided_valid_request( accept = "application/json" # Construct URL - url = '/azurespecials/subscriptionId/method/string/none/path/globalNotProvided/1234-5678-9012-3456/{subscriptionId}' + url = "/azurespecials/subscriptionId/method/string/none/path/globalNotProvided/1234-5678-9012-3456/{subscriptionId}" path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), } @@ -172,7 +172,7 @@ def build_post_path_global_valid_request( accept = "application/json" # Construct URL - url = '/azurespecials/subscriptionId/path/string/none/path/global/1234-5678-9012-3456/{subscriptionId}' + url = "/azurespecials/subscriptionId/path/string/none/path/global/1234-5678-9012-3456/{subscriptionId}" path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), } @@ -213,7 +213,7 @@ def build_post_swagger_global_valid_request( accept = "application/json" # Construct URL - url = '/azurespecials/subscriptionId/swagger/string/none/path/global/1234-5678-9012-3456/{subscriptionId}' + url = "/azurespecials/subscriptionId/swagger/string/none/path/global/1234-5678-9012-3456/{subscriptionId}" path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), } diff --git a/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/rest/subscription_in_method/_request_builders.py b/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/rest/subscription_in_method/_request_builders.py index 9b206521484..0a223769a09 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/rest/subscription_in_method/_request_builders.py +++ b/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/rest/subscription_in_method/_request_builders.py @@ -42,7 +42,7 @@ def build_post_method_local_valid_request( accept = "application/json" # Construct URL - url = '/azurespecials/subscriptionId/method/string/none/path/local/1234-5678-9012-3456/{subscriptionId}' + url = "/azurespecials/subscriptionId/method/string/none/path/local/1234-5678-9012-3456/{subscriptionId}" path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), } @@ -83,7 +83,7 @@ def build_post_method_local_null_request( accept = "application/json" # Construct URL - url = '/azurespecials/subscriptionId/method/string/none/path/local/null/{subscriptionId}' + url = "/azurespecials/subscriptionId/method/string/none/path/local/null/{subscriptionId}" path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), } @@ -123,7 +123,7 @@ def build_post_path_local_valid_request( accept = "application/json" # Construct URL - url = '/azurespecials/subscriptionId/path/string/none/path/local/1234-5678-9012-3456/{subscriptionId}' + url = "/azurespecials/subscriptionId/path/string/none/path/local/1234-5678-9012-3456/{subscriptionId}" path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), } @@ -164,7 +164,7 @@ def build_post_swagger_local_valid_request( accept = "application/json" # Construct URL - url = '/azurespecials/subscriptionId/swagger/string/none/path/local/1234-5678-9012-3456/{subscriptionId}' + url = "/azurespecials/subscriptionId/swagger/string/none/path/local/1234-5678-9012-3456/{subscriptionId}" path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), } diff --git a/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/rest/xms_client_request_id/_request_builders.py b/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/rest/xms_client_request_id/_request_builders.py index 27373c38b73..7d577df5435 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/rest/xms_client_request_id/_request_builders.py +++ b/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/rest/xms_client_request_id/_request_builders.py @@ -35,7 +35,7 @@ def build_get_request( """ # Construct URL - url = '/azurespecials/overwrite/x-ms-client-request-id/method/' + url = "/azurespecials/overwrite/x-ms-client-request-id/method/" return HttpRequest( method="GET", @@ -67,7 +67,7 @@ def build_param_get_request( accept = "application/json" # Construct URL - url = '/azurespecials/overwrite/x-ms-client-request-id/via-param/method/' + url = "/azurespecials/overwrite/x-ms-client-request-id/via-param/method/" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/azure/low-level/Expected/AcceptanceTests/CustomBaseUriLowLevel/custombaseurllowlevel/rest/paths/_request_builders.py b/test/azure/low-level/Expected/AcceptanceTests/CustomBaseUriLowLevel/custombaseurllowlevel/rest/paths/_request_builders.py index 718db040ff1..e0c223d0f9d 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/CustomBaseUriLowLevel/custombaseurllowlevel/rest/paths/_request_builders.py +++ b/test/azure/low-level/Expected/AcceptanceTests/CustomBaseUriLowLevel/custombaseurllowlevel/rest/paths/_request_builders.py @@ -35,7 +35,7 @@ def build_get_empty_request( accept = "application/json" # Construct URL - url = '/customuri' + url = "/customuri" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/azure/low-level/Expected/AcceptanceTests/CustomUrlPagingLowLevel/custombaseurlpaginglowlevel/rest/paging/_request_builders.py b/test/azure/low-level/Expected/AcceptanceTests/CustomUrlPagingLowLevel/custombaseurlpaginglowlevel/rest/paging/_request_builders.py index 07b957b2d34..e808b5a3dad 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/CustomUrlPagingLowLevel/custombaseurlpaginglowlevel/rest/paging/_request_builders.py +++ b/test/azure/low-level/Expected/AcceptanceTests/CustomUrlPagingLowLevel/custombaseurlpaginglowlevel/rest/paging/_request_builders.py @@ -55,7 +55,7 @@ def build_get_pages_partial_url_request( accept = "application/json" # Construct URL - url = '/paging/customurl/partialnextlink' + url = "/paging/customurl/partialnextlink" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -102,7 +102,7 @@ def build_get_pages_partial_url_operation_request( accept = "application/json" # Construct URL - url = '/paging/customurl/partialnextlinkop' + url = "/paging/customurl/partialnextlinkop" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -152,7 +152,7 @@ def build_get_pages_partial_url_operation_next_request( accept = "application/json" # Construct URL - url = '/paging/customurl/{nextLink}' + url = "/paging/customurl/{nextLink}" path_format_arguments = { "nextLink": _SERIALIZER.url("next_link", next_link, 'str', skip_quote=True), } diff --git a/test/azure/low-level/Expected/AcceptanceTests/HeadExceptionsLowLevel/headexceptionslowlevel/rest/head_exception/_request_builders.py b/test/azure/low-level/Expected/AcceptanceTests/HeadExceptionsLowLevel/headexceptionslowlevel/rest/head_exception/_request_builders.py index 5b7d2895b12..2d87db70cd4 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/HeadExceptionsLowLevel/headexceptionslowlevel/rest/head_exception/_request_builders.py +++ b/test/azure/low-level/Expected/AcceptanceTests/HeadExceptionsLowLevel/headexceptionslowlevel/rest/head_exception/_request_builders.py @@ -35,7 +35,7 @@ def build_head200_request( """ # Construct URL - url = '/http/success/200' + url = "/http/success/200" return HttpRequest( method="HEAD", @@ -60,7 +60,7 @@ def build_head204_request( """ # Construct URL - url = '/http/success/204' + url = "/http/success/204" return HttpRequest( method="HEAD", @@ -85,7 +85,7 @@ def build_head404_request( """ # Construct URL - url = '/http/success/404' + url = "/http/success/404" return HttpRequest( method="HEAD", diff --git a/test/azure/low-level/Expected/AcceptanceTests/HeadLowLevel/headlowlevel/rest/http_success/_request_builders.py b/test/azure/low-level/Expected/AcceptanceTests/HeadLowLevel/headlowlevel/rest/http_success/_request_builders.py index 5b7d2895b12..2d87db70cd4 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/HeadLowLevel/headlowlevel/rest/http_success/_request_builders.py +++ b/test/azure/low-level/Expected/AcceptanceTests/HeadLowLevel/headlowlevel/rest/http_success/_request_builders.py @@ -35,7 +35,7 @@ def build_head200_request( """ # Construct URL - url = '/http/success/200' + url = "/http/success/200" return HttpRequest( method="HEAD", @@ -60,7 +60,7 @@ def build_head204_request( """ # Construct URL - url = '/http/success/204' + url = "/http/success/204" return HttpRequest( method="HEAD", @@ -85,7 +85,7 @@ def build_head404_request( """ # Construct URL - url = '/http/success/404' + url = "/http/success/404" return HttpRequest( method="HEAD", diff --git a/test/azure/low-level/Expected/AcceptanceTests/LroLowLevel/lrolowlevel/rest/lr_os_custom_header/_request_builders.py b/test/azure/low-level/Expected/AcceptanceTests/LroLowLevel/lrolowlevel/rest/lr_os_custom_header/_request_builders.py index 53f003b2014..1117cff68df 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/LroLowLevel/lrolowlevel/rest/lr_os_custom_header/_request_builders.py +++ b/test/azure/low-level/Expected/AcceptanceTests/LroLowLevel/lrolowlevel/rest/lr_os_custom_header/_request_builders.py @@ -89,7 +89,7 @@ def build_put_async_retry_succeeded_request( accept = "application/json" # Construct URL - url = '/lro/customheader/putasync/retry/succeeded' + url = "/lro/customheader/putasync/retry/succeeded" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -172,7 +172,7 @@ def build_put201_creating_succeeded200_request( accept = "application/json" # Construct URL - url = '/lro/customheader/put/201/creating/succeeded/200' + url = "/lro/customheader/put/201/creating/succeeded/200" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -236,7 +236,7 @@ def build_post202_retry200_request( accept = "application/json" # Construct URL - url = '/lro/customheader/post/202/retry/200' + url = "/lro/customheader/post/202/retry/200" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -301,7 +301,7 @@ def build_post_async_retry_succeeded_request( accept = "application/json" # Construct URL - url = '/lro/customheader/postasync/retry/succeeded' + url = "/lro/customheader/postasync/retry/succeeded" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/azure/low-level/Expected/AcceptanceTests/LroLowLevel/lrolowlevel/rest/lro_retrys/_request_builders.py b/test/azure/low-level/Expected/AcceptanceTests/LroLowLevel/lrolowlevel/rest/lro_retrys/_request_builders.py index cfb470ef80f..a485385d266 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/LroLowLevel/lrolowlevel/rest/lro_retrys/_request_builders.py +++ b/test/azure/low-level/Expected/AcceptanceTests/LroLowLevel/lrolowlevel/rest/lro_retrys/_request_builders.py @@ -88,7 +88,7 @@ def build_put201_creating_succeeded200_request( accept = "application/json" # Construct URL - url = '/lro/retryerror/put/201/creating/succeeded/200' + url = "/lro/retryerror/put/201/creating/succeeded/200" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -170,7 +170,7 @@ def build_put_async_relative_retry_succeeded_request( accept = "application/json" # Construct URL - url = '/lro/retryerror/putasync/retry/succeeded' + url = "/lro/retryerror/putasync/retry/succeeded" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -226,7 +226,7 @@ def build_delete_provisioning202_accepted200_succeeded_request( accept = "application/json" # Construct URL - url = '/lro/retryerror/delete/provisioning/202/accepted/200/succeeded' + url = "/lro/retryerror/delete/provisioning/202/accepted/200/succeeded" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -258,7 +258,7 @@ def build_delete202_retry200_request( accept = "application/json" # Construct URL - url = '/lro/retryerror/delete/202/retry/200' + url = "/lro/retryerror/delete/202/retry/200" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -290,7 +290,7 @@ def build_delete_async_relative_retry_succeeded_request( accept = "application/json" # Construct URL - url = '/lro/retryerror/deleteasync/retry/succeeded' + url = "/lro/retryerror/deleteasync/retry/succeeded" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -351,7 +351,7 @@ def build_post202_retry200_request( accept = "application/json" # Construct URL - url = '/lro/retryerror/post/202/retry/200' + url = "/lro/retryerror/post/202/retry/200" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -415,7 +415,7 @@ def build_post_async_relative_retry_succeeded_request( accept = "application/json" # Construct URL - url = '/lro/retryerror/postasync/retry/succeeded' + url = "/lro/retryerror/postasync/retry/succeeded" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/azure/low-level/Expected/AcceptanceTests/LroLowLevel/lrolowlevel/rest/lros/_request_builders.py b/test/azure/low-level/Expected/AcceptanceTests/LroLowLevel/lrolowlevel/rest/lros/_request_builders.py index 1d70bb82516..f5988e80ffa 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/LroLowLevel/lrolowlevel/rest/lros/_request_builders.py +++ b/test/azure/low-level/Expected/AcceptanceTests/LroLowLevel/lrolowlevel/rest/lros/_request_builders.py @@ -87,7 +87,7 @@ def build_put200_succeeded_request( accept = "application/json" # Construct URL - url = '/lro/put/200/succeeded' + url = "/lro/put/200/succeeded" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -168,7 +168,7 @@ def build_patch200_succeeded_ignore_headers_request( accept = "application/json" # Construct URL - url = '/lro/patch/200/succeeded/ignoreheaders' + url = "/lro/patch/200/succeeded/ignoreheaders" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -248,7 +248,7 @@ def build_patch201_retry_with_async_header_request( accept = "application/json" # Construct URL - url = '/lro/patch/201/retry/onlyAsyncHeader' + url = "/lro/patch/201/retry/onlyAsyncHeader" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -329,7 +329,7 @@ def build_patch202_retry_with_async_and_location_header_request( accept = "application/json" # Construct URL - url = '/lro/patch/202/retry/asyncAndLocationHeader' + url = "/lro/patch/202/retry/asyncAndLocationHeader" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -410,7 +410,7 @@ def build_put201_succeeded_request( accept = "application/json" # Construct URL - url = '/lro/put/201/succeeded' + url = "/lro/put/201/succeeded" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -467,7 +467,7 @@ def build_post202_list_request( accept = "application/json" # Construct URL - url = '/lro/list' + url = "/lro/list" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -546,7 +546,7 @@ def build_put200_succeeded_no_state_request( accept = "application/json" # Construct URL - url = '/lro/put/200/succeeded/nostate' + url = "/lro/put/200/succeeded/nostate" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -628,7 +628,7 @@ def build_put202_retry200_request( accept = "application/json" # Construct URL - url = '/lro/put/202/retry/200' + url = "/lro/put/202/retry/200" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -710,7 +710,7 @@ def build_put201_creating_succeeded200_request( accept = "application/json" # Construct URL - url = '/lro/put/201/creating/succeeded/200' + url = "/lro/put/201/creating/succeeded/200" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -792,7 +792,7 @@ def build_put200_updating_succeeded204_request( accept = "application/json" # Construct URL - url = '/lro/put/200/updating/succeeded/200' + url = "/lro/put/200/updating/succeeded/200" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -874,7 +874,7 @@ def build_put201_creating_failed200_request( accept = "application/json" # Construct URL - url = '/lro/put/201/created/failed/200' + url = "/lro/put/201/created/failed/200" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -956,7 +956,7 @@ def build_put200_acceptedcanceled200_request( accept = "application/json" # Construct URL - url = '/lro/put/200/accepted/canceled/200' + url = "/lro/put/200/accepted/canceled/200" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1037,7 +1037,7 @@ def build_put_no_header_in_retry_request( accept = "application/json" # Construct URL - url = '/lro/put/noheader/202/200' + url = "/lro/put/noheader/202/200" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1119,7 +1119,7 @@ def build_put_async_retry_succeeded_request( accept = "application/json" # Construct URL - url = '/lro/putasync/retry/succeeded' + url = "/lro/putasync/retry/succeeded" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1201,7 +1201,7 @@ def build_put_async_no_retry_succeeded_request( accept = "application/json" # Construct URL - url = '/lro/putasync/noretry/succeeded' + url = "/lro/putasync/noretry/succeeded" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1283,7 +1283,7 @@ def build_put_async_retry_failed_request( accept = "application/json" # Construct URL - url = '/lro/putasync/retry/failed' + url = "/lro/putasync/retry/failed" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1365,7 +1365,7 @@ def build_put_async_no_retrycanceled_request( accept = "application/json" # Construct URL - url = '/lro/putasync/noretry/canceled' + url = "/lro/putasync/noretry/canceled" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1447,7 +1447,7 @@ def build_put_async_no_header_in_retry_request( accept = "application/json" # Construct URL - url = '/lro/putasync/noheader/201/200' + url = "/lro/putasync/noheader/201/200" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1503,7 +1503,7 @@ def build_put_non_resource_request( accept = "application/json" # Construct URL - url = '/lro/putnonresource/202/200' + url = "/lro/putnonresource/202/200" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1559,7 +1559,7 @@ def build_put_async_non_resource_request( accept = "application/json" # Construct URL - url = '/lro/putnonresourceasync/202/200' + url = "/lro/putnonresourceasync/202/200" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1625,7 +1625,7 @@ def build_put_sub_resource_request( accept = "application/json" # Construct URL - url = '/lro/putsubresource/202/200' + url = "/lro/putsubresource/202/200" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1691,7 +1691,7 @@ def build_put_async_sub_resource_request( accept = "application/json" # Construct URL - url = '/lro/putsubresourceasync/202/200' + url = "/lro/putsubresourceasync/202/200" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1747,7 +1747,7 @@ def build_delete_provisioning202_accepted200_succeeded_request( accept = "application/json" # Construct URL - url = '/lro/delete/provisioning/202/accepted/200/succeeded' + url = "/lro/delete/provisioning/202/accepted/200/succeeded" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1801,7 +1801,7 @@ def build_delete_provisioning202_deleting_failed200_request( accept = "application/json" # Construct URL - url = '/lro/delete/provisioning/202/deleting/200/failed' + url = "/lro/delete/provisioning/202/deleting/200/failed" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1855,7 +1855,7 @@ def build_delete_provisioning202_deletingcanceled200_request( accept = "application/json" # Construct URL - url = '/lro/delete/provisioning/202/deleting/200/canceled' + url = "/lro/delete/provisioning/202/deleting/200/canceled" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1886,7 +1886,7 @@ def build_delete204_succeeded_request( accept = "application/json" # Construct URL - url = '/lro/delete/204/succeeded' + url = "/lro/delete/204/succeeded" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1939,7 +1939,7 @@ def build_delete202_retry200_request( accept = "application/json" # Construct URL - url = '/lro/delete/202/retry/200' + url = "/lro/delete/202/retry/200" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1992,7 +1992,7 @@ def build_delete202_no_retry204_request( accept = "application/json" # Construct URL - url = '/lro/delete/202/noretry/204' + url = "/lro/delete/202/noretry/204" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -2024,7 +2024,7 @@ def build_delete_no_header_in_retry_request( accept = "application/json" # Construct URL - url = '/lro/delete/noheader' + url = "/lro/delete/noheader" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -2056,7 +2056,7 @@ def build_delete_async_no_header_in_retry_request( accept = "application/json" # Construct URL - url = '/lro/deleteasync/noheader/202/204' + url = "/lro/deleteasync/noheader/202/204" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -2088,7 +2088,7 @@ def build_delete_async_retry_succeeded_request( accept = "application/json" # Construct URL - url = '/lro/deleteasync/retry/succeeded' + url = "/lro/deleteasync/retry/succeeded" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -2120,7 +2120,7 @@ def build_delete_async_no_retry_succeeded_request( accept = "application/json" # Construct URL - url = '/lro/deleteasync/noretry/succeeded' + url = "/lro/deleteasync/noretry/succeeded" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -2152,7 +2152,7 @@ def build_delete_async_retry_failed_request( accept = "application/json" # Construct URL - url = '/lro/deleteasync/retry/failed' + url = "/lro/deleteasync/retry/failed" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -2184,7 +2184,7 @@ def build_delete_async_retrycanceled_request( accept = "application/json" # Construct URL - url = '/lro/deleteasync/retry/canceled' + url = "/lro/deleteasync/retry/canceled" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -2225,7 +2225,7 @@ def build_post200_with_payload_request( accept = "application/json" # Construct URL - url = '/lro/post/payload/200' + url = "/lro/post/payload/200" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -2286,7 +2286,7 @@ def build_post202_retry200_request( accept = "application/json" # Construct URL - url = '/lro/post/202/retry/200' + url = "/lro/post/202/retry/200" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -2367,7 +2367,7 @@ def build_post202_no_retry204_request( accept = "application/json" # Construct URL - url = '/lro/post/202/noretry/204' + url = "/lro/post/202/noretry/204" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -2423,7 +2423,7 @@ def build_post_double_headers_final_location_get_request( accept = "application/json" # Construct URL - url = '/lro/LROPostDoubleHeadersFinalLocationGet' + url = "/lro/LROPostDoubleHeadersFinalLocationGet" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -2477,7 +2477,7 @@ def build_post_double_headers_final_azure_header_get_request( accept = "application/json" # Construct URL - url = '/lro/LROPostDoubleHeadersFinalAzureHeaderGet' + url = "/lro/LROPostDoubleHeadersFinalAzureHeaderGet" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -2531,7 +2531,7 @@ def build_post_double_headers_final_azure_header_get_default_request( accept = "application/json" # Construct URL - url = '/lro/LROPostDoubleHeadersFinalAzureHeaderGetDefault' + url = "/lro/LROPostDoubleHeadersFinalAzureHeaderGetDefault" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -2611,7 +2611,7 @@ def build_post_async_retry_succeeded_request( accept = "application/json" # Construct URL - url = '/lro/postasync/retry/succeeded' + url = "/lro/postasync/retry/succeeded" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -2693,7 +2693,7 @@ def build_post_async_no_retry_succeeded_request( accept = "application/json" # Construct URL - url = '/lro/postasync/noretry/succeeded' + url = "/lro/postasync/noretry/succeeded" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -2757,7 +2757,7 @@ def build_post_async_retry_failed_request( accept = "application/json" # Construct URL - url = '/lro/postasync/retry/failed' + url = "/lro/postasync/retry/failed" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -2821,7 +2821,7 @@ def build_post_async_retrycanceled_request( accept = "application/json" # Construct URL - url = '/lro/postasync/retry/canceled' + url = "/lro/postasync/retry/canceled" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/azure/low-level/Expected/AcceptanceTests/LroLowLevel/lrolowlevel/rest/lrosads/_request_builders.py b/test/azure/low-level/Expected/AcceptanceTests/LroLowLevel/lrolowlevel/rest/lrosads/_request_builders.py index 3f6a8898ad9..2f6eefbc816 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/LroLowLevel/lrolowlevel/rest/lrosads/_request_builders.py +++ b/test/azure/low-level/Expected/AcceptanceTests/LroLowLevel/lrolowlevel/rest/lrosads/_request_builders.py @@ -86,7 +86,7 @@ def build_put_non_retry400_request( accept = "application/json" # Construct URL - url = '/lro/nonretryerror/put/400' + url = "/lro/nonretryerror/put/400" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -167,7 +167,7 @@ def build_put_non_retry201_creating400_request( accept = "application/json" # Construct URL - url = '/lro/nonretryerror/put/201/creating/400' + url = "/lro/nonretryerror/put/201/creating/400" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -248,7 +248,7 @@ def build_put_non_retry201_creating400_invalid_json_request( accept = "application/json" # Construct URL - url = '/lro/nonretryerror/put/201/creating/400/invalidjson' + url = "/lro/nonretryerror/put/201/creating/400/invalidjson" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -329,7 +329,7 @@ def build_put_async_relative_retry400_request( accept = "application/json" # Construct URL - url = '/lro/nonretryerror/putasync/retry/400' + url = "/lro/nonretryerror/putasync/retry/400" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -362,7 +362,7 @@ def build_delete_non_retry400_request( accept = "application/json" # Construct URL - url = '/lro/nonretryerror/delete/400' + url = "/lro/nonretryerror/delete/400" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -393,7 +393,7 @@ def build_delete202_non_retry400_request( accept = "application/json" # Construct URL - url = '/lro/nonretryerror/delete/202/retry/400' + url = "/lro/nonretryerror/delete/202/retry/400" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -425,7 +425,7 @@ def build_delete_async_relative_retry400_request( accept = "application/json" # Construct URL - url = '/lro/nonretryerror/deleteasync/retry/400' + url = "/lro/nonretryerror/deleteasync/retry/400" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -485,7 +485,7 @@ def build_post_non_retry400_request( accept = "application/json" # Construct URL - url = '/lro/nonretryerror/post/400' + url = "/lro/nonretryerror/post/400" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -547,7 +547,7 @@ def build_post202_non_retry400_request( accept = "application/json" # Construct URL - url = '/lro/nonretryerror/post/202/retry/400' + url = "/lro/nonretryerror/post/202/retry/400" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -610,7 +610,7 @@ def build_post_async_relative_retry400_request( accept = "application/json" # Construct URL - url = '/lro/nonretryerror/postasync/retry/400' + url = "/lro/nonretryerror/postasync/retry/400" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -690,7 +690,7 @@ def build_put_error201_no_provisioning_state_payload_request( accept = "application/json" # Construct URL - url = '/lro/error/put/201/noprovisioningstatepayload' + url = "/lro/error/put/201/noprovisioningstatepayload" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -772,7 +772,7 @@ def build_put_async_relative_retry_no_status_request( accept = "application/json" # Construct URL - url = '/lro/error/putasync/retry/nostatus' + url = "/lro/error/putasync/retry/nostatus" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -854,7 +854,7 @@ def build_put_async_relative_retry_no_status_payload_request( accept = "application/json" # Construct URL - url = '/lro/error/putasync/retry/nostatuspayload' + url = "/lro/error/putasync/retry/nostatuspayload" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -887,7 +887,7 @@ def build_delete204_succeeded_request( accept = "application/json" # Construct URL - url = '/lro/error/delete/204/nolocation' + url = "/lro/error/delete/204/nolocation" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -919,7 +919,7 @@ def build_delete_async_relative_retry_no_status_request( accept = "application/json" # Construct URL - url = '/lro/error/deleteasync/retry/nostatus' + url = "/lro/error/deleteasync/retry/nostatus" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -980,7 +980,7 @@ def build_post202_no_location_request( accept = "application/json" # Construct URL - url = '/lro/error/post/202/nolocation' + url = "/lro/error/post/202/nolocation" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1044,7 +1044,7 @@ def build_post_async_relative_retry_no_payload_request( accept = "application/json" # Construct URL - url = '/lro/error/postasync/retry/nopayload' + url = "/lro/error/postasync/retry/nopayload" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1125,7 +1125,7 @@ def build_put200_invalid_json_request( accept = "application/json" # Construct URL - url = '/lro/error/put/200/invalidjson' + url = "/lro/error/put/200/invalidjson" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1207,7 +1207,7 @@ def build_put_async_relative_retry_invalid_header_request( accept = "application/json" # Construct URL - url = '/lro/error/putasync/retry/invalidheader' + url = "/lro/error/putasync/retry/invalidheader" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1289,7 +1289,7 @@ def build_put_async_relative_retry_invalid_json_polling_request( accept = "application/json" # Construct URL - url = '/lro/error/putasync/retry/invalidjsonpolling' + url = "/lro/error/putasync/retry/invalidjsonpolling" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1323,7 +1323,7 @@ def build_delete202_retry_invalid_header_request( accept = "application/json" # Construct URL - url = '/lro/error/delete/202/retry/invalidheader' + url = "/lro/error/delete/202/retry/invalidheader" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1355,7 +1355,7 @@ def build_delete_async_relative_retry_invalid_header_request( accept = "application/json" # Construct URL - url = '/lro/error/deleteasync/retry/invalidheader' + url = "/lro/error/deleteasync/retry/invalidheader" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1387,7 +1387,7 @@ def build_delete_async_relative_retry_invalid_json_polling_request( accept = "application/json" # Construct URL - url = '/lro/error/deleteasync/retry/invalidjsonpolling' + url = "/lro/error/deleteasync/retry/invalidjsonpolling" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1448,7 +1448,7 @@ def build_post202_retry_invalid_header_request( accept = "application/json" # Construct URL - url = '/lro/error/post/202/retry/invalidheader' + url = "/lro/error/post/202/retry/invalidheader" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1512,7 +1512,7 @@ def build_post_async_relative_retry_invalid_header_request( accept = "application/json" # Construct URL - url = '/lro/error/postasync/retry/invalidheader' + url = "/lro/error/postasync/retry/invalidheader" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1576,7 +1576,7 @@ def build_post_async_relative_retry_invalid_json_polling_request( accept = "application/json" # Construct URL - url = '/lro/error/postasync/retry/invalidjsonpolling' + url = "/lro/error/postasync/retry/invalidjsonpolling" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/azure/low-level/Expected/AcceptanceTests/LroWithParameterizedEndpointsLowLevel/lrowithparameterizedendpointslowlevel/rest/_request_builders.py b/test/azure/low-level/Expected/AcceptanceTests/LroWithParameterizedEndpointsLowLevel/lrowithparameterizedendpointslowlevel/rest/_request_builders.py index f9a9bd950ab..ca1192f8377 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/LroWithParameterizedEndpointsLowLevel/lrowithparameterizedendpointslowlevel/rest/_request_builders.py +++ b/test/azure/low-level/Expected/AcceptanceTests/LroWithParameterizedEndpointsLowLevel/lrowithparameterizedendpointslowlevel/rest/_request_builders.py @@ -38,7 +38,7 @@ def build_poll_with_parameterized_endpoints_request( accept = "application/json" # Construct URL - url = '/lroParameterizedEndpoints' + url = "/lroParameterizedEndpoints" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -74,7 +74,7 @@ def build_poll_with_constant_parameterized_endpoints_request( accept = "application/json" # Construct URL - url = '/lroConstantParameterizedEndpoints/{constantParameter}' + url = "/lroConstantParameterizedEndpoints/{constantParameter}" path_format_arguments = { "constantParameter": _SERIALIZER.url("constant_parameter", constant_parameter, 'str', skip_quote=True), } diff --git a/test/azure/low-level/Expected/AcceptanceTests/PagingLowLevel/paginglowlevel/rest/paging/_request_builders.py b/test/azure/low-level/Expected/AcceptanceTests/PagingLowLevel/paginglowlevel/rest/paging/_request_builders.py index 4281a4148d8..9bf9b2676ad 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/PagingLowLevel/paginglowlevel/rest/paging/_request_builders.py +++ b/test/azure/low-level/Expected/AcceptanceTests/PagingLowLevel/paginglowlevel/rest/paging/_request_builders.py @@ -54,7 +54,7 @@ def build_get_no_item_name_pages_request( accept = "application/json" # Construct URL - url = '/paging/noitemname' + url = "/paging/noitemname" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -101,7 +101,7 @@ def build_get_null_next_link_name_pages_request( accept = "application/json" # Construct URL - url = '/paging/nullnextlink' + url = "/paging/nullnextlink" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -148,7 +148,7 @@ def build_get_single_pages_request( accept = "application/json" # Construct URL - url = '/paging/single' + url = "/paging/single" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -196,7 +196,7 @@ def build_first_response_empty_request( accept = "application/json" # Construct URL - url = '/paging/firstResponseEmpty/1' + url = "/paging/firstResponseEmpty/1" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -254,7 +254,7 @@ def build_get_multiple_pages_request( accept = "application/json" # Construct URL - url = '/paging/multiple' + url = "/paging/multiple" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -318,7 +318,7 @@ def build_get_with_query_params_request( accept = "application/json" # Construct URL - url = '/paging/multiple/getWithQueryParams' + url = "/paging/multiple/getWithQueryParams" # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -376,7 +376,7 @@ def build_next_operation_with_query_params_request( accept = "application/json" # Construct URL - url = '/paging/multiple/nextOperationWithQueryParams' + url = "/paging/multiple/nextOperationWithQueryParams" # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -439,7 +439,7 @@ def build_get_odata_multiple_pages_request( accept = "application/json" # Construct URL - url = '/paging/multiple/odata' + url = "/paging/multiple/odata" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -506,7 +506,7 @@ def build_get_multiple_pages_with_offset_request( accept = "application/json" # Construct URL - url = '/paging/multiple/withpath/{offset}' + url = "/paging/multiple/withpath/{offset}" path_format_arguments = { "offset": _SERIALIZER.url("offset", offset, 'int'), } @@ -565,7 +565,7 @@ def build_get_multiple_pages_retry_first_request( accept = "application/json" # Construct URL - url = '/paging/multiple/retryfirst' + url = "/paging/multiple/retryfirst" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -613,7 +613,7 @@ def build_get_multiple_pages_retry_second_request( accept = "application/json" # Construct URL - url = '/paging/multiple/retrysecond' + url = "/paging/multiple/retrysecond" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -660,7 +660,7 @@ def build_get_single_pages_failure_request( accept = "application/json" # Construct URL - url = '/paging/single/failure' + url = "/paging/single/failure" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -707,7 +707,7 @@ def build_get_multiple_pages_failure_request( accept = "application/json" # Construct URL - url = '/paging/multiple/failure' + url = "/paging/multiple/failure" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -754,7 +754,7 @@ def build_get_multiple_pages_failure_uri_request( accept = "application/json" # Construct URL - url = '/paging/multiple/failureuri' + url = "/paging/multiple/failureuri" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -808,7 +808,7 @@ def build_get_multiple_pages_fragment_next_link_request( accept = "application/json" # Construct URL - url = '/paging/multiple/fragment/{tenant}' + url = "/paging/multiple/fragment/{tenant}" path_format_arguments = { "tenant": _SERIALIZER.url("tenant", tenant, 'str'), } @@ -872,7 +872,7 @@ def build_get_multiple_pages_fragment_with_grouping_next_link_request( accept = "application/json" # Construct URL - url = '/paging/multiple/fragmentwithgrouping/{tenant}' + url = "/paging/multiple/fragmentwithgrouping/{tenant}" path_format_arguments = { "tenant": _SERIALIZER.url("tenant", tenant, 'str'), } @@ -940,7 +940,7 @@ def build_get_multiple_pages_lro_request( accept = "application/json" # Construct URL - url = '/paging/multiple/lro' + url = "/paging/multiple/lro" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1003,7 +1003,7 @@ def build_next_fragment_request( accept = "application/json" # Construct URL - url = '/paging/multiple/fragment/{tenant}/{nextLink}' + url = "/paging/multiple/fragment/{tenant}/{nextLink}" path_format_arguments = { "tenant": _SERIALIZER.url("tenant", tenant, 'str'), "nextLink": _SERIALIZER.url("next_link", next_link, 'str', skip_quote=True), @@ -1071,7 +1071,7 @@ def build_next_fragment_with_grouping_request( accept = "application/json" # Construct URL - url = '/paging/multiple/fragmentwithgrouping/{tenant}/{nextLink}' + url = "/paging/multiple/fragmentwithgrouping/{tenant}/{nextLink}" path_format_arguments = { "tenant": _SERIALIZER.url("tenant", tenant, 'str'), "nextLink": _SERIALIZER.url("next_link", next_link, 'str', skip_quote=True), @@ -1130,7 +1130,7 @@ def build_get_paging_model_with_item_name_with_xms_client_name_request( accept = "application/json" # Construct URL - url = '/paging/itemNameWithXMSClientName' + url = "/paging/itemNameWithXMSClientName" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/azure/low-level/Expected/AcceptanceTests/StorageManagementClientLowLevel/storagelowlevel/rest/storage_accounts/_request_builders.py b/test/azure/low-level/Expected/AcceptanceTests/StorageManagementClientLowLevel/storagelowlevel/rest/storage_accounts/_request_builders.py index 9c88d678e87..d60791a887c 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/StorageManagementClientLowLevel/storagelowlevel/rest/storage_accounts/_request_builders.py +++ b/test/azure/low-level/Expected/AcceptanceTests/StorageManagementClientLowLevel/storagelowlevel/rest/storage_accounts/_request_builders.py @@ -80,7 +80,7 @@ def build_check_name_availability_request( accept = "application/json, text/json" # Construct URL - url = '/subscriptions/{subscriptionId}/providers/Microsoft.Storage/checkNameAvailability' + url = "/subscriptions/{subscriptionId}/providers/Microsoft.Storage/checkNameAvailability" path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), } @@ -233,7 +233,7 @@ def build_create_request( accept = "application/json, text/json" # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}' # pylint: disable=line-too-long + url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}" # pylint: disable=line-too-long path_format_arguments = { "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str'), "accountName": _SERIALIZER.url("account_name", account_name, 'str'), @@ -291,7 +291,7 @@ def build_delete_request( api_version = kwargs.pop('api_version', "2015-05-01-preview") # type: str # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}' # pylint: disable=line-too-long + url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}" # pylint: disable=line-too-long path_format_arguments = { "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str'), "accountName": _SERIALIZER.url("account_name", account_name, 'str'), @@ -415,7 +415,7 @@ def build_get_properties_request( accept = "application/json, text/json" # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}' # pylint: disable=line-too-long + url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}" # pylint: disable=line-too-long path_format_arguments = { "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str'), "accountName": _SERIALIZER.url("account_name", account_name, 'str'), @@ -582,7 +582,7 @@ def build_update_request( accept = "application/json, text/json" # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}' # pylint: disable=line-too-long + url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}" # pylint: disable=line-too-long path_format_arguments = { "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str'), "accountName": _SERIALIZER.url("account_name", account_name, 'str'), @@ -648,7 +648,7 @@ def build_list_keys_request( accept = "application/json, text/json" # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/listKeys' # pylint: disable=line-too-long + url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/listKeys" # pylint: disable=line-too-long path_format_arguments = { "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str'), "accountName": _SERIALIZER.url("account_name", account_name, 'str'), @@ -784,7 +784,7 @@ def build_list_request( accept = "application/json, text/json" # Construct URL - url = '/subscriptions/{subscriptionId}/providers/Microsoft.Storage/storageAccounts' + url = "/subscriptions/{subscriptionId}/providers/Microsoft.Storage/storageAccounts" path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), } @@ -921,7 +921,7 @@ def build_list_by_resource_group_request( accept = "application/json, text/json" # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts' + url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts" path_format_arguments = { "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str'), "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), @@ -998,7 +998,7 @@ def build_regenerate_key_request( accept = "application/json, text/json" # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/regenerateKey' # pylint: disable=line-too-long + url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/regenerateKey" # pylint: disable=line-too-long path_format_arguments = { "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str'), "accountName": _SERIALIZER.url("account_name", account_name, 'str'), diff --git a/test/azure/low-level/Expected/AcceptanceTests/StorageManagementClientLowLevel/storagelowlevel/rest/usage/_request_builders.py b/test/azure/low-level/Expected/AcceptanceTests/StorageManagementClientLowLevel/storagelowlevel/rest/usage/_request_builders.py index b5ba2edd073..0e1771e8be4 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/StorageManagementClientLowLevel/storagelowlevel/rest/usage/_request_builders.py +++ b/test/azure/low-level/Expected/AcceptanceTests/StorageManagementClientLowLevel/storagelowlevel/rest/usage/_request_builders.py @@ -68,7 +68,7 @@ def build_list_request( accept = "application/json, text/json" # Construct URL - url = '/subscriptions/{subscriptionId}/providers/Microsoft.Storage/usages' + url = "/subscriptions/{subscriptionId}/providers/Microsoft.Storage/usages" path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), } diff --git a/test/azure/low-level/Expected/AcceptanceTests/SubscriptionIdApiVersionLowLevel/subscriptionidapiversionlowlevel/rest/group/_request_builders.py b/test/azure/low-level/Expected/AcceptanceTests/SubscriptionIdApiVersionLowLevel/subscriptionidapiversionlowlevel/rest/group/_request_builders.py index a48788dfe0c..9eab54a78e2 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/SubscriptionIdApiVersionLowLevel/subscriptionidapiversionlowlevel/rest/group/_request_builders.py +++ b/test/azure/low-level/Expected/AcceptanceTests/SubscriptionIdApiVersionLowLevel/subscriptionidapiversionlowlevel/rest/group/_request_builders.py @@ -55,7 +55,7 @@ def build_get_sample_resource_group_request( accept = "application/json" # Construct URL - url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' + url = "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}" path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str'), diff --git a/test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenInitialLowLevel/llcservicedriveninitiallowlevel/rest/params/_request_builders.py b/test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenInitialLowLevel/llcservicedriveninitiallowlevel/rest/params/_request_builders.py index 66c784b9c74..91a98fd0e1a 100644 --- a/test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenInitialLowLevel/llcservicedriveninitiallowlevel/rest/params/_request_builders.py +++ b/test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenInitialLowLevel/llcservicedriveninitiallowlevel/rest/params/_request_builders.py @@ -39,7 +39,7 @@ def build_head_no_params_request( accept = "application/json" # Construct URL - url = '/serviceDriven/parameters' + url = "/serviceDriven/parameters" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -74,7 +74,7 @@ def build_get_required_request( accept = "application/json" # Construct URL - url = '/serviceDriven/parameters' + url = "/serviceDriven/parameters" # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -117,7 +117,7 @@ def build_put_required_optional_request( accept = "application/json" # Construct URL - url = '/serviceDriven/parameters' + url = "/serviceDriven/parameters" # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -173,7 +173,7 @@ def build_post_parameters_request( accept = "application/json" # Construct URL - url = '/serviceDriven/parameters' + url = "/serviceDriven/parameters" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -210,7 +210,7 @@ def build_get_optional_request( accept = "application/json" # Construct URL - url = '/serviceDriven/moreParameters' + url = "/serviceDriven/moreParameters" # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] diff --git a/test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneLowLevel/llcservicedrivenupdateonelowlevel/rest/params/_request_builders.py b/test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneLowLevel/llcservicedrivenupdateonelowlevel/rest/params/_request_builders.py index 9a2109deefd..9b3193eb36e 100644 --- a/test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneLowLevel/llcservicedrivenupdateonelowlevel/rest/params/_request_builders.py +++ b/test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneLowLevel/llcservicedrivenupdateonelowlevel/rest/params/_request_builders.py @@ -43,7 +43,7 @@ def build_head_no_params_request( accept = "application/json" # Construct URL - url = '/serviceDriven/parameters' + url = "/serviceDriven/parameters" # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -87,7 +87,7 @@ def build_get_required_request( accept = "application/json" # Construct URL - url = '/serviceDriven/parameters' + url = "/serviceDriven/parameters" # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -135,7 +135,7 @@ def build_put_required_optional_request( accept = "application/json" # Construct URL - url = '/serviceDriven/parameters' + url = "/serviceDriven/parameters" # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -193,7 +193,7 @@ def build_post_parameters_request( accept = "application/json" # Construct URL - url = '/serviceDriven/parameters' + url = "/serviceDriven/parameters" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -225,7 +225,7 @@ def build_delete_parameters_request( """ # Construct URL - url = '/serviceDriven/parameters' + url = "/serviceDriven/parameters" return HttpRequest( method="DELETE", @@ -258,7 +258,7 @@ def build_get_optional_request( accept = "application/json" # Construct URL - url = '/serviceDriven/moreParameters' + url = "/serviceDriven/moreParameters" # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -297,7 +297,7 @@ def build_get_new_operation_request( accept = "application/json" # Construct URL - url = '/serviceDriven/newPath' + url = "/serviceDriven/newPath" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v0/aio/operations/_operation_group_one_operations.py b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v0/aio/operations/_operation_group_one_operations.py index ac25a77a6db..fb098f7f48a 100644 --- a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v0/aio/operations/_operation_group_one_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v0/aio/operations/_operation_group_one_operations.py @@ -86,5 +86,5 @@ async def test_two( if cls: return cls(pipeline_response, None, {}) - test_two.metadata = {'url': '/multiapi/one/testTwoEndpoint'} # type: ignore + test_two.metadata = {'url': "/multiapi/one/testTwoEndpoint"} # type: ignore diff --git a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v0/operations/_operation_group_one_operations.py b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v0/operations/_operation_group_one_operations.py index b3fdab613e3..6d0546223e7 100644 --- a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v0/operations/_operation_group_one_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v0/operations/_operation_group_one_operations.py @@ -37,7 +37,7 @@ def build_test_two_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/multiapi/one/testTwoEndpoint') + url = kwargs.pop("template_url", "/multiapi/one/testTwoEndpoint") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -122,5 +122,5 @@ def test_two( if cls: return cls(pipeline_response, None, {}) - test_two.metadata = {'url': '/multiapi/one/testTwoEndpoint'} # type: ignore + test_two.metadata = {'url': "/multiapi/one/testTwoEndpoint"} # type: ignore diff --git a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v1/aio/operations/_multiapi_service_client_operations.py b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v1/aio/operations/_multiapi_service_client_operations.py index 77ff4709fd7..c838bdfd75b 100644 --- a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v1/aio/operations/_multiapi_service_client_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v1/aio/operations/_multiapi_service_client_operations.py @@ -78,7 +78,7 @@ async def test_one( if cls: return cls(pipeline_response, None, {}) - test_one.metadata = {'url': '/multiapi/testOneEndpoint'} # type: ignore + test_one.metadata = {'url': "/multiapi/testOneEndpoint"} # type: ignore async def _test_lro_initial( @@ -127,7 +127,7 @@ async def _test_lro_initial( return deserialized - _test_lro_initial.metadata = {'url': '/multiapi/lro'} # type: ignore + _test_lro_initial.metadata = {'url': "/multiapi/lro"} # type: ignore @distributed_trace_async @@ -190,7 +190,7 @@ def get_long_running_output(pipeline_response): ) return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_test_lro.metadata = {'url': '/multiapi/lro'} # type: ignore + begin_test_lro.metadata = {'url': "/multiapi/lro"} # type: ignore async def _test_lro_and_paging_initial( self, @@ -237,7 +237,7 @@ async def _test_lro_and_paging_initial( return deserialized - _test_lro_and_paging_initial.metadata = {'url': '/multiapi/lroAndPaging'} # type: ignore + _test_lro_and_paging_initial.metadata = {'url': "/multiapi/lroAndPaging"} # type: ignore @distributed_trace_async @@ -370,7 +370,7 @@ async def internal_get_next(next_link=None): ) return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_test_lro_and_paging.metadata = {'url': '/multiapi/lroAndPaging'} # type: ignore + begin_test_lro_and_paging.metadata = {'url': "/multiapi/lroAndPaging"} # type: ignore @distributed_trace_async @@ -420,5 +420,5 @@ async def test_different_calls( if cls: return cls(pipeline_response, None, {}) - test_different_calls.metadata = {'url': '/multiapi/testDifferentCalls'} # type: ignore + test_different_calls.metadata = {'url': "/multiapi/testDifferentCalls"} # type: ignore diff --git a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v1/aio/operations/_operation_group_one_operations.py b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v1/aio/operations/_operation_group_one_operations.py index 068c7926c32..4c7a0d801c1 100644 --- a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v1/aio/operations/_operation_group_one_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v1/aio/operations/_operation_group_one_operations.py @@ -86,5 +86,5 @@ async def test_two( if cls: return cls(pipeline_response, None, {}) - test_two.metadata = {'url': '/multiapi/one/testTwoEndpoint'} # type: ignore + test_two.metadata = {'url': "/multiapi/one/testTwoEndpoint"} # type: ignore 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 891dd6493b0..9fc062d72f0 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 @@ -42,7 +42,7 @@ def build_test_one_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/multiapi/testOneEndpoint') + url = kwargs.pop("template_url", "/multiapi/testOneEndpoint") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -72,7 +72,7 @@ def build_test_lro_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/multiapi/lro') + url = kwargs.pop("template_url", "/multiapi/lro") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -98,7 +98,7 @@ def build_test_lro_and_paging_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/multiapi/lroAndPaging') + url = kwargs.pop("template_url", "/multiapi/lroAndPaging") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -127,7 +127,7 @@ def build_test_different_calls_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/multiapi/testDifferentCalls') + url = kwargs.pop("template_url", "/multiapi/testDifferentCalls") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -201,7 +201,7 @@ def test_one( if cls: return cls(pipeline_response, None, {}) - test_one.metadata = {'url': '/multiapi/testOneEndpoint'} # type: ignore + test_one.metadata = {'url': "/multiapi/testOneEndpoint"} # type: ignore def _test_lro_initial( @@ -251,7 +251,7 @@ def _test_lro_initial( return deserialized - _test_lro_initial.metadata = {'url': '/multiapi/lro'} # type: ignore + _test_lro_initial.metadata = {'url': "/multiapi/lro"} # type: ignore @distributed_trace @@ -314,7 +314,7 @@ def get_long_running_output(pipeline_response): ) return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_test_lro.metadata = {'url': '/multiapi/lro'} # type: ignore + begin_test_lro.metadata = {'url': "/multiapi/lro"} # type: ignore def _test_lro_and_paging_initial( self, @@ -362,7 +362,7 @@ def _test_lro_and_paging_initial( return deserialized - _test_lro_and_paging_initial.metadata = {'url': '/multiapi/lroAndPaging'} # type: ignore + _test_lro_and_paging_initial.metadata = {'url': "/multiapi/lroAndPaging"} # type: ignore @distributed_trace @@ -496,7 +496,7 @@ def internal_get_next(next_link=None): ) return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_test_lro_and_paging.metadata = {'url': '/multiapi/lroAndPaging'} # type: ignore + begin_test_lro_and_paging.metadata = {'url': "/multiapi/lroAndPaging"} # type: ignore @distributed_trace @@ -547,5 +547,5 @@ def test_different_calls( if cls: return cls(pipeline_response, None, {}) - test_different_calls.metadata = {'url': '/multiapi/testDifferentCalls'} # type: ignore + test_different_calls.metadata = {'url': "/multiapi/testDifferentCalls"} # type: ignore 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 5ff97df9edf..196930a3df6 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 @@ -37,7 +37,7 @@ def build_test_two_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/multiapi/one/testTwoEndpoint') + url = kwargs.pop("template_url", "/multiapi/one/testTwoEndpoint") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -122,5 +122,5 @@ def test_two( if cls: return cls(pipeline_response, None, {}) - test_two.metadata = {'url': '/multiapi/one/testTwoEndpoint'} # type: ignore + test_two.metadata = {'url': "/multiapi/one/testTwoEndpoint"} # type: ignore diff --git a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/aio/operations/_multiapi_service_client_operations.py b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/aio/operations/_multiapi_service_client_operations.py index 2b78a21d342..5451ac06d86 100644 --- a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/aio/operations/_multiapi_service_client_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/aio/operations/_multiapi_service_client_operations.py @@ -78,7 +78,7 @@ async def test_one( return deserialized - test_one.metadata = {'url': '/multiapi/testOneEndpoint'} # type: ignore + test_one.metadata = {'url': "/multiapi/testOneEndpoint"} # type: ignore @distributed_trace_async @@ -132,5 +132,5 @@ async def test_different_calls( if cls: return cls(pipeline_response, None, {}) - test_different_calls.metadata = {'url': '/multiapi/testDifferentCalls'} # type: ignore + test_different_calls.metadata = {'url': "/multiapi/testDifferentCalls"} # type: ignore diff --git a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/aio/operations/_operation_group_one_operations.py b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/aio/operations/_operation_group_one_operations.py index dadb7997b68..45e651001a8 100644 --- a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/aio/operations/_operation_group_one_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/aio/operations/_operation_group_one_operations.py @@ -100,7 +100,7 @@ async def test_two( return deserialized - test_two.metadata = {'url': '/multiapi/one/testTwoEndpoint'} # type: ignore + test_two.metadata = {'url': "/multiapi/one/testTwoEndpoint"} # type: ignore @distributed_trace_async @@ -146,5 +146,5 @@ async def test_three( if cls: return cls(pipeline_response, None, {}) - test_three.metadata = {'url': '/multiapi/one/testThreeEndpoint'} # type: ignore + test_three.metadata = {'url': "/multiapi/one/testThreeEndpoint"} # type: ignore diff --git a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/aio/operations/_operation_group_two_operations.py b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/aio/operations/_operation_group_two_operations.py index c19aac44073..6e3c2f6acba 100644 --- a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/aio/operations/_operation_group_two_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/aio/operations/_operation_group_two_operations.py @@ -90,5 +90,5 @@ async def test_four( if cls: return cls(pipeline_response, None, {}) - test_four.metadata = {'url': '/multiapi/two/testFourEndpoint'} # type: ignore + test_four.metadata = {'url': "/multiapi/two/testFourEndpoint"} # type: ignore 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 24e9ff37ded..05d0d9d35f4 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 @@ -39,7 +39,7 @@ def build_test_one_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/multiapi/testOneEndpoint') + url = kwargs.pop("template_url", "/multiapi/testOneEndpoint") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -71,7 +71,7 @@ def build_test_different_calls_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/multiapi/testDifferentCalls') + url = kwargs.pop("template_url", "/multiapi/testDifferentCalls") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -151,7 +151,7 @@ def test_one( return deserialized - test_one.metadata = {'url': '/multiapi/testOneEndpoint'} # type: ignore + test_one.metadata = {'url': "/multiapi/testOneEndpoint"} # type: ignore @distributed_trace @@ -206,5 +206,5 @@ def test_different_calls( if cls: return cls(pipeline_response, None, {}) - test_different_calls.metadata = {'url': '/multiapi/testDifferentCalls'} # type: ignore + test_different_calls.metadata = {'url': "/multiapi/testDifferentCalls"} # type: ignore 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 63c9287db1f..0a0da98b057 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 @@ -38,7 +38,7 @@ def build_test_two_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/multiapi/one/testTwoEndpoint') + url = kwargs.pop("template_url", "/multiapi/one/testTwoEndpoint") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -67,7 +67,7 @@ def build_test_three_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/multiapi/one/testThreeEndpoint') + url = kwargs.pop("template_url", "/multiapi/one/testThreeEndpoint") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -166,7 +166,7 @@ def test_two( return deserialized - test_two.metadata = {'url': '/multiapi/one/testTwoEndpoint'} # type: ignore + test_two.metadata = {'url': "/multiapi/one/testTwoEndpoint"} # type: ignore @distributed_trace @@ -213,5 +213,5 @@ def test_three( if cls: return cls(pipeline_response, None, {}) - test_three.metadata = {'url': '/multiapi/one/testThreeEndpoint'} # type: ignore + test_three.metadata = {'url': "/multiapi/one/testThreeEndpoint"} # type: ignore 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 6fd9214b181..f87bc2b4cbc 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 @@ -38,7 +38,7 @@ def build_test_four_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/multiapi/two/testFourEndpoint') + url = kwargs.pop("template_url", "/multiapi/two/testFourEndpoint") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -128,5 +128,5 @@ def test_four( if cls: return cls(pipeline_response, None, {}) - test_four.metadata = {'url': '/multiapi/two/testFourEndpoint'} # type: ignore + test_four.metadata = {'url': "/multiapi/two/testFourEndpoint"} # type: ignore diff --git a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/aio/operations/_multiapi_service_client_operations.py b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/aio/operations/_multiapi_service_client_operations.py index 27c8685077f..b56dbd77acf 100644 --- a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/aio/operations/_multiapi_service_client_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/aio/operations/_multiapi_service_client_operations.py @@ -88,7 +88,7 @@ async def get_next(next_link=None): return AsyncItemPaged( get_next, extract_data ) - test_paging.metadata = {'url': '/multiapi/paging'} # type: ignore + test_paging.metadata = {'url': "/multiapi/paging"} # type: ignore @distributed_trace_async async def test_different_calls( @@ -145,5 +145,5 @@ async def test_different_calls( if cls: return cls(pipeline_response, None, {}) - test_different_calls.metadata = {'url': '/multiapi/testDifferentCalls'} # type: ignore + test_different_calls.metadata = {'url': "/multiapi/testDifferentCalls"} # type: ignore diff --git a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/aio/operations/_operation_group_one_operations.py b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/aio/operations/_operation_group_one_operations.py index ce46fdc275a..8c43ed67f01 100644 --- a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/aio/operations/_operation_group_one_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/aio/operations/_operation_group_one_operations.py @@ -100,5 +100,5 @@ async def test_two( return deserialized - test_two.metadata = {'url': '/multiapi/one/testTwoEndpoint'} # type: ignore + test_two.metadata = {'url': "/multiapi/one/testTwoEndpoint"} # type: ignore diff --git a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/aio/operations/_operation_group_two_operations.py b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/aio/operations/_operation_group_two_operations.py index 8363114b58a..61abcd5ec84 100644 --- a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/aio/operations/_operation_group_two_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/aio/operations/_operation_group_two_operations.py @@ -108,7 +108,7 @@ async def test_four( if cls: return cls(pipeline_response, None, {}) - test_four.metadata = {'url': '/multiapi/two/testFourEndpoint'} # type: ignore + test_four.metadata = {'url': "/multiapi/two/testFourEndpoint"} # type: ignore @distributed_trace_async @@ -154,5 +154,5 @@ async def test_five( if cls: return cls(pipeline_response, None, {}) - test_five.metadata = {'url': '/multiapi/two/testFiveEndpoint'} # type: ignore + test_five.metadata = {'url': "/multiapi/two/testFiveEndpoint"} # type: ignore 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 0a6886af27b..b0d185f88bd 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 @@ -36,7 +36,7 @@ def build_test_paging_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/multiapi/paging') + url = kwargs.pop("template_url", "/multiapi/paging") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -61,7 +61,7 @@ def build_test_different_calls_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/multiapi/testDifferentCalls') + url = kwargs.pop("template_url", "/multiapi/testDifferentCalls") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -151,7 +151,7 @@ def get_next(next_link=None): return ItemPaged( get_next, extract_data ) - test_paging.metadata = {'url': '/multiapi/paging'} # type: ignore + test_paging.metadata = {'url': "/multiapi/paging"} # type: ignore @distributed_trace def test_different_calls( @@ -209,5 +209,5 @@ def test_different_calls( if cls: return cls(pipeline_response, None, {}) - test_different_calls.metadata = {'url': '/multiapi/testDifferentCalls'} # type: ignore + test_different_calls.metadata = {'url': "/multiapi/testDifferentCalls"} # type: ignore 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 6977e6f3b88..ce033ba00a8 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 @@ -38,7 +38,7 @@ def build_test_two_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/multiapi/one/testTwoEndpoint') + url = kwargs.pop("template_url", "/multiapi/one/testTwoEndpoint") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -139,5 +139,5 @@ def test_two( return deserialized - test_two.metadata = {'url': '/multiapi/one/testTwoEndpoint'} # type: ignore + test_two.metadata = {'url': "/multiapi/one/testTwoEndpoint"} # type: ignore 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 30439b77682..8fb42a797db 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 @@ -38,7 +38,7 @@ def build_test_four_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/multiapi/two/testFourEndpoint') + url = kwargs.pop("template_url", "/multiapi/two/testFourEndpoint") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -67,7 +67,7 @@ def build_test_five_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/multiapi/two/testFiveEndpoint') + url = kwargs.pop("template_url", "/multiapi/two/testFiveEndpoint") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -174,7 +174,7 @@ def test_four( if cls: return cls(pipeline_response, None, {}) - test_four.metadata = {'url': '/multiapi/two/testFourEndpoint'} # type: ignore + test_four.metadata = {'url': "/multiapi/two/testFourEndpoint"} # type: ignore @distributed_trace @@ -221,5 +221,5 @@ def test_five( if cls: return cls(pipeline_response, None, {}) - test_five.metadata = {'url': '/multiapi/two/testFiveEndpoint'} # type: ignore + test_five.metadata = {'url': "/multiapi/two/testFiveEndpoint"} # type: ignore diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v1/aio/operations/_multiapi_service_client_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v1/aio/operations/_multiapi_service_client_operations.py index 26f6722d8cd..8a187a1a11e 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v1/aio/operations/_multiapi_service_client_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v1/aio/operations/_multiapi_service_client_operations.py @@ -78,7 +78,7 @@ async def test_one( if cls: return cls(pipeline_response, None, {}) - test_one.metadata = {'url': '/multiapi/testOneEndpoint'} # type: ignore + test_one.metadata = {'url': "/multiapi/testOneEndpoint"} # type: ignore async def _test_lro_initial( @@ -127,7 +127,7 @@ async def _test_lro_initial( return deserialized - _test_lro_initial.metadata = {'url': '/multiapi/lro'} # type: ignore + _test_lro_initial.metadata = {'url': "/multiapi/lro"} # type: ignore @distributed_trace_async @@ -190,7 +190,7 @@ def get_long_running_output(pipeline_response): ) return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_test_lro.metadata = {'url': '/multiapi/lro'} # type: ignore + begin_test_lro.metadata = {'url': "/multiapi/lro"} # type: ignore async def _test_lro_and_paging_initial( self, @@ -237,7 +237,7 @@ async def _test_lro_and_paging_initial( return deserialized - _test_lro_and_paging_initial.metadata = {'url': '/multiapi/lroAndPaging'} # type: ignore + _test_lro_and_paging_initial.metadata = {'url': "/multiapi/lroAndPaging"} # type: ignore @distributed_trace_async @@ -371,7 +371,7 @@ async def internal_get_next(next_link=None): ) return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_test_lro_and_paging.metadata = {'url': '/multiapi/lroAndPaging'} # type: ignore + begin_test_lro_and_paging.metadata = {'url': "/multiapi/lroAndPaging"} # type: ignore @distributed_trace_async @@ -421,5 +421,5 @@ async def test_different_calls( if cls: return cls(pipeline_response, None, {}) - test_different_calls.metadata = {'url': '/multiapi/testDifferentCalls'} # type: ignore + test_different_calls.metadata = {'url': "/multiapi/testDifferentCalls"} # type: ignore diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v1/aio/operations/_operation_group_one_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v1/aio/operations/_operation_group_one_operations.py index 69b5dbf4622..074f7c0f1b3 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v1/aio/operations/_operation_group_one_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v1/aio/operations/_operation_group_one_operations.py @@ -86,5 +86,5 @@ async def test_two( if cls: return cls(pipeline_response, None, {}) - test_two.metadata = {'url': '/multiapi/one/testTwoEndpoint'} # type: ignore + test_two.metadata = {'url': "/multiapi/one/testTwoEndpoint"} # type: ignore diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v1/operations/_multiapi_service_client_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v1/operations/_multiapi_service_client_operations.py index b2394652431..06701e66d5b 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v1/operations/_multiapi_service_client_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v1/operations/_multiapi_service_client_operations.py @@ -42,7 +42,7 @@ def build_test_one_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/multiapi/testOneEndpoint') + url = kwargs.pop("template_url", "/multiapi/testOneEndpoint") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -72,7 +72,7 @@ def build_test_lro_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/multiapi/lro') + url = kwargs.pop("template_url", "/multiapi/lro") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -98,7 +98,7 @@ def build_test_lro_and_paging_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/multiapi/lroAndPaging') + url = kwargs.pop("template_url", "/multiapi/lroAndPaging") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -127,7 +127,7 @@ def build_test_different_calls_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/multiapi/testDifferentCalls') + url = kwargs.pop("template_url", "/multiapi/testDifferentCalls") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -201,7 +201,7 @@ def test_one( if cls: return cls(pipeline_response, None, {}) - test_one.metadata = {'url': '/multiapi/testOneEndpoint'} # type: ignore + test_one.metadata = {'url': "/multiapi/testOneEndpoint"} # type: ignore def _test_lro_initial( @@ -251,7 +251,7 @@ def _test_lro_initial( return deserialized - _test_lro_initial.metadata = {'url': '/multiapi/lro'} # type: ignore + _test_lro_initial.metadata = {'url': "/multiapi/lro"} # type: ignore @distributed_trace @@ -314,7 +314,7 @@ def get_long_running_output(pipeline_response): ) return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_test_lro.metadata = {'url': '/multiapi/lro'} # type: ignore + begin_test_lro.metadata = {'url': "/multiapi/lro"} # type: ignore def _test_lro_and_paging_initial( self, @@ -362,7 +362,7 @@ def _test_lro_and_paging_initial( return deserialized - _test_lro_and_paging_initial.metadata = {'url': '/multiapi/lroAndPaging'} # type: ignore + _test_lro_and_paging_initial.metadata = {'url': "/multiapi/lroAndPaging"} # type: ignore @distributed_trace @@ -497,7 +497,7 @@ def internal_get_next(next_link=None): ) return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_test_lro_and_paging.metadata = {'url': '/multiapi/lroAndPaging'} # type: ignore + begin_test_lro_and_paging.metadata = {'url': "/multiapi/lroAndPaging"} # type: ignore @distributed_trace @@ -548,5 +548,5 @@ def test_different_calls( if cls: return cls(pipeline_response, None, {}) - test_different_calls.metadata = {'url': '/multiapi/testDifferentCalls'} # type: ignore + test_different_calls.metadata = {'url': "/multiapi/testDifferentCalls"} # type: ignore diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v1/operations/_operation_group_one_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v1/operations/_operation_group_one_operations.py index d7625ad974c..2914fea40e3 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v1/operations/_operation_group_one_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v1/operations/_operation_group_one_operations.py @@ -37,7 +37,7 @@ def build_test_two_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/multiapi/one/testTwoEndpoint') + url = kwargs.pop("template_url", "/multiapi/one/testTwoEndpoint") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -122,5 +122,5 @@ def test_two( if cls: return cls(pipeline_response, None, {}) - test_two.metadata = {'url': '/multiapi/one/testTwoEndpoint'} # type: ignore + test_two.metadata = {'url': "/multiapi/one/testTwoEndpoint"} # type: ignore diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/aio/operations/_multiapi_service_client_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/aio/operations/_multiapi_service_client_operations.py index 1a454b06639..7f17e8d1005 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/aio/operations/_multiapi_service_client_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/aio/operations/_multiapi_service_client_operations.py @@ -78,7 +78,7 @@ async def test_one( return deserialized - test_one.metadata = {'url': '/multiapi/testOneEndpoint'} # type: ignore + test_one.metadata = {'url': "/multiapi/testOneEndpoint"} # type: ignore @distributed_trace_async @@ -132,5 +132,5 @@ async def test_different_calls( if cls: return cls(pipeline_response, None, {}) - test_different_calls.metadata = {'url': '/multiapi/testDifferentCalls'} # type: ignore + test_different_calls.metadata = {'url': "/multiapi/testDifferentCalls"} # type: ignore diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/aio/operations/_operation_group_one_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/aio/operations/_operation_group_one_operations.py index 7d0aa89f996..801258b3b22 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/aio/operations/_operation_group_one_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/aio/operations/_operation_group_one_operations.py @@ -100,7 +100,7 @@ async def test_two( return deserialized - test_two.metadata = {'url': '/multiapi/one/testTwoEndpoint'} # type: ignore + test_two.metadata = {'url': "/multiapi/one/testTwoEndpoint"} # type: ignore @distributed_trace_async @@ -146,5 +146,5 @@ async def test_three( if cls: return cls(pipeline_response, None, {}) - test_three.metadata = {'url': '/multiapi/one/testThreeEndpoint'} # type: ignore + test_three.metadata = {'url': "/multiapi/one/testThreeEndpoint"} # type: ignore diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/aio/operations/_operation_group_two_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/aio/operations/_operation_group_two_operations.py index 29e320adc9f..ca418ac98c0 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/aio/operations/_operation_group_two_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/aio/operations/_operation_group_two_operations.py @@ -90,5 +90,5 @@ async def test_four( if cls: return cls(pipeline_response, None, {}) - test_four.metadata = {'url': '/multiapi/two/testFourEndpoint'} # type: ignore + test_four.metadata = {'url': "/multiapi/two/testFourEndpoint"} # type: ignore diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/operations/_multiapi_service_client_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/operations/_multiapi_service_client_operations.py index 6b20936fd36..fef3a0ba9ef 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/operations/_multiapi_service_client_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/operations/_multiapi_service_client_operations.py @@ -39,7 +39,7 @@ def build_test_one_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/multiapi/testOneEndpoint') + url = kwargs.pop("template_url", "/multiapi/testOneEndpoint") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -71,7 +71,7 @@ def build_test_different_calls_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/multiapi/testDifferentCalls') + url = kwargs.pop("template_url", "/multiapi/testDifferentCalls") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -151,7 +151,7 @@ def test_one( return deserialized - test_one.metadata = {'url': '/multiapi/testOneEndpoint'} # type: ignore + test_one.metadata = {'url': "/multiapi/testOneEndpoint"} # type: ignore @distributed_trace @@ -206,5 +206,5 @@ def test_different_calls( if cls: return cls(pipeline_response, None, {}) - test_different_calls.metadata = {'url': '/multiapi/testDifferentCalls'} # type: ignore + test_different_calls.metadata = {'url': "/multiapi/testDifferentCalls"} # type: ignore diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/operations/_operation_group_one_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/operations/_operation_group_one_operations.py index b77b68412d3..4d8e8be338b 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/operations/_operation_group_one_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/operations/_operation_group_one_operations.py @@ -38,7 +38,7 @@ def build_test_two_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/multiapi/one/testTwoEndpoint') + url = kwargs.pop("template_url", "/multiapi/one/testTwoEndpoint") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -67,7 +67,7 @@ def build_test_three_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/multiapi/one/testThreeEndpoint') + url = kwargs.pop("template_url", "/multiapi/one/testThreeEndpoint") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -166,7 +166,7 @@ def test_two( return deserialized - test_two.metadata = {'url': '/multiapi/one/testTwoEndpoint'} # type: ignore + test_two.metadata = {'url': "/multiapi/one/testTwoEndpoint"} # type: ignore @distributed_trace @@ -213,5 +213,5 @@ def test_three( if cls: return cls(pipeline_response, None, {}) - test_three.metadata = {'url': '/multiapi/one/testThreeEndpoint'} # type: ignore + test_three.metadata = {'url': "/multiapi/one/testThreeEndpoint"} # type: ignore diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/operations/_operation_group_two_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/operations/_operation_group_two_operations.py index 4bd4c8ef678..cb4e8259d1c 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/operations/_operation_group_two_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/operations/_operation_group_two_operations.py @@ -38,7 +38,7 @@ def build_test_four_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/multiapi/two/testFourEndpoint') + url = kwargs.pop("template_url", "/multiapi/two/testFourEndpoint") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -128,5 +128,5 @@ def test_four( if cls: return cls(pipeline_response, None, {}) - test_four.metadata = {'url': '/multiapi/two/testFourEndpoint'} # type: ignore + test_four.metadata = {'url': "/multiapi/two/testFourEndpoint"} # type: ignore diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/aio/operations/_multiapi_service_client_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/aio/operations/_multiapi_service_client_operations.py index 7222e2f6a8f..33146f7bb2d 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/aio/operations/_multiapi_service_client_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/aio/operations/_multiapi_service_client_operations.py @@ -89,7 +89,7 @@ async def get_next(next_link=None): return AsyncItemPaged( get_next, extract_data ) - test_paging.metadata = {'url': '/multiapi/paging'} # type: ignore + test_paging.metadata = {'url': "/multiapi/paging"} # type: ignore @distributed_trace_async async def test_different_calls( @@ -146,5 +146,5 @@ async def test_different_calls( if cls: return cls(pipeline_response, None, {}) - test_different_calls.metadata = {'url': '/multiapi/testDifferentCalls'} # type: ignore + test_different_calls.metadata = {'url': "/multiapi/testDifferentCalls"} # type: ignore diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/aio/operations/_operation_group_one_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/aio/operations/_operation_group_one_operations.py index 748275f3b53..316b47490b4 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/aio/operations/_operation_group_one_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/aio/operations/_operation_group_one_operations.py @@ -100,5 +100,5 @@ async def test_two( return deserialized - test_two.metadata = {'url': '/multiapi/one/testTwoEndpoint'} # type: ignore + test_two.metadata = {'url': "/multiapi/one/testTwoEndpoint"} # type: ignore diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/aio/operations/_operation_group_two_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/aio/operations/_operation_group_two_operations.py index 880954635e6..7c5b28aa2d1 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/aio/operations/_operation_group_two_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/aio/operations/_operation_group_two_operations.py @@ -108,7 +108,7 @@ async def test_four( if cls: return cls(pipeline_response, None, {}) - test_four.metadata = {'url': '/multiapi/two/testFourEndpoint'} # type: ignore + test_four.metadata = {'url': "/multiapi/two/testFourEndpoint"} # type: ignore @distributed_trace_async @@ -154,5 +154,5 @@ async def test_five( if cls: return cls(pipeline_response, None, {}) - test_five.metadata = {'url': '/multiapi/two/testFiveEndpoint'} # type: ignore + test_five.metadata = {'url': "/multiapi/two/testFiveEndpoint"} # type: ignore diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/operations/_multiapi_service_client_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/operations/_multiapi_service_client_operations.py index 135e0fd52cc..f171ac38d75 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/operations/_multiapi_service_client_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/operations/_multiapi_service_client_operations.py @@ -36,7 +36,7 @@ def build_test_paging_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/multiapi/paging') + url = kwargs.pop("template_url", "/multiapi/paging") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -61,7 +61,7 @@ def build_test_different_calls_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/multiapi/testDifferentCalls') + url = kwargs.pop("template_url", "/multiapi/testDifferentCalls") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -151,7 +151,7 @@ def get_next(next_link=None): return ItemPaged( get_next, extract_data ) - test_paging.metadata = {'url': '/multiapi/paging'} # type: ignore + test_paging.metadata = {'url': "/multiapi/paging"} # type: ignore @distributed_trace def test_different_calls( @@ -209,5 +209,5 @@ def test_different_calls( if cls: return cls(pipeline_response, None, {}) - test_different_calls.metadata = {'url': '/multiapi/testDifferentCalls'} # type: ignore + test_different_calls.metadata = {'url': "/multiapi/testDifferentCalls"} # type: ignore diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/operations/_operation_group_one_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/operations/_operation_group_one_operations.py index cb4e1efbff9..176ebc85b37 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/operations/_operation_group_one_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/operations/_operation_group_one_operations.py @@ -38,7 +38,7 @@ def build_test_two_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/multiapi/one/testTwoEndpoint') + url = kwargs.pop("template_url", "/multiapi/one/testTwoEndpoint") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -139,5 +139,5 @@ def test_two( return deserialized - test_two.metadata = {'url': '/multiapi/one/testTwoEndpoint'} # type: ignore + test_two.metadata = {'url': "/multiapi/one/testTwoEndpoint"} # type: ignore diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/operations/_operation_group_two_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/operations/_operation_group_two_operations.py index aed31249898..459a3c7a00a 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/operations/_operation_group_two_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/operations/_operation_group_two_operations.py @@ -38,7 +38,7 @@ def build_test_four_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/multiapi/two/testFourEndpoint') + url = kwargs.pop("template_url", "/multiapi/two/testFourEndpoint") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -67,7 +67,7 @@ def build_test_five_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/multiapi/two/testFiveEndpoint') + url = kwargs.pop("template_url", "/multiapi/two/testFiveEndpoint") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -174,7 +174,7 @@ def test_four( if cls: return cls(pipeline_response, None, {}) - test_four.metadata = {'url': '/multiapi/two/testFourEndpoint'} # type: ignore + test_four.metadata = {'url': "/multiapi/two/testFourEndpoint"} # type: ignore @distributed_trace @@ -221,5 +221,5 @@ def test_five( if cls: return cls(pipeline_response, None, {}) - test_five.metadata = {'url': '/multiapi/two/testFiveEndpoint'} # type: ignore + test_five.metadata = {'url': "/multiapi/two/testFiveEndpoint"} # type: ignore diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v1/aio/operations/_multiapi_custom_base_url_service_client_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v1/aio/operations/_multiapi_custom_base_url_service_client_operations.py index b310fa7b9b1..b187953f694 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v1/aio/operations/_multiapi_custom_base_url_service_client_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v1/aio/operations/_multiapi_custom_base_url_service_client_operations.py @@ -73,5 +73,5 @@ async def test( if cls: return cls(pipeline_response, None, {}) - test.metadata = {'url': '/test'} # type: ignore + test.metadata = {'url': "/test"} # type: ignore diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v1/operations/_multiapi_custom_base_url_service_client_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v1/operations/_multiapi_custom_base_url_service_client_operations.py index 9a08dd51654..933c156e7af 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v1/operations/_multiapi_custom_base_url_service_client_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v1/operations/_multiapi_custom_base_url_service_client_operations.py @@ -37,7 +37,7 @@ def build_test_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/test') + url = kwargs.pop("template_url", "/test") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -111,5 +111,5 @@ def test( if cls: return cls(pipeline_response, None, {}) - test.metadata = {'url': '/test'} # type: ignore + test.metadata = {'url': "/test"} # type: ignore diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v2/aio/operations/_multiapi_custom_base_url_service_client_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v2/aio/operations/_multiapi_custom_base_url_service_client_operations.py index 21e4f4fdc50..cfb4c5fc490 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v2/aio/operations/_multiapi_custom_base_url_service_client_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v2/aio/operations/_multiapi_custom_base_url_service_client_operations.py @@ -73,5 +73,5 @@ async def test( if cls: return cls(pipeline_response, None, {}) - test.metadata = {'url': '/test'} # type: ignore + test.metadata = {'url': "/test"} # type: ignore diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v2/operations/_multiapi_custom_base_url_service_client_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v2/operations/_multiapi_custom_base_url_service_client_operations.py index 4f623e709e2..d15c3a9fef0 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v2/operations/_multiapi_custom_base_url_service_client_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v2/operations/_multiapi_custom_base_url_service_client_operations.py @@ -37,7 +37,7 @@ def build_test_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/test') + url = kwargs.pop("template_url", "/test") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -111,5 +111,5 @@ def test( if cls: return cls(pipeline_response, None, {}) - test.metadata = {'url': '/test'} # type: ignore + test.metadata = {'url': "/test"} # type: ignore diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v1/aio/operations/_multiapi_service_client_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v1/aio/operations/_multiapi_service_client_operations.py index 9d9254ec209..2d3da418010 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v1/aio/operations/_multiapi_service_client_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v1/aio/operations/_multiapi_service_client_operations.py @@ -77,7 +77,7 @@ async def test_one( if cls: return cls(pipeline_response, None, {}) - test_one.metadata = {'url': '/multiapi/testOneEndpoint'} # type: ignore + test_one.metadata = {'url': "/multiapi/testOneEndpoint"} # type: ignore async def _test_lro_initial( @@ -126,7 +126,7 @@ async def _test_lro_initial( return deserialized - _test_lro_initial.metadata = {'url': '/multiapi/lro'} # type: ignore + _test_lro_initial.metadata = {'url': "/multiapi/lro"} # type: ignore @distributed_trace_async @@ -189,7 +189,7 @@ def get_long_running_output(pipeline_response): ) return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_test_lro.metadata = {'url': '/multiapi/lro'} # type: ignore + begin_test_lro.metadata = {'url': "/multiapi/lro"} # type: ignore async def _test_lro_and_paging_initial( self, @@ -236,7 +236,7 @@ async def _test_lro_and_paging_initial( return deserialized - _test_lro_and_paging_initial.metadata = {'url': '/multiapi/lroAndPaging'} # type: ignore + _test_lro_and_paging_initial.metadata = {'url': "/multiapi/lroAndPaging"} # type: ignore @distributed_trace_async @@ -369,7 +369,7 @@ async def internal_get_next(next_link=None): ) return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_test_lro_and_paging.metadata = {'url': '/multiapi/lroAndPaging'} # type: ignore + begin_test_lro_and_paging.metadata = {'url': "/multiapi/lroAndPaging"} # type: ignore @distributed_trace_async @@ -419,5 +419,5 @@ async def test_different_calls( if cls: return cls(pipeline_response, None, {}) - test_different_calls.metadata = {'url': '/multiapi/testDifferentCalls'} # type: ignore + test_different_calls.metadata = {'url': "/multiapi/testDifferentCalls"} # type: ignore diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v1/aio/operations/_operation_group_one_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v1/aio/operations/_operation_group_one_operations.py index e8a29bdcf13..6b0e2ad1691 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v1/aio/operations/_operation_group_one_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v1/aio/operations/_operation_group_one_operations.py @@ -85,5 +85,5 @@ async def test_two( if cls: return cls(pipeline_response, None, {}) - test_two.metadata = {'url': '/multiapi/one/testTwoEndpoint'} # type: ignore + test_two.metadata = {'url': "/multiapi/one/testTwoEndpoint"} # type: ignore diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v1/operations/_multiapi_service_client_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v1/operations/_multiapi_service_client_operations.py index 7106617737e..0d27807abd6 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v1/operations/_multiapi_service_client_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v1/operations/_multiapi_service_client_operations.py @@ -41,7 +41,7 @@ def build_test_one_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/multiapi/testOneEndpoint') + url = kwargs.pop("template_url", "/multiapi/testOneEndpoint") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -71,7 +71,7 @@ def build_test_lro_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/multiapi/lro') + url = kwargs.pop("template_url", "/multiapi/lro") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -97,7 +97,7 @@ def build_test_lro_and_paging_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/multiapi/lroAndPaging') + url = kwargs.pop("template_url", "/multiapi/lroAndPaging") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -126,7 +126,7 @@ def build_test_different_calls_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/multiapi/testDifferentCalls') + url = kwargs.pop("template_url", "/multiapi/testDifferentCalls") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -200,7 +200,7 @@ def test_one( if cls: return cls(pipeline_response, None, {}) - test_one.metadata = {'url': '/multiapi/testOneEndpoint'} # type: ignore + test_one.metadata = {'url': "/multiapi/testOneEndpoint"} # type: ignore def _test_lro_initial( @@ -250,7 +250,7 @@ def _test_lro_initial( return deserialized - _test_lro_initial.metadata = {'url': '/multiapi/lro'} # type: ignore + _test_lro_initial.metadata = {'url': "/multiapi/lro"} # type: ignore @distributed_trace @@ -313,7 +313,7 @@ def get_long_running_output(pipeline_response): ) return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_test_lro.metadata = {'url': '/multiapi/lro'} # type: ignore + begin_test_lro.metadata = {'url': "/multiapi/lro"} # type: ignore def _test_lro_and_paging_initial( self, @@ -361,7 +361,7 @@ def _test_lro_and_paging_initial( return deserialized - _test_lro_and_paging_initial.metadata = {'url': '/multiapi/lroAndPaging'} # type: ignore + _test_lro_and_paging_initial.metadata = {'url': "/multiapi/lroAndPaging"} # type: ignore @distributed_trace @@ -495,7 +495,7 @@ def internal_get_next(next_link=None): ) return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_test_lro_and_paging.metadata = {'url': '/multiapi/lroAndPaging'} # type: ignore + begin_test_lro_and_paging.metadata = {'url': "/multiapi/lroAndPaging"} # type: ignore @distributed_trace @@ -546,5 +546,5 @@ def test_different_calls( if cls: return cls(pipeline_response, None, {}) - test_different_calls.metadata = {'url': '/multiapi/testDifferentCalls'} # type: ignore + test_different_calls.metadata = {'url': "/multiapi/testDifferentCalls"} # type: ignore diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v1/operations/_operation_group_one_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v1/operations/_operation_group_one_operations.py index cb17725bbe8..e5151e68a79 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v1/operations/_operation_group_one_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v1/operations/_operation_group_one_operations.py @@ -36,7 +36,7 @@ def build_test_two_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/multiapi/one/testTwoEndpoint') + url = kwargs.pop("template_url", "/multiapi/one/testTwoEndpoint") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -121,5 +121,5 @@ def test_two( if cls: return cls(pipeline_response, None, {}) - test_two.metadata = {'url': '/multiapi/one/testTwoEndpoint'} # type: ignore + test_two.metadata = {'url': "/multiapi/one/testTwoEndpoint"} # type: ignore diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/aio/operations/_multiapi_service_client_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/aio/operations/_multiapi_service_client_operations.py index c3c7f62d15e..3a8008d0078 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/aio/operations/_multiapi_service_client_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/aio/operations/_multiapi_service_client_operations.py @@ -77,7 +77,7 @@ async def test_one( return deserialized - test_one.metadata = {'url': '/multiapi/testOneEndpoint'} # type: ignore + test_one.metadata = {'url': "/multiapi/testOneEndpoint"} # type: ignore @distributed_trace_async @@ -131,5 +131,5 @@ async def test_different_calls( if cls: return cls(pipeline_response, None, {}) - test_different_calls.metadata = {'url': '/multiapi/testDifferentCalls'} # type: ignore + test_different_calls.metadata = {'url': "/multiapi/testDifferentCalls"} # type: ignore diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/aio/operations/_operation_group_one_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/aio/operations/_operation_group_one_operations.py index 2d617fbdf37..8b9aa788770 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/aio/operations/_operation_group_one_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/aio/operations/_operation_group_one_operations.py @@ -99,7 +99,7 @@ async def test_two( return deserialized - test_two.metadata = {'url': '/multiapi/one/testTwoEndpoint'} # type: ignore + test_two.metadata = {'url': "/multiapi/one/testTwoEndpoint"} # type: ignore @distributed_trace_async @@ -145,5 +145,5 @@ async def test_three( if cls: return cls(pipeline_response, None, {}) - test_three.metadata = {'url': '/multiapi/one/testThreeEndpoint'} # type: ignore + test_three.metadata = {'url': "/multiapi/one/testThreeEndpoint"} # type: ignore diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/aio/operations/_operation_group_two_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/aio/operations/_operation_group_two_operations.py index 8a98dfb06fa..b1da816249b 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/aio/operations/_operation_group_two_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/aio/operations/_operation_group_two_operations.py @@ -89,5 +89,5 @@ async def test_four( if cls: return cls(pipeline_response, None, {}) - test_four.metadata = {'url': '/multiapi/two/testFourEndpoint'} # type: ignore + test_four.metadata = {'url': "/multiapi/two/testFourEndpoint"} # type: ignore diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/operations/_multiapi_service_client_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/operations/_multiapi_service_client_operations.py index 08b6243d271..e4508fbda72 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/operations/_multiapi_service_client_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/operations/_multiapi_service_client_operations.py @@ -38,7 +38,7 @@ def build_test_one_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/multiapi/testOneEndpoint') + url = kwargs.pop("template_url", "/multiapi/testOneEndpoint") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -70,7 +70,7 @@ def build_test_different_calls_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/multiapi/testDifferentCalls') + url = kwargs.pop("template_url", "/multiapi/testDifferentCalls") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -150,7 +150,7 @@ def test_one( return deserialized - test_one.metadata = {'url': '/multiapi/testOneEndpoint'} # type: ignore + test_one.metadata = {'url': "/multiapi/testOneEndpoint"} # type: ignore @distributed_trace @@ -205,5 +205,5 @@ def test_different_calls( if cls: return cls(pipeline_response, None, {}) - test_different_calls.metadata = {'url': '/multiapi/testDifferentCalls'} # type: ignore + test_different_calls.metadata = {'url': "/multiapi/testDifferentCalls"} # type: ignore diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/operations/_operation_group_one_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/operations/_operation_group_one_operations.py index 1af7d62eb2b..24ff182c38f 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/operations/_operation_group_one_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/operations/_operation_group_one_operations.py @@ -37,7 +37,7 @@ def build_test_two_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/multiapi/one/testTwoEndpoint') + url = kwargs.pop("template_url", "/multiapi/one/testTwoEndpoint") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -66,7 +66,7 @@ def build_test_three_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/multiapi/one/testThreeEndpoint') + url = kwargs.pop("template_url", "/multiapi/one/testThreeEndpoint") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -165,7 +165,7 @@ def test_two( return deserialized - test_two.metadata = {'url': '/multiapi/one/testTwoEndpoint'} # type: ignore + test_two.metadata = {'url': "/multiapi/one/testTwoEndpoint"} # type: ignore @distributed_trace @@ -212,5 +212,5 @@ def test_three( if cls: return cls(pipeline_response, None, {}) - test_three.metadata = {'url': '/multiapi/one/testThreeEndpoint'} # type: ignore + test_three.metadata = {'url': "/multiapi/one/testThreeEndpoint"} # type: ignore diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/operations/_operation_group_two_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/operations/_operation_group_two_operations.py index a2a5b61f9fc..7d75339062b 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/operations/_operation_group_two_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/operations/_operation_group_two_operations.py @@ -37,7 +37,7 @@ def build_test_four_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/multiapi/two/testFourEndpoint') + url = kwargs.pop("template_url", "/multiapi/two/testFourEndpoint") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -127,5 +127,5 @@ def test_four( if cls: return cls(pipeline_response, None, {}) - test_four.metadata = {'url': '/multiapi/two/testFourEndpoint'} # type: ignore + test_four.metadata = {'url': "/multiapi/two/testFourEndpoint"} # type: ignore diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/aio/operations/_multiapi_service_client_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/aio/operations/_multiapi_service_client_operations.py index 30abc39bbda..206b3b535c4 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/aio/operations/_multiapi_service_client_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/aio/operations/_multiapi_service_client_operations.py @@ -87,7 +87,7 @@ async def get_next(next_link=None): return AsyncItemPaged( get_next, extract_data ) - test_paging.metadata = {'url': '/multiapi/paging'} # type: ignore + test_paging.metadata = {'url': "/multiapi/paging"} # type: ignore @distributed_trace_async async def test_different_calls( @@ -144,5 +144,5 @@ async def test_different_calls( if cls: return cls(pipeline_response, None, {}) - test_different_calls.metadata = {'url': '/multiapi/testDifferentCalls'} # type: ignore + test_different_calls.metadata = {'url': "/multiapi/testDifferentCalls"} # type: ignore diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/aio/operations/_operation_group_one_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/aio/operations/_operation_group_one_operations.py index 555dae0497d..db2ae839909 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/aio/operations/_operation_group_one_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/aio/operations/_operation_group_one_operations.py @@ -99,5 +99,5 @@ async def test_two( return deserialized - test_two.metadata = {'url': '/multiapi/one/testTwoEndpoint'} # type: ignore + test_two.metadata = {'url': "/multiapi/one/testTwoEndpoint"} # type: ignore diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/aio/operations/_operation_group_two_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/aio/operations/_operation_group_two_operations.py index 8d7b048c621..272f3621fef 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/aio/operations/_operation_group_two_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/aio/operations/_operation_group_two_operations.py @@ -107,7 +107,7 @@ async def test_four( if cls: return cls(pipeline_response, None, {}) - test_four.metadata = {'url': '/multiapi/two/testFourEndpoint'} # type: ignore + test_four.metadata = {'url': "/multiapi/two/testFourEndpoint"} # type: ignore @distributed_trace_async @@ -153,5 +153,5 @@ async def test_five( if cls: return cls(pipeline_response, None, {}) - test_five.metadata = {'url': '/multiapi/two/testFiveEndpoint'} # type: ignore + test_five.metadata = {'url': "/multiapi/two/testFiveEndpoint"} # type: ignore diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/operations/_multiapi_service_client_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/operations/_multiapi_service_client_operations.py index dff42f65bfb..2487d3d9874 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/operations/_multiapi_service_client_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/operations/_multiapi_service_client_operations.py @@ -35,7 +35,7 @@ def build_test_paging_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/multiapi/paging') + url = kwargs.pop("template_url", "/multiapi/paging") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -60,7 +60,7 @@ def build_test_different_calls_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/multiapi/testDifferentCalls') + url = kwargs.pop("template_url", "/multiapi/testDifferentCalls") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -150,7 +150,7 @@ def get_next(next_link=None): return ItemPaged( get_next, extract_data ) - test_paging.metadata = {'url': '/multiapi/paging'} # type: ignore + test_paging.metadata = {'url': "/multiapi/paging"} # type: ignore @distributed_trace def test_different_calls( @@ -208,5 +208,5 @@ def test_different_calls( if cls: return cls(pipeline_response, None, {}) - test_different_calls.metadata = {'url': '/multiapi/testDifferentCalls'} # type: ignore + test_different_calls.metadata = {'url': "/multiapi/testDifferentCalls"} # type: ignore diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/operations/_operation_group_one_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/operations/_operation_group_one_operations.py index 7aca6a0ba3a..fe18f9205de 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/operations/_operation_group_one_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/operations/_operation_group_one_operations.py @@ -37,7 +37,7 @@ def build_test_two_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/multiapi/one/testTwoEndpoint') + url = kwargs.pop("template_url", "/multiapi/one/testTwoEndpoint") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -138,5 +138,5 @@ def test_two( return deserialized - test_two.metadata = {'url': '/multiapi/one/testTwoEndpoint'} # type: ignore + test_two.metadata = {'url': "/multiapi/one/testTwoEndpoint"} # type: ignore diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/operations/_operation_group_two_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/operations/_operation_group_two_operations.py index 0b30bd5517b..839ca6650cd 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/operations/_operation_group_two_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/operations/_operation_group_two_operations.py @@ -37,7 +37,7 @@ def build_test_four_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/multiapi/two/testFourEndpoint') + url = kwargs.pop("template_url", "/multiapi/two/testFourEndpoint") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -66,7 +66,7 @@ def build_test_five_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/multiapi/two/testFiveEndpoint') + url = kwargs.pop("template_url", "/multiapi/two/testFiveEndpoint") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -173,7 +173,7 @@ def test_four( if cls: return cls(pipeline_response, None, {}) - test_four.metadata = {'url': '/multiapi/two/testFourEndpoint'} # type: ignore + test_four.metadata = {'url': "/multiapi/two/testFourEndpoint"} # type: ignore @distributed_trace @@ -220,5 +220,5 @@ def test_five( if cls: return cls(pipeline_response, None, {}) - test_five.metadata = {'url': '/multiapi/two/testFiveEndpoint'} # type: ignore + test_five.metadata = {'url': "/multiapi/two/testFiveEndpoint"} # type: ignore 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 4b283a45266..39362337b5f 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 @@ -42,7 +42,7 @@ def build_test_one_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/multiapi/testOneEndpoint') + url = kwargs.pop("template_url", "/multiapi/testOneEndpoint") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -72,7 +72,7 @@ def build_test_lro_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/multiapi/lro') + url = kwargs.pop("template_url", "/multiapi/lro") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -98,7 +98,7 @@ def build_test_lro_and_paging_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/multiapi/lroAndPaging') + url = kwargs.pop("template_url", "/multiapi/lroAndPaging") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -127,7 +127,7 @@ def build_test_different_calls_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/multiapi/testDifferentCalls') + url = kwargs.pop("template_url", "/multiapi/testDifferentCalls") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -201,7 +201,7 @@ def test_one( if cls: return cls(pipeline_response, None, {}) - test_one.metadata = {'url': '/multiapi/testOneEndpoint'} # type: ignore + test_one.metadata = {'url': "/multiapi/testOneEndpoint"} # type: ignore def _test_lro_initial( @@ -251,7 +251,7 @@ def _test_lro_initial( return deserialized - _test_lro_initial.metadata = {'url': '/multiapi/lro'} # type: ignore + _test_lro_initial.metadata = {'url': "/multiapi/lro"} # type: ignore @distributed_trace @@ -314,7 +314,7 @@ def get_long_running_output(pipeline_response): ) return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_test_lro.metadata = {'url': '/multiapi/lro'} # type: ignore + begin_test_lro.metadata = {'url': "/multiapi/lro"} # type: ignore def _test_lro_and_paging_initial( self, @@ -362,7 +362,7 @@ def _test_lro_and_paging_initial( return deserialized - _test_lro_and_paging_initial.metadata = {'url': '/multiapi/lroAndPaging'} # type: ignore + _test_lro_and_paging_initial.metadata = {'url': "/multiapi/lroAndPaging"} # type: ignore @distributed_trace @@ -496,7 +496,7 @@ def internal_get_next(next_link=None): ) return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_test_lro_and_paging.metadata = {'url': '/multiapi/lroAndPaging'} # type: ignore + begin_test_lro_and_paging.metadata = {'url': "/multiapi/lroAndPaging"} # type: ignore @distributed_trace @@ -547,5 +547,5 @@ def test_different_calls( if cls: return cls(pipeline_response, None, {}) - test_different_calls.metadata = {'url': '/multiapi/testDifferentCalls'} # type: ignore + test_different_calls.metadata = {'url': "/multiapi/testDifferentCalls"} # type: ignore 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 0afcc218157..c97dca6dff8 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 @@ -37,7 +37,7 @@ def build_test_two_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/multiapi/one/testTwoEndpoint') + url = kwargs.pop("template_url", "/multiapi/one/testTwoEndpoint") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -122,5 +122,5 @@ def test_two( if cls: return cls(pipeline_response, None, {}) - test_two.metadata = {'url': '/multiapi/one/testTwoEndpoint'} # type: ignore + test_two.metadata = {'url': "/multiapi/one/testTwoEndpoint"} # type: ignore 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 28209ca9968..6af9854a211 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 @@ -39,7 +39,7 @@ def build_test_one_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/multiapi/testOneEndpoint') + url = kwargs.pop("template_url", "/multiapi/testOneEndpoint") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -71,7 +71,7 @@ def build_test_different_calls_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/multiapi/testDifferentCalls') + url = kwargs.pop("template_url", "/multiapi/testDifferentCalls") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -151,7 +151,7 @@ def test_one( return deserialized - test_one.metadata = {'url': '/multiapi/testOneEndpoint'} # type: ignore + test_one.metadata = {'url': "/multiapi/testOneEndpoint"} # type: ignore @distributed_trace @@ -206,5 +206,5 @@ def test_different_calls( if cls: return cls(pipeline_response, None, {}) - test_different_calls.metadata = {'url': '/multiapi/testDifferentCalls'} # type: ignore + test_different_calls.metadata = {'url': "/multiapi/testDifferentCalls"} # type: ignore 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 41c5ce42306..d8df233b1c6 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 @@ -38,7 +38,7 @@ def build_test_two_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/multiapi/one/testTwoEndpoint') + url = kwargs.pop("template_url", "/multiapi/one/testTwoEndpoint") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -67,7 +67,7 @@ def build_test_three_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/multiapi/one/testThreeEndpoint') + url = kwargs.pop("template_url", "/multiapi/one/testThreeEndpoint") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -166,7 +166,7 @@ def test_two( return deserialized - test_two.metadata = {'url': '/multiapi/one/testTwoEndpoint'} # type: ignore + test_two.metadata = {'url': "/multiapi/one/testTwoEndpoint"} # type: ignore @distributed_trace @@ -213,5 +213,5 @@ def test_three( if cls: return cls(pipeline_response, None, {}) - test_three.metadata = {'url': '/multiapi/one/testThreeEndpoint'} # type: ignore + test_three.metadata = {'url': "/multiapi/one/testThreeEndpoint"} # type: ignore 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 903d4a04ef0..5743852f994 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 @@ -38,7 +38,7 @@ def build_test_four_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/multiapi/two/testFourEndpoint') + url = kwargs.pop("template_url", "/multiapi/two/testFourEndpoint") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -128,5 +128,5 @@ def test_four( if cls: return cls(pipeline_response, None, {}) - test_four.metadata = {'url': '/multiapi/two/testFourEndpoint'} # type: ignore + test_four.metadata = {'url': "/multiapi/two/testFourEndpoint"} # type: ignore 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 a0abede9145..c150139c4fb 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 @@ -36,7 +36,7 @@ def build_test_paging_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/multiapi/paging') + url = kwargs.pop("template_url", "/multiapi/paging") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -61,7 +61,7 @@ def build_test_different_calls_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/multiapi/testDifferentCalls') + url = kwargs.pop("template_url", "/multiapi/testDifferentCalls") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -151,7 +151,7 @@ def get_next(next_link=None): return ItemPaged( get_next, extract_data ) - test_paging.metadata = {'url': '/multiapi/paging'} # type: ignore + test_paging.metadata = {'url': "/multiapi/paging"} # type: ignore @distributed_trace def test_different_calls( @@ -209,5 +209,5 @@ def test_different_calls( if cls: return cls(pipeline_response, None, {}) - test_different_calls.metadata = {'url': '/multiapi/testDifferentCalls'} # type: ignore + test_different_calls.metadata = {'url': "/multiapi/testDifferentCalls"} # type: ignore 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 813309a27de..fb15c6bf2a7 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 @@ -38,7 +38,7 @@ def build_test_two_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/multiapi/one/testTwoEndpoint') + url = kwargs.pop("template_url", "/multiapi/one/testTwoEndpoint") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -139,5 +139,5 @@ def test_two( return deserialized - test_two.metadata = {'url': '/multiapi/one/testTwoEndpoint'} # type: ignore + test_two.metadata = {'url': "/multiapi/one/testTwoEndpoint"} # type: ignore 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 00c484d5b50..cc11f5f846d 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 @@ -38,7 +38,7 @@ def build_test_four_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/multiapi/two/testFourEndpoint') + url = kwargs.pop("template_url", "/multiapi/two/testFourEndpoint") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -67,7 +67,7 @@ def build_test_five_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/multiapi/two/testFiveEndpoint') + url = kwargs.pop("template_url", "/multiapi/two/testFiveEndpoint") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -174,7 +174,7 @@ def test_four( if cls: return cls(pipeline_response, None, {}) - test_four.metadata = {'url': '/multiapi/two/testFourEndpoint'} # type: ignore + test_four.metadata = {'url': "/multiapi/two/testFourEndpoint"} # type: ignore @distributed_trace @@ -221,5 +221,5 @@ def test_five( if cls: return cls(pipeline_response, None, {}) - test_five.metadata = {'url': '/multiapi/two/testFiveEndpoint'} # type: ignore + test_five.metadata = {'url': "/multiapi/two/testFiveEndpoint"} # type: ignore diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v1/aio/operations/_multiapi_service_client_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v1/aio/operations/_multiapi_service_client_operations.py index ebd351e2ab1..ffa7126b3ba 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v1/aio/operations/_multiapi_service_client_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v1/aio/operations/_multiapi_service_client_operations.py @@ -78,7 +78,7 @@ async def test_one( if cls: return cls(pipeline_response, None, {}) - test_one.metadata = {'url': '/multiapi/testOneEndpoint'} # type: ignore + test_one.metadata = {'url': "/multiapi/testOneEndpoint"} # type: ignore async def _test_lro_initial( @@ -127,7 +127,7 @@ async def _test_lro_initial( return deserialized - _test_lro_initial.metadata = {'url': '/multiapi/lro'} # type: ignore + _test_lro_initial.metadata = {'url': "/multiapi/lro"} # type: ignore @distributed_trace_async @@ -190,7 +190,7 @@ def get_long_running_output(pipeline_response): ) return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_test_lro.metadata = {'url': '/multiapi/lro'} # type: ignore + begin_test_lro.metadata = {'url': "/multiapi/lro"} # type: ignore async def _test_lro_and_paging_initial( self, @@ -237,7 +237,7 @@ async def _test_lro_and_paging_initial( return deserialized - _test_lro_and_paging_initial.metadata = {'url': '/multiapi/lroAndPaging'} # type: ignore + _test_lro_and_paging_initial.metadata = {'url': "/multiapi/lroAndPaging"} # type: ignore @distributed_trace_async @@ -371,7 +371,7 @@ async def internal_get_next(next_link=None): ) return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_test_lro_and_paging.metadata = {'url': '/multiapi/lroAndPaging'} # type: ignore + begin_test_lro_and_paging.metadata = {'url': "/multiapi/lroAndPaging"} # type: ignore @distributed_trace_async @@ -421,5 +421,5 @@ async def test_different_calls( if cls: return cls(pipeline_response, None, {}) - test_different_calls.metadata = {'url': '/multiapi/testDifferentCalls'} # type: ignore + test_different_calls.metadata = {'url': "/multiapi/testDifferentCalls"} # type: ignore diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v1/aio/operations/_operation_group_one_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v1/aio/operations/_operation_group_one_operations.py index 34e6a2dcc6a..65dfd970ecb 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v1/aio/operations/_operation_group_one_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v1/aio/operations/_operation_group_one_operations.py @@ -86,5 +86,5 @@ async def test_two( if cls: return cls(pipeline_response, None, {}) - test_two.metadata = {'url': '/multiapi/one/testTwoEndpoint'} # type: ignore + test_two.metadata = {'url': "/multiapi/one/testTwoEndpoint"} # type: ignore 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 f14a3adef8c..33119f42aaa 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 @@ -42,7 +42,7 @@ def build_test_one_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/multiapi/testOneEndpoint') + url = kwargs.pop("template_url", "/multiapi/testOneEndpoint") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -72,7 +72,7 @@ def build_test_lro_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/multiapi/lro') + url = kwargs.pop("template_url", "/multiapi/lro") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -98,7 +98,7 @@ def build_test_lro_and_paging_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/multiapi/lroAndPaging') + url = kwargs.pop("template_url", "/multiapi/lroAndPaging") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -127,7 +127,7 @@ def build_test_different_calls_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/multiapi/testDifferentCalls') + url = kwargs.pop("template_url", "/multiapi/testDifferentCalls") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -201,7 +201,7 @@ def test_one( if cls: return cls(pipeline_response, None, {}) - test_one.metadata = {'url': '/multiapi/testOneEndpoint'} # type: ignore + test_one.metadata = {'url': "/multiapi/testOneEndpoint"} # type: ignore def _test_lro_initial( @@ -251,7 +251,7 @@ def _test_lro_initial( return deserialized - _test_lro_initial.metadata = {'url': '/multiapi/lro'} # type: ignore + _test_lro_initial.metadata = {'url': "/multiapi/lro"} # type: ignore @distributed_trace @@ -314,7 +314,7 @@ def get_long_running_output(pipeline_response): ) return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_test_lro.metadata = {'url': '/multiapi/lro'} # type: ignore + begin_test_lro.metadata = {'url': "/multiapi/lro"} # type: ignore def _test_lro_and_paging_initial( self, @@ -362,7 +362,7 @@ def _test_lro_and_paging_initial( return deserialized - _test_lro_and_paging_initial.metadata = {'url': '/multiapi/lroAndPaging'} # type: ignore + _test_lro_and_paging_initial.metadata = {'url': "/multiapi/lroAndPaging"} # type: ignore @distributed_trace @@ -497,7 +497,7 @@ def internal_get_next(next_link=None): ) return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_test_lro_and_paging.metadata = {'url': '/multiapi/lroAndPaging'} # type: ignore + begin_test_lro_and_paging.metadata = {'url': "/multiapi/lroAndPaging"} # type: ignore @distributed_trace @@ -548,5 +548,5 @@ def test_different_calls( if cls: return cls(pipeline_response, None, {}) - test_different_calls.metadata = {'url': '/multiapi/testDifferentCalls'} # type: ignore + test_different_calls.metadata = {'url': "/multiapi/testDifferentCalls"} # type: ignore 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 e02f1feadba..1199bd2138f 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 @@ -37,7 +37,7 @@ def build_test_two_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/multiapi/one/testTwoEndpoint') + url = kwargs.pop("template_url", "/multiapi/one/testTwoEndpoint") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -122,5 +122,5 @@ def test_two( if cls: return cls(pipeline_response, None, {}) - test_two.metadata = {'url': '/multiapi/one/testTwoEndpoint'} # type: ignore + test_two.metadata = {'url': "/multiapi/one/testTwoEndpoint"} # type: ignore diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/aio/operations/_multiapi_service_client_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/aio/operations/_multiapi_service_client_operations.py index 1ac558b763e..13c7bf4c22f 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/aio/operations/_multiapi_service_client_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/aio/operations/_multiapi_service_client_operations.py @@ -78,7 +78,7 @@ async def test_one( return deserialized - test_one.metadata = {'url': '/multiapi/testOneEndpoint'} # type: ignore + test_one.metadata = {'url': "/multiapi/testOneEndpoint"} # type: ignore @distributed_trace_async @@ -132,5 +132,5 @@ async def test_different_calls( if cls: return cls(pipeline_response, None, {}) - test_different_calls.metadata = {'url': '/multiapi/testDifferentCalls'} # type: ignore + test_different_calls.metadata = {'url': "/multiapi/testDifferentCalls"} # type: ignore diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/aio/operations/_operation_group_one_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/aio/operations/_operation_group_one_operations.py index 25cf4dc5cde..5c91ba1ca0d 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/aio/operations/_operation_group_one_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/aio/operations/_operation_group_one_operations.py @@ -100,7 +100,7 @@ async def test_two( return deserialized - test_two.metadata = {'url': '/multiapi/one/testTwoEndpoint'} # type: ignore + test_two.metadata = {'url': "/multiapi/one/testTwoEndpoint"} # type: ignore @distributed_trace_async @@ -146,5 +146,5 @@ async def test_three( if cls: return cls(pipeline_response, None, {}) - test_three.metadata = {'url': '/multiapi/one/testThreeEndpoint'} # type: ignore + test_three.metadata = {'url': "/multiapi/one/testThreeEndpoint"} # type: ignore diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/aio/operations/_operation_group_two_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/aio/operations/_operation_group_two_operations.py index f1d49e329c5..899c67f3282 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/aio/operations/_operation_group_two_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/aio/operations/_operation_group_two_operations.py @@ -90,5 +90,5 @@ async def test_four( if cls: return cls(pipeline_response, None, {}) - test_four.metadata = {'url': '/multiapi/two/testFourEndpoint'} # type: ignore + test_four.metadata = {'url': "/multiapi/two/testFourEndpoint"} # type: ignore 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 7230d66aa2e..f8dd102093d 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 @@ -39,7 +39,7 @@ def build_test_one_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/multiapi/testOneEndpoint') + url = kwargs.pop("template_url", "/multiapi/testOneEndpoint") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -71,7 +71,7 @@ def build_test_different_calls_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/multiapi/testDifferentCalls') + url = kwargs.pop("template_url", "/multiapi/testDifferentCalls") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -151,7 +151,7 @@ def test_one( return deserialized - test_one.metadata = {'url': '/multiapi/testOneEndpoint'} # type: ignore + test_one.metadata = {'url': "/multiapi/testOneEndpoint"} # type: ignore @distributed_trace @@ -206,5 +206,5 @@ def test_different_calls( if cls: return cls(pipeline_response, None, {}) - test_different_calls.metadata = {'url': '/multiapi/testDifferentCalls'} # type: ignore + test_different_calls.metadata = {'url': "/multiapi/testDifferentCalls"} # type: ignore 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 6a62fd02468..ab84cd0eef5 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 @@ -38,7 +38,7 @@ def build_test_two_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/multiapi/one/testTwoEndpoint') + url = kwargs.pop("template_url", "/multiapi/one/testTwoEndpoint") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -67,7 +67,7 @@ def build_test_three_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/multiapi/one/testThreeEndpoint') + url = kwargs.pop("template_url", "/multiapi/one/testThreeEndpoint") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -166,7 +166,7 @@ def test_two( return deserialized - test_two.metadata = {'url': '/multiapi/one/testTwoEndpoint'} # type: ignore + test_two.metadata = {'url': "/multiapi/one/testTwoEndpoint"} # type: ignore @distributed_trace @@ -213,5 +213,5 @@ def test_three( if cls: return cls(pipeline_response, None, {}) - test_three.metadata = {'url': '/multiapi/one/testThreeEndpoint'} # type: ignore + test_three.metadata = {'url': "/multiapi/one/testThreeEndpoint"} # type: ignore 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 be14d708492..00e1593a7d8 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 @@ -38,7 +38,7 @@ def build_test_four_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/multiapi/two/testFourEndpoint') + url = kwargs.pop("template_url", "/multiapi/two/testFourEndpoint") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -128,5 +128,5 @@ def test_four( if cls: return cls(pipeline_response, None, {}) - test_four.metadata = {'url': '/multiapi/two/testFourEndpoint'} # type: ignore + test_four.metadata = {'url': "/multiapi/two/testFourEndpoint"} # type: ignore diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/aio/operations/_multiapi_service_client_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/aio/operations/_multiapi_service_client_operations.py index c126cb61fce..ced1d97f535 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/aio/operations/_multiapi_service_client_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/aio/operations/_multiapi_service_client_operations.py @@ -89,7 +89,7 @@ async def get_next(next_link=None): return AsyncItemPaged( get_next, extract_data ) - test_paging.metadata = {'url': '/multiapi/paging'} # type: ignore + test_paging.metadata = {'url': "/multiapi/paging"} # type: ignore @distributed_trace_async async def test_different_calls( @@ -146,5 +146,5 @@ async def test_different_calls( if cls: return cls(pipeline_response, None, {}) - test_different_calls.metadata = {'url': '/multiapi/testDifferentCalls'} # type: ignore + test_different_calls.metadata = {'url': "/multiapi/testDifferentCalls"} # type: ignore diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/aio/operations/_operation_group_one_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/aio/operations/_operation_group_one_operations.py index 0ec80d36844..15def4b7a38 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/aio/operations/_operation_group_one_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/aio/operations/_operation_group_one_operations.py @@ -100,5 +100,5 @@ async def test_two( return deserialized - test_two.metadata = {'url': '/multiapi/one/testTwoEndpoint'} # type: ignore + test_two.metadata = {'url': "/multiapi/one/testTwoEndpoint"} # type: ignore diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/aio/operations/_operation_group_two_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/aio/operations/_operation_group_two_operations.py index 371bbaa2b0f..25d3b132e37 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/aio/operations/_operation_group_two_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/aio/operations/_operation_group_two_operations.py @@ -108,7 +108,7 @@ async def test_four( if cls: return cls(pipeline_response, None, {}) - test_four.metadata = {'url': '/multiapi/two/testFourEndpoint'} # type: ignore + test_four.metadata = {'url': "/multiapi/two/testFourEndpoint"} # type: ignore @distributed_trace_async @@ -154,5 +154,5 @@ async def test_five( if cls: return cls(pipeline_response, None, {}) - test_five.metadata = {'url': '/multiapi/two/testFiveEndpoint'} # type: ignore + test_five.metadata = {'url': "/multiapi/two/testFiveEndpoint"} # type: ignore 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 36c026225b3..ea178b590c9 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 @@ -36,7 +36,7 @@ def build_test_paging_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/multiapi/paging') + url = kwargs.pop("template_url", "/multiapi/paging") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -61,7 +61,7 @@ def build_test_different_calls_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/multiapi/testDifferentCalls') + url = kwargs.pop("template_url", "/multiapi/testDifferentCalls") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -151,7 +151,7 @@ def get_next(next_link=None): return ItemPaged( get_next, extract_data ) - test_paging.metadata = {'url': '/multiapi/paging'} # type: ignore + test_paging.metadata = {'url': "/multiapi/paging"} # type: ignore @distributed_trace def test_different_calls( @@ -209,5 +209,5 @@ def test_different_calls( if cls: return cls(pipeline_response, None, {}) - test_different_calls.metadata = {'url': '/multiapi/testDifferentCalls'} # type: ignore + test_different_calls.metadata = {'url': "/multiapi/testDifferentCalls"} # type: ignore 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 9d94da71b67..f7c85bb3389 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 @@ -38,7 +38,7 @@ def build_test_two_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/multiapi/one/testTwoEndpoint') + url = kwargs.pop("template_url", "/multiapi/one/testTwoEndpoint") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -139,5 +139,5 @@ def test_two( return deserialized - test_two.metadata = {'url': '/multiapi/one/testTwoEndpoint'} # type: ignore + test_two.metadata = {'url': "/multiapi/one/testTwoEndpoint"} # type: ignore 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 75a5ca70590..ab8e8d58d22 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 @@ -38,7 +38,7 @@ def build_test_four_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/multiapi/two/testFourEndpoint') + url = kwargs.pop("template_url", "/multiapi/two/testFourEndpoint") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -67,7 +67,7 @@ def build_test_five_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/multiapi/two/testFiveEndpoint') + url = kwargs.pop("template_url", "/multiapi/two/testFiveEndpoint") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -174,7 +174,7 @@ def test_four( if cls: return cls(pipeline_response, None, {}) - test_four.metadata = {'url': '/multiapi/two/testFourEndpoint'} # type: ignore + test_four.metadata = {'url': "/multiapi/two/testFourEndpoint"} # type: ignore @distributed_trace @@ -221,5 +221,5 @@ def test_five( if cls: return cls(pipeline_response, None, {}) - test_five.metadata = {'url': '/multiapi/two/testFiveEndpoint'} # type: ignore + test_five.metadata = {'url': "/multiapi/two/testFiveEndpoint"} # type: ignore diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/AdditionalProperties/additionalproperties/operations/_pets_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/AdditionalProperties/additionalproperties/operations/_pets_operations.py index e5cd539ea35..d6786c27561 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/AdditionalProperties/additionalproperties/operations/_pets_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/AdditionalProperties/additionalproperties/operations/_pets_operations.py @@ -43,7 +43,7 @@ def build_create_ap_true_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/additionalProperties/true') + url = kwargs.pop("template_url", "/additionalProperties/true") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -67,7 +67,7 @@ def build_create_cat_ap_true_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/additionalProperties/true-subclass') + url = kwargs.pop("template_url", "/additionalProperties/true-subclass") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -91,7 +91,7 @@ def build_create_ap_object_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/additionalProperties/type/object') + url = kwargs.pop("template_url", "/additionalProperties/type/object") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -115,7 +115,7 @@ def build_create_ap_string_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/additionalProperties/type/string') + url = kwargs.pop("template_url", "/additionalProperties/type/string") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -139,7 +139,7 @@ def build_create_ap_in_properties_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/additionalProperties/in/properties') + url = kwargs.pop("template_url", "/additionalProperties/in/properties") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -163,7 +163,7 @@ def build_create_ap_in_properties_with_ap_string_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/additionalProperties/in/properties/with/additionalProperties/string') + url = kwargs.pop("template_url", "/additionalProperties/in/properties/with/additionalProperties/string") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/Anything/anything/operations/_anything_client_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/Anything/anything/operations/_anything_client_operations.py index 8200fe7d547..fc81e891ded 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/Anything/anything/operations/_anything_client_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/Anything/anything/operations/_anything_client_operations.py @@ -40,7 +40,7 @@ def build_get_object_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/anything/object') + url = kwargs.pop("template_url", "/anything/object") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -61,7 +61,7 @@ def build_put_object_request( content_type = kwargs.pop('content_type', None) # type: Optional[str] # Construct URL - url = kwargs.pop("template_url", '/anything/object') + url = kwargs.pop("template_url", "/anything/object") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -82,7 +82,7 @@ def build_get_string_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/anything/string') + url = kwargs.pop("template_url", "/anything/string") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -103,7 +103,7 @@ def build_put_string_request( content_type = kwargs.pop('content_type', None) # type: Optional[str] # Construct URL - url = kwargs.pop("template_url", '/anything/string') + url = kwargs.pop("template_url", "/anything/string") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -124,7 +124,7 @@ def build_get_array_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/anything/array') + url = kwargs.pop("template_url", "/anything/array") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -145,7 +145,7 @@ def build_put_array_request( content_type = kwargs.pop('content_type', None) # type: Optional[str] # Construct URL - url = kwargs.pop("template_url", '/anything/array') + url = kwargs.pop("template_url", "/anything/array") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyArray/bodyarray/operations/_array_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyArray/bodyarray/operations/_array_operations.py index 49016dacfbf..259d62f407f 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyArray/bodyarray/operations/_array_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyArray/bodyarray/operations/_array_operations.py @@ -42,7 +42,7 @@ def build_get_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/null') + url = kwargs.pop("template_url", "/array/null") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -62,7 +62,7 @@ def build_get_invalid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/invalid') + url = kwargs.pop("template_url", "/array/invalid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -82,7 +82,7 @@ def build_get_empty_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/empty') + url = kwargs.pop("template_url", "/array/empty") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -104,7 +104,7 @@ def build_put_empty_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/empty') + url = kwargs.pop("template_url", "/array/empty") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -126,7 +126,7 @@ def build_get_boolean_tfft_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/boolean/tfft') + url = kwargs.pop("template_url", "/array/prim/boolean/tfft") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -148,7 +148,7 @@ def build_put_boolean_tfft_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/boolean/tfft') + url = kwargs.pop("template_url", "/array/prim/boolean/tfft") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -170,7 +170,7 @@ def build_get_boolean_invalid_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/boolean/true.null.false') + url = kwargs.pop("template_url", "/array/prim/boolean/true.null.false") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -190,7 +190,7 @@ def build_get_boolean_invalid_string_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/boolean/true.boolean.false') + url = kwargs.pop("template_url", "/array/prim/boolean/true.boolean.false") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -210,7 +210,7 @@ def build_get_integer_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/integer/1.-1.3.300') + url = kwargs.pop("template_url", "/array/prim/integer/1.-1.3.300") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -232,7 +232,7 @@ def build_put_integer_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/integer/1.-1.3.300') + url = kwargs.pop("template_url", "/array/prim/integer/1.-1.3.300") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -254,7 +254,7 @@ def build_get_int_invalid_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/integer/1.null.zero') + url = kwargs.pop("template_url", "/array/prim/integer/1.null.zero") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -274,7 +274,7 @@ def build_get_int_invalid_string_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/integer/1.integer.0') + url = kwargs.pop("template_url", "/array/prim/integer/1.integer.0") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -294,7 +294,7 @@ def build_get_long_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/long/1.-1.3.300') + url = kwargs.pop("template_url", "/array/prim/long/1.-1.3.300") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -316,7 +316,7 @@ def build_put_long_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/long/1.-1.3.300') + url = kwargs.pop("template_url", "/array/prim/long/1.-1.3.300") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -338,7 +338,7 @@ def build_get_long_invalid_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/long/1.null.zero') + url = kwargs.pop("template_url", "/array/prim/long/1.null.zero") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -358,7 +358,7 @@ def build_get_long_invalid_string_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/long/1.integer.0') + url = kwargs.pop("template_url", "/array/prim/long/1.integer.0") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -378,7 +378,7 @@ def build_get_float_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/float/0--0.01-1.2e20') + url = kwargs.pop("template_url", "/array/prim/float/0--0.01-1.2e20") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -400,7 +400,7 @@ def build_put_float_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/float/0--0.01-1.2e20') + url = kwargs.pop("template_url", "/array/prim/float/0--0.01-1.2e20") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -422,7 +422,7 @@ def build_get_float_invalid_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/float/0.0-null-1.2e20') + url = kwargs.pop("template_url", "/array/prim/float/0.0-null-1.2e20") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -442,7 +442,7 @@ def build_get_float_invalid_string_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/float/1.number.0') + url = kwargs.pop("template_url", "/array/prim/float/1.number.0") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -462,7 +462,7 @@ def build_get_double_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/double/0--0.01-1.2e20') + url = kwargs.pop("template_url", "/array/prim/double/0--0.01-1.2e20") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -484,7 +484,7 @@ def build_put_double_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/double/0--0.01-1.2e20') + url = kwargs.pop("template_url", "/array/prim/double/0--0.01-1.2e20") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -506,7 +506,7 @@ def build_get_double_invalid_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/double/0.0-null-1.2e20') + url = kwargs.pop("template_url", "/array/prim/double/0.0-null-1.2e20") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -526,7 +526,7 @@ def build_get_double_invalid_string_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/double/1.number.0') + url = kwargs.pop("template_url", "/array/prim/double/1.number.0") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -546,7 +546,7 @@ def build_get_string_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/string/foo1.foo2.foo3') + url = kwargs.pop("template_url", "/array/prim/string/foo1.foo2.foo3") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -568,7 +568,7 @@ def build_put_string_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/string/foo1.foo2.foo3') + url = kwargs.pop("template_url", "/array/prim/string/foo1.foo2.foo3") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -590,7 +590,7 @@ def build_get_enum_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/enum/foo1.foo2.foo3') + url = kwargs.pop("template_url", "/array/prim/enum/foo1.foo2.foo3") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -612,7 +612,7 @@ def build_put_enum_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/enum/foo1.foo2.foo3') + url = kwargs.pop("template_url", "/array/prim/enum/foo1.foo2.foo3") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -634,7 +634,7 @@ def build_get_string_enum_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/string-enum/foo1.foo2.foo3') + url = kwargs.pop("template_url", "/array/prim/string-enum/foo1.foo2.foo3") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -656,7 +656,7 @@ def build_put_string_enum_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/string-enum/foo1.foo2.foo3') + url = kwargs.pop("template_url", "/array/prim/string-enum/foo1.foo2.foo3") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -678,7 +678,7 @@ def build_get_string_with_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/string/foo.null.foo2') + url = kwargs.pop("template_url", "/array/prim/string/foo.null.foo2") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -698,7 +698,7 @@ def build_get_string_with_invalid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/string/foo.123.foo2') + url = kwargs.pop("template_url", "/array/prim/string/foo.123.foo2") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -718,7 +718,7 @@ def build_get_uuid_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/uuid/valid') + url = kwargs.pop("template_url", "/array/prim/uuid/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -740,7 +740,7 @@ def build_put_uuid_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/uuid/valid') + url = kwargs.pop("template_url", "/array/prim/uuid/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -762,7 +762,7 @@ def build_get_uuid_invalid_chars_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/uuid/invalidchars') + url = kwargs.pop("template_url", "/array/prim/uuid/invalidchars") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -782,7 +782,7 @@ def build_get_date_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/date/valid') + url = kwargs.pop("template_url", "/array/prim/date/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -804,7 +804,7 @@ def build_put_date_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/date/valid') + url = kwargs.pop("template_url", "/array/prim/date/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -826,7 +826,7 @@ def build_get_date_invalid_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/date/invalidnull') + url = kwargs.pop("template_url", "/array/prim/date/invalidnull") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -846,7 +846,7 @@ def build_get_date_invalid_chars_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/date/invalidchars') + url = kwargs.pop("template_url", "/array/prim/date/invalidchars") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -866,7 +866,7 @@ def build_get_date_time_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/date-time/valid') + url = kwargs.pop("template_url", "/array/prim/date-time/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -888,7 +888,7 @@ def build_put_date_time_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/date-time/valid') + url = kwargs.pop("template_url", "/array/prim/date-time/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -910,7 +910,7 @@ def build_get_date_time_invalid_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/date-time/invalidnull') + url = kwargs.pop("template_url", "/array/prim/date-time/invalidnull") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -930,7 +930,7 @@ def build_get_date_time_invalid_chars_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/date-time/invalidchars') + url = kwargs.pop("template_url", "/array/prim/date-time/invalidchars") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -950,7 +950,7 @@ def build_get_date_time_rfc1123_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/date-time-rfc1123/valid') + url = kwargs.pop("template_url", "/array/prim/date-time-rfc1123/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -972,7 +972,7 @@ def build_put_date_time_rfc1123_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/date-time-rfc1123/valid') + url = kwargs.pop("template_url", "/array/prim/date-time-rfc1123/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -994,7 +994,7 @@ def build_get_duration_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/duration/valid') + url = kwargs.pop("template_url", "/array/prim/duration/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1016,7 +1016,7 @@ def build_put_duration_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/duration/valid') + url = kwargs.pop("template_url", "/array/prim/duration/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1038,7 +1038,7 @@ def build_get_byte_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/byte/valid') + url = kwargs.pop("template_url", "/array/prim/byte/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1060,7 +1060,7 @@ def build_put_byte_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/byte/valid') + url = kwargs.pop("template_url", "/array/prim/byte/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1082,7 +1082,7 @@ def build_get_byte_invalid_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/byte/invalidnull') + url = kwargs.pop("template_url", "/array/prim/byte/invalidnull") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1102,7 +1102,7 @@ def build_get_base64_url_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/base64url/valid') + url = kwargs.pop("template_url", "/array/prim/base64url/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1122,7 +1122,7 @@ def build_get_complex_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/complex/null') + url = kwargs.pop("template_url", "/array/complex/null") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1142,7 +1142,7 @@ def build_get_complex_empty_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/complex/empty') + url = kwargs.pop("template_url", "/array/complex/empty") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1162,7 +1162,7 @@ def build_get_complex_item_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/complex/itemnull') + url = kwargs.pop("template_url", "/array/complex/itemnull") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1182,7 +1182,7 @@ def build_get_complex_item_empty_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/complex/itemempty') + url = kwargs.pop("template_url", "/array/complex/itemempty") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1202,7 +1202,7 @@ def build_get_complex_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/complex/valid') + url = kwargs.pop("template_url", "/array/complex/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1224,7 +1224,7 @@ def build_put_complex_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/complex/valid') + url = kwargs.pop("template_url", "/array/complex/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1246,7 +1246,7 @@ def build_get_array_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/array/null') + url = kwargs.pop("template_url", "/array/array/null") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1266,7 +1266,7 @@ def build_get_array_empty_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/array/empty') + url = kwargs.pop("template_url", "/array/array/empty") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1286,7 +1286,7 @@ def build_get_array_item_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/array/itemnull') + url = kwargs.pop("template_url", "/array/array/itemnull") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1306,7 +1306,7 @@ def build_get_array_item_empty_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/array/itemempty') + url = kwargs.pop("template_url", "/array/array/itemempty") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1326,7 +1326,7 @@ def build_get_array_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/array/valid') + url = kwargs.pop("template_url", "/array/array/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1348,7 +1348,7 @@ def build_put_array_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/array/valid') + url = kwargs.pop("template_url", "/array/array/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1370,7 +1370,7 @@ def build_get_dictionary_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/dictionary/null') + url = kwargs.pop("template_url", "/array/dictionary/null") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1390,7 +1390,7 @@ def build_get_dictionary_empty_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/dictionary/empty') + url = kwargs.pop("template_url", "/array/dictionary/empty") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1410,7 +1410,7 @@ def build_get_dictionary_item_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/dictionary/itemnull') + url = kwargs.pop("template_url", "/array/dictionary/itemnull") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1430,7 +1430,7 @@ def build_get_dictionary_item_empty_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/dictionary/itemempty') + url = kwargs.pop("template_url", "/array/dictionary/itemempty") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1450,7 +1450,7 @@ def build_get_dictionary_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/dictionary/valid') + url = kwargs.pop("template_url", "/array/dictionary/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1472,7 +1472,7 @@ def build_put_dictionary_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/dictionary/valid') + url = kwargs.pop("template_url", "/array/dictionary/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyArrayWithNamespaceFolders/vanilla/body/array/operations/_array_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyArrayWithNamespaceFolders/vanilla/body/array/operations/_array_operations.py index 6f79b16a0ac..3f3aa222545 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyArrayWithNamespaceFolders/vanilla/body/array/operations/_array_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyArrayWithNamespaceFolders/vanilla/body/array/operations/_array_operations.py @@ -42,7 +42,7 @@ def build_get_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/null') + url = kwargs.pop("template_url", "/array/null") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -62,7 +62,7 @@ def build_get_invalid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/invalid') + url = kwargs.pop("template_url", "/array/invalid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -82,7 +82,7 @@ def build_get_empty_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/empty') + url = kwargs.pop("template_url", "/array/empty") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -104,7 +104,7 @@ def build_put_empty_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/empty') + url = kwargs.pop("template_url", "/array/empty") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -126,7 +126,7 @@ def build_get_boolean_tfft_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/boolean/tfft') + url = kwargs.pop("template_url", "/array/prim/boolean/tfft") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -148,7 +148,7 @@ def build_put_boolean_tfft_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/boolean/tfft') + url = kwargs.pop("template_url", "/array/prim/boolean/tfft") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -170,7 +170,7 @@ def build_get_boolean_invalid_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/boolean/true.null.false') + url = kwargs.pop("template_url", "/array/prim/boolean/true.null.false") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -190,7 +190,7 @@ def build_get_boolean_invalid_string_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/boolean/true.boolean.false') + url = kwargs.pop("template_url", "/array/prim/boolean/true.boolean.false") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -210,7 +210,7 @@ def build_get_integer_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/integer/1.-1.3.300') + url = kwargs.pop("template_url", "/array/prim/integer/1.-1.3.300") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -232,7 +232,7 @@ def build_put_integer_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/integer/1.-1.3.300') + url = kwargs.pop("template_url", "/array/prim/integer/1.-1.3.300") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -254,7 +254,7 @@ def build_get_int_invalid_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/integer/1.null.zero') + url = kwargs.pop("template_url", "/array/prim/integer/1.null.zero") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -274,7 +274,7 @@ def build_get_int_invalid_string_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/integer/1.integer.0') + url = kwargs.pop("template_url", "/array/prim/integer/1.integer.0") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -294,7 +294,7 @@ def build_get_long_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/long/1.-1.3.300') + url = kwargs.pop("template_url", "/array/prim/long/1.-1.3.300") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -316,7 +316,7 @@ def build_put_long_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/long/1.-1.3.300') + url = kwargs.pop("template_url", "/array/prim/long/1.-1.3.300") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -338,7 +338,7 @@ def build_get_long_invalid_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/long/1.null.zero') + url = kwargs.pop("template_url", "/array/prim/long/1.null.zero") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -358,7 +358,7 @@ def build_get_long_invalid_string_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/long/1.integer.0') + url = kwargs.pop("template_url", "/array/prim/long/1.integer.0") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -378,7 +378,7 @@ def build_get_float_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/float/0--0.01-1.2e20') + url = kwargs.pop("template_url", "/array/prim/float/0--0.01-1.2e20") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -400,7 +400,7 @@ def build_put_float_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/float/0--0.01-1.2e20') + url = kwargs.pop("template_url", "/array/prim/float/0--0.01-1.2e20") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -422,7 +422,7 @@ def build_get_float_invalid_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/float/0.0-null-1.2e20') + url = kwargs.pop("template_url", "/array/prim/float/0.0-null-1.2e20") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -442,7 +442,7 @@ def build_get_float_invalid_string_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/float/1.number.0') + url = kwargs.pop("template_url", "/array/prim/float/1.number.0") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -462,7 +462,7 @@ def build_get_double_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/double/0--0.01-1.2e20') + url = kwargs.pop("template_url", "/array/prim/double/0--0.01-1.2e20") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -484,7 +484,7 @@ def build_put_double_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/double/0--0.01-1.2e20') + url = kwargs.pop("template_url", "/array/prim/double/0--0.01-1.2e20") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -506,7 +506,7 @@ def build_get_double_invalid_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/double/0.0-null-1.2e20') + url = kwargs.pop("template_url", "/array/prim/double/0.0-null-1.2e20") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -526,7 +526,7 @@ def build_get_double_invalid_string_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/double/1.number.0') + url = kwargs.pop("template_url", "/array/prim/double/1.number.0") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -546,7 +546,7 @@ def build_get_string_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/string/foo1.foo2.foo3') + url = kwargs.pop("template_url", "/array/prim/string/foo1.foo2.foo3") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -568,7 +568,7 @@ def build_put_string_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/string/foo1.foo2.foo3') + url = kwargs.pop("template_url", "/array/prim/string/foo1.foo2.foo3") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -590,7 +590,7 @@ def build_get_enum_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/enum/foo1.foo2.foo3') + url = kwargs.pop("template_url", "/array/prim/enum/foo1.foo2.foo3") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -612,7 +612,7 @@ def build_put_enum_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/enum/foo1.foo2.foo3') + url = kwargs.pop("template_url", "/array/prim/enum/foo1.foo2.foo3") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -634,7 +634,7 @@ def build_get_string_enum_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/string-enum/foo1.foo2.foo3') + url = kwargs.pop("template_url", "/array/prim/string-enum/foo1.foo2.foo3") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -656,7 +656,7 @@ def build_put_string_enum_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/string-enum/foo1.foo2.foo3') + url = kwargs.pop("template_url", "/array/prim/string-enum/foo1.foo2.foo3") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -678,7 +678,7 @@ def build_get_string_with_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/string/foo.null.foo2') + url = kwargs.pop("template_url", "/array/prim/string/foo.null.foo2") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -698,7 +698,7 @@ def build_get_string_with_invalid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/string/foo.123.foo2') + url = kwargs.pop("template_url", "/array/prim/string/foo.123.foo2") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -718,7 +718,7 @@ def build_get_uuid_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/uuid/valid') + url = kwargs.pop("template_url", "/array/prim/uuid/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -740,7 +740,7 @@ def build_put_uuid_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/uuid/valid') + url = kwargs.pop("template_url", "/array/prim/uuid/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -762,7 +762,7 @@ def build_get_uuid_invalid_chars_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/uuid/invalidchars') + url = kwargs.pop("template_url", "/array/prim/uuid/invalidchars") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -782,7 +782,7 @@ def build_get_date_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/date/valid') + url = kwargs.pop("template_url", "/array/prim/date/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -804,7 +804,7 @@ def build_put_date_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/date/valid') + url = kwargs.pop("template_url", "/array/prim/date/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -826,7 +826,7 @@ def build_get_date_invalid_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/date/invalidnull') + url = kwargs.pop("template_url", "/array/prim/date/invalidnull") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -846,7 +846,7 @@ def build_get_date_invalid_chars_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/date/invalidchars') + url = kwargs.pop("template_url", "/array/prim/date/invalidchars") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -866,7 +866,7 @@ def build_get_date_time_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/date-time/valid') + url = kwargs.pop("template_url", "/array/prim/date-time/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -888,7 +888,7 @@ def build_put_date_time_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/date-time/valid') + url = kwargs.pop("template_url", "/array/prim/date-time/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -910,7 +910,7 @@ def build_get_date_time_invalid_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/date-time/invalidnull') + url = kwargs.pop("template_url", "/array/prim/date-time/invalidnull") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -930,7 +930,7 @@ def build_get_date_time_invalid_chars_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/date-time/invalidchars') + url = kwargs.pop("template_url", "/array/prim/date-time/invalidchars") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -950,7 +950,7 @@ def build_get_date_time_rfc1123_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/date-time-rfc1123/valid') + url = kwargs.pop("template_url", "/array/prim/date-time-rfc1123/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -972,7 +972,7 @@ def build_put_date_time_rfc1123_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/date-time-rfc1123/valid') + url = kwargs.pop("template_url", "/array/prim/date-time-rfc1123/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -994,7 +994,7 @@ def build_get_duration_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/duration/valid') + url = kwargs.pop("template_url", "/array/prim/duration/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1016,7 +1016,7 @@ def build_put_duration_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/duration/valid') + url = kwargs.pop("template_url", "/array/prim/duration/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1038,7 +1038,7 @@ def build_get_byte_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/byte/valid') + url = kwargs.pop("template_url", "/array/prim/byte/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1060,7 +1060,7 @@ def build_put_byte_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/byte/valid') + url = kwargs.pop("template_url", "/array/prim/byte/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1082,7 +1082,7 @@ def build_get_byte_invalid_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/byte/invalidnull') + url = kwargs.pop("template_url", "/array/prim/byte/invalidnull") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1102,7 +1102,7 @@ def build_get_base64_url_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/base64url/valid') + url = kwargs.pop("template_url", "/array/prim/base64url/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1122,7 +1122,7 @@ def build_get_complex_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/complex/null') + url = kwargs.pop("template_url", "/array/complex/null") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1142,7 +1142,7 @@ def build_get_complex_empty_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/complex/empty') + url = kwargs.pop("template_url", "/array/complex/empty") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1162,7 +1162,7 @@ def build_get_complex_item_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/complex/itemnull') + url = kwargs.pop("template_url", "/array/complex/itemnull") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1182,7 +1182,7 @@ def build_get_complex_item_empty_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/complex/itemempty') + url = kwargs.pop("template_url", "/array/complex/itemempty") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1202,7 +1202,7 @@ def build_get_complex_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/complex/valid') + url = kwargs.pop("template_url", "/array/complex/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1224,7 +1224,7 @@ def build_put_complex_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/complex/valid') + url = kwargs.pop("template_url", "/array/complex/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1246,7 +1246,7 @@ def build_get_array_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/array/null') + url = kwargs.pop("template_url", "/array/array/null") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1266,7 +1266,7 @@ def build_get_array_empty_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/array/empty') + url = kwargs.pop("template_url", "/array/array/empty") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1286,7 +1286,7 @@ def build_get_array_item_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/array/itemnull') + url = kwargs.pop("template_url", "/array/array/itemnull") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1306,7 +1306,7 @@ def build_get_array_item_empty_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/array/itemempty') + url = kwargs.pop("template_url", "/array/array/itemempty") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1326,7 +1326,7 @@ def build_get_array_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/array/valid') + url = kwargs.pop("template_url", "/array/array/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1348,7 +1348,7 @@ def build_put_array_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/array/valid') + url = kwargs.pop("template_url", "/array/array/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1370,7 +1370,7 @@ def build_get_dictionary_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/dictionary/null') + url = kwargs.pop("template_url", "/array/dictionary/null") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1390,7 +1390,7 @@ def build_get_dictionary_empty_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/dictionary/empty') + url = kwargs.pop("template_url", "/array/dictionary/empty") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1410,7 +1410,7 @@ def build_get_dictionary_item_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/dictionary/itemnull') + url = kwargs.pop("template_url", "/array/dictionary/itemnull") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1430,7 +1430,7 @@ def build_get_dictionary_item_empty_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/dictionary/itemempty') + url = kwargs.pop("template_url", "/array/dictionary/itemempty") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1450,7 +1450,7 @@ def build_get_dictionary_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/dictionary/valid') + url = kwargs.pop("template_url", "/array/dictionary/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1472,7 +1472,7 @@ def build_put_dictionary_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/dictionary/valid') + url = kwargs.pop("template_url", "/array/dictionary/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyArrayWithPythonThreeOperationFiles/bodyarraywithpythonthreeoperationfiles/operations/_array_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyArrayWithPythonThreeOperationFiles/bodyarraywithpythonthreeoperationfiles/operations/_array_operations.py index f6d236a6b0d..2a615fe12a0 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyArrayWithPythonThreeOperationFiles/bodyarraywithpythonthreeoperationfiles/operations/_array_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyArrayWithPythonThreeOperationFiles/bodyarraywithpythonthreeoperationfiles/operations/_array_operations.py @@ -43,7 +43,7 @@ def build_get_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/null') + url = kwargs.pop("template_url", "/array/null") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -63,7 +63,7 @@ def build_get_invalid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/invalid') + url = kwargs.pop("template_url", "/array/invalid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -83,7 +83,7 @@ def build_get_empty_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/empty') + url = kwargs.pop("template_url", "/array/empty") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -105,7 +105,7 @@ def build_put_empty_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/empty') + url = kwargs.pop("template_url", "/array/empty") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -127,7 +127,7 @@ def build_get_boolean_tfft_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/boolean/tfft') + url = kwargs.pop("template_url", "/array/prim/boolean/tfft") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -149,7 +149,7 @@ def build_put_boolean_tfft_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/boolean/tfft') + url = kwargs.pop("template_url", "/array/prim/boolean/tfft") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -171,7 +171,7 @@ def build_get_boolean_invalid_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/boolean/true.null.false') + url = kwargs.pop("template_url", "/array/prim/boolean/true.null.false") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -191,7 +191,7 @@ def build_get_boolean_invalid_string_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/boolean/true.boolean.false') + url = kwargs.pop("template_url", "/array/prim/boolean/true.boolean.false") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -211,7 +211,7 @@ def build_get_integer_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/integer/1.-1.3.300') + url = kwargs.pop("template_url", "/array/prim/integer/1.-1.3.300") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -233,7 +233,7 @@ def build_put_integer_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/integer/1.-1.3.300') + url = kwargs.pop("template_url", "/array/prim/integer/1.-1.3.300") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -255,7 +255,7 @@ def build_get_int_invalid_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/integer/1.null.zero') + url = kwargs.pop("template_url", "/array/prim/integer/1.null.zero") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -275,7 +275,7 @@ def build_get_int_invalid_string_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/integer/1.integer.0') + url = kwargs.pop("template_url", "/array/prim/integer/1.integer.0") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -295,7 +295,7 @@ def build_get_long_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/long/1.-1.3.300') + url = kwargs.pop("template_url", "/array/prim/long/1.-1.3.300") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -317,7 +317,7 @@ def build_put_long_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/long/1.-1.3.300') + url = kwargs.pop("template_url", "/array/prim/long/1.-1.3.300") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -339,7 +339,7 @@ def build_get_long_invalid_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/long/1.null.zero') + url = kwargs.pop("template_url", "/array/prim/long/1.null.zero") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -359,7 +359,7 @@ def build_get_long_invalid_string_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/long/1.integer.0') + url = kwargs.pop("template_url", "/array/prim/long/1.integer.0") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -379,7 +379,7 @@ def build_get_float_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/float/0--0.01-1.2e20') + url = kwargs.pop("template_url", "/array/prim/float/0--0.01-1.2e20") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -401,7 +401,7 @@ def build_put_float_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/float/0--0.01-1.2e20') + url = kwargs.pop("template_url", "/array/prim/float/0--0.01-1.2e20") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -423,7 +423,7 @@ def build_get_float_invalid_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/float/0.0-null-1.2e20') + url = kwargs.pop("template_url", "/array/prim/float/0.0-null-1.2e20") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -443,7 +443,7 @@ def build_get_float_invalid_string_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/float/1.number.0') + url = kwargs.pop("template_url", "/array/prim/float/1.number.0") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -463,7 +463,7 @@ def build_get_double_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/double/0--0.01-1.2e20') + url = kwargs.pop("template_url", "/array/prim/double/0--0.01-1.2e20") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -485,7 +485,7 @@ def build_put_double_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/double/0--0.01-1.2e20') + url = kwargs.pop("template_url", "/array/prim/double/0--0.01-1.2e20") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -507,7 +507,7 @@ def build_get_double_invalid_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/double/0.0-null-1.2e20') + url = kwargs.pop("template_url", "/array/prim/double/0.0-null-1.2e20") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -527,7 +527,7 @@ def build_get_double_invalid_string_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/double/1.number.0') + url = kwargs.pop("template_url", "/array/prim/double/1.number.0") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -547,7 +547,7 @@ def build_get_string_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/string/foo1.foo2.foo3') + url = kwargs.pop("template_url", "/array/prim/string/foo1.foo2.foo3") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -569,7 +569,7 @@ def build_put_string_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/string/foo1.foo2.foo3') + url = kwargs.pop("template_url", "/array/prim/string/foo1.foo2.foo3") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -591,7 +591,7 @@ def build_get_enum_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/enum/foo1.foo2.foo3') + url = kwargs.pop("template_url", "/array/prim/enum/foo1.foo2.foo3") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -613,7 +613,7 @@ def build_put_enum_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/enum/foo1.foo2.foo3') + url = kwargs.pop("template_url", "/array/prim/enum/foo1.foo2.foo3") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -635,7 +635,7 @@ def build_get_string_enum_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/string-enum/foo1.foo2.foo3') + url = kwargs.pop("template_url", "/array/prim/string-enum/foo1.foo2.foo3") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -657,7 +657,7 @@ def build_put_string_enum_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/string-enum/foo1.foo2.foo3') + url = kwargs.pop("template_url", "/array/prim/string-enum/foo1.foo2.foo3") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -679,7 +679,7 @@ def build_get_string_with_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/string/foo.null.foo2') + url = kwargs.pop("template_url", "/array/prim/string/foo.null.foo2") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -699,7 +699,7 @@ def build_get_string_with_invalid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/string/foo.123.foo2') + url = kwargs.pop("template_url", "/array/prim/string/foo.123.foo2") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -719,7 +719,7 @@ def build_get_uuid_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/uuid/valid') + url = kwargs.pop("template_url", "/array/prim/uuid/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -741,7 +741,7 @@ def build_put_uuid_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/uuid/valid') + url = kwargs.pop("template_url", "/array/prim/uuid/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -763,7 +763,7 @@ def build_get_uuid_invalid_chars_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/uuid/invalidchars') + url = kwargs.pop("template_url", "/array/prim/uuid/invalidchars") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -783,7 +783,7 @@ def build_get_date_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/date/valid') + url = kwargs.pop("template_url", "/array/prim/date/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -805,7 +805,7 @@ def build_put_date_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/date/valid') + url = kwargs.pop("template_url", "/array/prim/date/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -827,7 +827,7 @@ def build_get_date_invalid_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/date/invalidnull') + url = kwargs.pop("template_url", "/array/prim/date/invalidnull") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -847,7 +847,7 @@ def build_get_date_invalid_chars_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/date/invalidchars') + url = kwargs.pop("template_url", "/array/prim/date/invalidchars") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -867,7 +867,7 @@ def build_get_date_time_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/date-time/valid') + url = kwargs.pop("template_url", "/array/prim/date-time/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -889,7 +889,7 @@ def build_put_date_time_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/date-time/valid') + url = kwargs.pop("template_url", "/array/prim/date-time/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -911,7 +911,7 @@ def build_get_date_time_invalid_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/date-time/invalidnull') + url = kwargs.pop("template_url", "/array/prim/date-time/invalidnull") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -931,7 +931,7 @@ def build_get_date_time_invalid_chars_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/date-time/invalidchars') + url = kwargs.pop("template_url", "/array/prim/date-time/invalidchars") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -951,7 +951,7 @@ def build_get_date_time_rfc1123_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/date-time-rfc1123/valid') + url = kwargs.pop("template_url", "/array/prim/date-time-rfc1123/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -973,7 +973,7 @@ def build_put_date_time_rfc1123_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/date-time-rfc1123/valid') + url = kwargs.pop("template_url", "/array/prim/date-time-rfc1123/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -995,7 +995,7 @@ def build_get_duration_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/duration/valid') + url = kwargs.pop("template_url", "/array/prim/duration/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1017,7 +1017,7 @@ def build_put_duration_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/duration/valid') + url = kwargs.pop("template_url", "/array/prim/duration/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1039,7 +1039,7 @@ def build_get_byte_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/byte/valid') + url = kwargs.pop("template_url", "/array/prim/byte/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1061,7 +1061,7 @@ def build_put_byte_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/byte/valid') + url = kwargs.pop("template_url", "/array/prim/byte/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1083,7 +1083,7 @@ def build_get_byte_invalid_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/byte/invalidnull') + url = kwargs.pop("template_url", "/array/prim/byte/invalidnull") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1103,7 +1103,7 @@ def build_get_base64_url_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/prim/base64url/valid') + url = kwargs.pop("template_url", "/array/prim/base64url/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1123,7 +1123,7 @@ def build_get_complex_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/complex/null') + url = kwargs.pop("template_url", "/array/complex/null") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1143,7 +1143,7 @@ def build_get_complex_empty_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/complex/empty') + url = kwargs.pop("template_url", "/array/complex/empty") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1163,7 +1163,7 @@ def build_get_complex_item_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/complex/itemnull') + url = kwargs.pop("template_url", "/array/complex/itemnull") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1183,7 +1183,7 @@ def build_get_complex_item_empty_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/complex/itemempty') + url = kwargs.pop("template_url", "/array/complex/itemempty") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1203,7 +1203,7 @@ def build_get_complex_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/complex/valid') + url = kwargs.pop("template_url", "/array/complex/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1225,7 +1225,7 @@ def build_put_complex_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/complex/valid') + url = kwargs.pop("template_url", "/array/complex/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1247,7 +1247,7 @@ def build_get_array_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/array/null') + url = kwargs.pop("template_url", "/array/array/null") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1267,7 +1267,7 @@ def build_get_array_empty_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/array/empty') + url = kwargs.pop("template_url", "/array/array/empty") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1287,7 +1287,7 @@ def build_get_array_item_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/array/itemnull') + url = kwargs.pop("template_url", "/array/array/itemnull") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1307,7 +1307,7 @@ def build_get_array_item_empty_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/array/itemempty') + url = kwargs.pop("template_url", "/array/array/itemempty") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1327,7 +1327,7 @@ def build_get_array_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/array/valid') + url = kwargs.pop("template_url", "/array/array/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1349,7 +1349,7 @@ def build_put_array_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/array/valid') + url = kwargs.pop("template_url", "/array/array/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1371,7 +1371,7 @@ def build_get_dictionary_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/dictionary/null') + url = kwargs.pop("template_url", "/array/dictionary/null") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1391,7 +1391,7 @@ def build_get_dictionary_empty_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/dictionary/empty') + url = kwargs.pop("template_url", "/array/dictionary/empty") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1411,7 +1411,7 @@ def build_get_dictionary_item_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/dictionary/itemnull') + url = kwargs.pop("template_url", "/array/dictionary/itemnull") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1431,7 +1431,7 @@ def build_get_dictionary_item_empty_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/dictionary/itemempty') + url = kwargs.pop("template_url", "/array/dictionary/itemempty") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1451,7 +1451,7 @@ def build_get_dictionary_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/dictionary/valid') + url = kwargs.pop("template_url", "/array/dictionary/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1473,7 +1473,7 @@ def build_put_dictionary_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/array/dictionary/valid') + url = kwargs.pop("template_url", "/array/dictionary/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyBinary/bodybinary/operations/_upload_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyBinary/bodybinary/operations/_upload_operations.py index 1f0630ffa60..2af8ec8839f 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyBinary/bodybinary/operations/_upload_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyBinary/bodybinary/operations/_upload_operations.py @@ -41,7 +41,7 @@ def build_file_request( content_type = kwargs.pop('content_type', None) # type: Optional[str] # Construct URL - url = kwargs.pop("template_url", '/binary/file') + url = kwargs.pop("template_url", "/binary/file") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -63,7 +63,7 @@ def build_binary_request( content_type = kwargs.pop('content_type', None) # type: Optional[str] # Construct URL - url = kwargs.pop("template_url", '/binary/octet') + url = kwargs.pop("template_url", "/binary/octet") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyBoolean/bodyboolean/operations/_bool_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyBoolean/bodyboolean/operations/_bool_operations.py index b4a483a8e45..4d9cfff8a54 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyBoolean/bodyboolean/operations/_bool_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyBoolean/bodyboolean/operations/_bool_operations.py @@ -41,7 +41,7 @@ def build_get_true_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/bool/true') + url = kwargs.pop("template_url", "/bool/true") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -64,7 +64,7 @@ def build_put_true_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/bool/true') + url = kwargs.pop("template_url", "/bool/true") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -87,7 +87,7 @@ def build_get_false_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/bool/false') + url = kwargs.pop("template_url", "/bool/false") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -110,7 +110,7 @@ def build_put_false_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/bool/false') + url = kwargs.pop("template_url", "/bool/false") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -133,7 +133,7 @@ def build_get_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/bool/null') + url = kwargs.pop("template_url", "/bool/null") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -153,7 +153,7 @@ def build_get_invalid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/bool/invalid') + url = kwargs.pop("template_url", "/bool/invalid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyByte/bodybyte/operations/_byte_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyByte/bodybyte/operations/_byte_operations.py index b9ca4e9a9a0..66fdbd05c8d 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyByte/bodybyte/operations/_byte_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyByte/bodybyte/operations/_byte_operations.py @@ -41,7 +41,7 @@ def build_get_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/byte/null') + url = kwargs.pop("template_url", "/byte/null") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -61,7 +61,7 @@ def build_get_empty_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/byte/empty') + url = kwargs.pop("template_url", "/byte/empty") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -81,7 +81,7 @@ def build_get_non_ascii_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/byte/nonAscii') + url = kwargs.pop("template_url", "/byte/nonAscii") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -103,7 +103,7 @@ def build_put_non_ascii_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/byte/nonAscii') + url = kwargs.pop("template_url", "/byte/nonAscii") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -125,7 +125,7 @@ def build_get_invalid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/byte/invalid') + url = kwargs.pop("template_url", "/byte/invalid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyByteWithPackageName/bodybytewithpackagename/operations/_byte_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyByteWithPackageName/bodybytewithpackagename/operations/_byte_operations.py index b59355d4adc..c18d6211c36 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyByteWithPackageName/bodybytewithpackagename/operations/_byte_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyByteWithPackageName/bodybytewithpackagename/operations/_byte_operations.py @@ -41,7 +41,7 @@ def build_get_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/byte/null') + url = kwargs.pop("template_url", "/byte/null") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -61,7 +61,7 @@ def build_get_empty_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/byte/empty') + url = kwargs.pop("template_url", "/byte/empty") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -81,7 +81,7 @@ def build_get_non_ascii_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/byte/nonAscii') + url = kwargs.pop("template_url", "/byte/nonAscii") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -103,7 +103,7 @@ def build_put_non_ascii_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/byte/nonAscii') + url = kwargs.pop("template_url", "/byte/nonAscii") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -125,7 +125,7 @@ def build_get_invalid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/byte/invalid') + url = kwargs.pop("template_url", "/byte/invalid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_array_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_array_operations.py index 04c577ea9c5..902ab56da08 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_array_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_array_operations.py @@ -40,7 +40,7 @@ def build_get_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/complex/array/valid') + url = kwargs.pop("template_url", "/complex/array/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -62,7 +62,7 @@ def build_put_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/complex/array/valid') + url = kwargs.pop("template_url", "/complex/array/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -84,7 +84,7 @@ def build_get_empty_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/complex/array/empty') + url = kwargs.pop("template_url", "/complex/array/empty") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -106,7 +106,7 @@ def build_put_empty_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/complex/array/empty') + url = kwargs.pop("template_url", "/complex/array/empty") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -128,7 +128,7 @@ def build_get_not_provided_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/complex/array/notprovided') + url = kwargs.pop("template_url", "/complex/array/notprovided") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_basic_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_basic_operations.py index 62bf96ec185..1cabdeafc38 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_basic_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_basic_operations.py @@ -40,7 +40,7 @@ def build_get_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/complex/basic/valid') + url = kwargs.pop("template_url", "/complex/basic/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -63,7 +63,7 @@ def build_put_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/complex/basic/valid') + url = kwargs.pop("template_url", "/complex/basic/valid") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -90,7 +90,7 @@ def build_get_invalid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/complex/basic/invalid') + url = kwargs.pop("template_url", "/complex/basic/invalid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -110,7 +110,7 @@ def build_get_empty_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/complex/basic/empty') + url = kwargs.pop("template_url", "/complex/basic/empty") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -130,7 +130,7 @@ def build_get_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/complex/basic/null') + url = kwargs.pop("template_url", "/complex/basic/null") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -150,7 +150,7 @@ def build_get_not_provided_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/complex/basic/notprovided') + url = kwargs.pop("template_url", "/complex/basic/notprovided") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_dictionary_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_dictionary_operations.py index 26d1c93bb1f..fc627eb0412 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_dictionary_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_dictionary_operations.py @@ -40,7 +40,7 @@ def build_get_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/complex/dictionary/typed/valid') + url = kwargs.pop("template_url", "/complex/dictionary/typed/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -62,7 +62,7 @@ def build_put_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/complex/dictionary/typed/valid') + url = kwargs.pop("template_url", "/complex/dictionary/typed/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -84,7 +84,7 @@ def build_get_empty_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/complex/dictionary/typed/empty') + url = kwargs.pop("template_url", "/complex/dictionary/typed/empty") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -106,7 +106,7 @@ def build_put_empty_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/complex/dictionary/typed/empty') + url = kwargs.pop("template_url", "/complex/dictionary/typed/empty") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -128,7 +128,7 @@ def build_get_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/complex/dictionary/typed/null') + url = kwargs.pop("template_url", "/complex/dictionary/typed/null") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -148,7 +148,7 @@ def build_get_not_provided_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/complex/dictionary/typed/notprovided') + url = kwargs.pop("template_url", "/complex/dictionary/typed/notprovided") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_flattencomplex_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_flattencomplex_operations.py index d69c92d3715..003a40dfc95 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_flattencomplex_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_flattencomplex_operations.py @@ -40,7 +40,7 @@ def build_get_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/complex/flatten/valid') + url = kwargs.pop("template_url", "/complex/flatten/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_inheritance_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_inheritance_operations.py index a29035ef210..24796bd40b1 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_inheritance_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_inheritance_operations.py @@ -40,7 +40,7 @@ def build_get_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/complex/inheritance/valid') + url = kwargs.pop("template_url", "/complex/inheritance/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -62,7 +62,7 @@ def build_put_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/complex/inheritance/valid') + url = kwargs.pop("template_url", "/complex/inheritance/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_polymorphicrecursive_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_polymorphicrecursive_operations.py index 7a100bb310c..c3475ec6055 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_polymorphicrecursive_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_polymorphicrecursive_operations.py @@ -40,7 +40,7 @@ def build_get_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/complex/polymorphicrecursive/valid') + url = kwargs.pop("template_url", "/complex/polymorphicrecursive/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -62,7 +62,7 @@ def build_put_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/complex/polymorphicrecursive/valid') + url = kwargs.pop("template_url", "/complex/polymorphicrecursive/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_polymorphism_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_polymorphism_operations.py index b64150bf2e4..2fa5b1435ab 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_polymorphism_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_polymorphism_operations.py @@ -40,7 +40,7 @@ def build_get_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/complex/polymorphism/valid') + url = kwargs.pop("template_url", "/complex/polymorphism/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -62,7 +62,7 @@ def build_put_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/complex/polymorphism/valid') + url = kwargs.pop("template_url", "/complex/polymorphism/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -84,7 +84,7 @@ def build_get_dot_syntax_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/complex/polymorphism/dotsyntax') + url = kwargs.pop("template_url", "/complex/polymorphism/dotsyntax") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -104,7 +104,7 @@ def build_get_composed_with_discriminator_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/complex/polymorphism/composedWithDiscriminator') + url = kwargs.pop("template_url", "/complex/polymorphism/composedWithDiscriminator") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -124,7 +124,7 @@ def build_get_composed_without_discriminator_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/complex/polymorphism/composedWithoutDiscriminator') + url = kwargs.pop("template_url", "/complex/polymorphism/composedWithoutDiscriminator") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -144,7 +144,7 @@ def build_get_complicated_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/complex/polymorphism/complicated') + url = kwargs.pop("template_url", "/complex/polymorphism/complicated") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -166,7 +166,7 @@ def build_put_complicated_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/complex/polymorphism/complicated') + url = kwargs.pop("template_url", "/complex/polymorphism/complicated") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -190,7 +190,7 @@ def build_put_missing_discriminator_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/complex/polymorphism/missingdiscriminator') + url = kwargs.pop("template_url", "/complex/polymorphism/missingdiscriminator") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -214,7 +214,7 @@ def build_put_valid_missing_required_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/complex/polymorphism/missingrequired/invalid') + url = kwargs.pop("template_url", "/complex/polymorphism/missingrequired/invalid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_primitive_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_primitive_operations.py index ad8383ff84f..0b90e149a67 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_primitive_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_primitive_operations.py @@ -41,7 +41,7 @@ def build_get_int_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/complex/primitive/integer') + url = kwargs.pop("template_url", "/complex/primitive/integer") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -63,7 +63,7 @@ def build_put_int_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/complex/primitive/integer') + url = kwargs.pop("template_url", "/complex/primitive/integer") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -85,7 +85,7 @@ def build_get_long_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/complex/primitive/long') + url = kwargs.pop("template_url", "/complex/primitive/long") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -107,7 +107,7 @@ def build_put_long_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/complex/primitive/long') + url = kwargs.pop("template_url", "/complex/primitive/long") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -129,7 +129,7 @@ def build_get_float_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/complex/primitive/float') + url = kwargs.pop("template_url", "/complex/primitive/float") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -151,7 +151,7 @@ def build_put_float_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/complex/primitive/float') + url = kwargs.pop("template_url", "/complex/primitive/float") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -173,7 +173,7 @@ def build_get_double_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/complex/primitive/double') + url = kwargs.pop("template_url", "/complex/primitive/double") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -195,7 +195,7 @@ def build_put_double_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/complex/primitive/double') + url = kwargs.pop("template_url", "/complex/primitive/double") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -217,7 +217,7 @@ def build_get_bool_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/complex/primitive/bool') + url = kwargs.pop("template_url", "/complex/primitive/bool") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -239,7 +239,7 @@ def build_put_bool_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/complex/primitive/bool') + url = kwargs.pop("template_url", "/complex/primitive/bool") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -261,7 +261,7 @@ def build_get_string_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/complex/primitive/string') + url = kwargs.pop("template_url", "/complex/primitive/string") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -283,7 +283,7 @@ def build_put_string_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/complex/primitive/string') + url = kwargs.pop("template_url", "/complex/primitive/string") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -305,7 +305,7 @@ def build_get_date_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/complex/primitive/date') + url = kwargs.pop("template_url", "/complex/primitive/date") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -327,7 +327,7 @@ def build_put_date_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/complex/primitive/date') + url = kwargs.pop("template_url", "/complex/primitive/date") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -349,7 +349,7 @@ def build_get_date_time_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/complex/primitive/datetime') + url = kwargs.pop("template_url", "/complex/primitive/datetime") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -371,7 +371,7 @@ def build_put_date_time_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/complex/primitive/datetime') + url = kwargs.pop("template_url", "/complex/primitive/datetime") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -393,7 +393,7 @@ def build_get_date_time_rfc1123_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/complex/primitive/datetimerfc1123') + url = kwargs.pop("template_url", "/complex/primitive/datetimerfc1123") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -415,7 +415,7 @@ def build_put_date_time_rfc1123_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/complex/primitive/datetimerfc1123') + url = kwargs.pop("template_url", "/complex/primitive/datetimerfc1123") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -437,7 +437,7 @@ def build_get_duration_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/complex/primitive/duration') + url = kwargs.pop("template_url", "/complex/primitive/duration") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -459,7 +459,7 @@ def build_put_duration_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/complex/primitive/duration') + url = kwargs.pop("template_url", "/complex/primitive/duration") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -481,7 +481,7 @@ def build_get_byte_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/complex/primitive/byte') + url = kwargs.pop("template_url", "/complex/primitive/byte") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -503,7 +503,7 @@ def build_put_byte_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/complex/primitive/byte') + url = kwargs.pop("template_url", "/complex/primitive/byte") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_readonlyproperty_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_readonlyproperty_operations.py index 851444190df..84547281c6c 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_readonlyproperty_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_readonlyproperty_operations.py @@ -40,7 +40,7 @@ def build_get_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/complex/readonlyproperty/valid') + url = kwargs.pop("template_url", "/complex/readonlyproperty/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -62,7 +62,7 @@ def build_put_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/complex/readonlyproperty/valid') + url = kwargs.pop("template_url", "/complex/readonlyproperty/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyDate/bodydate/operations/_date_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyDate/bodydate/operations/_date_operations.py index e10224d2c79..4791f64737c 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyDate/bodydate/operations/_date_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyDate/bodydate/operations/_date_operations.py @@ -42,7 +42,7 @@ def build_get_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/date/null') + url = kwargs.pop("template_url", "/date/null") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -62,7 +62,7 @@ def build_get_invalid_date_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/date/invaliddate') + url = kwargs.pop("template_url", "/date/invaliddate") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -82,7 +82,7 @@ def build_get_overflow_date_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/date/overflowdate') + url = kwargs.pop("template_url", "/date/overflowdate") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -102,7 +102,7 @@ def build_get_underflow_date_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/date/underflowdate') + url = kwargs.pop("template_url", "/date/underflowdate") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -124,7 +124,7 @@ def build_put_max_date_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/date/max') + url = kwargs.pop("template_url", "/date/max") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -146,7 +146,7 @@ def build_get_max_date_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/date/max') + url = kwargs.pop("template_url", "/date/max") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -168,7 +168,7 @@ def build_put_min_date_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/date/min') + url = kwargs.pop("template_url", "/date/min") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -190,7 +190,7 @@ def build_get_min_date_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/date/min') + url = kwargs.pop("template_url", "/date/min") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyDateTime/bodydatetime/operations/_datetime_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyDateTime/bodydatetime/operations/_datetime_operations.py index 1ab9e7589c0..4cfd078d4a4 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyDateTime/bodydatetime/operations/_datetime_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyDateTime/bodydatetime/operations/_datetime_operations.py @@ -42,7 +42,7 @@ def build_get_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/datetime/null') + url = kwargs.pop("template_url", "/datetime/null") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -62,7 +62,7 @@ def build_get_invalid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/datetime/invalid') + url = kwargs.pop("template_url", "/datetime/invalid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -82,7 +82,7 @@ def build_get_overflow_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/datetime/overflow') + url = kwargs.pop("template_url", "/datetime/overflow") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -102,7 +102,7 @@ def build_get_underflow_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/datetime/underflow') + url = kwargs.pop("template_url", "/datetime/underflow") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -124,7 +124,7 @@ def build_put_utc_max_date_time_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/datetime/max/utc') + url = kwargs.pop("template_url", "/datetime/max/utc") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -148,7 +148,7 @@ def build_put_utc_max_date_time7_digits_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/datetime/max/utc7ms') + url = kwargs.pop("template_url", "/datetime/max/utc7ms") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -170,7 +170,7 @@ def build_get_utc_lowercase_max_date_time_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/datetime/max/utc/lowercase') + url = kwargs.pop("template_url", "/datetime/max/utc/lowercase") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -190,7 +190,7 @@ def build_get_utc_uppercase_max_date_time_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/datetime/max/utc/uppercase') + url = kwargs.pop("template_url", "/datetime/max/utc/uppercase") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -210,7 +210,7 @@ def build_get_utc_uppercase_max_date_time7_digits_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/datetime/max/utc7ms/uppercase') + url = kwargs.pop("template_url", "/datetime/max/utc7ms/uppercase") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -232,7 +232,7 @@ def build_put_local_positive_offset_max_date_time_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/datetime/max/localpositiveoffset') + url = kwargs.pop("template_url", "/datetime/max/localpositiveoffset") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -254,7 +254,7 @@ def build_get_local_positive_offset_lowercase_max_date_time_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/datetime/max/localpositiveoffset/lowercase') + url = kwargs.pop("template_url", "/datetime/max/localpositiveoffset/lowercase") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -274,7 +274,7 @@ def build_get_local_positive_offset_uppercase_max_date_time_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/datetime/max/localpositiveoffset/uppercase') + url = kwargs.pop("template_url", "/datetime/max/localpositiveoffset/uppercase") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -296,7 +296,7 @@ def build_put_local_negative_offset_max_date_time_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/datetime/max/localnegativeoffset') + url = kwargs.pop("template_url", "/datetime/max/localnegativeoffset") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -318,7 +318,7 @@ def build_get_local_negative_offset_uppercase_max_date_time_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/datetime/max/localnegativeoffset/uppercase') + url = kwargs.pop("template_url", "/datetime/max/localnegativeoffset/uppercase") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -338,7 +338,7 @@ def build_get_local_negative_offset_lowercase_max_date_time_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/datetime/max/localnegativeoffset/lowercase') + url = kwargs.pop("template_url", "/datetime/max/localnegativeoffset/lowercase") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -360,7 +360,7 @@ def build_put_utc_min_date_time_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/datetime/min/utc') + url = kwargs.pop("template_url", "/datetime/min/utc") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -382,7 +382,7 @@ def build_get_utc_min_date_time_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/datetime/min/utc') + url = kwargs.pop("template_url", "/datetime/min/utc") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -404,7 +404,7 @@ def build_put_local_positive_offset_min_date_time_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/datetime/min/localpositiveoffset') + url = kwargs.pop("template_url", "/datetime/min/localpositiveoffset") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -426,7 +426,7 @@ def build_get_local_positive_offset_min_date_time_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/datetime/min/localpositiveoffset') + url = kwargs.pop("template_url", "/datetime/min/localpositiveoffset") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -448,7 +448,7 @@ def build_put_local_negative_offset_min_date_time_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/datetime/min/localnegativeoffset') + url = kwargs.pop("template_url", "/datetime/min/localnegativeoffset") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -470,7 +470,7 @@ def build_get_local_negative_offset_min_date_time_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/datetime/min/localnegativeoffset') + url = kwargs.pop("template_url", "/datetime/min/localnegativeoffset") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -490,7 +490,7 @@ def build_get_local_no_offset_min_date_time_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/datetime/min/localnooffset') + url = kwargs.pop("template_url", "/datetime/min/localnooffset") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyDateTimeRfc1123/bodydatetimerfc1123/operations/_datetimerfc1123_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyDateTimeRfc1123/bodydatetimerfc1123/operations/_datetimerfc1123_operations.py index 6bf85f8df53..937ad2e5698 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyDateTimeRfc1123/bodydatetimerfc1123/operations/_datetimerfc1123_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyDateTimeRfc1123/bodydatetimerfc1123/operations/_datetimerfc1123_operations.py @@ -42,7 +42,7 @@ def build_get_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/datetimerfc1123/null') + url = kwargs.pop("template_url", "/datetimerfc1123/null") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -62,7 +62,7 @@ def build_get_invalid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/datetimerfc1123/invalid') + url = kwargs.pop("template_url", "/datetimerfc1123/invalid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -82,7 +82,7 @@ def build_get_overflow_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/datetimerfc1123/overflow') + url = kwargs.pop("template_url", "/datetimerfc1123/overflow") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -102,7 +102,7 @@ def build_get_underflow_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/datetimerfc1123/underflow') + url = kwargs.pop("template_url", "/datetimerfc1123/underflow") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -124,7 +124,7 @@ def build_put_utc_max_date_time_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/datetimerfc1123/max') + url = kwargs.pop("template_url", "/datetimerfc1123/max") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -146,7 +146,7 @@ def build_get_utc_lowercase_max_date_time_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/datetimerfc1123/max/lowercase') + url = kwargs.pop("template_url", "/datetimerfc1123/max/lowercase") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -166,7 +166,7 @@ def build_get_utc_uppercase_max_date_time_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/datetimerfc1123/max/uppercase') + url = kwargs.pop("template_url", "/datetimerfc1123/max/uppercase") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -188,7 +188,7 @@ def build_put_utc_min_date_time_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/datetimerfc1123/min') + url = kwargs.pop("template_url", "/datetimerfc1123/min") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -210,7 +210,7 @@ def build_get_utc_min_date_time_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/datetimerfc1123/min') + url = kwargs.pop("template_url", "/datetimerfc1123/min") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyDictionary/bodydictionary/operations/_dictionary_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyDictionary/bodydictionary/operations/_dictionary_operations.py index d96b9d8a95c..d004f0889f8 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyDictionary/bodydictionary/operations/_dictionary_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyDictionary/bodydictionary/operations/_dictionary_operations.py @@ -42,7 +42,7 @@ def build_get_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/dictionary/null') + url = kwargs.pop("template_url", "/dictionary/null") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -62,7 +62,7 @@ def build_get_empty_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/dictionary/empty') + url = kwargs.pop("template_url", "/dictionary/empty") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -84,7 +84,7 @@ def build_put_empty_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/dictionary/empty') + url = kwargs.pop("template_url", "/dictionary/empty") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -106,7 +106,7 @@ def build_get_null_value_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/dictionary/nullvalue') + url = kwargs.pop("template_url", "/dictionary/nullvalue") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -126,7 +126,7 @@ def build_get_null_key_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/dictionary/nullkey') + url = kwargs.pop("template_url", "/dictionary/nullkey") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -146,7 +146,7 @@ def build_get_empty_string_key_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/dictionary/keyemptystring') + url = kwargs.pop("template_url", "/dictionary/keyemptystring") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -166,7 +166,7 @@ def build_get_invalid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/dictionary/invalid') + url = kwargs.pop("template_url", "/dictionary/invalid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -186,7 +186,7 @@ def build_get_boolean_tfft_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/dictionary/prim/boolean/tfft') + url = kwargs.pop("template_url", "/dictionary/prim/boolean/tfft") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -208,7 +208,7 @@ def build_put_boolean_tfft_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/dictionary/prim/boolean/tfft') + url = kwargs.pop("template_url", "/dictionary/prim/boolean/tfft") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -230,7 +230,7 @@ def build_get_boolean_invalid_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/dictionary/prim/boolean/true.null.false') + url = kwargs.pop("template_url", "/dictionary/prim/boolean/true.null.false") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -250,7 +250,7 @@ def build_get_boolean_invalid_string_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/dictionary/prim/boolean/true.boolean.false') + url = kwargs.pop("template_url", "/dictionary/prim/boolean/true.boolean.false") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -270,7 +270,7 @@ def build_get_integer_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/dictionary/prim/integer/1.-1.3.300') + url = kwargs.pop("template_url", "/dictionary/prim/integer/1.-1.3.300") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -292,7 +292,7 @@ def build_put_integer_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/dictionary/prim/integer/1.-1.3.300') + url = kwargs.pop("template_url", "/dictionary/prim/integer/1.-1.3.300") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -314,7 +314,7 @@ def build_get_int_invalid_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/dictionary/prim/integer/1.null.zero') + url = kwargs.pop("template_url", "/dictionary/prim/integer/1.null.zero") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -334,7 +334,7 @@ def build_get_int_invalid_string_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/dictionary/prim/integer/1.integer.0') + url = kwargs.pop("template_url", "/dictionary/prim/integer/1.integer.0") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -354,7 +354,7 @@ def build_get_long_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/dictionary/prim/long/1.-1.3.300') + url = kwargs.pop("template_url", "/dictionary/prim/long/1.-1.3.300") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -376,7 +376,7 @@ def build_put_long_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/dictionary/prim/long/1.-1.3.300') + url = kwargs.pop("template_url", "/dictionary/prim/long/1.-1.3.300") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -398,7 +398,7 @@ def build_get_long_invalid_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/dictionary/prim/long/1.null.zero') + url = kwargs.pop("template_url", "/dictionary/prim/long/1.null.zero") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -418,7 +418,7 @@ def build_get_long_invalid_string_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/dictionary/prim/long/1.integer.0') + url = kwargs.pop("template_url", "/dictionary/prim/long/1.integer.0") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -438,7 +438,7 @@ def build_get_float_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/dictionary/prim/float/0--0.01-1.2e20') + url = kwargs.pop("template_url", "/dictionary/prim/float/0--0.01-1.2e20") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -460,7 +460,7 @@ def build_put_float_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/dictionary/prim/float/0--0.01-1.2e20') + url = kwargs.pop("template_url", "/dictionary/prim/float/0--0.01-1.2e20") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -482,7 +482,7 @@ def build_get_float_invalid_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/dictionary/prim/float/0.0-null-1.2e20') + url = kwargs.pop("template_url", "/dictionary/prim/float/0.0-null-1.2e20") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -502,7 +502,7 @@ def build_get_float_invalid_string_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/dictionary/prim/float/1.number.0') + url = kwargs.pop("template_url", "/dictionary/prim/float/1.number.0") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -522,7 +522,7 @@ def build_get_double_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/dictionary/prim/double/0--0.01-1.2e20') + url = kwargs.pop("template_url", "/dictionary/prim/double/0--0.01-1.2e20") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -544,7 +544,7 @@ def build_put_double_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/dictionary/prim/double/0--0.01-1.2e20') + url = kwargs.pop("template_url", "/dictionary/prim/double/0--0.01-1.2e20") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -566,7 +566,7 @@ def build_get_double_invalid_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/dictionary/prim/double/0.0-null-1.2e20') + url = kwargs.pop("template_url", "/dictionary/prim/double/0.0-null-1.2e20") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -586,7 +586,7 @@ def build_get_double_invalid_string_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/dictionary/prim/double/1.number.0') + url = kwargs.pop("template_url", "/dictionary/prim/double/1.number.0") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -606,7 +606,7 @@ def build_get_string_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/dictionary/prim/string/foo1.foo2.foo3') + url = kwargs.pop("template_url", "/dictionary/prim/string/foo1.foo2.foo3") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -628,7 +628,7 @@ def build_put_string_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/dictionary/prim/string/foo1.foo2.foo3') + url = kwargs.pop("template_url", "/dictionary/prim/string/foo1.foo2.foo3") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -650,7 +650,7 @@ def build_get_string_with_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/dictionary/prim/string/foo.null.foo2') + url = kwargs.pop("template_url", "/dictionary/prim/string/foo.null.foo2") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -670,7 +670,7 @@ def build_get_string_with_invalid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/dictionary/prim/string/foo.123.foo2') + url = kwargs.pop("template_url", "/dictionary/prim/string/foo.123.foo2") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -690,7 +690,7 @@ def build_get_date_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/dictionary/prim/date/valid') + url = kwargs.pop("template_url", "/dictionary/prim/date/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -712,7 +712,7 @@ def build_put_date_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/dictionary/prim/date/valid') + url = kwargs.pop("template_url", "/dictionary/prim/date/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -734,7 +734,7 @@ def build_get_date_invalid_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/dictionary/prim/date/invalidnull') + url = kwargs.pop("template_url", "/dictionary/prim/date/invalidnull") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -754,7 +754,7 @@ def build_get_date_invalid_chars_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/dictionary/prim/date/invalidchars') + url = kwargs.pop("template_url", "/dictionary/prim/date/invalidchars") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -774,7 +774,7 @@ def build_get_date_time_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/dictionary/prim/date-time/valid') + url = kwargs.pop("template_url", "/dictionary/prim/date-time/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -796,7 +796,7 @@ def build_put_date_time_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/dictionary/prim/date-time/valid') + url = kwargs.pop("template_url", "/dictionary/prim/date-time/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -818,7 +818,7 @@ def build_get_date_time_invalid_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/dictionary/prim/date-time/invalidnull') + url = kwargs.pop("template_url", "/dictionary/prim/date-time/invalidnull") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -838,7 +838,7 @@ def build_get_date_time_invalid_chars_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/dictionary/prim/date-time/invalidchars') + url = kwargs.pop("template_url", "/dictionary/prim/date-time/invalidchars") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -858,7 +858,7 @@ def build_get_date_time_rfc1123_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/dictionary/prim/date-time-rfc1123/valid') + url = kwargs.pop("template_url", "/dictionary/prim/date-time-rfc1123/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -880,7 +880,7 @@ def build_put_date_time_rfc1123_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/dictionary/prim/date-time-rfc1123/valid') + url = kwargs.pop("template_url", "/dictionary/prim/date-time-rfc1123/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -902,7 +902,7 @@ def build_get_duration_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/dictionary/prim/duration/valid') + url = kwargs.pop("template_url", "/dictionary/prim/duration/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -924,7 +924,7 @@ def build_put_duration_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/dictionary/prim/duration/valid') + url = kwargs.pop("template_url", "/dictionary/prim/duration/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -946,7 +946,7 @@ def build_get_byte_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/dictionary/prim/byte/valid') + url = kwargs.pop("template_url", "/dictionary/prim/byte/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -968,7 +968,7 @@ def build_put_byte_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/dictionary/prim/byte/valid') + url = kwargs.pop("template_url", "/dictionary/prim/byte/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -990,7 +990,7 @@ def build_get_byte_invalid_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/dictionary/prim/byte/invalidnull') + url = kwargs.pop("template_url", "/dictionary/prim/byte/invalidnull") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1010,7 +1010,7 @@ def build_get_base64_url_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/dictionary/prim/base64url/valid') + url = kwargs.pop("template_url", "/dictionary/prim/base64url/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1030,7 +1030,7 @@ def build_get_complex_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/dictionary/complex/null') + url = kwargs.pop("template_url", "/dictionary/complex/null") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1050,7 +1050,7 @@ def build_get_complex_empty_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/dictionary/complex/empty') + url = kwargs.pop("template_url", "/dictionary/complex/empty") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1070,7 +1070,7 @@ def build_get_complex_item_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/dictionary/complex/itemnull') + url = kwargs.pop("template_url", "/dictionary/complex/itemnull") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1090,7 +1090,7 @@ def build_get_complex_item_empty_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/dictionary/complex/itemempty') + url = kwargs.pop("template_url", "/dictionary/complex/itemempty") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1110,7 +1110,7 @@ def build_get_complex_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/dictionary/complex/valid') + url = kwargs.pop("template_url", "/dictionary/complex/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1132,7 +1132,7 @@ def build_put_complex_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/dictionary/complex/valid') + url = kwargs.pop("template_url", "/dictionary/complex/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1154,7 +1154,7 @@ def build_get_array_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/dictionary/array/null') + url = kwargs.pop("template_url", "/dictionary/array/null") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1174,7 +1174,7 @@ def build_get_array_empty_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/dictionary/array/empty') + url = kwargs.pop("template_url", "/dictionary/array/empty") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1194,7 +1194,7 @@ def build_get_array_item_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/dictionary/array/itemnull') + url = kwargs.pop("template_url", "/dictionary/array/itemnull") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1214,7 +1214,7 @@ def build_get_array_item_empty_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/dictionary/array/itemempty') + url = kwargs.pop("template_url", "/dictionary/array/itemempty") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1234,7 +1234,7 @@ def build_get_array_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/dictionary/array/valid') + url = kwargs.pop("template_url", "/dictionary/array/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1256,7 +1256,7 @@ def build_put_array_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/dictionary/array/valid') + url = kwargs.pop("template_url", "/dictionary/array/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1278,7 +1278,7 @@ def build_get_dictionary_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/dictionary/dictionary/null') + url = kwargs.pop("template_url", "/dictionary/dictionary/null") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1298,7 +1298,7 @@ def build_get_dictionary_empty_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/dictionary/dictionary/empty') + url = kwargs.pop("template_url", "/dictionary/dictionary/empty") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1318,7 +1318,7 @@ def build_get_dictionary_item_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/dictionary/dictionary/itemnull') + url = kwargs.pop("template_url", "/dictionary/dictionary/itemnull") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1338,7 +1338,7 @@ def build_get_dictionary_item_empty_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/dictionary/dictionary/itemempty') + url = kwargs.pop("template_url", "/dictionary/dictionary/itemempty") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1358,7 +1358,7 @@ def build_get_dictionary_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/dictionary/dictionary/valid') + url = kwargs.pop("template_url", "/dictionary/dictionary/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1380,7 +1380,7 @@ def build_put_dictionary_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/dictionary/dictionary/valid') + url = kwargs.pop("template_url", "/dictionary/dictionary/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyDuration/bodyduration/operations/_duration_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyDuration/bodyduration/operations/_duration_operations.py index 128e21e33c1..8c6bdd8385c 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyDuration/bodyduration/operations/_duration_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyDuration/bodyduration/operations/_duration_operations.py @@ -42,7 +42,7 @@ def build_get_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/duration/null') + url = kwargs.pop("template_url", "/duration/null") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -64,7 +64,7 @@ def build_put_positive_duration_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/duration/positiveduration') + url = kwargs.pop("template_url", "/duration/positiveduration") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -86,7 +86,7 @@ def build_get_positive_duration_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/duration/positiveduration') + url = kwargs.pop("template_url", "/duration/positiveduration") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -106,7 +106,7 @@ def build_get_invalid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/duration/invalid') + url = kwargs.pop("template_url", "/duration/invalid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyFile/bodyfile/operations/_files_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyFile/bodyfile/operations/_files_operations.py index dd46fef4376..f983b8945c9 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyFile/bodyfile/operations/_files_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyFile/bodyfile/operations/_files_operations.py @@ -41,7 +41,7 @@ def build_get_file_request( # type: (...) -> HttpRequest accept = "image/png, application/json" # Construct URL - url = kwargs.pop("template_url", '/files/stream/nonempty') + url = kwargs.pop("template_url", "/files/stream/nonempty") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -61,7 +61,7 @@ def build_get_file_large_request( # type: (...) -> HttpRequest accept = "image/png, application/json" # Construct URL - url = kwargs.pop("template_url", '/files/stream/verylarge') + url = kwargs.pop("template_url", "/files/stream/verylarge") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -81,7 +81,7 @@ def build_get_empty_file_request( # type: (...) -> HttpRequest accept = "image/png, application/json" # Construct URL - url = kwargs.pop("template_url", '/files/stream/empty') + url = kwargs.pop("template_url", "/files/stream/empty") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyFormData/bodyformdata/operations/_formdata_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyFormData/bodyformdata/operations/_formdata_operations.py index 2986d1c4163..7f1f0db1695 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyFormData/bodyformdata/operations/_formdata_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyFormData/bodyformdata/operations/_formdata_operations.py @@ -43,7 +43,7 @@ def build_upload_file_request( accept = "application/octet-stream, application/json" # Construct URL - url = kwargs.pop("template_url", '/formdata/stream/uploadfile') + url = kwargs.pop("template_url", "/formdata/stream/uploadfile") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -67,7 +67,7 @@ def build_upload_file_via_body_request( accept = "application/octet-stream, application/json" # Construct URL - url = kwargs.pop("template_url", '/formdata/stream/uploadfile') + url = kwargs.pop("template_url", "/formdata/stream/uploadfile") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -91,7 +91,7 @@ def build_upload_files_request( accept = "application/octet-stream, application/json" # Construct URL - url = kwargs.pop("template_url", '/formdata/stream/uploadfiles') + url = kwargs.pop("template_url", "/formdata/stream/uploadfiles") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyFormUrlEncodedData/bodyformurlencodeddata/operations/_formdataurlencoded_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyFormUrlEncodedData/bodyformurlencodeddata/operations/_formdataurlencoded_operations.py index a51c44f907d..81432ab0f57 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyFormUrlEncodedData/bodyformurlencodeddata/operations/_formdataurlencoded_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyFormUrlEncodedData/bodyformurlencodeddata/operations/_formdataurlencoded_operations.py @@ -43,7 +43,7 @@ def build_update_pet_with_form_request( content_type = kwargs.pop('content_type', None) # type: Optional[str] # Construct URL - url = kwargs.pop("template_url", '/formsdataurlencoded/pet/add/{petId}') + url = kwargs.pop("template_url", "/formsdataurlencoded/pet/add/{petId}") path_format_arguments = { "petId": _SERIALIZER.url("pet_id", pet_id, 'int'), } @@ -70,7 +70,7 @@ def build_partial_constant_body_request( content_type = kwargs.pop('content_type', None) # type: Optional[str] # Construct URL - url = kwargs.pop("template_url", '/formsdataurlencoded/partialConstantBody') + url = kwargs.pop("template_url", "/formsdataurlencoded/partialConstantBody") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyInteger/bodyinteger/operations/_int_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyInteger/bodyinteger/operations/_int_operations.py index 6a20ff8004a..d68783c607d 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyInteger/bodyinteger/operations/_int_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyInteger/bodyinteger/operations/_int_operations.py @@ -42,7 +42,7 @@ def build_get_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/int/null') + url = kwargs.pop("template_url", "/int/null") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -62,7 +62,7 @@ def build_get_invalid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/int/invalid') + url = kwargs.pop("template_url", "/int/invalid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -82,7 +82,7 @@ def build_get_overflow_int32_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/int/overflowint32') + url = kwargs.pop("template_url", "/int/overflowint32") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -102,7 +102,7 @@ def build_get_underflow_int32_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/int/underflowint32') + url = kwargs.pop("template_url", "/int/underflowint32") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -122,7 +122,7 @@ def build_get_overflow_int64_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/int/overflowint64') + url = kwargs.pop("template_url", "/int/overflowint64") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -142,7 +142,7 @@ def build_get_underflow_int64_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/int/underflowint64') + url = kwargs.pop("template_url", "/int/underflowint64") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -164,7 +164,7 @@ def build_put_max32_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/int/max/32') + url = kwargs.pop("template_url", "/int/max/32") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -188,7 +188,7 @@ def build_put_max64_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/int/max/64') + url = kwargs.pop("template_url", "/int/max/64") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -212,7 +212,7 @@ def build_put_min32_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/int/min/32') + url = kwargs.pop("template_url", "/int/min/32") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -236,7 +236,7 @@ def build_put_min64_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/int/min/64') + url = kwargs.pop("template_url", "/int/min/64") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -258,7 +258,7 @@ def build_get_unix_time_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/int/unixtime') + url = kwargs.pop("template_url", "/int/unixtime") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -280,7 +280,7 @@ def build_put_unix_time_date_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/int/unixtime') + url = kwargs.pop("template_url", "/int/unixtime") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -302,7 +302,7 @@ def build_get_invalid_unix_time_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/int/invalidunixtime') + url = kwargs.pop("template_url", "/int/invalidunixtime") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -322,7 +322,7 @@ def build_get_null_unix_time_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/int/nullunixtime') + url = kwargs.pop("template_url", "/int/nullunixtime") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyNumber/bodynumber/operations/_number_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyNumber/bodynumber/operations/_number_operations.py index fe7d419130c..4e01f2f03d0 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyNumber/bodynumber/operations/_number_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyNumber/bodynumber/operations/_number_operations.py @@ -41,7 +41,7 @@ def build_get_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/number/null') + url = kwargs.pop("template_url", "/number/null") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -61,7 +61,7 @@ def build_get_invalid_float_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/number/invalidfloat') + url = kwargs.pop("template_url", "/number/invalidfloat") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -81,7 +81,7 @@ def build_get_invalid_double_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/number/invaliddouble') + url = kwargs.pop("template_url", "/number/invaliddouble") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -101,7 +101,7 @@ def build_get_invalid_decimal_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/number/invaliddecimal') + url = kwargs.pop("template_url", "/number/invaliddecimal") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -123,7 +123,7 @@ def build_put_big_float_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/number/big/float/3.402823e+20') + url = kwargs.pop("template_url", "/number/big/float/3.402823e+20") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -145,7 +145,7 @@ def build_get_big_float_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/number/big/float/3.402823e+20') + url = kwargs.pop("template_url", "/number/big/float/3.402823e+20") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -167,7 +167,7 @@ def build_put_big_double_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/number/big/double/2.5976931e+101') + url = kwargs.pop("template_url", "/number/big/double/2.5976931e+101") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -189,7 +189,7 @@ def build_get_big_double_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/number/big/double/2.5976931e+101') + url = kwargs.pop("template_url", "/number/big/double/2.5976931e+101") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -212,7 +212,7 @@ def build_put_big_double_positive_decimal_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/number/big/double/99999999.99') + url = kwargs.pop("template_url", "/number/big/double/99999999.99") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -235,7 +235,7 @@ def build_get_big_double_positive_decimal_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/number/big/double/99999999.99') + url = kwargs.pop("template_url", "/number/big/double/99999999.99") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -258,7 +258,7 @@ def build_put_big_double_negative_decimal_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/number/big/double/-99999999.99') + url = kwargs.pop("template_url", "/number/big/double/-99999999.99") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -281,7 +281,7 @@ def build_get_big_double_negative_decimal_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/number/big/double/-99999999.99') + url = kwargs.pop("template_url", "/number/big/double/-99999999.99") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -303,7 +303,7 @@ def build_put_big_decimal_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/number/big/decimal/2.5976931e+101') + url = kwargs.pop("template_url", "/number/big/decimal/2.5976931e+101") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -325,7 +325,7 @@ def build_get_big_decimal_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/number/big/decimal/2.5976931e+101') + url = kwargs.pop("template_url", "/number/big/decimal/2.5976931e+101") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -348,7 +348,7 @@ def build_put_big_decimal_positive_decimal_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/number/big/decimal/99999999.99') + url = kwargs.pop("template_url", "/number/big/decimal/99999999.99") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -371,7 +371,7 @@ def build_get_big_decimal_positive_decimal_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/number/big/decimal/99999999.99') + url = kwargs.pop("template_url", "/number/big/decimal/99999999.99") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -394,7 +394,7 @@ def build_put_big_decimal_negative_decimal_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/number/big/decimal/-99999999.99') + url = kwargs.pop("template_url", "/number/big/decimal/-99999999.99") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -417,7 +417,7 @@ def build_get_big_decimal_negative_decimal_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/number/big/decimal/-99999999.99') + url = kwargs.pop("template_url", "/number/big/decimal/-99999999.99") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -439,7 +439,7 @@ def build_put_small_float_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/number/small/float/3.402823e-20') + url = kwargs.pop("template_url", "/number/small/float/3.402823e-20") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -461,7 +461,7 @@ def build_get_small_float_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/number/small/float/3.402823e-20') + url = kwargs.pop("template_url", "/number/small/float/3.402823e-20") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -483,7 +483,7 @@ def build_put_small_double_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/number/small/double/2.5976931e-101') + url = kwargs.pop("template_url", "/number/small/double/2.5976931e-101") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -505,7 +505,7 @@ def build_get_small_double_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/number/small/double/2.5976931e-101') + url = kwargs.pop("template_url", "/number/small/double/2.5976931e-101") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -527,7 +527,7 @@ def build_put_small_decimal_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/number/small/decimal/2.5976931e-101') + url = kwargs.pop("template_url", "/number/small/decimal/2.5976931e-101") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -549,7 +549,7 @@ def build_get_small_decimal_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/number/small/decimal/2.5976931e-101') + url = kwargs.pop("template_url", "/number/small/decimal/2.5976931e-101") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyString/bodystring/operations/_enum_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyString/bodystring/operations/_enum_operations.py index e3ef36307ff..8a31aef647b 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyString/bodystring/operations/_enum_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyString/bodystring/operations/_enum_operations.py @@ -41,7 +41,7 @@ def build_get_not_expandable_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/string/enum/notExpandable') + url = kwargs.pop("template_url", "/string/enum/notExpandable") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -63,7 +63,7 @@ def build_put_not_expandable_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/string/enum/notExpandable') + url = kwargs.pop("template_url", "/string/enum/notExpandable") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -85,7 +85,7 @@ def build_get_referenced_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/string/enum/Referenced') + url = kwargs.pop("template_url", "/string/enum/Referenced") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -107,7 +107,7 @@ def build_put_referenced_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/string/enum/Referenced') + url = kwargs.pop("template_url", "/string/enum/Referenced") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -129,7 +129,7 @@ def build_get_referenced_constant_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/string/enum/ReferencedConstant') + url = kwargs.pop("template_url", "/string/enum/ReferencedConstant") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -151,7 +151,7 @@ def build_put_referenced_constant_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/string/enum/ReferencedConstant') + url = kwargs.pop("template_url", "/string/enum/ReferencedConstant") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyString/bodystring/operations/_string_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyString/bodystring/operations/_string_operations.py index 2b2dc3c2578..e217b777470 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyString/bodystring/operations/_string_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyString/bodystring/operations/_string_operations.py @@ -41,7 +41,7 @@ def build_get_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/string/null') + url = kwargs.pop("template_url", "/string/null") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -63,7 +63,7 @@ def build_put_null_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/string/null') + url = kwargs.pop("template_url", "/string/null") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -85,7 +85,7 @@ def build_get_empty_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/string/empty') + url = kwargs.pop("template_url", "/string/empty") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -108,7 +108,7 @@ def build_put_empty_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/string/empty') + url = kwargs.pop("template_url", "/string/empty") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -131,7 +131,7 @@ def build_get_mbcs_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/string/mbcs') + url = kwargs.pop("template_url", "/string/mbcs") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -154,7 +154,7 @@ def build_put_mbcs_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/string/mbcs') + url = kwargs.pop("template_url", "/string/mbcs") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -177,7 +177,7 @@ def build_get_whitespace_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/string/whitespace') + url = kwargs.pop("template_url", "/string/whitespace") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -200,7 +200,7 @@ def build_put_whitespace_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/string/whitespace') + url = kwargs.pop("template_url", "/string/whitespace") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -223,7 +223,7 @@ def build_get_not_provided_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/string/notProvided') + url = kwargs.pop("template_url", "/string/notProvided") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -243,7 +243,7 @@ def build_get_base64_encoded_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/string/base64Encoding') + url = kwargs.pop("template_url", "/string/base64Encoding") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -263,7 +263,7 @@ def build_get_base64_url_encoded_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/string/base64UrlEncoding') + url = kwargs.pop("template_url", "/string/base64UrlEncoding") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -285,7 +285,7 @@ def build_put_base64_url_encoded_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/string/base64UrlEncoding') + url = kwargs.pop("template_url", "/string/base64UrlEncoding") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -307,7 +307,7 @@ def build_get_null_base64_url_encoded_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/string/nullBase64UrlEncoding') + url = kwargs.pop("template_url", "/string/nullBase64UrlEncoding") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyTime/bodytime/operations/_time_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyTime/bodytime/operations/_time_operations.py index cf9945e25ca..bd9c2a5b6f3 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyTime/bodytime/operations/_time_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyTime/bodytime/operations/_time_operations.py @@ -42,7 +42,7 @@ def build_get_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/time/get') + url = kwargs.pop("template_url", "/time/get") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -64,7 +64,7 @@ def build_put_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/time/put') + url = kwargs.pop("template_url", "/time/put") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/Constants/constants/operations/_contants_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/Constants/constants/operations/_contants_operations.py index 7f2f07f83d5..24e8681cd6d 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/Constants/constants/operations/_contants_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/Constants/constants/operations/_contants_operations.py @@ -42,7 +42,7 @@ def build_put_no_model_as_string_no_required_two_value_no_default_request( input = kwargs.pop('input', None) # type: Optional[Union[str, "_models.NoModelAsStringNoRequiredTwoValueNoDefaultOpEnum"]] # Construct URL - url = kwargs.pop("template_url", '/constants/putNoModelAsStringNoRequiredTwoValueNoDefault') + url = kwargs.pop("template_url", "/constants/putNoModelAsStringNoRequiredTwoValueNoDefault") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -64,7 +64,7 @@ def build_put_no_model_as_string_no_required_two_value_default_request( input = kwargs.pop('input', "value1") # type: Optional[Union[str, "_models.NoModelAsStringNoRequiredTwoValueDefaultOpEnum"]] # Construct URL - url = kwargs.pop("template_url", '/constants/putNoModelAsStringNoRequiredTwoValueDefault') + url = kwargs.pop("template_url", "/constants/putNoModelAsStringNoRequiredTwoValueDefault") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -86,7 +86,7 @@ def build_put_no_model_as_string_no_required_one_value_no_default_request( input = kwargs.pop('input', "value1") # type: Optional[str] # Construct URL - url = kwargs.pop("template_url", '/constants/putNoModelAsStringNoRequiredOneValueNoDefault') + url = kwargs.pop("template_url", "/constants/putNoModelAsStringNoRequiredOneValueNoDefault") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -108,7 +108,7 @@ def build_put_no_model_as_string_no_required_one_value_default_request( input = kwargs.pop('input', "value1") # type: Optional[str] # Construct URL - url = kwargs.pop("template_url", '/constants/putNoModelAsStringNoRequiredOneValueDefault') + url = kwargs.pop("template_url", "/constants/putNoModelAsStringNoRequiredOneValueDefault") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -130,7 +130,7 @@ def build_put_no_model_as_string_required_two_value_no_default_request( input = kwargs.pop('input') # type: Union[str, "_models.NoModelAsStringRequiredTwoValueNoDefaultOpEnum"] # Construct URL - url = kwargs.pop("template_url", '/constants/putNoModelAsStringRequiredTwoValueNoDefault') + url = kwargs.pop("template_url", "/constants/putNoModelAsStringRequiredTwoValueNoDefault") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -151,7 +151,7 @@ def build_put_no_model_as_string_required_two_value_default_request( input = kwargs.pop('input', "value1") # type: Union[str, "_models.NoModelAsStringRequiredTwoValueDefaultOpEnum"] # Construct URL - url = kwargs.pop("template_url", '/constants/putNoModelAsStringRequiredTwoValueDefault') + url = kwargs.pop("template_url", "/constants/putNoModelAsStringRequiredTwoValueDefault") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -172,7 +172,7 @@ def build_put_no_model_as_string_required_one_value_no_default_request( input = kwargs.pop('input', "value1") # type: str # Construct URL - url = kwargs.pop("template_url", '/constants/putNoModelAsStringRequiredOneValueNoDefault') + url = kwargs.pop("template_url", "/constants/putNoModelAsStringRequiredOneValueNoDefault") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -193,7 +193,7 @@ def build_put_no_model_as_string_required_one_value_default_request( input = kwargs.pop('input', "value1") # type: str # Construct URL - url = kwargs.pop("template_url", '/constants/putNoModelAsStringRequiredOneValueDefault') + url = kwargs.pop("template_url", "/constants/putNoModelAsStringRequiredOneValueDefault") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -214,7 +214,7 @@ def build_put_model_as_string_no_required_two_value_no_default_request( input = kwargs.pop('input', None) # type: Optional[Union[str, "_models.ModelAsStringNoRequiredTwoValueNoDefaultOpEnum"]] # Construct URL - url = kwargs.pop("template_url", '/constants/putModelAsStringNoRequiredTwoValueNoDefault') + url = kwargs.pop("template_url", "/constants/putModelAsStringNoRequiredTwoValueNoDefault") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -236,7 +236,7 @@ def build_put_model_as_string_no_required_two_value_default_request( input = kwargs.pop('input', "value1") # type: Optional[Union[str, "_models.ModelAsStringNoRequiredTwoValueDefaultOpEnum"]] # Construct URL - url = kwargs.pop("template_url", '/constants/putModelAsStringNoRequiredTwoValueDefault') + url = kwargs.pop("template_url", "/constants/putModelAsStringNoRequiredTwoValueDefault") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -258,7 +258,7 @@ def build_put_model_as_string_no_required_one_value_no_default_request( input = kwargs.pop('input', None) # type: Optional[Union[str, "_models.ModelAsStringNoRequiredOneValueNoDefaultOpEnum"]] # Construct URL - url = kwargs.pop("template_url", '/constants/putModelAsStringNoRequiredOneValueNoDefault') + url = kwargs.pop("template_url", "/constants/putModelAsStringNoRequiredOneValueNoDefault") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -280,7 +280,7 @@ def build_put_model_as_string_no_required_one_value_default_request( input = kwargs.pop('input', "value1") # type: Optional[Union[str, "_models.ModelAsStringNoRequiredOneValueDefaultOpEnum"]] # Construct URL - url = kwargs.pop("template_url", '/constants/putModelAsStringNoRequiredOneValueDefault') + url = kwargs.pop("template_url", "/constants/putModelAsStringNoRequiredOneValueDefault") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -302,7 +302,7 @@ def build_put_model_as_string_required_two_value_no_default_request( input = kwargs.pop('input') # type: Union[str, "_models.ModelAsStringRequiredTwoValueNoDefaultOpEnum"] # Construct URL - url = kwargs.pop("template_url", '/constants/putModelAsStringRequiredTwoValueNoDefault') + url = kwargs.pop("template_url", "/constants/putModelAsStringRequiredTwoValueNoDefault") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -323,7 +323,7 @@ def build_put_model_as_string_required_two_value_default_request( input = kwargs.pop('input', "value1") # type: Union[str, "_models.ModelAsStringRequiredTwoValueDefaultOpEnum"] # Construct URL - url = kwargs.pop("template_url", '/constants/putModelAsStringRequiredTwoValueDefault') + url = kwargs.pop("template_url", "/constants/putModelAsStringRequiredTwoValueDefault") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -344,7 +344,7 @@ def build_put_model_as_string_required_one_value_no_default_request( input = kwargs.pop('input') # type: Union[str, "_models.ModelAsStringRequiredOneValueNoDefaultOpEnum"] # Construct URL - url = kwargs.pop("template_url", '/constants/putModelAsStringRequiredOneValueNoDefault') + url = kwargs.pop("template_url", "/constants/putModelAsStringRequiredOneValueNoDefault") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -365,7 +365,7 @@ def build_put_model_as_string_required_one_value_default_request( input = kwargs.pop('input', "value1") # type: Union[str, "_models.ModelAsStringRequiredOneValueDefaultOpEnum"] # Construct URL - url = kwargs.pop("template_url", '/constants/putModelAsStringRequiredOneValueDefault') + url = kwargs.pop("template_url", "/constants/putModelAsStringRequiredOneValueDefault") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -388,7 +388,7 @@ def build_put_client_constants_request( path_constant = kwargs.pop('path_constant', "path") # type: str # Construct URL - url = kwargs.pop("template_url", '/constants/clientConstants/{path-constant}') + url = kwargs.pop("template_url", "/constants/clientConstants/{path-constant}") path_format_arguments = { "path-constant": _SERIALIZER.url("path_constant", path_constant, 'str'), } diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/operations/_paths_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/operations/_paths_operations.py index 664c8c47974..5a6ef601186 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/operations/_paths_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/operations/_paths_operations.py @@ -40,7 +40,7 @@ def build_get_empty_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/customuri') + url = kwargs.pop("template_url", "/customuri") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/CustomBaseUriMoreOptions/custombaseurlmoreoptions/operations/_paths_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/CustomBaseUriMoreOptions/custombaseurlmoreoptions/operations/_paths_operations.py index 8fd098c4c94..17a7aff9387 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/CustomBaseUriMoreOptions/custombaseurlmoreoptions/operations/_paths_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/CustomBaseUriMoreOptions/custombaseurlmoreoptions/operations/_paths_operations.py @@ -45,7 +45,7 @@ def build_get_empty_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/customuri/{subscriptionId}/{keyName}') + url = kwargs.pop("template_url", "/customuri/{subscriptionId}/{keyName}") path_format_arguments = { "keyName": _SERIALIZER.url("key_name", key_name, 'str'), "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/ExtensibleEnums/extensibleenumsswagger/operations/_pet_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/ExtensibleEnums/extensibleenumsswagger/operations/_pet_operations.py index d0be2db5816..48bf2e63aee 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/ExtensibleEnums/extensibleenumsswagger/operations/_pet_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/ExtensibleEnums/extensibleenumsswagger/operations/_pet_operations.py @@ -42,7 +42,7 @@ def build_get_by_pet_id_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/extensibleenums/pet/{petId}') + url = kwargs.pop("template_url", "/extensibleenums/pet/{petId}") path_format_arguments = { "petId": _SERIALIZER.url("pet_id", pet_id, 'str'), } @@ -69,7 +69,7 @@ def build_add_pet_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/extensibleenums/pet/addPet') + url = kwargs.pop("template_url", "/extensibleenums/pet/addPet") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/Header/header/operations/_header_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/Header/header/operations/_header_operations.py index 24e268701a9..5b40c049a95 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/Header/header/operations/_header_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/Header/header/operations/_header_operations.py @@ -44,7 +44,7 @@ def build_param_existing_key_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/header/param/existingkey') + url = kwargs.pop("template_url", "/header/param/existingkey") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -65,7 +65,7 @@ def build_response_existing_key_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/header/response/existingkey') + url = kwargs.pop("template_url", "/header/response/existingkey") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -87,7 +87,7 @@ def build_param_protected_key_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/header/param/protectedkey') + url = kwargs.pop("template_url", "/header/param/protectedkey") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -108,7 +108,7 @@ def build_response_protected_key_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/header/response/protectedkey') + url = kwargs.pop("template_url", "/header/response/protectedkey") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -131,7 +131,7 @@ def build_param_integer_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/header/param/prim/integer') + url = kwargs.pop("template_url", "/header/param/prim/integer") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -155,7 +155,7 @@ def build_response_integer_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/header/response/prim/integer') + url = kwargs.pop("template_url", "/header/response/prim/integer") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -179,7 +179,7 @@ def build_param_long_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/header/param/prim/long') + url = kwargs.pop("template_url", "/header/param/prim/long") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -203,7 +203,7 @@ def build_response_long_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/header/response/prim/long') + url = kwargs.pop("template_url", "/header/response/prim/long") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -227,7 +227,7 @@ def build_param_float_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/header/param/prim/float') + url = kwargs.pop("template_url", "/header/param/prim/float") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -251,7 +251,7 @@ def build_response_float_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/header/response/prim/float') + url = kwargs.pop("template_url", "/header/response/prim/float") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -275,7 +275,7 @@ def build_param_double_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/header/param/prim/double') + url = kwargs.pop("template_url", "/header/param/prim/double") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -299,7 +299,7 @@ def build_response_double_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/header/response/prim/double') + url = kwargs.pop("template_url", "/header/response/prim/double") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -323,7 +323,7 @@ def build_param_bool_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/header/param/prim/bool') + url = kwargs.pop("template_url", "/header/param/prim/bool") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -347,7 +347,7 @@ def build_response_bool_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/header/response/prim/bool') + url = kwargs.pop("template_url", "/header/response/prim/bool") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -371,7 +371,7 @@ def build_param_string_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/header/param/prim/string') + url = kwargs.pop("template_url", "/header/param/prim/string") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -396,7 +396,7 @@ def build_response_string_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/header/response/prim/string') + url = kwargs.pop("template_url", "/header/response/prim/string") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -420,7 +420,7 @@ def build_param_date_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/header/param/prim/date') + url = kwargs.pop("template_url", "/header/param/prim/date") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -444,7 +444,7 @@ def build_response_date_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/header/response/prim/date') + url = kwargs.pop("template_url", "/header/response/prim/date") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -468,7 +468,7 @@ def build_param_datetime_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/header/param/prim/datetime') + url = kwargs.pop("template_url", "/header/param/prim/datetime") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -492,7 +492,7 @@ def build_response_datetime_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/header/response/prim/datetime') + url = kwargs.pop("template_url", "/header/response/prim/datetime") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -516,7 +516,7 @@ def build_param_datetime_rfc1123_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/header/param/prim/datetimerfc1123') + url = kwargs.pop("template_url", "/header/param/prim/datetimerfc1123") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -541,7 +541,7 @@ def build_response_datetime_rfc1123_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/header/response/prim/datetimerfc1123') + url = kwargs.pop("template_url", "/header/response/prim/datetimerfc1123") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -565,7 +565,7 @@ def build_param_duration_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/header/param/prim/duration') + url = kwargs.pop("template_url", "/header/param/prim/duration") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -589,7 +589,7 @@ def build_response_duration_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/header/response/prim/duration') + url = kwargs.pop("template_url", "/header/response/prim/duration") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -613,7 +613,7 @@ def build_param_byte_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/header/param/prim/byte') + url = kwargs.pop("template_url", "/header/param/prim/byte") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -637,7 +637,7 @@ def build_response_byte_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/header/response/prim/byte') + url = kwargs.pop("template_url", "/header/response/prim/byte") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -661,7 +661,7 @@ def build_param_enum_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/header/param/prim/enum') + url = kwargs.pop("template_url", "/header/param/prim/enum") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -686,7 +686,7 @@ def build_response_enum_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/header/response/prim/enum') + url = kwargs.pop("template_url", "/header/response/prim/enum") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -707,7 +707,7 @@ def build_custom_request_id_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/header/custom/x-ms-client-request-id/9C4D50EE-2D56-4CD3-8152-34347DC9F2B0') + url = kwargs.pop("template_url", "/header/custom/x-ms-client-request-id/9C4D50EE-2D56-4CD3-8152-34347DC9F2B0") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_client_failure_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_client_failure_operations.py index 5a8e339ad25..9c62f2844a5 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_client_failure_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_client_failure_operations.py @@ -41,7 +41,7 @@ def build_head400_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/http/failure/client/400') + url = kwargs.pop("template_url", "/http/failure/client/400") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -61,7 +61,7 @@ def build_get400_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/http/failure/client/400') + url = kwargs.pop("template_url", "/http/failure/client/400") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -81,7 +81,7 @@ def build_options400_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/http/failure/client/400') + url = kwargs.pop("template_url", "/http/failure/client/400") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -103,7 +103,7 @@ def build_put400_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/http/failure/client/400') + url = kwargs.pop("template_url", "/http/failure/client/400") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -127,7 +127,7 @@ def build_patch400_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/http/failure/client/400') + url = kwargs.pop("template_url", "/http/failure/client/400") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -151,7 +151,7 @@ def build_post400_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/http/failure/client/400') + url = kwargs.pop("template_url", "/http/failure/client/400") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -175,7 +175,7 @@ def build_delete400_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/http/failure/client/400') + url = kwargs.pop("template_url", "/http/failure/client/400") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -197,7 +197,7 @@ def build_head401_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/http/failure/client/401') + url = kwargs.pop("template_url", "/http/failure/client/401") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -217,7 +217,7 @@ def build_get402_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/http/failure/client/402') + url = kwargs.pop("template_url", "/http/failure/client/402") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -237,7 +237,7 @@ def build_options403_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/http/failure/client/403') + url = kwargs.pop("template_url", "/http/failure/client/403") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -257,7 +257,7 @@ def build_get403_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/http/failure/client/403') + url = kwargs.pop("template_url", "/http/failure/client/403") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -279,7 +279,7 @@ def build_put404_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/http/failure/client/404') + url = kwargs.pop("template_url", "/http/failure/client/404") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -303,7 +303,7 @@ def build_patch405_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/http/failure/client/405') + url = kwargs.pop("template_url", "/http/failure/client/405") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -327,7 +327,7 @@ def build_post406_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/http/failure/client/406') + url = kwargs.pop("template_url", "/http/failure/client/406") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -351,7 +351,7 @@ def build_delete407_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/http/failure/client/407') + url = kwargs.pop("template_url", "/http/failure/client/407") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -375,7 +375,7 @@ def build_put409_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/http/failure/client/409') + url = kwargs.pop("template_url", "/http/failure/client/409") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -397,7 +397,7 @@ def build_head410_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/http/failure/client/410') + url = kwargs.pop("template_url", "/http/failure/client/410") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -417,7 +417,7 @@ def build_get411_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/http/failure/client/411') + url = kwargs.pop("template_url", "/http/failure/client/411") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -437,7 +437,7 @@ def build_options412_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/http/failure/client/412') + url = kwargs.pop("template_url", "/http/failure/client/412") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -457,7 +457,7 @@ def build_get412_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/http/failure/client/412') + url = kwargs.pop("template_url", "/http/failure/client/412") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -479,7 +479,7 @@ def build_put413_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/http/failure/client/413') + url = kwargs.pop("template_url", "/http/failure/client/413") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -503,7 +503,7 @@ def build_patch414_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/http/failure/client/414') + url = kwargs.pop("template_url", "/http/failure/client/414") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -527,7 +527,7 @@ def build_post415_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/http/failure/client/415') + url = kwargs.pop("template_url", "/http/failure/client/415") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -549,7 +549,7 @@ def build_get416_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/http/failure/client/416') + url = kwargs.pop("template_url", "/http/failure/client/416") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -571,7 +571,7 @@ def build_delete417_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/http/failure/client/417') + url = kwargs.pop("template_url", "/http/failure/client/417") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -593,7 +593,7 @@ def build_head429_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/http/failure/client/429') + url = kwargs.pop("template_url", "/http/failure/client/429") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_failure_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_failure_operations.py index 21d36997b30..21532bc9218 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_failure_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_failure_operations.py @@ -41,7 +41,7 @@ def build_get_empty_error_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/http/failure/emptybody/error') + url = kwargs.pop("template_url", "/http/failure/emptybody/error") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -61,7 +61,7 @@ def build_get_no_model_error_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/http/failure/nomodel/error') + url = kwargs.pop("template_url", "/http/failure/nomodel/error") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -81,7 +81,7 @@ def build_get_no_model_empty_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/http/failure/nomodel/empty') + url = kwargs.pop("template_url", "/http/failure/nomodel/empty") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_redirects_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_redirects_operations.py index c77d4ba27ec..30eebee78d6 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_redirects_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_redirects_operations.py @@ -41,7 +41,7 @@ def build_head300_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/http/redirect/300') + url = kwargs.pop("template_url", "/http/redirect/300") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -61,7 +61,7 @@ def build_get300_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/http/redirect/300') + url = kwargs.pop("template_url", "/http/redirect/300") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -81,7 +81,7 @@ def build_head301_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/http/redirect/301') + url = kwargs.pop("template_url", "/http/redirect/301") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -101,7 +101,7 @@ def build_get301_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/http/redirect/301') + url = kwargs.pop("template_url", "/http/redirect/301") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -123,7 +123,7 @@ def build_put301_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/http/redirect/301') + url = kwargs.pop("template_url", "/http/redirect/301") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -145,7 +145,7 @@ def build_head302_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/http/redirect/302') + url = kwargs.pop("template_url", "/http/redirect/302") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -165,7 +165,7 @@ def build_get302_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/http/redirect/302') + url = kwargs.pop("template_url", "/http/redirect/302") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -187,7 +187,7 @@ def build_patch302_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/http/redirect/302') + url = kwargs.pop("template_url", "/http/redirect/302") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -211,7 +211,7 @@ def build_post303_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/http/redirect/303') + url = kwargs.pop("template_url", "/http/redirect/303") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -233,7 +233,7 @@ def build_head307_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/http/redirect/307') + url = kwargs.pop("template_url", "/http/redirect/307") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -253,7 +253,7 @@ def build_get307_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/http/redirect/307') + url = kwargs.pop("template_url", "/http/redirect/307") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -273,7 +273,7 @@ def build_options307_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/http/redirect/307') + url = kwargs.pop("template_url", "/http/redirect/307") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -295,7 +295,7 @@ def build_put307_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/http/redirect/307') + url = kwargs.pop("template_url", "/http/redirect/307") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -319,7 +319,7 @@ def build_patch307_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/http/redirect/307') + url = kwargs.pop("template_url", "/http/redirect/307") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -343,7 +343,7 @@ def build_post307_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/http/redirect/307') + url = kwargs.pop("template_url", "/http/redirect/307") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -367,7 +367,7 @@ def build_delete307_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/http/redirect/307') + url = kwargs.pop("template_url", "/http/redirect/307") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_retry_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_retry_operations.py index 06ad872ba74..f390e5c0341 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_retry_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_retry_operations.py @@ -41,7 +41,7 @@ def build_head408_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/http/retry/408') + url = kwargs.pop("template_url", "/http/retry/408") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -63,7 +63,7 @@ def build_put500_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/http/retry/500') + url = kwargs.pop("template_url", "/http/retry/500") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -87,7 +87,7 @@ def build_patch500_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/http/retry/500') + url = kwargs.pop("template_url", "/http/retry/500") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -109,7 +109,7 @@ def build_get502_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/http/retry/502') + url = kwargs.pop("template_url", "/http/retry/502") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -129,7 +129,7 @@ def build_options502_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/http/retry/502') + url = kwargs.pop("template_url", "/http/retry/502") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -151,7 +151,7 @@ def build_post503_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/http/retry/503') + url = kwargs.pop("template_url", "/http/retry/503") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -175,7 +175,7 @@ def build_delete503_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/http/retry/503') + url = kwargs.pop("template_url", "/http/retry/503") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -199,7 +199,7 @@ def build_put504_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/http/retry/504') + url = kwargs.pop("template_url", "/http/retry/504") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -223,7 +223,7 @@ def build_patch504_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/http/retry/504') + url = kwargs.pop("template_url", "/http/retry/504") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_server_failure_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_server_failure_operations.py index d14b54dbe95..24e9601a098 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_server_failure_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_server_failure_operations.py @@ -41,7 +41,7 @@ def build_head501_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/http/failure/server/501') + url = kwargs.pop("template_url", "/http/failure/server/501") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -61,7 +61,7 @@ def build_get501_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/http/failure/server/501') + url = kwargs.pop("template_url", "/http/failure/server/501") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -83,7 +83,7 @@ def build_post505_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/http/failure/server/505') + url = kwargs.pop("template_url", "/http/failure/server/505") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -107,7 +107,7 @@ def build_delete505_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/http/failure/server/505') + url = kwargs.pop("template_url", "/http/failure/server/505") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_success_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_success_operations.py index 68e7107d4e7..09401cf2487 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_success_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_success_operations.py @@ -41,7 +41,7 @@ def build_head200_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/http/success/200') + url = kwargs.pop("template_url", "/http/success/200") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -61,7 +61,7 @@ def build_get200_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/http/success/200') + url = kwargs.pop("template_url", "/http/success/200") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -81,7 +81,7 @@ def build_options200_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/http/success/200') + url = kwargs.pop("template_url", "/http/success/200") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -103,7 +103,7 @@ def build_put200_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/http/success/200') + url = kwargs.pop("template_url", "/http/success/200") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -127,7 +127,7 @@ def build_patch200_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/http/success/200') + url = kwargs.pop("template_url", "/http/success/200") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -151,7 +151,7 @@ def build_post200_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/http/success/200') + url = kwargs.pop("template_url", "/http/success/200") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -175,7 +175,7 @@ def build_delete200_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/http/success/200') + url = kwargs.pop("template_url", "/http/success/200") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -199,7 +199,7 @@ def build_put201_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/http/success/201') + url = kwargs.pop("template_url", "/http/success/201") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -223,7 +223,7 @@ def build_post201_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/http/success/201') + url = kwargs.pop("template_url", "/http/success/201") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -247,7 +247,7 @@ def build_put202_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/http/success/202') + url = kwargs.pop("template_url", "/http/success/202") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -271,7 +271,7 @@ def build_patch202_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/http/success/202') + url = kwargs.pop("template_url", "/http/success/202") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -295,7 +295,7 @@ def build_post202_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/http/success/202') + url = kwargs.pop("template_url", "/http/success/202") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -319,7 +319,7 @@ def build_delete202_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/http/success/202') + url = kwargs.pop("template_url", "/http/success/202") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -341,7 +341,7 @@ def build_head204_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/http/success/204') + url = kwargs.pop("template_url", "/http/success/204") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -363,7 +363,7 @@ def build_put204_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/http/success/204') + url = kwargs.pop("template_url", "/http/success/204") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -387,7 +387,7 @@ def build_patch204_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/http/success/204') + url = kwargs.pop("template_url", "/http/success/204") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -411,7 +411,7 @@ def build_post204_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/http/success/204') + url = kwargs.pop("template_url", "/http/success/204") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -435,7 +435,7 @@ def build_delete204_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/http/success/204') + url = kwargs.pop("template_url", "/http/success/204") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -457,7 +457,7 @@ def build_head404_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/http/success/404') + url = kwargs.pop("template_url", "/http/success/404") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_multiple_responses_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_multiple_responses_operations.py index e589a29058f..0ff6f4b7c6a 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_multiple_responses_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_multiple_responses_operations.py @@ -41,7 +41,7 @@ def build_get200_model204_no_model_default_error200_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/http/payloads/200/A/204/none/default/Error/response/200/valid') + url = kwargs.pop("template_url", "/http/payloads/200/A/204/none/default/Error/response/200/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -61,7 +61,7 @@ def build_get200_model204_no_model_default_error204_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/http/payloads/200/A/204/none/default/Error/response/204/none') + url = kwargs.pop("template_url", "/http/payloads/200/A/204/none/default/Error/response/204/none") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -81,7 +81,7 @@ def build_get200_model204_no_model_default_error201_invalid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/http/payloads/200/A/204/none/default/Error/response/201/valid') + url = kwargs.pop("template_url", "/http/payloads/200/A/204/none/default/Error/response/201/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -101,7 +101,7 @@ def build_get200_model204_no_model_default_error202_none_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/http/payloads/200/A/204/none/default/Error/response/202/none') + url = kwargs.pop("template_url", "/http/payloads/200/A/204/none/default/Error/response/202/none") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -121,7 +121,7 @@ def build_get200_model204_no_model_default_error400_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/http/payloads/200/A/204/none/default/Error/response/400/valid') + url = kwargs.pop("template_url", "/http/payloads/200/A/204/none/default/Error/response/400/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -141,7 +141,7 @@ def build_get200_model201_model_default_error200_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/http/payloads/200/A/201/B/default/Error/response/200/valid') + url = kwargs.pop("template_url", "/http/payloads/200/A/201/B/default/Error/response/200/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -161,7 +161,7 @@ def build_get200_model201_model_default_error201_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/http/payloads/200/A/201/B/default/Error/response/201/valid') + url = kwargs.pop("template_url", "/http/payloads/200/A/201/B/default/Error/response/201/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -181,7 +181,7 @@ def build_get200_model201_model_default_error400_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/http/payloads/200/A/201/B/default/Error/response/400/valid') + url = kwargs.pop("template_url", "/http/payloads/200/A/201/B/default/Error/response/400/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -201,7 +201,7 @@ def build_get200_model_a201_model_c404_model_d_default_error200_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/http/payloads/200/A/201/C/404/D/default/Error/response/200/valid') + url = kwargs.pop("template_url", "/http/payloads/200/A/201/C/404/D/default/Error/response/200/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -221,7 +221,7 @@ def build_get200_model_a201_model_c404_model_d_default_error201_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/http/payloads/200/A/201/C/404/D/default/Error/response/201/valid') + url = kwargs.pop("template_url", "/http/payloads/200/A/201/C/404/D/default/Error/response/201/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -241,7 +241,7 @@ def build_get200_model_a201_model_c404_model_d_default_error404_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/http/payloads/200/A/201/C/404/D/default/Error/response/404/valid') + url = kwargs.pop("template_url", "/http/payloads/200/A/201/C/404/D/default/Error/response/404/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -261,7 +261,7 @@ def build_get200_model_a201_model_c404_model_d_default_error400_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/http/payloads/200/A/201/C/404/D/default/Error/response/400/valid') + url = kwargs.pop("template_url", "/http/payloads/200/A/201/C/404/D/default/Error/response/400/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -281,7 +281,7 @@ def build_get202_none204_none_default_error202_none_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/http/payloads/202/none/204/none/default/Error/response/202/none') + url = kwargs.pop("template_url", "/http/payloads/202/none/204/none/default/Error/response/202/none") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -301,7 +301,7 @@ def build_get202_none204_none_default_error204_none_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/http/payloads/202/none/204/none/default/Error/response/204/none') + url = kwargs.pop("template_url", "/http/payloads/202/none/204/none/default/Error/response/204/none") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -321,7 +321,7 @@ def build_get202_none204_none_default_error400_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/http/payloads/202/none/204/none/default/Error/response/400/valid') + url = kwargs.pop("template_url", "/http/payloads/202/none/204/none/default/Error/response/400/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -340,7 +340,7 @@ def build_get202_none204_none_default_none202_invalid_request( ): # type: (...) -> HttpRequest # Construct URL - url = kwargs.pop("template_url", '/http/payloads/202/none/204/none/default/none/response/202/invalid') + url = kwargs.pop("template_url", "/http/payloads/202/none/204/none/default/none/response/202/invalid") return HttpRequest( method="GET", @@ -354,7 +354,7 @@ def build_get202_none204_none_default_none204_none_request( ): # type: (...) -> HttpRequest # Construct URL - url = kwargs.pop("template_url", '/http/payloads/202/none/204/none/default/none/response/204/none') + url = kwargs.pop("template_url", "/http/payloads/202/none/204/none/default/none/response/204/none") return HttpRequest( method="GET", @@ -368,7 +368,7 @@ def build_get202_none204_none_default_none400_none_request( ): # type: (...) -> HttpRequest # Construct URL - url = kwargs.pop("template_url", '/http/payloads/202/none/204/none/default/none/response/400/none') + url = kwargs.pop("template_url", "/http/payloads/202/none/204/none/default/none/response/400/none") return HttpRequest( method="GET", @@ -382,7 +382,7 @@ def build_get202_none204_none_default_none400_invalid_request( ): # type: (...) -> HttpRequest # Construct URL - url = kwargs.pop("template_url", '/http/payloads/202/none/204/none/default/none/response/400/invalid') + url = kwargs.pop("template_url", "/http/payloads/202/none/204/none/default/none/response/400/invalid") return HttpRequest( method="GET", @@ -397,7 +397,7 @@ def build_get_default_model_a200_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/http/payloads/default/A/response/200/valid') + url = kwargs.pop("template_url", "/http/payloads/default/A/response/200/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -417,7 +417,7 @@ def build_get_default_model_a200_none_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/http/payloads/default/A/response/200/none') + url = kwargs.pop("template_url", "/http/payloads/default/A/response/200/none") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -437,7 +437,7 @@ def build_get_default_model_a400_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/http/payloads/default/A/response/400/valid') + url = kwargs.pop("template_url", "/http/payloads/default/A/response/400/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -457,7 +457,7 @@ def build_get_default_model_a400_none_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/http/payloads/default/A/response/400/none') + url = kwargs.pop("template_url", "/http/payloads/default/A/response/400/none") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -476,7 +476,7 @@ def build_get_default_none200_invalid_request( ): # type: (...) -> HttpRequest # Construct URL - url = kwargs.pop("template_url", '/http/payloads/default/none/response/200/invalid') + url = kwargs.pop("template_url", "/http/payloads/default/none/response/200/invalid") return HttpRequest( method="GET", @@ -490,7 +490,7 @@ def build_get_default_none200_none_request( ): # type: (...) -> HttpRequest # Construct URL - url = kwargs.pop("template_url", '/http/payloads/default/none/response/200/none') + url = kwargs.pop("template_url", "/http/payloads/default/none/response/200/none") return HttpRequest( method="GET", @@ -504,7 +504,7 @@ def build_get_default_none400_invalid_request( ): # type: (...) -> HttpRequest # Construct URL - url = kwargs.pop("template_url", '/http/payloads/default/none/response/400/invalid') + url = kwargs.pop("template_url", "/http/payloads/default/none/response/400/invalid") return HttpRequest( method="GET", @@ -518,7 +518,7 @@ def build_get_default_none400_none_request( ): # type: (...) -> HttpRequest # Construct URL - url = kwargs.pop("template_url", '/http/payloads/default/none/response/400/none') + url = kwargs.pop("template_url", "/http/payloads/default/none/response/400/none") return HttpRequest( method="GET", @@ -533,7 +533,7 @@ def build_get200_model_a200_none_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/http/payloads/200/A/response/200/none') + url = kwargs.pop("template_url", "/http/payloads/200/A/response/200/none") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -553,7 +553,7 @@ def build_get200_model_a200_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/http/payloads/200/A/response/200/valid') + url = kwargs.pop("template_url", "/http/payloads/200/A/response/200/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -573,7 +573,7 @@ def build_get200_model_a200_invalid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/http/payloads/200/A/response/200/invalid') + url = kwargs.pop("template_url", "/http/payloads/200/A/response/200/invalid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -593,7 +593,7 @@ def build_get200_model_a400_none_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/http/payloads/200/A/response/400/none') + url = kwargs.pop("template_url", "/http/payloads/200/A/response/400/none") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -613,7 +613,7 @@ def build_get200_model_a400_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/http/payloads/200/A/response/400/valid') + url = kwargs.pop("template_url", "/http/payloads/200/A/response/400/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -633,7 +633,7 @@ def build_get200_model_a400_invalid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/http/payloads/200/A/response/400/invalid') + url = kwargs.pop("template_url", "/http/payloads/200/A/response/400/invalid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -653,7 +653,7 @@ def build_get200_model_a202_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/http/payloads/200/A/response/202/valid') + url = kwargs.pop("template_url", "/http/payloads/200/A/response/202/valid") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/IncorrectErrorResponse/incorrecterrorresponse/operations/_incorrect_returned_error_model_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/IncorrectErrorResponse/incorrecterrorresponse/operations/_incorrect_returned_error_model_operations.py index 92b98828608..48b7c50288d 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/IncorrectErrorResponse/incorrecterrorresponse/operations/_incorrect_returned_error_model_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/IncorrectErrorResponse/incorrecterrorresponse/operations/_incorrect_returned_error_model_operations.py @@ -40,7 +40,7 @@ def build_get_incorrect_error_from_server_request( ): # type: (...) -> HttpRequest # Construct URL - url = kwargs.pop("template_url", '/incorrectError') + url = kwargs.pop("template_url", "/incorrectError") return HttpRequest( method="GET", diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/MediaTypes/mediatypes/operations/_media_types_client_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/MediaTypes/mediatypes/operations/_media_types_client_operations.py index 8f81a152cc8..05063b95651 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/MediaTypes/mediatypes/operations/_media_types_client_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/MediaTypes/mediatypes/operations/_media_types_client_operations.py @@ -43,7 +43,7 @@ def build_analyze_body_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/mediatypes/analyze') + url = kwargs.pop("template_url", "/mediatypes/analyze") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -66,7 +66,7 @@ def build_analyze_body_no_accept_header_request( content_type = kwargs.pop('content_type', None) # type: Optional[Union[str, "_models.ContentType"]] # Construct URL - url = kwargs.pop("template_url", '/mediatypes/analyzeNoAccept') + url = kwargs.pop("template_url", "/mediatypes/analyzeNoAccept") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -89,7 +89,7 @@ def build_content_type_with_encoding_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/mediatypes/contentTypeWithEncoding') + url = kwargs.pop("template_url", "/mediatypes/contentTypeWithEncoding") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -113,7 +113,7 @@ def build_binary_body_with_two_content_types_request( accept = "text/plain" # Construct URL - url = kwargs.pop("template_url", '/mediatypes/binaryBodyTwoContentTypes') + url = kwargs.pop("template_url", "/mediatypes/binaryBodyTwoContentTypes") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -137,7 +137,7 @@ def build_binary_body_with_three_content_types_request( accept = "text/plain" # Construct URL - url = kwargs.pop("template_url", '/mediatypes/binaryBodyThreeContentTypes') + url = kwargs.pop("template_url", "/mediatypes/binaryBodyThreeContentTypes") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -161,7 +161,7 @@ def build_put_text_and_json_body_request( accept = "text/plain" # Construct URL - url = kwargs.pop("template_url", '/mediatypes/textAndJson') + url = kwargs.pop("template_url", "/mediatypes/textAndJson") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/MergePatchJson/mergepatchjson/operations/_merge_patch_json_client_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/MergePatchJson/mergepatchjson/operations/_merge_patch_json_client_operations.py index f4eb3fbd2ee..804cdf976a6 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/MergePatchJson/mergepatchjson/operations/_merge_patch_json_client_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/MergePatchJson/mergepatchjson/operations/_merge_patch_json_client_operations.py @@ -42,7 +42,7 @@ def build_patch_single_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/mergePatchJson/single') + url = kwargs.pop("template_url", "/mergePatchJson/single") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/ModelFlattening/modelflattening/operations/_auto_rest_resource_flattening_test_service_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/ModelFlattening/modelflattening/operations/_auto_rest_resource_flattening_test_service_operations.py index 97acce220b6..82507c8309f 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/ModelFlattening/modelflattening/operations/_auto_rest_resource_flattening_test_service_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/ModelFlattening/modelflattening/operations/_auto_rest_resource_flattening_test_service_operations.py @@ -43,7 +43,7 @@ def build_put_array_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/model-flatten/array') + url = kwargs.pop("template_url", "/model-flatten/array") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -65,7 +65,7 @@ def build_get_array_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/model-flatten/array') + url = kwargs.pop("template_url", "/model-flatten/array") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -87,7 +87,7 @@ def build_put_wrapped_array_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/model-flatten/wrappedarray') + url = kwargs.pop("template_url", "/model-flatten/wrappedarray") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -109,7 +109,7 @@ def build_get_wrapped_array_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/model-flatten/wrappedarray') + url = kwargs.pop("template_url", "/model-flatten/wrappedarray") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -131,7 +131,7 @@ def build_put_dictionary_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/model-flatten/dictionary') + url = kwargs.pop("template_url", "/model-flatten/dictionary") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -153,7 +153,7 @@ def build_get_dictionary_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/model-flatten/dictionary') + url = kwargs.pop("template_url", "/model-flatten/dictionary") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -175,7 +175,7 @@ def build_put_resource_collection_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/model-flatten/resourcecollection') + url = kwargs.pop("template_url", "/model-flatten/resourcecollection") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -197,7 +197,7 @@ def build_get_resource_collection_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/model-flatten/resourcecollection') + url = kwargs.pop("template_url", "/model-flatten/resourcecollection") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -219,7 +219,7 @@ def build_put_simple_product_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/model-flatten/customFlattening') + url = kwargs.pop("template_url", "/model-flatten/customFlattening") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -243,7 +243,7 @@ def build_post_flattened_simple_product_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/model-flatten/customFlattening') + url = kwargs.pop("template_url", "/model-flatten/customFlattening") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -268,7 +268,7 @@ def build_put_simple_product_with_grouping_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/model-flatten/customFlattening/parametergrouping/{name}/') + url = kwargs.pop("template_url", "/model-flatten/customFlattening/parametergrouping/{name}/") path_format_arguments = { "name": _SERIALIZER.url("name", name, 'str'), } diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/operations/_multiple_inheritance_service_client_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/operations/_multiple_inheritance_service_client_operations.py index f30d0a6dd6b..705d2b41a2d 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/operations/_multiple_inheritance_service_client_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/operations/_multiple_inheritance_service_client_operations.py @@ -41,7 +41,7 @@ def build_get_horse_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/multipleInheritance/horse') + url = kwargs.pop("template_url", "/multipleInheritance/horse") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -63,7 +63,7 @@ def build_put_horse_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/multipleInheritance/horse') + url = kwargs.pop("template_url", "/multipleInheritance/horse") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -85,7 +85,7 @@ def build_get_pet_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/multipleInheritance/pet') + url = kwargs.pop("template_url", "/multipleInheritance/pet") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -107,7 +107,7 @@ def build_put_pet_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/multipleInheritance/pet') + url = kwargs.pop("template_url", "/multipleInheritance/pet") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -129,7 +129,7 @@ def build_get_feline_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/multipleInheritance/feline') + url = kwargs.pop("template_url", "/multipleInheritance/feline") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -151,7 +151,7 @@ def build_put_feline_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/multipleInheritance/feline') + url = kwargs.pop("template_url", "/multipleInheritance/feline") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -173,7 +173,7 @@ def build_get_cat_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/multipleInheritance/cat') + url = kwargs.pop("template_url", "/multipleInheritance/cat") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -195,7 +195,7 @@ def build_put_cat_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/multipleInheritance/cat') + url = kwargs.pop("template_url", "/multipleInheritance/cat") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -217,7 +217,7 @@ def build_get_kitten_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/multipleInheritance/kitten') + url = kwargs.pop("template_url", "/multipleInheritance/kitten") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -239,7 +239,7 @@ def build_put_kitten_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/multipleInheritance/kitten') + url = kwargs.pop("template_url", "/multipleInheritance/kitten") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/NonStringEnums/nonstringenums/operations/_float_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/NonStringEnums/nonstringenums/operations/_float_operations.py index 4d07a3980e0..5a11a9780e6 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/NonStringEnums/nonstringenums/operations/_float_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/NonStringEnums/nonstringenums/operations/_float_operations.py @@ -43,7 +43,7 @@ def build_put_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/nonStringEnums/float/put') + url = kwargs.pop("template_url", "/nonStringEnums/float/put") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -65,7 +65,7 @@ def build_get_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/nonStringEnums/float/get') + url = kwargs.pop("template_url", "/nonStringEnums/float/get") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/NonStringEnums/nonstringenums/operations/_int_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/NonStringEnums/nonstringenums/operations/_int_operations.py index 510c7f8d462..41c7e08719e 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/NonStringEnums/nonstringenums/operations/_int_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/NonStringEnums/nonstringenums/operations/_int_operations.py @@ -43,7 +43,7 @@ def build_put_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/nonStringEnums/int/put') + url = kwargs.pop("template_url", "/nonStringEnums/int/put") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -65,7 +65,7 @@ def build_get_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/nonStringEnums/int/get') + url = kwargs.pop("template_url", "/nonStringEnums/int/get") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/ObjectType/objecttype/operations/_object_type_client_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/ObjectType/objecttype/operations/_object_type_client_operations.py index 2d2e1ea9d3b..29504925a97 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/ObjectType/objecttype/operations/_object_type_client_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/ObjectType/objecttype/operations/_object_type_client_operations.py @@ -40,7 +40,7 @@ def build_get_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/objectType/get') + url = kwargs.pop("template_url", "/objectType/get") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -62,7 +62,7 @@ def build_put_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/objectType/put') + url = kwargs.pop("template_url", "/objectType/put") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/ParameterFlattening/parameterflattening/operations/_availability_sets_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/ParameterFlattening/parameterflattening/operations/_availability_sets_operations.py index 994380e4200..c24932c5dcf 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/ParameterFlattening/parameterflattening/operations/_availability_sets_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/ParameterFlattening/parameterflattening/operations/_availability_sets_operations.py @@ -44,7 +44,7 @@ def build_update_request( content_type = kwargs.pop('content_type', None) # type: Optional[str] # Construct URL - url = kwargs.pop("template_url", '/parameterFlattening/{resourceGroupName}/{availabilitySetName}') + url = kwargs.pop("template_url", "/parameterFlattening/{resourceGroupName}/{availabilitySetName}") path_format_arguments = { "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str'), "availabilitySetName": _SERIALIZER.url("avset", avset, 'str', max_length=80, min_length=0), diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/ParameterizedEndpoint/parameterizedendpoint/operations/_parmaterized_endpoint_client_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/ParameterizedEndpoint/parameterizedendpoint/operations/_parmaterized_endpoint_client_operations.py index 3a72ae8fe00..503101351ed 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/ParameterizedEndpoint/parameterizedendpoint/operations/_parmaterized_endpoint_client_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/ParameterizedEndpoint/parameterizedendpoint/operations/_parmaterized_endpoint_client_operations.py @@ -39,7 +39,7 @@ def build_get_request( ): # type: (...) -> HttpRequest # Construct URL - url = kwargs.pop("template_url", '/parameterizedEndpoint/get') + url = kwargs.pop("template_url", "/parameterizedEndpoint/get") return HttpRequest( method="GET", diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/Report/report/operations/_auto_rest_report_service_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/Report/report/operations/_auto_rest_report_service_operations.py index d7614011b2a..c479230370e 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/Report/report/operations/_auto_rest_report_service_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/Report/report/operations/_auto_rest_report_service_operations.py @@ -43,7 +43,7 @@ def build_get_report_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/report') + url = kwargs.pop("template_url", "/report") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -71,7 +71,7 @@ def build_get_optional_report_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/report/optional') + url = kwargs.pop("template_url", "/report/optional") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/RequiredOptional/requiredoptional/operations/_explicit_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/RequiredOptional/requiredoptional/operations/_explicit_operations.py index 52511ce5688..adfcab6cad2 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/RequiredOptional/requiredoptional/operations/_explicit_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/RequiredOptional/requiredoptional/operations/_explicit_operations.py @@ -42,7 +42,7 @@ def build_put_optional_binary_body_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/reqopt/explicit/optional/binary-body') + url = kwargs.pop("template_url", "/reqopt/explicit/optional/binary-body") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -66,7 +66,7 @@ def build_put_required_binary_body_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/reqopt/explicit/required/binary-body') + url = kwargs.pop("template_url", "/reqopt/explicit/required/binary-body") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -90,7 +90,7 @@ def build_post_required_integer_parameter_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/reqopt/requied/integer/parameter') + url = kwargs.pop("template_url", "/reqopt/requied/integer/parameter") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -114,7 +114,7 @@ def build_post_optional_integer_parameter_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/reqopt/optional/integer/parameter') + url = kwargs.pop("template_url", "/reqopt/optional/integer/parameter") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -138,7 +138,7 @@ def build_post_required_integer_property_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/reqopt/requied/integer/property') + url = kwargs.pop("template_url", "/reqopt/requied/integer/property") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -162,7 +162,7 @@ def build_post_optional_integer_property_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/reqopt/optional/integer/property') + url = kwargs.pop("template_url", "/reqopt/optional/integer/property") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -186,7 +186,7 @@ def build_post_required_integer_header_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/reqopt/requied/integer/header') + url = kwargs.pop("template_url", "/reqopt/requied/integer/header") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -209,7 +209,7 @@ def build_post_optional_integer_header_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/reqopt/optional/integer/header') + url = kwargs.pop("template_url", "/reqopt/optional/integer/header") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -233,7 +233,7 @@ def build_post_required_string_parameter_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/reqopt/requied/string/parameter') + url = kwargs.pop("template_url", "/reqopt/requied/string/parameter") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -257,7 +257,7 @@ def build_post_optional_string_parameter_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/reqopt/optional/string/parameter') + url = kwargs.pop("template_url", "/reqopt/optional/string/parameter") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -281,7 +281,7 @@ def build_post_required_string_property_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/reqopt/requied/string/property') + url = kwargs.pop("template_url", "/reqopt/requied/string/property") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -305,7 +305,7 @@ def build_post_optional_string_property_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/reqopt/optional/string/property') + url = kwargs.pop("template_url", "/reqopt/optional/string/property") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -329,7 +329,7 @@ def build_post_required_string_header_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/reqopt/requied/string/header') + url = kwargs.pop("template_url", "/reqopt/requied/string/header") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -352,7 +352,7 @@ def build_post_optional_string_header_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/reqopt/optional/string/header') + url = kwargs.pop("template_url", "/reqopt/optional/string/header") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -376,7 +376,7 @@ def build_post_required_class_parameter_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/reqopt/requied/class/parameter') + url = kwargs.pop("template_url", "/reqopt/requied/class/parameter") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -400,7 +400,7 @@ def build_post_optional_class_parameter_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/reqopt/optional/class/parameter') + url = kwargs.pop("template_url", "/reqopt/optional/class/parameter") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -424,7 +424,7 @@ def build_post_required_class_property_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/reqopt/requied/class/property') + url = kwargs.pop("template_url", "/reqopt/requied/class/property") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -448,7 +448,7 @@ def build_post_optional_class_property_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/reqopt/optional/class/property') + url = kwargs.pop("template_url", "/reqopt/optional/class/property") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -472,7 +472,7 @@ def build_post_required_array_parameter_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/reqopt/requied/array/parameter') + url = kwargs.pop("template_url", "/reqopt/requied/array/parameter") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -496,7 +496,7 @@ def build_post_optional_array_parameter_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/reqopt/optional/array/parameter') + url = kwargs.pop("template_url", "/reqopt/optional/array/parameter") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -520,7 +520,7 @@ def build_post_required_array_property_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/reqopt/requied/array/property') + url = kwargs.pop("template_url", "/reqopt/requied/array/property") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -544,7 +544,7 @@ def build_post_optional_array_property_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/reqopt/optional/array/property') + url = kwargs.pop("template_url", "/reqopt/optional/array/property") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -568,7 +568,7 @@ def build_post_required_array_header_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/reqopt/requied/array/header') + url = kwargs.pop("template_url", "/reqopt/requied/array/header") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -591,7 +591,7 @@ def build_post_optional_array_header_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/reqopt/optional/array/header') + url = kwargs.pop("template_url", "/reqopt/optional/array/header") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/RequiredOptional/requiredoptional/operations/_implicit_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/RequiredOptional/requiredoptional/operations/_implicit_operations.py index bc29ccc34e3..9ac32f8c5e9 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/RequiredOptional/requiredoptional/operations/_implicit_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/RequiredOptional/requiredoptional/operations/_implicit_operations.py @@ -41,7 +41,7 @@ def build_get_required_path_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/reqopt/implicit/required/path/{pathParameter}') + url = kwargs.pop("template_url", "/reqopt/implicit/required/path/{pathParameter}") path_format_arguments = { "pathParameter": _SERIALIZER.url("path_parameter", path_parameter, 'str'), } @@ -68,7 +68,7 @@ def build_put_optional_query_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/reqopt/implicit/optional/query') + url = kwargs.pop("template_url", "/reqopt/implicit/optional/query") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -96,7 +96,7 @@ def build_put_optional_header_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/reqopt/implicit/optional/header') + url = kwargs.pop("template_url", "/reqopt/implicit/optional/header") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -120,7 +120,7 @@ def build_put_optional_body_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/reqopt/implicit/optional/body') + url = kwargs.pop("template_url", "/reqopt/implicit/optional/body") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -144,7 +144,7 @@ def build_put_optional_binary_body_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/reqopt/implicit/optional/binary-body') + url = kwargs.pop("template_url", "/reqopt/implicit/optional/binary-body") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -167,7 +167,7 @@ def build_get_required_global_path_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/reqopt/global/required/path/{required-global-path}') + url = kwargs.pop("template_url", "/reqopt/global/required/path/{required-global-path}") path_format_arguments = { "required-global-path": _SERIALIZER.url("required_global_path", required_global_path, 'str'), } @@ -194,7 +194,7 @@ def build_get_required_global_query_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/reqopt/global/required/query') + url = kwargs.pop("template_url", "/reqopt/global/required/query") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -221,7 +221,7 @@ def build_get_optional_global_query_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/reqopt/global/optional/query') + url = kwargs.pop("template_url", "/reqopt/global/optional/query") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/ReservedWords/reservedwords/operations/_import_operations_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/ReservedWords/reservedwords/operations/_import_operations_operations.py index cb16d307870..550bfe98c5a 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/ReservedWords/reservedwords/operations/_import_operations_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/ReservedWords/reservedwords/operations/_import_operations_operations.py @@ -43,7 +43,7 @@ def build_operation_one_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/reservedWords/operationGroup/import') + url = kwargs.pop("template_url", "/reservedWords/operationGroup/import") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/ReservedWords/reservedwords/operations/_reserved_words_client_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/ReservedWords/reservedwords/operations/_reserved_words_client_operations.py index 67dbdb06f84..71a560b3ee7 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/ReservedWords/reservedwords/operations/_reserved_words_client_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/ReservedWords/reservedwords/operations/_reserved_words_client_operations.py @@ -43,7 +43,7 @@ def build_operation_with_content_param_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/reservedWords/operation/content') + url = kwargs.pop("template_url", "/reservedWords/operation/content") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -67,7 +67,7 @@ def build_operation_with_json_param_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/reservedWords/operation/json') + url = kwargs.pop("template_url", "/reservedWords/operation/json") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -91,7 +91,7 @@ def build_operation_with_data_param_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/reservedWords/operation/data') + url = kwargs.pop("template_url", "/reservedWords/operation/data") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -115,7 +115,7 @@ def build_operation_with_files_param_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/reservedWords/operation/files') + url = kwargs.pop("template_url", "/reservedWords/operation/files") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/Url/url/operations/_path_items_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/Url/url/operations/_path_items_operations.py index 769d7a4d33b..2e1bb4f2dba 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/Url/url/operations/_path_items_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/Url/url/operations/_path_items_operations.py @@ -47,7 +47,7 @@ def build_get_all_with_values_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/pathitem/nullable/globalStringPath/{globalStringPath}/pathItemStringPath/{pathItemStringPath}/localStringPath/{localStringPath}/globalStringQuery/pathItemStringQuery/localStringQuery') # pylint: disable=line-too-long + url = kwargs.pop("template_url", "/pathitem/nullable/globalStringPath/{globalStringPath}/pathItemStringPath/{pathItemStringPath}/localStringPath/{localStringPath}/globalStringQuery/pathItemStringQuery/localStringQuery") # pylint: disable=line-too-long path_format_arguments = { "pathItemStringPath": _SERIALIZER.url("path_item_string_path", path_item_string_path, 'str'), "globalStringPath": _SERIALIZER.url("global_string_path", global_string_path, 'str'), @@ -91,7 +91,7 @@ def build_get_global_query_null_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/pathitem/nullable/globalStringPath/{globalStringPath}/pathItemStringPath/{pathItemStringPath}/localStringPath/{localStringPath}/null/pathItemStringQuery/localStringQuery') # pylint: disable=line-too-long + url = kwargs.pop("template_url", "/pathitem/nullable/globalStringPath/{globalStringPath}/pathItemStringPath/{pathItemStringPath}/localStringPath/{localStringPath}/null/pathItemStringQuery/localStringQuery") # pylint: disable=line-too-long path_format_arguments = { "pathItemStringPath": _SERIALIZER.url("path_item_string_path", path_item_string_path, 'str'), "globalStringPath": _SERIALIZER.url("global_string_path", global_string_path, 'str'), @@ -135,7 +135,7 @@ def build_get_global_and_local_query_null_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/pathitem/nullable/globalStringPath/{globalStringPath}/pathItemStringPath/{pathItemStringPath}/localStringPath/{localStringPath}/null/pathItemStringQuery/null') # pylint: disable=line-too-long + url = kwargs.pop("template_url", "/pathitem/nullable/globalStringPath/{globalStringPath}/pathItemStringPath/{pathItemStringPath}/localStringPath/{localStringPath}/null/pathItemStringQuery/null") # pylint: disable=line-too-long path_format_arguments = { "pathItemStringPath": _SERIALIZER.url("path_item_string_path", path_item_string_path, 'str'), "globalStringPath": _SERIALIZER.url("global_string_path", global_string_path, 'str'), @@ -179,7 +179,7 @@ def build_get_local_path_item_query_null_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/pathitem/nullable/globalStringPath/{globalStringPath}/pathItemStringPath/{pathItemStringPath}/localStringPath/{localStringPath}/globalStringQuery/null/null') # pylint: disable=line-too-long + url = kwargs.pop("template_url", "/pathitem/nullable/globalStringPath/{globalStringPath}/pathItemStringPath/{pathItemStringPath}/localStringPath/{localStringPath}/globalStringQuery/null/null") # pylint: disable=line-too-long path_format_arguments = { "pathItemStringPath": _SERIALIZER.url("path_item_string_path", path_item_string_path, 'str'), "globalStringPath": _SERIALIZER.url("global_string_path", global_string_path, 'str'), diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/Url/url/operations/_paths_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/Url/url/operations/_paths_operations.py index 9844b6f09c2..8d9a18c5ddb 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/Url/url/operations/_paths_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/Url/url/operations/_paths_operations.py @@ -43,7 +43,7 @@ def build_get_boolean_true_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/paths/bool/true/{boolPath}') + url = kwargs.pop("template_url", "/paths/bool/true/{boolPath}") path_format_arguments = { "boolPath": _SERIALIZER.url("bool_path", bool_path, 'bool'), } @@ -70,7 +70,7 @@ def build_get_boolean_false_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/paths/bool/false/{boolPath}') + url = kwargs.pop("template_url", "/paths/bool/false/{boolPath}") path_format_arguments = { "boolPath": _SERIALIZER.url("bool_path", bool_path, 'bool'), } @@ -97,7 +97,7 @@ def build_get_int_one_million_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/paths/int/1000000/{intPath}') + url = kwargs.pop("template_url", "/paths/int/1000000/{intPath}") path_format_arguments = { "intPath": _SERIALIZER.url("int_path", int_path, 'int'), } @@ -124,7 +124,7 @@ def build_get_int_negative_one_million_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/paths/int/-1000000/{intPath}') + url = kwargs.pop("template_url", "/paths/int/-1000000/{intPath}") path_format_arguments = { "intPath": _SERIALIZER.url("int_path", int_path, 'int'), } @@ -151,7 +151,7 @@ def build_get_ten_billion_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/paths/long/10000000000/{longPath}') + url = kwargs.pop("template_url", "/paths/long/10000000000/{longPath}") path_format_arguments = { "longPath": _SERIALIZER.url("long_path", long_path, 'long'), } @@ -178,7 +178,7 @@ def build_get_negative_ten_billion_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/paths/long/-10000000000/{longPath}') + url = kwargs.pop("template_url", "/paths/long/-10000000000/{longPath}") path_format_arguments = { "longPath": _SERIALIZER.url("long_path", long_path, 'long'), } @@ -205,7 +205,7 @@ def build_float_scientific_positive_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/paths/float/1.034E+20/{floatPath}') + url = kwargs.pop("template_url", "/paths/float/1.034E+20/{floatPath}") path_format_arguments = { "floatPath": _SERIALIZER.url("float_path", float_path, 'float'), } @@ -232,7 +232,7 @@ def build_float_scientific_negative_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/paths/float/-1.034E-20/{floatPath}') + url = kwargs.pop("template_url", "/paths/float/-1.034E-20/{floatPath}") path_format_arguments = { "floatPath": _SERIALIZER.url("float_path", float_path, 'float'), } @@ -259,7 +259,7 @@ def build_double_decimal_positive_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/paths/double/9999999.999/{doublePath}') + url = kwargs.pop("template_url", "/paths/double/9999999.999/{doublePath}") path_format_arguments = { "doublePath": _SERIALIZER.url("double_path", double_path, 'float'), } @@ -286,7 +286,7 @@ def build_double_decimal_negative_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/paths/double/-9999999.999/{doublePath}') + url = kwargs.pop("template_url", "/paths/double/-9999999.999/{doublePath}") path_format_arguments = { "doublePath": _SERIALIZER.url("double_path", double_path, 'float'), } @@ -313,7 +313,7 @@ def build_string_unicode_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/paths/string/unicode/{stringPath}') + url = kwargs.pop("template_url", "/paths/string/unicode/{stringPath}") path_format_arguments = { "stringPath": _SERIALIZER.url("string_path", string_path, 'str'), } @@ -340,7 +340,7 @@ def build_string_url_encoded_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/paths/string/begin%21%2A%27%28%29%3B%3A%40%20%26%3D%2B%24%2C%2F%3F%23%5B%5Dend/{stringPath}') # pylint: disable=line-too-long + url = kwargs.pop("template_url", "/paths/string/begin%21%2A%27%28%29%3B%3A%40%20%26%3D%2B%24%2C%2F%3F%23%5B%5Dend/{stringPath}") # pylint: disable=line-too-long path_format_arguments = { "stringPath": _SERIALIZER.url("string_path", string_path, 'str'), } @@ -367,7 +367,7 @@ def build_string_url_non_encoded_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/paths/string/begin!*\'();:@&=+$,end/{stringPath}') + url = kwargs.pop("template_url", "/paths/string/begin!*\'();:@&=+$,end/{stringPath}") path_format_arguments = { "stringPath": _SERIALIZER.url("string_path", string_path, 'str', skip_quote=True), } @@ -394,7 +394,7 @@ def build_string_empty_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/paths/string/empty/{stringPath}') + url = kwargs.pop("template_url", "/paths/string/empty/{stringPath}") path_format_arguments = { "stringPath": _SERIALIZER.url("string_path", string_path, 'str'), } @@ -420,7 +420,7 @@ def build_string_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/paths/string/null/{stringPath}') + url = kwargs.pop("template_url", "/paths/string/null/{stringPath}") path_format_arguments = { "stringPath": _SERIALIZER.url("string_path", string_path, 'str'), } @@ -446,7 +446,7 @@ def build_enum_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/paths/enum/green%20color/{enumPath}') + url = kwargs.pop("template_url", "/paths/enum/green%20color/{enumPath}") path_format_arguments = { "enumPath": _SERIALIZER.url("enum_path", enum_path, 'str'), } @@ -472,7 +472,7 @@ def build_enum_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/paths/string/null/{enumPath}') + url = kwargs.pop("template_url", "/paths/string/null/{enumPath}") path_format_arguments = { "enumPath": _SERIALIZER.url("enum_path", enum_path, 'str'), } @@ -498,7 +498,7 @@ def build_byte_multi_byte_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/paths/byte/multibyte/{bytePath}') + url = kwargs.pop("template_url", "/paths/byte/multibyte/{bytePath}") path_format_arguments = { "bytePath": _SERIALIZER.url("byte_path", byte_path, 'bytearray'), } @@ -525,7 +525,7 @@ def build_byte_empty_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/paths/byte/empty/{bytePath}') + url = kwargs.pop("template_url", "/paths/byte/empty/{bytePath}") path_format_arguments = { "bytePath": _SERIALIZER.url("byte_path", byte_path, 'bytearray'), } @@ -551,7 +551,7 @@ def build_byte_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/paths/byte/null/{bytePath}') + url = kwargs.pop("template_url", "/paths/byte/null/{bytePath}") path_format_arguments = { "bytePath": _SERIALIZER.url("byte_path", byte_path, 'bytearray'), } @@ -578,7 +578,7 @@ def build_date_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/paths/date/2012-01-01/{datePath}') + url = kwargs.pop("template_url", "/paths/date/2012-01-01/{datePath}") path_format_arguments = { "datePath": _SERIALIZER.url("date_path", date_path, 'date'), } @@ -604,7 +604,7 @@ def build_date_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/paths/date/null/{datePath}') + url = kwargs.pop("template_url", "/paths/date/null/{datePath}") path_format_arguments = { "datePath": _SERIALIZER.url("date_path", date_path, 'date'), } @@ -631,7 +631,7 @@ def build_date_time_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/paths/datetime/2012-01-01T01%3A01%3A01Z/{dateTimePath}') + url = kwargs.pop("template_url", "/paths/datetime/2012-01-01T01%3A01%3A01Z/{dateTimePath}") path_format_arguments = { "dateTimePath": _SERIALIZER.url("date_time_path", date_time_path, 'iso-8601'), } @@ -657,7 +657,7 @@ def build_date_time_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/paths/datetime/null/{dateTimePath}') + url = kwargs.pop("template_url", "/paths/datetime/null/{dateTimePath}") path_format_arguments = { "dateTimePath": _SERIALIZER.url("date_time_path", date_time_path, 'iso-8601'), } @@ -683,7 +683,7 @@ def build_base64_url_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/paths/string/bG9yZW0/{base64UrlPath}') + url = kwargs.pop("template_url", "/paths/string/bG9yZW0/{base64UrlPath}") path_format_arguments = { "base64UrlPath": _SERIALIZER.url("base64_url_path", base64_url_path, 'base64'), } @@ -709,7 +709,7 @@ def build_array_csv_in_path_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/paths/array/ArrayPath1%2cbegin%21%2A%27%28%29%3B%3A%40%20%26%3D%2B%24%2C%2F%3F%23%5B%5Dend%2c%2c/{arrayPath}') # pylint: disable=line-too-long + url = kwargs.pop("template_url", "/paths/array/ArrayPath1%2cbegin%21%2A%27%28%29%3B%3A%40%20%26%3D%2B%24%2C%2F%3F%23%5B%5Dend%2c%2c/{arrayPath}") # pylint: disable=line-too-long path_format_arguments = { "arrayPath": _SERIALIZER.url("array_path", array_path, '[str]', div=','), } @@ -735,7 +735,7 @@ def build_unix_time_url_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/paths/int/1460505600/{unixTimeUrlPath}') + url = kwargs.pop("template_url", "/paths/int/1460505600/{unixTimeUrlPath}") path_format_arguments = { "unixTimeUrlPath": _SERIALIZER.url("unix_time_url_path", unix_time_url_path, 'unix-time'), } diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/Url/url/operations/_queries_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/Url/url/operations/_queries_operations.py index ba29c28c43f..4289f4a9944 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/Url/url/operations/_queries_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/Url/url/operations/_queries_operations.py @@ -43,7 +43,7 @@ def build_get_boolean_true_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/queries/bool/true') + url = kwargs.pop("template_url", "/queries/bool/true") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -70,7 +70,7 @@ def build_get_boolean_false_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/queries/bool/false') + url = kwargs.pop("template_url", "/queries/bool/false") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -97,7 +97,7 @@ def build_get_boolean_null_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/queries/bool/null') + url = kwargs.pop("template_url", "/queries/bool/null") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -125,7 +125,7 @@ def build_get_int_one_million_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/queries/int/1000000') + url = kwargs.pop("template_url", "/queries/int/1000000") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -152,7 +152,7 @@ def build_get_int_negative_one_million_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/queries/int/-1000000') + url = kwargs.pop("template_url", "/queries/int/-1000000") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -179,7 +179,7 @@ def build_get_int_null_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/queries/int/null') + url = kwargs.pop("template_url", "/queries/int/null") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -207,7 +207,7 @@ def build_get_ten_billion_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/queries/long/10000000000') + url = kwargs.pop("template_url", "/queries/long/10000000000") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -234,7 +234,7 @@ def build_get_negative_ten_billion_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/queries/long/-10000000000') + url = kwargs.pop("template_url", "/queries/long/-10000000000") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -261,7 +261,7 @@ def build_get_long_null_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/queries/long/null') + url = kwargs.pop("template_url", "/queries/long/null") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -289,7 +289,7 @@ def build_float_scientific_positive_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/queries/float/1.034E+20') + url = kwargs.pop("template_url", "/queries/float/1.034E+20") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -316,7 +316,7 @@ def build_float_scientific_negative_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/queries/float/-1.034E-20') + url = kwargs.pop("template_url", "/queries/float/-1.034E-20") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -343,7 +343,7 @@ def build_float_null_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/queries/float/null') + url = kwargs.pop("template_url", "/queries/float/null") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -371,7 +371,7 @@ def build_double_decimal_positive_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/queries/double/9999999.999') + url = kwargs.pop("template_url", "/queries/double/9999999.999") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -398,7 +398,7 @@ def build_double_decimal_negative_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/queries/double/-9999999.999') + url = kwargs.pop("template_url", "/queries/double/-9999999.999") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -425,7 +425,7 @@ def build_double_null_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/queries/double/null') + url = kwargs.pop("template_url", "/queries/double/null") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -453,7 +453,7 @@ def build_string_unicode_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/queries/string/unicode/') + url = kwargs.pop("template_url", "/queries/string/unicode/") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -480,7 +480,7 @@ def build_string_url_encoded_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/queries/string/begin%21%2A%27%28%29%3B%3A%40%20%26%3D%2B%24%2C%2F%3F%23%5B%5Dend') + url = kwargs.pop("template_url", "/queries/string/begin%21%2A%27%28%29%3B%3A%40%20%26%3D%2B%24%2C%2F%3F%23%5B%5Dend") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -507,7 +507,7 @@ def build_string_empty_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/queries/string/empty') + url = kwargs.pop("template_url", "/queries/string/empty") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -534,7 +534,7 @@ def build_string_null_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/queries/string/null') + url = kwargs.pop("template_url", "/queries/string/null") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -562,7 +562,7 @@ def build_enum_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/queries/enum/green%20color') + url = kwargs.pop("template_url", "/queries/enum/green%20color") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -590,7 +590,7 @@ def build_enum_null_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/queries/enum/null') + url = kwargs.pop("template_url", "/queries/enum/null") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -618,7 +618,7 @@ def build_byte_multi_byte_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/queries/byte/multibyte') + url = kwargs.pop("template_url", "/queries/byte/multibyte") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -646,7 +646,7 @@ def build_byte_empty_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/queries/byte/empty') + url = kwargs.pop("template_url", "/queries/byte/empty") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -673,7 +673,7 @@ def build_byte_null_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/queries/byte/null') + url = kwargs.pop("template_url", "/queries/byte/null") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -701,7 +701,7 @@ def build_date_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/queries/date/2012-01-01') + url = kwargs.pop("template_url", "/queries/date/2012-01-01") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -728,7 +728,7 @@ def build_date_null_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/queries/date/null') + url = kwargs.pop("template_url", "/queries/date/null") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -756,7 +756,7 @@ def build_date_time_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/queries/datetime/2012-01-01T01%3A01%3A01Z') + url = kwargs.pop("template_url", "/queries/datetime/2012-01-01T01%3A01%3A01Z") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -783,7 +783,7 @@ def build_date_time_null_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/queries/datetime/null') + url = kwargs.pop("template_url", "/queries/datetime/null") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -811,7 +811,7 @@ def build_array_string_csv_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/queries/array/csv/string/valid') + url = kwargs.pop("template_url", "/queries/array/csv/string/valid") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -839,7 +839,7 @@ def build_array_string_csv_null_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/queries/array/csv/string/null') + url = kwargs.pop("template_url", "/queries/array/csv/string/null") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -867,7 +867,7 @@ def build_array_string_csv_empty_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/queries/array/csv/string/empty') + url = kwargs.pop("template_url", "/queries/array/csv/string/empty") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -895,7 +895,7 @@ def build_array_string_no_collection_format_empty_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/queries/array/none/string/empty') + url = kwargs.pop("template_url", "/queries/array/none/string/empty") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -923,7 +923,7 @@ def build_array_string_ssv_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/queries/array/ssv/string/valid') + url = kwargs.pop("template_url", "/queries/array/ssv/string/valid") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -951,7 +951,7 @@ def build_array_string_tsv_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/queries/array/tsv/string/valid') + url = kwargs.pop("template_url", "/queries/array/tsv/string/valid") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -979,7 +979,7 @@ def build_array_string_pipes_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/queries/array/pipes/string/valid') + url = kwargs.pop("template_url", "/queries/array/pipes/string/valid") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/UrlMultiCollectionFormat/urlmulticollectionformat/operations/_queries_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/UrlMultiCollectionFormat/urlmulticollectionformat/operations/_queries_operations.py index 6e211ac5d93..0019c32a4c0 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/UrlMultiCollectionFormat/urlmulticollectionformat/operations/_queries_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/UrlMultiCollectionFormat/urlmulticollectionformat/operations/_queries_operations.py @@ -43,7 +43,7 @@ def build_array_string_multi_null_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/queries/array/multi/string/null') + url = kwargs.pop("template_url", "/queries/array/multi/string/null") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -71,7 +71,7 @@ def build_array_string_multi_empty_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/queries/array/multi/string/empty') + url = kwargs.pop("template_url", "/queries/array/multi/string/empty") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -99,7 +99,7 @@ def build_array_string_multi_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/queries/array/multi/string/valid') + url = kwargs.pop("template_url", "/queries/array/multi/string/valid") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/Validation/validation/operations/_auto_rest_validation_test_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/Validation/validation/operations/_auto_rest_validation_test_operations.py index 938a3d3b2df..9c6c161d158 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/Validation/validation/operations/_auto_rest_validation_test_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/Validation/validation/operations/_auto_rest_validation_test_operations.py @@ -45,7 +45,7 @@ def build_validation_of_method_parameters_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/fakepath/{subscriptionId}/{resourceGroupName}/{id}') + url = kwargs.pop("template_url", "/fakepath/{subscriptionId}/{resourceGroupName}/{id}") path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str', max_length=10, min_length=3, pattern=r'[a-zA-Z0-9\']+'), @@ -83,7 +83,7 @@ def build_validation_of_body_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/fakepath/{subscriptionId}/{resourceGroupName}/{id}') + url = kwargs.pop("template_url", "/fakepath/{subscriptionId}/{resourceGroupName}/{id}") path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str', max_length=10, min_length=3, pattern=r'[a-zA-Z0-9]+'), @@ -118,7 +118,7 @@ def build_get_with_constant_in_path_request( constant_param = kwargs.pop('constant_param', "constant") # type: str # Construct URL - url = kwargs.pop("template_url", '/validation/constantsInPath/{constantParam}/value') + url = kwargs.pop("template_url", "/validation/constantsInPath/{constantParam}/value") path_format_arguments = { "constantParam": _SERIALIZER.url("constant_param", constant_param, 'str'), } @@ -141,7 +141,7 @@ def build_post_with_constant_in_body_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/validation/constantsInPath/{constantParam}/value') + url = kwargs.pop("template_url", "/validation/constantsInPath/{constantParam}/value") path_format_arguments = { "constantParam": _SERIALIZER.url("constant_param", constant_param, 'str'), } diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/Xml/xmlservice/operations/_xml_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/Xml/xmlservice/operations/_xml_operations.py index 75f6755bc08..49a3ead1d8c 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/Xml/xmlservice/operations/_xml_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/Xml/xmlservice/operations/_xml_operations.py @@ -41,7 +41,7 @@ def build_get_complex_type_ref_no_meta_request( # type: (...) -> HttpRequest accept = "application/xml" # Construct URL - url = kwargs.pop("template_url", '/xml/complex-type-ref-no-meta') + url = kwargs.pop("template_url", "/xml/complex-type-ref-no-meta") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -62,7 +62,7 @@ def build_put_complex_type_ref_no_meta_request( content_type = kwargs.pop('content_type', None) # type: Optional[str] # Construct URL - url = kwargs.pop("template_url", '/xml/complex-type-ref-no-meta') + url = kwargs.pop("template_url", "/xml/complex-type-ref-no-meta") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -83,7 +83,7 @@ def build_get_complex_type_ref_with_meta_request( # type: (...) -> HttpRequest accept = "application/xml" # Construct URL - url = kwargs.pop("template_url", '/xml/complex-type-ref-with-meta') + url = kwargs.pop("template_url", "/xml/complex-type-ref-with-meta") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -104,7 +104,7 @@ def build_put_complex_type_ref_with_meta_request( content_type = kwargs.pop('content_type', None) # type: Optional[str] # Construct URL - url = kwargs.pop("template_url", '/xml/complex-type-ref-with-meta') + url = kwargs.pop("template_url", "/xml/complex-type-ref-with-meta") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -125,7 +125,7 @@ def build_get_simple_request( # type: (...) -> HttpRequest accept = "application/xml" # Construct URL - url = kwargs.pop("template_url", '/xml/simple') + url = kwargs.pop("template_url", "/xml/simple") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -147,7 +147,7 @@ def build_put_simple_request( accept = "application/xml" # Construct URL - url = kwargs.pop("template_url", '/xml/simple') + url = kwargs.pop("template_url", "/xml/simple") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -169,7 +169,7 @@ def build_get_wrapped_lists_request( # type: (...) -> HttpRequest accept = "application/xml" # Construct URL - url = kwargs.pop("template_url", '/xml/wrapped-lists') + url = kwargs.pop("template_url", "/xml/wrapped-lists") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -191,7 +191,7 @@ def build_put_wrapped_lists_request( accept = "application/xml" # Construct URL - url = kwargs.pop("template_url", '/xml/wrapped-lists') + url = kwargs.pop("template_url", "/xml/wrapped-lists") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -212,7 +212,7 @@ def build_get_headers_request( ): # type: (...) -> HttpRequest # Construct URL - url = kwargs.pop("template_url", '/xml/headers') + url = kwargs.pop("template_url", "/xml/headers") return HttpRequest( method="GET", @@ -227,7 +227,7 @@ def build_get_empty_list_request( # type: (...) -> HttpRequest accept = "application/xml" # Construct URL - url = kwargs.pop("template_url", '/xml/empty-list') + url = kwargs.pop("template_url", "/xml/empty-list") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -248,7 +248,7 @@ def build_put_empty_list_request( content_type = kwargs.pop('content_type', None) # type: Optional[str] # Construct URL - url = kwargs.pop("template_url", '/xml/empty-list') + url = kwargs.pop("template_url", "/xml/empty-list") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -269,7 +269,7 @@ def build_get_empty_wrapped_lists_request( # type: (...) -> HttpRequest accept = "application/xml" # Construct URL - url = kwargs.pop("template_url", '/xml/empty-wrapped-lists') + url = kwargs.pop("template_url", "/xml/empty-wrapped-lists") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -290,7 +290,7 @@ def build_put_empty_wrapped_lists_request( content_type = kwargs.pop('content_type', None) # type: Optional[str] # Construct URL - url = kwargs.pop("template_url", '/xml/empty-wrapped-lists') + url = kwargs.pop("template_url", "/xml/empty-wrapped-lists") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -311,7 +311,7 @@ def build_get_root_list_request( # type: (...) -> HttpRequest accept = "application/xml" # Construct URL - url = kwargs.pop("template_url", '/xml/root-list') + url = kwargs.pop("template_url", "/xml/root-list") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -332,7 +332,7 @@ def build_put_root_list_request( content_type = kwargs.pop('content_type', None) # type: Optional[str] # Construct URL - url = kwargs.pop("template_url", '/xml/root-list') + url = kwargs.pop("template_url", "/xml/root-list") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -353,7 +353,7 @@ def build_get_root_list_single_item_request( # type: (...) -> HttpRequest accept = "application/xml" # Construct URL - url = kwargs.pop("template_url", '/xml/root-list-single-item') + url = kwargs.pop("template_url", "/xml/root-list-single-item") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -374,7 +374,7 @@ def build_put_root_list_single_item_request( content_type = kwargs.pop('content_type', None) # type: Optional[str] # Construct URL - url = kwargs.pop("template_url", '/xml/root-list-single-item') + url = kwargs.pop("template_url", "/xml/root-list-single-item") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -395,7 +395,7 @@ def build_get_empty_root_list_request( # type: (...) -> HttpRequest accept = "application/xml" # Construct URL - url = kwargs.pop("template_url", '/xml/empty-root-list') + url = kwargs.pop("template_url", "/xml/empty-root-list") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -416,7 +416,7 @@ def build_put_empty_root_list_request( content_type = kwargs.pop('content_type', None) # type: Optional[str] # Construct URL - url = kwargs.pop("template_url", '/xml/empty-root-list') + url = kwargs.pop("template_url", "/xml/empty-root-list") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -437,7 +437,7 @@ def build_get_empty_child_element_request( # type: (...) -> HttpRequest accept = "application/xml" # Construct URL - url = kwargs.pop("template_url", '/xml/empty-child-element') + url = kwargs.pop("template_url", "/xml/empty-child-element") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -458,7 +458,7 @@ def build_put_empty_child_element_request( content_type = kwargs.pop('content_type', None) # type: Optional[str] # Construct URL - url = kwargs.pop("template_url", '/xml/empty-child-element') + url = kwargs.pop("template_url", "/xml/empty-child-element") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -481,7 +481,7 @@ def build_list_containers_request( accept = "application/xml" # Construct URL - url = kwargs.pop("template_url", '/xml/') + url = kwargs.pop("template_url", "/xml/") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -509,7 +509,7 @@ def build_get_service_properties_request( accept = "application/xml" # Construct URL - url = kwargs.pop("template_url", '/xml/') + url = kwargs.pop("template_url", "/xml/") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -538,7 +538,7 @@ def build_put_service_properties_request( content_type = kwargs.pop('content_type', None) # type: Optional[str] # Construct URL - url = kwargs.pop("template_url", '/xml/') + url = kwargs.pop("template_url", "/xml/") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -568,7 +568,7 @@ def build_get_acls_request( accept = "application/xml" # Construct URL - url = kwargs.pop("template_url", '/xml/mycontainer') + url = kwargs.pop("template_url", "/xml/mycontainer") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -597,7 +597,7 @@ def build_put_acls_request( content_type = kwargs.pop('content_type', None) # type: Optional[str] # Construct URL - url = kwargs.pop("template_url", '/xml/mycontainer') + url = kwargs.pop("template_url", "/xml/mycontainer") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -627,7 +627,7 @@ def build_list_blobs_request( accept = "application/xml" # Construct URL - url = kwargs.pop("template_url", '/xml/mycontainer') + url = kwargs.pop("template_url", "/xml/mycontainer") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -654,7 +654,7 @@ def build_json_input_request( content_type = kwargs.pop('content_type', None) # type: Optional[str] # Construct URL - url = kwargs.pop("template_url", '/xml/jsoninput') + url = kwargs.pop("template_url", "/xml/jsoninput") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -675,7 +675,7 @@ def build_json_output_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/xml/jsonoutput') + url = kwargs.pop("template_url", "/xml/jsonoutput") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -695,7 +695,7 @@ def build_get_xms_text_request( # type: (...) -> HttpRequest accept = "application/xml" # Construct URL - url = kwargs.pop("template_url", '/xml/x-ms-text') + url = kwargs.pop("template_url", "/xml/x-ms-text") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -715,7 +715,7 @@ def build_get_bytes_request( # type: (...) -> HttpRequest accept = "application/xml" # Construct URL - url = kwargs.pop("template_url", '/xml/bytes') + url = kwargs.pop("template_url", "/xml/bytes") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -737,7 +737,7 @@ def build_put_binary_request( accept = "application/xml" # Construct URL - url = kwargs.pop("template_url", '/xml/bytes') + url = kwargs.pop("template_url", "/xml/bytes") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -759,7 +759,7 @@ def build_get_uri_request( # type: (...) -> HttpRequest accept = "application/xml" # Construct URL - url = kwargs.pop("template_url", '/xml/url') + url = kwargs.pop("template_url", "/xml/url") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -781,7 +781,7 @@ def build_put_uri_request( accept = "application/xml" # Construct URL - url = kwargs.pop("template_url", '/xml/url') + url = kwargs.pop("template_url", "/xml/url") # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/XmsErrorResponse/xmserrorresponse/operations/_pet_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/XmsErrorResponse/xmserrorresponse/operations/_pet_operations.py index b9dd9f2cc79..0bc0608b8f7 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/XmsErrorResponse/xmserrorresponse/operations/_pet_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/XmsErrorResponse/xmserrorresponse/operations/_pet_operations.py @@ -42,7 +42,7 @@ def build_get_pet_by_id_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/errorStatusCodes/Pets/{petId}/GetPet') + url = kwargs.pop("template_url", "/errorStatusCodes/Pets/{petId}/GetPet") path_format_arguments = { "petId": _SERIALIZER.url("pet_id", pet_id, 'str'), } @@ -68,7 +68,7 @@ def build_do_something_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/errorStatusCodes/Pets/doSomething/{whatAction}') + url = kwargs.pop("template_url", "/errorStatusCodes/Pets/doSomething/{whatAction}") path_format_arguments = { "whatAction": _SERIALIZER.url("what_action", what_action, 'str'), } @@ -95,7 +95,7 @@ def build_has_models_param_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/errorStatusCodes/Pets/hasModelsParam') + url = kwargs.pop("template_url", "/errorStatusCodes/Pets/hasModelsParam") # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/AdditionalPropertiesLowLevel/additionalpropertieslowlevel/rest/pets/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/AdditionalPropertiesLowLevel/additionalpropertieslowlevel/rest/pets/_request_builders.py index a05b5018079..ae4a2b212a6 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/AdditionalPropertiesLowLevel/additionalpropertieslowlevel/rest/pets/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/AdditionalPropertiesLowLevel/additionalpropertieslowlevel/rest/pets/_request_builders.py @@ -64,7 +64,7 @@ def build_create_ap_true_request( accept = "application/json" # Construct URL - url = '/additionalProperties/true' + url = "/additionalProperties/true" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -124,7 +124,7 @@ def build_create_cat_ap_true_request( accept = "application/json" # Construct URL - url = '/additionalProperties/true-subclass' + url = "/additionalProperties/true-subclass" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -182,7 +182,7 @@ def build_create_ap_object_request( accept = "application/json" # Construct URL - url = '/additionalProperties/type/object' + url = "/additionalProperties/type/object" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -240,7 +240,7 @@ def build_create_ap_string_request( accept = "application/json" # Construct URL - url = '/additionalProperties/type/string' + url = "/additionalProperties/type/string" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -298,7 +298,7 @@ def build_create_ap_in_properties_request( accept = "application/json" # Construct URL - url = '/additionalProperties/in/properties' + url = "/additionalProperties/in/properties" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -364,7 +364,7 @@ def build_create_ap_in_properties_with_ap_string_request( accept = "application/json" # Construct URL - url = '/additionalProperties/in/properties/with/additionalProperties/string' + url = "/additionalProperties/in/properties/with/additionalProperties/string" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/AnythingLowLevel/anythinglowlevel/rest/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/AnythingLowLevel/anythinglowlevel/rest/_request_builders.py index aed30379788..796e9f788df 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/AnythingLowLevel/anythinglowlevel/rest/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/AnythingLowLevel/anythinglowlevel/rest/_request_builders.py @@ -40,7 +40,7 @@ def build_get_object_request( accept = "application/json" # Construct URL - url = '/anything/object' + url = "/anything/object" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -87,7 +87,7 @@ def build_put_object_request( content_type = kwargs.pop('content_type', None) # type: Optional[str] # Construct URL - url = '/anything/object' + url = "/anything/object" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -119,7 +119,7 @@ def build_get_string_request( accept = "application/json" # Construct URL - url = '/anything/string' + url = "/anything/string" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -166,7 +166,7 @@ def build_put_string_request( content_type = kwargs.pop('content_type', None) # type: Optional[str] # Construct URL - url = '/anything/string' + url = "/anything/string" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -198,7 +198,7 @@ def build_get_array_request( accept = "application/json" # Construct URL - url = '/anything/array' + url = "/anything/array" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -245,7 +245,7 @@ def build_put_array_request( content_type = kwargs.pop('content_type', None) # type: Optional[str] # Construct URL - url = '/anything/array' + url = "/anything/array" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyArrayLowLevel/bodyarraylowlevel/rest/array/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyArrayLowLevel/bodyarraylowlevel/rest/array/_request_builders.py index c0be66f41e1..3dce6a3a67d 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyArrayLowLevel/bodyarraylowlevel/rest/array/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyArrayLowLevel/bodyarraylowlevel/rest/array/_request_builders.py @@ -47,7 +47,7 @@ def build_get_null_request( accept = "application/json" # Construct URL - url = '/array/null' + url = "/array/null" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -86,7 +86,7 @@ def build_get_invalid_request( accept = "application/json" # Construct URL - url = '/array/invalid' + url = "/array/invalid" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -125,7 +125,7 @@ def build_get_empty_request( accept = "application/json" # Construct URL - url = '/array/empty' + url = "/array/empty" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -172,7 +172,7 @@ def build_put_empty_request( accept = "application/json" # Construct URL - url = '/array/empty' + url = "/array/empty" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -213,7 +213,7 @@ def build_get_boolean_tfft_request( accept = "application/json" # Construct URL - url = '/array/prim/boolean/tfft' + url = "/array/prim/boolean/tfft" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -260,7 +260,7 @@ def build_put_boolean_tfft_request( accept = "application/json" # Construct URL - url = '/array/prim/boolean/tfft' + url = "/array/prim/boolean/tfft" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -301,7 +301,7 @@ def build_get_boolean_invalid_null_request( accept = "application/json" # Construct URL - url = '/array/prim/boolean/true.null.false' + url = "/array/prim/boolean/true.null.false" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -340,7 +340,7 @@ def build_get_boolean_invalid_string_request( accept = "application/json" # Construct URL - url = '/array/prim/boolean/true.boolean.false' + url = "/array/prim/boolean/true.boolean.false" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -379,7 +379,7 @@ def build_get_integer_valid_request( accept = "application/json" # Construct URL - url = '/array/prim/integer/1.-1.3.300' + url = "/array/prim/integer/1.-1.3.300" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -426,7 +426,7 @@ def build_put_integer_valid_request( accept = "application/json" # Construct URL - url = '/array/prim/integer/1.-1.3.300' + url = "/array/prim/integer/1.-1.3.300" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -467,7 +467,7 @@ def build_get_int_invalid_null_request( accept = "application/json" # Construct URL - url = '/array/prim/integer/1.null.zero' + url = "/array/prim/integer/1.null.zero" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -506,7 +506,7 @@ def build_get_int_invalid_string_request( accept = "application/json" # Construct URL - url = '/array/prim/integer/1.integer.0' + url = "/array/prim/integer/1.integer.0" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -545,7 +545,7 @@ def build_get_long_valid_request( accept = "application/json" # Construct URL - url = '/array/prim/long/1.-1.3.300' + url = "/array/prim/long/1.-1.3.300" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -592,7 +592,7 @@ def build_put_long_valid_request( accept = "application/json" # Construct URL - url = '/array/prim/long/1.-1.3.300' + url = "/array/prim/long/1.-1.3.300" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -633,7 +633,7 @@ def build_get_long_invalid_null_request( accept = "application/json" # Construct URL - url = '/array/prim/long/1.null.zero' + url = "/array/prim/long/1.null.zero" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -672,7 +672,7 @@ def build_get_long_invalid_string_request( accept = "application/json" # Construct URL - url = '/array/prim/long/1.integer.0' + url = "/array/prim/long/1.integer.0" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -711,7 +711,7 @@ def build_get_float_valid_request( accept = "application/json" # Construct URL - url = '/array/prim/float/0--0.01-1.2e20' + url = "/array/prim/float/0--0.01-1.2e20" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -758,7 +758,7 @@ def build_put_float_valid_request( accept = "application/json" # Construct URL - url = '/array/prim/float/0--0.01-1.2e20' + url = "/array/prim/float/0--0.01-1.2e20" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -799,7 +799,7 @@ def build_get_float_invalid_null_request( accept = "application/json" # Construct URL - url = '/array/prim/float/0.0-null-1.2e20' + url = "/array/prim/float/0.0-null-1.2e20" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -838,7 +838,7 @@ def build_get_float_invalid_string_request( accept = "application/json" # Construct URL - url = '/array/prim/float/1.number.0' + url = "/array/prim/float/1.number.0" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -877,7 +877,7 @@ def build_get_double_valid_request( accept = "application/json" # Construct URL - url = '/array/prim/double/0--0.01-1.2e20' + url = "/array/prim/double/0--0.01-1.2e20" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -924,7 +924,7 @@ def build_put_double_valid_request( accept = "application/json" # Construct URL - url = '/array/prim/double/0--0.01-1.2e20' + url = "/array/prim/double/0--0.01-1.2e20" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -965,7 +965,7 @@ def build_get_double_invalid_null_request( accept = "application/json" # Construct URL - url = '/array/prim/double/0.0-null-1.2e20' + url = "/array/prim/double/0.0-null-1.2e20" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1004,7 +1004,7 @@ def build_get_double_invalid_string_request( accept = "application/json" # Construct URL - url = '/array/prim/double/1.number.0' + url = "/array/prim/double/1.number.0" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1043,7 +1043,7 @@ def build_get_string_valid_request( accept = "application/json" # Construct URL - url = '/array/prim/string/foo1.foo2.foo3' + url = "/array/prim/string/foo1.foo2.foo3" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1090,7 +1090,7 @@ def build_put_string_valid_request( accept = "application/json" # Construct URL - url = '/array/prim/string/foo1.foo2.foo3' + url = "/array/prim/string/foo1.foo2.foo3" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1131,7 +1131,7 @@ def build_get_enum_valid_request( accept = "application/json" # Construct URL - url = '/array/prim/enum/foo1.foo2.foo3' + url = "/array/prim/enum/foo1.foo2.foo3" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1178,7 +1178,7 @@ def build_put_enum_valid_request( accept = "application/json" # Construct URL - url = '/array/prim/enum/foo1.foo2.foo3' + url = "/array/prim/enum/foo1.foo2.foo3" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1219,7 +1219,7 @@ def build_get_string_enum_valid_request( accept = "application/json" # Construct URL - url = '/array/prim/string-enum/foo1.foo2.foo3' + url = "/array/prim/string-enum/foo1.foo2.foo3" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1266,7 +1266,7 @@ def build_put_string_enum_valid_request( accept = "application/json" # Construct URL - url = '/array/prim/string-enum/foo1.foo2.foo3' + url = "/array/prim/string-enum/foo1.foo2.foo3" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1307,7 +1307,7 @@ def build_get_string_with_null_request( accept = "application/json" # Construct URL - url = '/array/prim/string/foo.null.foo2' + url = "/array/prim/string/foo.null.foo2" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1346,7 +1346,7 @@ def build_get_string_with_invalid_request( accept = "application/json" # Construct URL - url = '/array/prim/string/foo.123.foo2' + url = "/array/prim/string/foo.123.foo2" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1386,7 +1386,7 @@ def build_get_uuid_valid_request( accept = "application/json" # Construct URL - url = '/array/prim/uuid/valid' + url = "/array/prim/uuid/valid" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1434,7 +1434,7 @@ def build_put_uuid_valid_request( accept = "application/json" # Construct URL - url = '/array/prim/uuid/valid' + url = "/array/prim/uuid/valid" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1475,7 +1475,7 @@ def build_get_uuid_invalid_chars_request( accept = "application/json" # Construct URL - url = '/array/prim/uuid/invalidchars' + url = "/array/prim/uuid/invalidchars" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1514,7 +1514,7 @@ def build_get_date_valid_request( accept = "application/json" # Construct URL - url = '/array/prim/date/valid' + url = "/array/prim/date/valid" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1561,7 +1561,7 @@ def build_put_date_valid_request( accept = "application/json" # Construct URL - url = '/array/prim/date/valid' + url = "/array/prim/date/valid" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1602,7 +1602,7 @@ def build_get_date_invalid_null_request( accept = "application/json" # Construct URL - url = '/array/prim/date/invalidnull' + url = "/array/prim/date/invalidnull" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1641,7 +1641,7 @@ def build_get_date_invalid_chars_request( accept = "application/json" # Construct URL - url = '/array/prim/date/invalidchars' + url = "/array/prim/date/invalidchars" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1681,7 +1681,7 @@ def build_get_date_time_valid_request( accept = "application/json" # Construct URL - url = '/array/prim/date-time/valid' + url = "/array/prim/date-time/valid" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1729,7 +1729,7 @@ def build_put_date_time_valid_request( accept = "application/json" # Construct URL - url = '/array/prim/date-time/valid' + url = "/array/prim/date-time/valid" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1770,7 +1770,7 @@ def build_get_date_time_invalid_null_request( accept = "application/json" # Construct URL - url = '/array/prim/date-time/invalidnull' + url = "/array/prim/date-time/invalidnull" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1809,7 +1809,7 @@ def build_get_date_time_invalid_chars_request( accept = "application/json" # Construct URL - url = '/array/prim/date-time/invalidchars' + url = "/array/prim/date-time/invalidchars" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1849,7 +1849,7 @@ def build_get_date_time_rfc1123_valid_request( accept = "application/json" # Construct URL - url = '/array/prim/date-time-rfc1123/valid' + url = "/array/prim/date-time-rfc1123/valid" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1897,7 +1897,7 @@ def build_put_date_time_rfc1123_valid_request( accept = "application/json" # Construct URL - url = '/array/prim/date-time-rfc1123/valid' + url = "/array/prim/date-time-rfc1123/valid" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1938,7 +1938,7 @@ def build_get_duration_valid_request( accept = "application/json" # Construct URL - url = '/array/prim/duration/valid' + url = "/array/prim/duration/valid" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1985,7 +1985,7 @@ def build_put_duration_valid_request( accept = "application/json" # Construct URL - url = '/array/prim/duration/valid' + url = "/array/prim/duration/valid" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -2027,7 +2027,7 @@ def build_get_byte_valid_request( accept = "application/json" # Construct URL - url = '/array/prim/byte/valid' + url = "/array/prim/byte/valid" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -2075,7 +2075,7 @@ def build_put_byte_valid_request( accept = "application/json" # Construct URL - url = '/array/prim/byte/valid' + url = "/array/prim/byte/valid" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -2116,7 +2116,7 @@ def build_get_byte_invalid_null_request( accept = "application/json" # Construct URL - url = '/array/prim/byte/invalidnull' + url = "/array/prim/byte/invalidnull" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -2156,7 +2156,7 @@ def build_get_base64_url_request( accept = "application/json" # Construct URL - url = '/array/prim/base64url/valid' + url = "/array/prim/base64url/valid" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -2198,7 +2198,7 @@ def build_get_complex_null_request( accept = "application/json" # Construct URL - url = '/array/complex/null' + url = "/array/complex/null" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -2240,7 +2240,7 @@ def build_get_complex_empty_request( accept = "application/json" # Construct URL - url = '/array/complex/empty' + url = "/array/complex/empty" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -2283,7 +2283,7 @@ def build_get_complex_item_null_request( accept = "application/json" # Construct URL - url = '/array/complex/itemnull' + url = "/array/complex/itemnull" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -2326,7 +2326,7 @@ def build_get_complex_item_empty_request( accept = "application/json" # Construct URL - url = '/array/complex/itemempty' + url = "/array/complex/itemempty" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -2369,7 +2369,7 @@ def build_get_complex_valid_request( accept = "application/json" # Construct URL - url = '/array/complex/valid' + url = "/array/complex/valid" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -2420,7 +2420,7 @@ def build_put_complex_valid_request( accept = "application/json" # Construct URL - url = '/array/complex/valid' + url = "/array/complex/valid" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -2463,7 +2463,7 @@ def build_get_array_null_request( accept = "application/json" # Construct URL - url = '/array/array/null' + url = "/array/array/null" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -2504,7 +2504,7 @@ def build_get_array_empty_request( accept = "application/json" # Construct URL - url = '/array/array/empty' + url = "/array/array/empty" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -2545,7 +2545,7 @@ def build_get_array_item_null_request( accept = "application/json" # Construct URL - url = '/array/array/itemnull' + url = "/array/array/itemnull" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -2586,7 +2586,7 @@ def build_get_array_item_empty_request( accept = "application/json" # Construct URL - url = '/array/array/itemempty' + url = "/array/array/itemempty" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -2627,7 +2627,7 @@ def build_get_array_valid_request( accept = "application/json" # Construct URL - url = '/array/array/valid' + url = "/array/array/valid" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -2676,7 +2676,7 @@ def build_put_array_valid_request( accept = "application/json" # Construct URL - url = '/array/array/valid' + url = "/array/array/valid" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -2719,7 +2719,7 @@ def build_get_dictionary_null_request( accept = "application/json" # Construct URL - url = '/array/dictionary/null' + url = "/array/dictionary/null" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -2760,7 +2760,7 @@ def build_get_dictionary_empty_request( accept = "application/json" # Construct URL - url = '/array/dictionary/empty' + url = "/array/dictionary/empty" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -2802,7 +2802,7 @@ def build_get_dictionary_item_null_request( accept = "application/json" # Construct URL - url = '/array/dictionary/itemnull' + url = "/array/dictionary/itemnull" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -2844,7 +2844,7 @@ def build_get_dictionary_item_empty_request( accept = "application/json" # Construct URL - url = '/array/dictionary/itemempty' + url = "/array/dictionary/itemempty" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -2886,7 +2886,7 @@ def build_get_dictionary_valid_request( accept = "application/json" # Construct URL - url = '/array/dictionary/valid' + url = "/array/dictionary/valid" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -2936,7 +2936,7 @@ def build_put_dictionary_valid_request( accept = "application/json" # Construct URL - url = '/array/dictionary/valid' + url = "/array/dictionary/valid" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyBinaryLowLevel/bodybinarylowlevel/rest/upload/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyBinaryLowLevel/bodybinarylowlevel/rest/upload/_request_builders.py index f27add5a51d..1ed1d0b55b2 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyBinaryLowLevel/bodybinarylowlevel/rest/upload/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyBinaryLowLevel/bodybinarylowlevel/rest/upload/_request_builders.py @@ -52,7 +52,7 @@ def build_file_request( content_type = kwargs.pop('content_type', None) # type: Optional[str] # Construct URL - url = '/binary/file' + url = "/binary/file" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -88,7 +88,7 @@ def build_binary_request( content_type = kwargs.pop('content_type', None) # type: Optional[str] # Construct URL - url = '/binary/octet' + url = "/binary/octet" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyBooleanLowLevel/bodybooleanlowlevel/rest/bool/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyBooleanLowLevel/bodybooleanlowlevel/rest/bool/_request_builders.py index e2977164192..b57532e4637 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyBooleanLowLevel/bodybooleanlowlevel/rest/bool/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyBooleanLowLevel/bodybooleanlowlevel/rest/bool/_request_builders.py @@ -39,7 +39,7 @@ def build_get_true_request( accept = "application/json" # Construct URL - url = '/bool/true' + url = "/bool/true" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -76,7 +76,7 @@ def build_put_true_request( accept = "application/json" # Construct URL - url = '/bool/true' + url = "/bool/true" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -110,7 +110,7 @@ def build_get_false_request( accept = "application/json" # Construct URL - url = '/bool/false' + url = "/bool/false" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -147,7 +147,7 @@ def build_put_false_request( accept = "application/json" # Construct URL - url = '/bool/false' + url = "/bool/false" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -181,7 +181,7 @@ def build_get_null_request( accept = "application/json" # Construct URL - url = '/bool/null' + url = "/bool/null" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -212,7 +212,7 @@ def build_get_invalid_request( accept = "application/json" # Construct URL - url = '/bool/invalid' + url = "/bool/invalid" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyByteLowLevel/bodybytelowlevel/rest/byte/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyByteLowLevel/bodybytelowlevel/rest/byte/_request_builders.py index bae12185110..2584dc88240 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyByteLowLevel/bodybytelowlevel/rest/byte/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyByteLowLevel/bodybytelowlevel/rest/byte/_request_builders.py @@ -39,7 +39,7 @@ def build_get_null_request( accept = "application/json" # Construct URL - url = '/byte/null' + url = "/byte/null" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -70,7 +70,7 @@ def build_get_empty_request( accept = "application/json" # Construct URL - url = '/byte/empty' + url = "/byte/empty" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -101,7 +101,7 @@ def build_get_non_ascii_request( accept = "application/json" # Construct URL - url = '/byte/nonAscii' + url = "/byte/nonAscii" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -148,7 +148,7 @@ def build_put_non_ascii_request( accept = "application/json" # Construct URL - url = '/byte/nonAscii' + url = "/byte/nonAscii" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -181,7 +181,7 @@ def build_get_invalid_request( accept = "application/json" # Construct URL - url = '/byte/invalid' + url = "/byte/invalid" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/array/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/array/_request_builders.py index 64a47dbaecd..920dfff8d64 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/array/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/array/_request_builders.py @@ -48,7 +48,7 @@ def build_get_valid_request( accept = "application/json" # Construct URL - url = '/complex/array/valid' + url = "/complex/array/valid" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -99,7 +99,7 @@ def build_put_valid_request( accept = "application/json" # Construct URL - url = '/complex/array/valid' + url = "/complex/array/valid" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -142,7 +142,7 @@ def build_get_empty_request( accept = "application/json" # Construct URL - url = '/complex/array/empty' + url = "/complex/array/empty" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -191,7 +191,7 @@ def build_put_empty_request( accept = "application/json" # Construct URL - url = '/complex/array/empty' + url = "/complex/array/empty" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -234,7 +234,7 @@ def build_get_not_provided_request( accept = "application/json" # Construct URL - url = '/complex/array/notprovided' + url = "/complex/array/notprovided" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/basic/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/basic/_request_builders.py index 69128a4efa2..1637e066cd2 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/basic/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/basic/_request_builders.py @@ -50,7 +50,7 @@ def build_get_valid_request( accept = "application/json" # Construct URL - url = '/complex/basic/valid' + url = "/complex/basic/valid" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -102,7 +102,7 @@ def build_put_valid_request( accept = "application/json" # Construct URL - url = '/complex/basic/valid' + url = "/complex/basic/valid" # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -152,7 +152,7 @@ def build_get_invalid_request( accept = "application/json" # Construct URL - url = '/complex/basic/invalid' + url = "/complex/basic/invalid" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -195,7 +195,7 @@ def build_get_empty_request( accept = "application/json" # Construct URL - url = '/complex/basic/empty' + url = "/complex/basic/empty" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -238,7 +238,7 @@ def build_get_null_request( accept = "application/json" # Construct URL - url = '/complex/basic/null' + url = "/complex/basic/null" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -281,7 +281,7 @@ def build_get_not_provided_request( accept = "application/json" # Construct URL - url = '/complex/basic/notprovided' + url = "/complex/basic/notprovided" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/dictionary/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/dictionary/_request_builders.py index f2ccd0482fb..a840af8b28f 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/dictionary/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/dictionary/_request_builders.py @@ -48,7 +48,7 @@ def build_get_valid_request( accept = "application/json" # Construct URL - url = '/complex/dictionary/typed/valid' + url = "/complex/dictionary/typed/valid" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -99,7 +99,7 @@ def build_put_valid_request( accept = "application/json" # Construct URL - url = '/complex/dictionary/typed/valid' + url = "/complex/dictionary/typed/valid" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -142,7 +142,7 @@ def build_get_empty_request( accept = "application/json" # Construct URL - url = '/complex/dictionary/typed/empty' + url = "/complex/dictionary/typed/empty" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -191,7 +191,7 @@ def build_put_empty_request( accept = "application/json" # Construct URL - url = '/complex/dictionary/typed/empty' + url = "/complex/dictionary/typed/empty" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -234,7 +234,7 @@ def build_get_null_request( accept = "application/json" # Construct URL - url = '/complex/dictionary/typed/null' + url = "/complex/dictionary/typed/null" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -275,7 +275,7 @@ def build_get_not_provided_request( accept = "application/json" # Construct URL - url = '/complex/dictionary/typed/notprovided' + url = "/complex/dictionary/typed/notprovided" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/flattencomplex/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/flattencomplex/_request_builders.py index b96d855dbaa..c2032a09a3c 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/flattencomplex/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/flattencomplex/_request_builders.py @@ -47,7 +47,7 @@ def build_get_valid_request( accept = "application/json" # Construct URL - url = '/complex/flatten/valid' + url = "/complex/flatten/valid" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/inheritance/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/inheritance/_request_builders.py index ce3a0a03463..e689da79acf 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/inheritance/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/inheritance/_request_builders.py @@ -56,7 +56,7 @@ def build_get_valid_request( accept = "application/json" # Construct URL - url = '/complex/inheritance/valid' + url = "/complex/inheritance/valid" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -117,7 +117,7 @@ def build_put_valid_request( accept = "application/json" # Construct URL - url = '/complex/inheritance/valid' + url = "/complex/inheritance/valid" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/polymorphicrecursive/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/polymorphicrecursive/_request_builders.py index 3465edaac8f..0e07e0a00d1 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/polymorphicrecursive/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/polymorphicrecursive/_request_builders.py @@ -51,7 +51,7 @@ def build_get_valid_request( accept = "application/json" # Construct URL - url = '/complex/polymorphicrecursive/valid' + url = "/complex/polymorphicrecursive/valid" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -209,7 +209,7 @@ def build_put_valid_request( accept = "application/json" # Construct URL - url = '/complex/polymorphicrecursive/valid' + url = "/complex/polymorphicrecursive/valid" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/polymorphism/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/polymorphism/_request_builders.py index cf70d20dd4c..0b66bfb2e46 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/polymorphism/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/polymorphism/_request_builders.py @@ -51,7 +51,7 @@ def build_get_valid_request( accept = "application/json" # Construct URL - url = '/complex/polymorphism/valid' + url = "/complex/polymorphism/valid" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -169,7 +169,7 @@ def build_put_valid_request( accept = "application/json" # Construct URL - url = '/complex/polymorphism/valid' + url = "/complex/polymorphism/valid" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -211,7 +211,7 @@ def build_get_dot_syntax_request( accept = "application/json" # Construct URL - url = '/complex/polymorphism/dotsyntax' + url = "/complex/polymorphism/dotsyntax" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -275,7 +275,7 @@ def build_get_composed_with_discriminator_request( accept = "application/json" # Construct URL - url = '/complex/polymorphism/composedWithDiscriminator' + url = "/complex/polymorphism/composedWithDiscriminator" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -339,7 +339,7 @@ def build_get_composed_without_discriminator_request( accept = "application/json" # Construct URL - url = '/complex/polymorphism/composedWithoutDiscriminator' + url = "/complex/polymorphism/composedWithoutDiscriminator" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -393,7 +393,7 @@ def build_get_complicated_request( accept = "application/json" # Construct URL - url = '/complex/polymorphism/complicated' + url = "/complex/polymorphism/complicated" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -457,7 +457,7 @@ def build_put_complicated_request( accept = "application/json" # Construct URL - url = '/complex/polymorphism/complicated' + url = "/complex/polymorphism/complicated" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -541,7 +541,7 @@ def build_put_missing_discriminator_request( accept = "application/json" # Construct URL - url = '/complex/polymorphism/missingdiscriminator' + url = "/complex/polymorphism/missingdiscriminator" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -650,7 +650,7 @@ def build_put_valid_missing_required_request( accept = "application/json" # Construct URL - url = '/complex/polymorphism/missingrequired/invalid' + url = "/complex/polymorphism/missingrequired/invalid" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/primitive/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/primitive/_request_builders.py index b26281151ec..e52ac7c131a 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/primitive/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/primitive/_request_builders.py @@ -47,7 +47,7 @@ def build_get_int_request( accept = "application/json" # Construct URL - url = '/complex/primitive/integer' + url = "/complex/primitive/integer" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -95,7 +95,7 @@ def build_put_int_request( accept = "application/json" # Construct URL - url = '/complex/primitive/integer' + url = "/complex/primitive/integer" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -137,7 +137,7 @@ def build_get_long_request( accept = "application/json" # Construct URL - url = '/complex/primitive/long' + url = "/complex/primitive/long" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -185,7 +185,7 @@ def build_put_long_request( accept = "application/json" # Construct URL - url = '/complex/primitive/long' + url = "/complex/primitive/long" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -227,7 +227,7 @@ def build_get_float_request( accept = "application/json" # Construct URL - url = '/complex/primitive/float' + url = "/complex/primitive/float" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -275,7 +275,7 @@ def build_put_float_request( accept = "application/json" # Construct URL - url = '/complex/primitive/float' + url = "/complex/primitive/float" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -318,7 +318,7 @@ def build_get_double_request( accept = "application/json" # Construct URL - url = '/complex/primitive/double' + url = "/complex/primitive/double" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -369,7 +369,7 @@ def build_put_double_request( accept = "application/json" # Construct URL - url = '/complex/primitive/double' + url = "/complex/primitive/double" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -411,7 +411,7 @@ def build_get_bool_request( accept = "application/json" # Construct URL - url = '/complex/primitive/bool' + url = "/complex/primitive/bool" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -459,7 +459,7 @@ def build_put_bool_request( accept = "application/json" # Construct URL - url = '/complex/primitive/bool' + url = "/complex/primitive/bool" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -502,7 +502,7 @@ def build_get_string_request( accept = "application/json" # Construct URL - url = '/complex/primitive/string' + url = "/complex/primitive/string" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -551,7 +551,7 @@ def build_put_string_request( accept = "application/json" # Construct URL - url = '/complex/primitive/string' + url = "/complex/primitive/string" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -593,7 +593,7 @@ def build_get_date_request( accept = "application/json" # Construct URL - url = '/complex/primitive/date' + url = "/complex/primitive/date" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -641,7 +641,7 @@ def build_put_date_request( accept = "application/json" # Construct URL - url = '/complex/primitive/date' + url = "/complex/primitive/date" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -683,7 +683,7 @@ def build_get_date_time_request( accept = "application/json" # Construct URL - url = '/complex/primitive/datetime' + url = "/complex/primitive/datetime" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -733,7 +733,7 @@ def build_put_date_time_request( accept = "application/json" # Construct URL - url = '/complex/primitive/datetime' + url = "/complex/primitive/datetime" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -775,7 +775,7 @@ def build_get_date_time_rfc1123_request( accept = "application/json" # Construct URL - url = '/complex/primitive/datetimerfc1123' + url = "/complex/primitive/datetimerfc1123" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -825,7 +825,7 @@ def build_put_date_time_rfc1123_request( accept = "application/json" # Construct URL - url = '/complex/primitive/datetimerfc1123' + url = "/complex/primitive/datetimerfc1123" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -866,7 +866,7 @@ def build_get_duration_request( accept = "application/json" # Construct URL - url = '/complex/primitive/duration' + url = "/complex/primitive/duration" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -913,7 +913,7 @@ def build_put_duration_request( accept = "application/json" # Construct URL - url = '/complex/primitive/duration' + url = "/complex/primitive/duration" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -954,7 +954,7 @@ def build_get_byte_request( accept = "application/json" # Construct URL - url = '/complex/primitive/byte' + url = "/complex/primitive/byte" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1003,7 +1003,7 @@ def build_put_byte_request( accept = "application/json" # Construct URL - url = '/complex/primitive/byte' + url = "/complex/primitive/byte" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/readonlyproperty/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/readonlyproperty/_request_builders.py index 4c6e1ffddcf..26b923160e7 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/readonlyproperty/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/readonlyproperty/_request_builders.py @@ -47,7 +47,7 @@ def build_get_valid_request( accept = "application/json" # Construct URL - url = '/complex/readonlyproperty/valid' + url = "/complex/readonlyproperty/valid" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -95,7 +95,7 @@ def build_put_valid_request( accept = "application/json" # Construct URL - url = '/complex/readonlyproperty/valid' + url = "/complex/readonlyproperty/valid" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateLowLevel/bodydatelowlevel/rest/date/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateLowLevel/bodydatelowlevel/rest/date/_request_builders.py index 104cdc4dc93..2954f49955a 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateLowLevel/bodydatelowlevel/rest/date/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateLowLevel/bodydatelowlevel/rest/date/_request_builders.py @@ -39,7 +39,7 @@ def build_get_null_request( accept = "application/json" # Construct URL - url = '/date/null' + url = "/date/null" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -70,7 +70,7 @@ def build_get_invalid_date_request( accept = "application/json" # Construct URL - url = '/date/invaliddate' + url = "/date/invaliddate" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -101,7 +101,7 @@ def build_get_overflow_date_request( accept = "application/json" # Construct URL - url = '/date/overflowdate' + url = "/date/overflowdate" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -132,7 +132,7 @@ def build_get_underflow_date_request( accept = "application/json" # Construct URL - url = '/date/underflowdate' + url = "/date/underflowdate" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -177,7 +177,7 @@ def build_put_max_date_request( accept = "application/json" # Construct URL - url = '/date/max' + url = "/date/max" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -210,7 +210,7 @@ def build_get_max_date_request( accept = "application/json" # Construct URL - url = '/date/max' + url = "/date/max" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -255,7 +255,7 @@ def build_put_min_date_request( accept = "application/json" # Construct URL - url = '/date/min' + url = "/date/min" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -288,7 +288,7 @@ def build_get_min_date_request( accept = "application/json" # Construct URL - url = '/date/min' + url = "/date/min" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateTimeLowLevel/bodydatetimelowlevel/rest/datetime/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateTimeLowLevel/bodydatetimelowlevel/rest/datetime/_request_builders.py index 00f98452ac5..646ad8b7447 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateTimeLowLevel/bodydatetimelowlevel/rest/datetime/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateTimeLowLevel/bodydatetimelowlevel/rest/datetime/_request_builders.py @@ -39,7 +39,7 @@ def build_get_null_request( accept = "application/json" # Construct URL - url = '/datetime/null' + url = "/datetime/null" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -70,7 +70,7 @@ def build_get_invalid_request( accept = "application/json" # Construct URL - url = '/datetime/invalid' + url = "/datetime/invalid" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -101,7 +101,7 @@ def build_get_overflow_request( accept = "application/json" # Construct URL - url = '/datetime/overflow' + url = "/datetime/overflow" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -132,7 +132,7 @@ def build_get_underflow_request( accept = "application/json" # Construct URL - url = '/datetime/underflow' + url = "/datetime/underflow" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -177,7 +177,7 @@ def build_put_utc_max_date_time_request( accept = "application/json" # Construct URL - url = '/datetime/max/utc' + url = "/datetime/max/utc" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -227,7 +227,7 @@ def build_put_utc_max_date_time7_digits_request( accept = "application/json" # Construct URL - url = '/datetime/max/utc7ms' + url = "/datetime/max/utc7ms" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -260,7 +260,7 @@ def build_get_utc_lowercase_max_date_time_request( accept = "application/json" # Construct URL - url = '/datetime/max/utc/lowercase' + url = "/datetime/max/utc/lowercase" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -291,7 +291,7 @@ def build_get_utc_uppercase_max_date_time_request( accept = "application/json" # Construct URL - url = '/datetime/max/utc/uppercase' + url = "/datetime/max/utc/uppercase" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -325,7 +325,7 @@ def build_get_utc_uppercase_max_date_time7_digits_request( accept = "application/json" # Construct URL - url = '/datetime/max/utc7ms/uppercase' + url = "/datetime/max/utc7ms/uppercase" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -370,7 +370,7 @@ def build_put_local_positive_offset_max_date_time_request( accept = "application/json" # Construct URL - url = '/datetime/max/localpositiveoffset' + url = "/datetime/max/localpositiveoffset" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -403,7 +403,7 @@ def build_get_local_positive_offset_lowercase_max_date_time_request( accept = "application/json" # Construct URL - url = '/datetime/max/localpositiveoffset/lowercase' + url = "/datetime/max/localpositiveoffset/lowercase" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -434,7 +434,7 @@ def build_get_local_positive_offset_uppercase_max_date_time_request( accept = "application/json" # Construct URL - url = '/datetime/max/localpositiveoffset/uppercase' + url = "/datetime/max/localpositiveoffset/uppercase" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -479,7 +479,7 @@ def build_put_local_negative_offset_max_date_time_request( accept = "application/json" # Construct URL - url = '/datetime/max/localnegativeoffset' + url = "/datetime/max/localnegativeoffset" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -512,7 +512,7 @@ def build_get_local_negative_offset_uppercase_max_date_time_request( accept = "application/json" # Construct URL - url = '/datetime/max/localnegativeoffset/uppercase' + url = "/datetime/max/localnegativeoffset/uppercase" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -543,7 +543,7 @@ def build_get_local_negative_offset_lowercase_max_date_time_request( accept = "application/json" # Construct URL - url = '/datetime/max/localnegativeoffset/lowercase' + url = "/datetime/max/localnegativeoffset/lowercase" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -588,7 +588,7 @@ def build_put_utc_min_date_time_request( accept = "application/json" # Construct URL - url = '/datetime/min/utc' + url = "/datetime/min/utc" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -621,7 +621,7 @@ def build_get_utc_min_date_time_request( accept = "application/json" # Construct URL - url = '/datetime/min/utc' + url = "/datetime/min/utc" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -666,7 +666,7 @@ def build_put_local_positive_offset_min_date_time_request( accept = "application/json" # Construct URL - url = '/datetime/min/localpositiveoffset' + url = "/datetime/min/localpositiveoffset" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -699,7 +699,7 @@ def build_get_local_positive_offset_min_date_time_request( accept = "application/json" # Construct URL - url = '/datetime/min/localpositiveoffset' + url = "/datetime/min/localpositiveoffset" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -744,7 +744,7 @@ def build_put_local_negative_offset_min_date_time_request( accept = "application/json" # Construct URL - url = '/datetime/min/localnegativeoffset' + url = "/datetime/min/localnegativeoffset" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -777,7 +777,7 @@ def build_get_local_negative_offset_min_date_time_request( accept = "application/json" # Construct URL - url = '/datetime/min/localnegativeoffset' + url = "/datetime/min/localnegativeoffset" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -808,7 +808,7 @@ def build_get_local_no_offset_min_date_time_request( accept = "application/json" # Construct URL - url = '/datetime/min/localnooffset' + url = "/datetime/min/localnooffset" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateTimeRfc1123LowLevel/bodydatetimerfc1123lowlevel/rest/datetimerfc1123/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateTimeRfc1123LowLevel/bodydatetimerfc1123lowlevel/rest/datetimerfc1123/_request_builders.py index ef3b82d44c5..8b960add8a7 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateTimeRfc1123LowLevel/bodydatetimerfc1123lowlevel/rest/datetimerfc1123/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateTimeRfc1123LowLevel/bodydatetimerfc1123lowlevel/rest/datetimerfc1123/_request_builders.py @@ -39,7 +39,7 @@ def build_get_null_request( accept = "application/json" # Construct URL - url = '/datetimerfc1123/null' + url = "/datetimerfc1123/null" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -70,7 +70,7 @@ def build_get_invalid_request( accept = "application/json" # Construct URL - url = '/datetimerfc1123/invalid' + url = "/datetimerfc1123/invalid" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -101,7 +101,7 @@ def build_get_overflow_request( accept = "application/json" # Construct URL - url = '/datetimerfc1123/overflow' + url = "/datetimerfc1123/overflow" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -132,7 +132,7 @@ def build_get_underflow_request( accept = "application/json" # Construct URL - url = '/datetimerfc1123/underflow' + url = "/datetimerfc1123/underflow" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -177,7 +177,7 @@ def build_put_utc_max_date_time_request( accept = "application/json" # Construct URL - url = '/datetimerfc1123/max' + url = "/datetimerfc1123/max" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -210,7 +210,7 @@ def build_get_utc_lowercase_max_date_time_request( accept = "application/json" # Construct URL - url = '/datetimerfc1123/max/lowercase' + url = "/datetimerfc1123/max/lowercase" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -241,7 +241,7 @@ def build_get_utc_uppercase_max_date_time_request( accept = "application/json" # Construct URL - url = '/datetimerfc1123/max/uppercase' + url = "/datetimerfc1123/max/uppercase" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -286,7 +286,7 @@ def build_put_utc_min_date_time_request( accept = "application/json" # Construct URL - url = '/datetimerfc1123/min' + url = "/datetimerfc1123/min" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -319,7 +319,7 @@ def build_get_utc_min_date_time_request( accept = "application/json" # Construct URL - url = '/datetimerfc1123/min' + url = "/datetimerfc1123/min" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyDictionaryLowLevel/bodydictionarylowlevel/rest/dictionary/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyDictionaryLowLevel/bodydictionarylowlevel/rest/dictionary/_request_builders.py index cf215ada322..4cb1d8acfd1 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyDictionaryLowLevel/bodydictionarylowlevel/rest/dictionary/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyDictionaryLowLevel/bodydictionarylowlevel/rest/dictionary/_request_builders.py @@ -47,7 +47,7 @@ def build_get_null_request( accept = "application/json" # Construct URL - url = '/dictionary/null' + url = "/dictionary/null" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -86,7 +86,7 @@ def build_get_empty_request( accept = "application/json" # Construct URL - url = '/dictionary/empty' + url = "/dictionary/empty" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -133,7 +133,7 @@ def build_put_empty_request( accept = "application/json" # Construct URL - url = '/dictionary/empty' + url = "/dictionary/empty" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -174,7 +174,7 @@ def build_get_null_value_request( accept = "application/json" # Construct URL - url = '/dictionary/nullvalue' + url = "/dictionary/nullvalue" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -213,7 +213,7 @@ def build_get_null_key_request( accept = "application/json" # Construct URL - url = '/dictionary/nullkey' + url = "/dictionary/nullkey" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -252,7 +252,7 @@ def build_get_empty_string_key_request( accept = "application/json" # Construct URL - url = '/dictionary/keyemptystring' + url = "/dictionary/keyemptystring" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -291,7 +291,7 @@ def build_get_invalid_request( accept = "application/json" # Construct URL - url = '/dictionary/invalid' + url = "/dictionary/invalid" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -330,7 +330,7 @@ def build_get_boolean_tfft_request( accept = "application/json" # Construct URL - url = '/dictionary/prim/boolean/tfft' + url = "/dictionary/prim/boolean/tfft" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -377,7 +377,7 @@ def build_put_boolean_tfft_request( accept = "application/json" # Construct URL - url = '/dictionary/prim/boolean/tfft' + url = "/dictionary/prim/boolean/tfft" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -418,7 +418,7 @@ def build_get_boolean_invalid_null_request( accept = "application/json" # Construct URL - url = '/dictionary/prim/boolean/true.null.false' + url = "/dictionary/prim/boolean/true.null.false" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -457,7 +457,7 @@ def build_get_boolean_invalid_string_request( accept = "application/json" # Construct URL - url = '/dictionary/prim/boolean/true.boolean.false' + url = "/dictionary/prim/boolean/true.boolean.false" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -496,7 +496,7 @@ def build_get_integer_valid_request( accept = "application/json" # Construct URL - url = '/dictionary/prim/integer/1.-1.3.300' + url = "/dictionary/prim/integer/1.-1.3.300" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -543,7 +543,7 @@ def build_put_integer_valid_request( accept = "application/json" # Construct URL - url = '/dictionary/prim/integer/1.-1.3.300' + url = "/dictionary/prim/integer/1.-1.3.300" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -584,7 +584,7 @@ def build_get_int_invalid_null_request( accept = "application/json" # Construct URL - url = '/dictionary/prim/integer/1.null.zero' + url = "/dictionary/prim/integer/1.null.zero" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -623,7 +623,7 @@ def build_get_int_invalid_string_request( accept = "application/json" # Construct URL - url = '/dictionary/prim/integer/1.integer.0' + url = "/dictionary/prim/integer/1.integer.0" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -662,7 +662,7 @@ def build_get_long_valid_request( accept = "application/json" # Construct URL - url = '/dictionary/prim/long/1.-1.3.300' + url = "/dictionary/prim/long/1.-1.3.300" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -709,7 +709,7 @@ def build_put_long_valid_request( accept = "application/json" # Construct URL - url = '/dictionary/prim/long/1.-1.3.300' + url = "/dictionary/prim/long/1.-1.3.300" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -750,7 +750,7 @@ def build_get_long_invalid_null_request( accept = "application/json" # Construct URL - url = '/dictionary/prim/long/1.null.zero' + url = "/dictionary/prim/long/1.null.zero" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -789,7 +789,7 @@ def build_get_long_invalid_string_request( accept = "application/json" # Construct URL - url = '/dictionary/prim/long/1.integer.0' + url = "/dictionary/prim/long/1.integer.0" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -828,7 +828,7 @@ def build_get_float_valid_request( accept = "application/json" # Construct URL - url = '/dictionary/prim/float/0--0.01-1.2e20' + url = "/dictionary/prim/float/0--0.01-1.2e20" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -875,7 +875,7 @@ def build_put_float_valid_request( accept = "application/json" # Construct URL - url = '/dictionary/prim/float/0--0.01-1.2e20' + url = "/dictionary/prim/float/0--0.01-1.2e20" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -916,7 +916,7 @@ def build_get_float_invalid_null_request( accept = "application/json" # Construct URL - url = '/dictionary/prim/float/0.0-null-1.2e20' + url = "/dictionary/prim/float/0.0-null-1.2e20" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -955,7 +955,7 @@ def build_get_float_invalid_string_request( accept = "application/json" # Construct URL - url = '/dictionary/prim/float/1.number.0' + url = "/dictionary/prim/float/1.number.0" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -994,7 +994,7 @@ def build_get_double_valid_request( accept = "application/json" # Construct URL - url = '/dictionary/prim/double/0--0.01-1.2e20' + url = "/dictionary/prim/double/0--0.01-1.2e20" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1041,7 +1041,7 @@ def build_put_double_valid_request( accept = "application/json" # Construct URL - url = '/dictionary/prim/double/0--0.01-1.2e20' + url = "/dictionary/prim/double/0--0.01-1.2e20" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1082,7 +1082,7 @@ def build_get_double_invalid_null_request( accept = "application/json" # Construct URL - url = '/dictionary/prim/double/0.0-null-1.2e20' + url = "/dictionary/prim/double/0.0-null-1.2e20" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1121,7 +1121,7 @@ def build_get_double_invalid_string_request( accept = "application/json" # Construct URL - url = '/dictionary/prim/double/1.number.0' + url = "/dictionary/prim/double/1.number.0" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1160,7 +1160,7 @@ def build_get_string_valid_request( accept = "application/json" # Construct URL - url = '/dictionary/prim/string/foo1.foo2.foo3' + url = "/dictionary/prim/string/foo1.foo2.foo3" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1207,7 +1207,7 @@ def build_put_string_valid_request( accept = "application/json" # Construct URL - url = '/dictionary/prim/string/foo1.foo2.foo3' + url = "/dictionary/prim/string/foo1.foo2.foo3" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1248,7 +1248,7 @@ def build_get_string_with_null_request( accept = "application/json" # Construct URL - url = '/dictionary/prim/string/foo.null.foo2' + url = "/dictionary/prim/string/foo.null.foo2" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1287,7 +1287,7 @@ def build_get_string_with_invalid_request( accept = "application/json" # Construct URL - url = '/dictionary/prim/string/foo.123.foo2' + url = "/dictionary/prim/string/foo.123.foo2" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1326,7 +1326,7 @@ def build_get_date_valid_request( accept = "application/json" # Construct URL - url = '/dictionary/prim/date/valid' + url = "/dictionary/prim/date/valid" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1373,7 +1373,7 @@ def build_put_date_valid_request( accept = "application/json" # Construct URL - url = '/dictionary/prim/date/valid' + url = "/dictionary/prim/date/valid" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1414,7 +1414,7 @@ def build_get_date_invalid_null_request( accept = "application/json" # Construct URL - url = '/dictionary/prim/date/invalidnull' + url = "/dictionary/prim/date/invalidnull" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1453,7 +1453,7 @@ def build_get_date_invalid_chars_request( accept = "application/json" # Construct URL - url = '/dictionary/prim/date/invalidchars' + url = "/dictionary/prim/date/invalidchars" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1493,7 +1493,7 @@ def build_get_date_time_valid_request( accept = "application/json" # Construct URL - url = '/dictionary/prim/date-time/valid' + url = "/dictionary/prim/date-time/valid" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1541,7 +1541,7 @@ def build_put_date_time_valid_request( accept = "application/json" # Construct URL - url = '/dictionary/prim/date-time/valid' + url = "/dictionary/prim/date-time/valid" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1582,7 +1582,7 @@ def build_get_date_time_invalid_null_request( accept = "application/json" # Construct URL - url = '/dictionary/prim/date-time/invalidnull' + url = "/dictionary/prim/date-time/invalidnull" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1621,7 +1621,7 @@ def build_get_date_time_invalid_chars_request( accept = "application/json" # Construct URL - url = '/dictionary/prim/date-time/invalidchars' + url = "/dictionary/prim/date-time/invalidchars" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1661,7 +1661,7 @@ def build_get_date_time_rfc1123_valid_request( accept = "application/json" # Construct URL - url = '/dictionary/prim/date-time-rfc1123/valid' + url = "/dictionary/prim/date-time-rfc1123/valid" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1709,7 +1709,7 @@ def build_put_date_time_rfc1123_valid_request( accept = "application/json" # Construct URL - url = '/dictionary/prim/date-time-rfc1123/valid' + url = "/dictionary/prim/date-time-rfc1123/valid" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1750,7 +1750,7 @@ def build_get_duration_valid_request( accept = "application/json" # Construct URL - url = '/dictionary/prim/duration/valid' + url = "/dictionary/prim/duration/valid" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1797,7 +1797,7 @@ def build_put_duration_valid_request( accept = "application/json" # Construct URL - url = '/dictionary/prim/duration/valid' + url = "/dictionary/prim/duration/valid" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1839,7 +1839,7 @@ def build_get_byte_valid_request( accept = "application/json" # Construct URL - url = '/dictionary/prim/byte/valid' + url = "/dictionary/prim/byte/valid" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1887,7 +1887,7 @@ def build_put_byte_valid_request( accept = "application/json" # Construct URL - url = '/dictionary/prim/byte/valid' + url = "/dictionary/prim/byte/valid" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1929,7 +1929,7 @@ def build_get_byte_invalid_null_request( accept = "application/json" # Construct URL - url = '/dictionary/prim/byte/invalidnull' + url = "/dictionary/prim/byte/invalidnull" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1969,7 +1969,7 @@ def build_get_base64_url_request( accept = "application/json" # Construct URL - url = '/dictionary/prim/base64url/valid' + url = "/dictionary/prim/base64url/valid" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -2011,7 +2011,7 @@ def build_get_complex_null_request( accept = "application/json" # Construct URL - url = '/dictionary/complex/null' + url = "/dictionary/complex/null" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -2053,7 +2053,7 @@ def build_get_complex_empty_request( accept = "application/json" # Construct URL - url = '/dictionary/complex/empty' + url = "/dictionary/complex/empty" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -2096,7 +2096,7 @@ def build_get_complex_item_null_request( accept = "application/json" # Construct URL - url = '/dictionary/complex/itemnull' + url = "/dictionary/complex/itemnull" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -2139,7 +2139,7 @@ def build_get_complex_item_empty_request( accept = "application/json" # Construct URL - url = '/dictionary/complex/itemempty' + url = "/dictionary/complex/itemempty" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -2182,7 +2182,7 @@ def build_get_complex_valid_request( accept = "application/json" # Construct URL - url = '/dictionary/complex/valid' + url = "/dictionary/complex/valid" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -2233,7 +2233,7 @@ def build_put_complex_valid_request( accept = "application/json" # Construct URL - url = '/dictionary/complex/valid' + url = "/dictionary/complex/valid" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -2276,7 +2276,7 @@ def build_get_array_null_request( accept = "application/json" # Construct URL - url = '/dictionary/array/null' + url = "/dictionary/array/null" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -2317,7 +2317,7 @@ def build_get_array_empty_request( accept = "application/json" # Construct URL - url = '/dictionary/array/empty' + url = "/dictionary/array/empty" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -2358,7 +2358,7 @@ def build_get_array_item_null_request( accept = "application/json" # Construct URL - url = '/dictionary/array/itemnull' + url = "/dictionary/array/itemnull" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -2399,7 +2399,7 @@ def build_get_array_item_empty_request( accept = "application/json" # Construct URL - url = '/dictionary/array/itemempty' + url = "/dictionary/array/itemempty" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -2441,7 +2441,7 @@ def build_get_array_valid_request( accept = "application/json" # Construct URL - url = '/dictionary/array/valid' + url = "/dictionary/array/valid" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -2491,7 +2491,7 @@ def build_put_array_valid_request( accept = "application/json" # Construct URL - url = '/dictionary/array/valid' + url = "/dictionary/array/valid" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -2534,7 +2534,7 @@ def build_get_dictionary_null_request( accept = "application/json" # Construct URL - url = '/dictionary/dictionary/null' + url = "/dictionary/dictionary/null" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -2575,7 +2575,7 @@ def build_get_dictionary_empty_request( accept = "application/json" # Construct URL - url = '/dictionary/dictionary/empty' + url = "/dictionary/dictionary/empty" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -2617,7 +2617,7 @@ def build_get_dictionary_item_null_request( accept = "application/json" # Construct URL - url = '/dictionary/dictionary/itemnull' + url = "/dictionary/dictionary/itemnull" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -2659,7 +2659,7 @@ def build_get_dictionary_item_empty_request( accept = "application/json" # Construct URL - url = '/dictionary/dictionary/itemempty' + url = "/dictionary/dictionary/itemempty" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -2702,7 +2702,7 @@ def build_get_dictionary_valid_request( accept = "application/json" # Construct URL - url = '/dictionary/dictionary/valid' + url = "/dictionary/dictionary/valid" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -2753,7 +2753,7 @@ def build_put_dictionary_valid_request( accept = "application/json" # Construct URL - url = '/dictionary/dictionary/valid' + url = "/dictionary/dictionary/valid" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyDurationLowLevel/bodydurationlowlevel/rest/duration/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyDurationLowLevel/bodydurationlowlevel/rest/duration/_request_builders.py index 396abf38448..66f8d460b1e 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyDurationLowLevel/bodydurationlowlevel/rest/duration/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyDurationLowLevel/bodydurationlowlevel/rest/duration/_request_builders.py @@ -39,7 +39,7 @@ def build_get_null_request( accept = "application/json" # Construct URL - url = '/duration/null' + url = "/duration/null" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -84,7 +84,7 @@ def build_put_positive_duration_request( accept = "application/json" # Construct URL - url = '/duration/positiveduration' + url = "/duration/positiveduration" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -117,7 +117,7 @@ def build_get_positive_duration_request( accept = "application/json" # Construct URL - url = '/duration/positiveduration' + url = "/duration/positiveduration" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -148,7 +148,7 @@ def build_get_invalid_request( accept = "application/json" # Construct URL - url = '/duration/invalid' + url = "/duration/invalid" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyFileLowLevel/bodyfilelowlevel/rest/files/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyFileLowLevel/bodyfilelowlevel/rest/files/_request_builders.py index 67beeefd085..8294eebc4bb 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyFileLowLevel/bodyfilelowlevel/rest/files/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyFileLowLevel/bodyfilelowlevel/rest/files/_request_builders.py @@ -36,7 +36,7 @@ def build_get_file_request( accept = "image/png, application/json" # Construct URL - url = '/files/stream/nonempty' + url = "/files/stream/nonempty" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -67,7 +67,7 @@ def build_get_file_large_request( accept = "image/png, application/json" # Construct URL - url = '/files/stream/verylarge' + url = "/files/stream/verylarge" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -98,7 +98,7 @@ def build_get_empty_file_request( accept = "image/png, application/json" # Construct URL - url = '/files/stream/empty' + url = "/files/stream/empty" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyFormDataLowLevel/bodyformdatalowlevel/rest/formdata/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyFormDataLowLevel/bodyformdatalowlevel/rest/formdata/_request_builders.py index 2709852a13f..65e19ef1b8d 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyFormDataLowLevel/bodyformdatalowlevel/rest/formdata/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyFormDataLowLevel/bodyformdatalowlevel/rest/formdata/_request_builders.py @@ -57,7 +57,7 @@ def build_upload_file_request( accept = "application/octet-stream, application/json" # Construct URL - url = '/formdata/stream/uploadfile' + url = "/formdata/stream/uploadfile" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -95,7 +95,7 @@ def build_upload_file_via_body_request( accept = "application/octet-stream, application/json" # Construct URL - url = '/formdata/stream/uploadfile' + url = "/formdata/stream/uploadfile" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -146,7 +146,7 @@ def build_upload_files_request( accept = "application/octet-stream, application/json" # Construct URL - url = '/formdata/stream/uploadfiles' + url = "/formdata/stream/uploadfiles" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyFormUrlEncodedDataLowLevel/bodyformurlencodeddatalowlevel/rest/formdataurlencoded/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyFormUrlEncodedDataLowLevel/bodyformurlencodeddatalowlevel/rest/formdataurlencoded/_request_builders.py index e93ef7b6fdb..677330ee979 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyFormUrlEncodedDataLowLevel/bodyformurlencodeddatalowlevel/rest/formdataurlencoded/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyFormUrlEncodedDataLowLevel/bodyformurlencodeddatalowlevel/rest/formdataurlencoded/_request_builders.py @@ -67,7 +67,7 @@ def build_update_pet_with_form_request( content_type = kwargs.pop('content_type', None) # type: Optional[str] # Construct URL - url = '/formsdataurlencoded/pet/add/{petId}' + url = "/formsdataurlencoded/pet/add/{petId}" path_format_arguments = { "petId": _SERIALIZER.url("pet_id", pet_id, 'int'), } @@ -125,7 +125,7 @@ def build_partial_constant_body_request( content_type = kwargs.pop('content_type', None) # type: Optional[str] # Construct URL - url = '/formsdataurlencoded/partialConstantBody' + url = "/formsdataurlencoded/partialConstantBody" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyIntegerLowLevel/bodyintegerlowlevel/rest/int/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyIntegerLowLevel/bodyintegerlowlevel/rest/int/_request_builders.py index 2fc43e7399e..748ab63af83 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyIntegerLowLevel/bodyintegerlowlevel/rest/int/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyIntegerLowLevel/bodyintegerlowlevel/rest/int/_request_builders.py @@ -39,7 +39,7 @@ def build_get_null_request( accept = "application/json" # Construct URL - url = '/int/null' + url = "/int/null" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -70,7 +70,7 @@ def build_get_invalid_request( accept = "application/json" # Construct URL - url = '/int/invalid' + url = "/int/invalid" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -101,7 +101,7 @@ def build_get_overflow_int32_request( accept = "application/json" # Construct URL - url = '/int/overflowint32' + url = "/int/overflowint32" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -132,7 +132,7 @@ def build_get_underflow_int32_request( accept = "application/json" # Construct URL - url = '/int/underflowint32' + url = "/int/underflowint32" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -163,7 +163,7 @@ def build_get_overflow_int64_request( accept = "application/json" # Construct URL - url = '/int/overflowint64' + url = "/int/overflowint64" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -194,7 +194,7 @@ def build_get_underflow_int64_request( accept = "application/json" # Construct URL - url = '/int/underflowint64' + url = "/int/underflowint64" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -239,7 +239,7 @@ def build_put_max32_request( accept = "application/json" # Construct URL - url = '/int/max/32' + url = "/int/max/32" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -286,7 +286,7 @@ def build_put_max64_request( accept = "application/json" # Construct URL - url = '/int/max/64' + url = "/int/max/64" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -333,7 +333,7 @@ def build_put_min32_request( accept = "application/json" # Construct URL - url = '/int/min/32' + url = "/int/min/32" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -380,7 +380,7 @@ def build_put_min64_request( accept = "application/json" # Construct URL - url = '/int/min/64' + url = "/int/min/64" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -413,7 +413,7 @@ def build_get_unix_time_request( accept = "application/json" # Construct URL - url = '/int/unixtime' + url = "/int/unixtime" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -458,7 +458,7 @@ def build_put_unix_time_date_request( accept = "application/json" # Construct URL - url = '/int/unixtime' + url = "/int/unixtime" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -491,7 +491,7 @@ def build_get_invalid_unix_time_request( accept = "application/json" # Construct URL - url = '/int/invalidunixtime' + url = "/int/invalidunixtime" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -522,7 +522,7 @@ def build_get_null_unix_time_request( accept = "application/json" # Construct URL - url = '/int/nullunixtime' + url = "/int/nullunixtime" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyNumberLowLevel/bodynumberlowlevel/rest/number/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyNumberLowLevel/bodynumberlowlevel/rest/number/_request_builders.py index 25ca6eb2980..97e016019fa 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyNumberLowLevel/bodynumberlowlevel/rest/number/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyNumberLowLevel/bodynumberlowlevel/rest/number/_request_builders.py @@ -39,7 +39,7 @@ def build_get_null_request( accept = "application/json" # Construct URL - url = '/number/null' + url = "/number/null" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -70,7 +70,7 @@ def build_get_invalid_float_request( accept = "application/json" # Construct URL - url = '/number/invalidfloat' + url = "/number/invalidfloat" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -101,7 +101,7 @@ def build_get_invalid_double_request( accept = "application/json" # Construct URL - url = '/number/invaliddouble' + url = "/number/invaliddouble" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -132,7 +132,7 @@ def build_get_invalid_decimal_request( accept = "application/json" # Construct URL - url = '/number/invaliddecimal' + url = "/number/invaliddecimal" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -177,7 +177,7 @@ def build_put_big_float_request( accept = "application/json" # Construct URL - url = '/number/big/float/3.402823e+20' + url = "/number/big/float/3.402823e+20" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -210,7 +210,7 @@ def build_get_big_float_request( accept = "application/json" # Construct URL - url = '/number/big/float/3.402823e+20' + url = "/number/big/float/3.402823e+20" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -255,7 +255,7 @@ def build_put_big_double_request( accept = "application/json" # Construct URL - url = '/number/big/double/2.5976931e+101' + url = "/number/big/double/2.5976931e+101" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -288,7 +288,7 @@ def build_get_big_double_request( accept = "application/json" # Construct URL - url = '/number/big/double/2.5976931e+101' + url = "/number/big/double/2.5976931e+101" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -325,7 +325,7 @@ def build_put_big_double_positive_decimal_request( accept = "application/json" # Construct URL - url = '/number/big/double/99999999.99' + url = "/number/big/double/99999999.99" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -359,7 +359,7 @@ def build_get_big_double_positive_decimal_request( accept = "application/json" # Construct URL - url = '/number/big/double/99999999.99' + url = "/number/big/double/99999999.99" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -396,7 +396,7 @@ def build_put_big_double_negative_decimal_request( accept = "application/json" # Construct URL - url = '/number/big/double/-99999999.99' + url = "/number/big/double/-99999999.99" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -430,7 +430,7 @@ def build_get_big_double_negative_decimal_request( accept = "application/json" # Construct URL - url = '/number/big/double/-99999999.99' + url = "/number/big/double/-99999999.99" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -475,7 +475,7 @@ def build_put_big_decimal_request( accept = "application/json" # Construct URL - url = '/number/big/decimal/2.5976931e+101' + url = "/number/big/decimal/2.5976931e+101" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -508,7 +508,7 @@ def build_get_big_decimal_request( accept = "application/json" # Construct URL - url = '/number/big/decimal/2.5976931e+101' + url = "/number/big/decimal/2.5976931e+101" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -545,7 +545,7 @@ def build_put_big_decimal_positive_decimal_request( accept = "application/json" # Construct URL - url = '/number/big/decimal/99999999.99' + url = "/number/big/decimal/99999999.99" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -579,7 +579,7 @@ def build_get_big_decimal_positive_decimal_request( accept = "application/json" # Construct URL - url = '/number/big/decimal/99999999.99' + url = "/number/big/decimal/99999999.99" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -616,7 +616,7 @@ def build_put_big_decimal_negative_decimal_request( accept = "application/json" # Construct URL - url = '/number/big/decimal/-99999999.99' + url = "/number/big/decimal/-99999999.99" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -650,7 +650,7 @@ def build_get_big_decimal_negative_decimal_request( accept = "application/json" # Construct URL - url = '/number/big/decimal/-99999999.99' + url = "/number/big/decimal/-99999999.99" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -695,7 +695,7 @@ def build_put_small_float_request( accept = "application/json" # Construct URL - url = '/number/small/float/3.402823e-20' + url = "/number/small/float/3.402823e-20" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -728,7 +728,7 @@ def build_get_small_float_request( accept = "application/json" # Construct URL - url = '/number/small/float/3.402823e-20' + url = "/number/small/float/3.402823e-20" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -773,7 +773,7 @@ def build_put_small_double_request( accept = "application/json" # Construct URL - url = '/number/small/double/2.5976931e-101' + url = "/number/small/double/2.5976931e-101" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -806,7 +806,7 @@ def build_get_small_double_request( accept = "application/json" # Construct URL - url = '/number/small/double/2.5976931e-101' + url = "/number/small/double/2.5976931e-101" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -851,7 +851,7 @@ def build_put_small_decimal_request( accept = "application/json" # Construct URL - url = '/number/small/decimal/2.5976931e-101' + url = "/number/small/decimal/2.5976931e-101" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -884,7 +884,7 @@ def build_get_small_decimal_request( accept = "application/json" # Construct URL - url = '/number/small/decimal/2.5976931e-101' + url = "/number/small/decimal/2.5976931e-101" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyStringLowLevel/bodystringlowlevel/rest/enum/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyStringLowLevel/bodystringlowlevel/rest/enum/_request_builders.py index 6b54bf90c60..4c1ae784125 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyStringLowLevel/bodystringlowlevel/rest/enum/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyStringLowLevel/bodystringlowlevel/rest/enum/_request_builders.py @@ -45,7 +45,7 @@ def build_get_not_expandable_request( accept = "application/json" # Construct URL - url = '/string/enum/notExpandable' + url = "/string/enum/notExpandable" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -90,7 +90,7 @@ def build_put_not_expandable_request( accept = "application/json" # Construct URL - url = '/string/enum/notExpandable' + url = "/string/enum/notExpandable" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -129,7 +129,7 @@ def build_get_referenced_request( accept = "application/json" # Construct URL - url = '/string/enum/Referenced' + url = "/string/enum/Referenced" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -174,7 +174,7 @@ def build_put_referenced_request( accept = "application/json" # Construct URL - url = '/string/enum/Referenced' + url = "/string/enum/Referenced" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -217,7 +217,7 @@ def build_get_referenced_constant_request( accept = "application/json" # Construct URL - url = '/string/enum/ReferencedConstant' + url = "/string/enum/ReferencedConstant" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -266,7 +266,7 @@ def build_put_referenced_constant_request( accept = "application/json" # Construct URL - url = '/string/enum/ReferencedConstant' + url = "/string/enum/ReferencedConstant" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyStringLowLevel/bodystringlowlevel/rest/string/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyStringLowLevel/bodystringlowlevel/rest/string/_request_builders.py index 424e79fa372..9ba3389d1cf 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyStringLowLevel/bodystringlowlevel/rest/string/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyStringLowLevel/bodystringlowlevel/rest/string/_request_builders.py @@ -39,7 +39,7 @@ def build_get_null_request( accept = "application/json" # Construct URL - url = '/string/null' + url = "/string/null" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -84,7 +84,7 @@ def build_put_null_request( accept = "application/json" # Construct URL - url = '/string/null' + url = "/string/null" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -117,7 +117,7 @@ def build_get_empty_request( accept = "application/json" # Construct URL - url = '/string/empty' + url = "/string/empty" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -154,7 +154,7 @@ def build_put_empty_request( accept = "application/json" # Construct URL - url = '/string/empty' + url = "/string/empty" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -188,7 +188,7 @@ def build_get_mbcs_request( accept = "application/json" # Construct URL - url = '/string/mbcs' + url = "/string/mbcs" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -226,7 +226,7 @@ def build_put_mbcs_request( accept = "application/json" # Construct URL - url = '/string/mbcs' + url = "/string/mbcs" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -262,7 +262,7 @@ def build_get_whitespace_request( accept = "application/json" # Construct URL - url = '/string/whitespace' + url = "/string/whitespace" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -302,7 +302,7 @@ def build_put_whitespace_request( accept = "application/json" # Construct URL - url = '/string/whitespace' + url = "/string/whitespace" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -336,7 +336,7 @@ def build_get_not_provided_request( accept = "application/json" # Construct URL - url = '/string/notProvided' + url = "/string/notProvided" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -367,7 +367,7 @@ def build_get_base64_encoded_request( accept = "application/json" # Construct URL - url = '/string/base64Encoding' + url = "/string/base64Encoding" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -398,7 +398,7 @@ def build_get_base64_url_encoded_request( accept = "application/json" # Construct URL - url = '/string/base64UrlEncoding' + url = "/string/base64UrlEncoding" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -443,7 +443,7 @@ def build_put_base64_url_encoded_request( accept = "application/json" # Construct URL - url = '/string/base64UrlEncoding' + url = "/string/base64UrlEncoding" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -476,7 +476,7 @@ def build_get_null_base64_url_encoded_request( accept = "application/json" # Construct URL - url = '/string/nullBase64UrlEncoding' + url = "/string/nullBase64UrlEncoding" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyTimeLowLevel/bodytimelowlevel/rest/time/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyTimeLowLevel/bodytimelowlevel/rest/time/_request_builders.py index 1f0bc38f3ee..65dec90ffea 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyTimeLowLevel/bodytimelowlevel/rest/time/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyTimeLowLevel/bodytimelowlevel/rest/time/_request_builders.py @@ -39,7 +39,7 @@ def build_get_request( accept = "application/json" # Construct URL - url = '/time/get' + url = "/time/get" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -84,7 +84,7 @@ def build_put_request( accept = "application/json" # Construct URL - url = '/time/put' + url = "/time/put" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/ConstantsLowLevel/constantslowlevel/rest/contants/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/ConstantsLowLevel/constantslowlevel/rest/contants/_request_builders.py index 7ce88232523..1c5f704763a 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/ConstantsLowLevel/constantslowlevel/rest/contants/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/ConstantsLowLevel/constantslowlevel/rest/contants/_request_builders.py @@ -43,7 +43,7 @@ def build_put_no_model_as_string_no_required_two_value_no_default_request( input = kwargs.pop('input', None) # type: Optional[str] # Construct URL - url = '/constants/putNoModelAsStringNoRequiredTwoValueNoDefault' + url = "/constants/putNoModelAsStringNoRequiredTwoValueNoDefault" # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -80,7 +80,7 @@ def build_put_no_model_as_string_no_required_two_value_default_request( input = kwargs.pop('input', "value1") # type: Optional[str] # Construct URL - url = '/constants/putNoModelAsStringNoRequiredTwoValueDefault' + url = "/constants/putNoModelAsStringNoRequiredTwoValueDefault" # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -117,7 +117,7 @@ def build_put_no_model_as_string_no_required_one_value_no_default_request( input = kwargs.pop('input', "value1") # type: Optional[str] # Construct URL - url = '/constants/putNoModelAsStringNoRequiredOneValueNoDefault' + url = "/constants/putNoModelAsStringNoRequiredOneValueNoDefault" # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -154,7 +154,7 @@ def build_put_no_model_as_string_no_required_one_value_default_request( input = kwargs.pop('input', "value1") # type: Optional[str] # Construct URL - url = '/constants/putNoModelAsStringNoRequiredOneValueDefault' + url = "/constants/putNoModelAsStringNoRequiredOneValueDefault" # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -191,7 +191,7 @@ def build_put_no_model_as_string_required_two_value_no_default_request( input = kwargs.pop('input') # type: str # Construct URL - url = '/constants/putNoModelAsStringRequiredTwoValueNoDefault' + url = "/constants/putNoModelAsStringRequiredTwoValueNoDefault" # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -227,7 +227,7 @@ def build_put_no_model_as_string_required_two_value_default_request( input = kwargs.pop('input', "value1") # type: str # Construct URL - url = '/constants/putNoModelAsStringRequiredTwoValueDefault' + url = "/constants/putNoModelAsStringRequiredTwoValueDefault" # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -264,7 +264,7 @@ def build_put_no_model_as_string_required_one_value_no_default_request( input = kwargs.pop('input', "value1") # type: str # Construct URL - url = '/constants/putNoModelAsStringRequiredOneValueNoDefault' + url = "/constants/putNoModelAsStringRequiredOneValueNoDefault" # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -301,7 +301,7 @@ def build_put_no_model_as_string_required_one_value_default_request( input = kwargs.pop('input', "value1") # type: str # Construct URL - url = '/constants/putNoModelAsStringRequiredOneValueDefault' + url = "/constants/putNoModelAsStringRequiredOneValueDefault" # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -337,7 +337,7 @@ def build_put_model_as_string_no_required_two_value_no_default_request( input = kwargs.pop('input', None) # type: Optional[str] # Construct URL - url = '/constants/putModelAsStringNoRequiredTwoValueNoDefault' + url = "/constants/putModelAsStringNoRequiredTwoValueNoDefault" # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -374,7 +374,7 @@ def build_put_model_as_string_no_required_two_value_default_request( input = kwargs.pop('input', "value1") # type: Optional[str] # Construct URL - url = '/constants/putModelAsStringNoRequiredTwoValueDefault' + url = "/constants/putModelAsStringNoRequiredTwoValueDefault" # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -411,7 +411,7 @@ def build_put_model_as_string_no_required_one_value_no_default_request( input = kwargs.pop('input', None) # type: Optional[str] # Construct URL - url = '/constants/putModelAsStringNoRequiredOneValueNoDefault' + url = "/constants/putModelAsStringNoRequiredOneValueNoDefault" # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -448,7 +448,7 @@ def build_put_model_as_string_no_required_one_value_default_request( input = kwargs.pop('input', "value1") # type: Optional[str] # Construct URL - url = '/constants/putModelAsStringNoRequiredOneValueDefault' + url = "/constants/putModelAsStringNoRequiredOneValueDefault" # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -485,7 +485,7 @@ def build_put_model_as_string_required_two_value_no_default_request( input = kwargs.pop('input') # type: str # Construct URL - url = '/constants/putModelAsStringRequiredTwoValueNoDefault' + url = "/constants/putModelAsStringRequiredTwoValueNoDefault" # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -521,7 +521,7 @@ def build_put_model_as_string_required_two_value_default_request( input = kwargs.pop('input', "value1") # type: str # Construct URL - url = '/constants/putModelAsStringRequiredTwoValueDefault' + url = "/constants/putModelAsStringRequiredTwoValueDefault" # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -557,7 +557,7 @@ def build_put_model_as_string_required_one_value_no_default_request( input = kwargs.pop('input') # type: str # Construct URL - url = '/constants/putModelAsStringRequiredOneValueNoDefault' + url = "/constants/putModelAsStringRequiredOneValueNoDefault" # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -593,7 +593,7 @@ def build_put_model_as_string_required_one_value_default_request( input = kwargs.pop('input', "value1") # type: str # Construct URL - url = '/constants/putModelAsStringRequiredOneValueDefault' + url = "/constants/putModelAsStringRequiredOneValueDefault" # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -628,7 +628,7 @@ def build_put_client_constants_request( path_constant = kwargs.pop('path_constant', "path") # type: str # Construct URL - url = '/constants/clientConstants/{path-constant}' + url = "/constants/clientConstants/{path-constant}" path_format_arguments = { "path-constant": _SERIALIZER.url("path_constant", path_constant, 'str'), } diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/CustomBaseUriLowLevel/custombaseurllowlevel/rest/paths/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/CustomBaseUriLowLevel/custombaseurllowlevel/rest/paths/_request_builders.py index 718db040ff1..e0c223d0f9d 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/CustomBaseUriLowLevel/custombaseurllowlevel/rest/paths/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/CustomBaseUriLowLevel/custombaseurllowlevel/rest/paths/_request_builders.py @@ -35,7 +35,7 @@ def build_get_empty_request( accept = "application/json" # Construct URL - url = '/customuri' + url = "/customuri" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/CustomBaseUriMoreOptionsLowLevel/custombaseurlmoreoptionslowlevel/rest/paths/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/CustomBaseUriMoreOptionsLowLevel/custombaseurlmoreoptionslowlevel/rest/paths/_request_builders.py index d6fea273198..e3b476291f3 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/CustomBaseUriMoreOptionsLowLevel/custombaseurlmoreoptionslowlevel/rest/paths/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/CustomBaseUriMoreOptionsLowLevel/custombaseurlmoreoptionslowlevel/rest/paths/_request_builders.py @@ -48,7 +48,7 @@ def build_get_empty_request( accept = "application/json" # Construct URL - url = '/customuri/{subscriptionId}/{keyName}' + url = "/customuri/{subscriptionId}/{keyName}" path_format_arguments = { "keyName": _SERIALIZER.url("key_name", key_name, 'str'), "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/ExtensibleEnumsLowLevel/extensibleenumsswaggerlowlevel/rest/pet/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/ExtensibleEnumsLowLevel/extensibleenumsswaggerlowlevel/rest/pet/_request_builders.py index 6af5fc065bc..32c105d1ab1 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/ExtensibleEnumsLowLevel/extensibleenumsswaggerlowlevel/rest/pet/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/ExtensibleEnumsLowLevel/extensibleenumsswaggerlowlevel/rest/pet/_request_builders.py @@ -56,7 +56,7 @@ def build_get_by_pet_id_request( accept = "application/json" # Construct URL - url = '/extensibleenums/pet/{petId}' + url = "/extensibleenums/pet/{petId}" path_format_arguments = { "petId": _SERIALIZER.url("pet_id", pet_id, 'str'), } @@ -121,7 +121,7 @@ def build_add_pet_request( accept = "application/json" # Construct URL - url = '/extensibleenums/pet/addPet' + url = "/extensibleenums/pet/addPet" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/HeaderLowLevel/headerlowlevel/rest/header/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/HeaderLowLevel/headerlowlevel/rest/header/_request_builders.py index 012a39da0de..22bb34d289e 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/HeaderLowLevel/headerlowlevel/rest/header/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/HeaderLowLevel/headerlowlevel/rest/header/_request_builders.py @@ -41,7 +41,7 @@ def build_param_existing_key_request( accept = "application/json" # Construct URL - url = '/header/param/existingkey' + url = "/header/param/existingkey" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -73,7 +73,7 @@ def build_response_existing_key_request( accept = "application/json" # Construct URL - url = '/header/response/existingkey' + url = "/header/response/existingkey" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -106,7 +106,7 @@ def build_param_protected_key_request( accept = "application/json" # Construct URL - url = '/header/param/protectedkey' + url = "/header/param/protectedkey" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -138,7 +138,7 @@ def build_response_protected_key_request( accept = "application/json" # Construct URL - url = '/header/response/protectedkey' + url = "/header/response/protectedkey" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -177,7 +177,7 @@ def build_param_integer_request( accept = "application/json" # Construct URL - url = '/header/param/prim/integer' + url = "/header/param/prim/integer" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -214,7 +214,7 @@ def build_response_integer_request( accept = "application/json" # Construct URL - url = '/header/response/prim/integer' + url = "/header/response/prim/integer" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -254,7 +254,7 @@ def build_param_long_request( accept = "application/json" # Construct URL - url = '/header/param/prim/long' + url = "/header/param/prim/long" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -291,7 +291,7 @@ def build_response_long_request( accept = "application/json" # Construct URL - url = '/header/response/prim/long' + url = "/header/response/prim/long" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -331,7 +331,7 @@ def build_param_float_request( accept = "application/json" # Construct URL - url = '/header/param/prim/float' + url = "/header/param/prim/float" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -368,7 +368,7 @@ def build_response_float_request( accept = "application/json" # Construct URL - url = '/header/response/prim/float' + url = "/header/response/prim/float" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -408,7 +408,7 @@ def build_param_double_request( accept = "application/json" # Construct URL - url = '/header/param/prim/double' + url = "/header/param/prim/double" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -445,7 +445,7 @@ def build_response_double_request( accept = "application/json" # Construct URL - url = '/header/response/prim/double' + url = "/header/response/prim/double" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -485,7 +485,7 @@ def build_param_bool_request( accept = "application/json" # Construct URL - url = '/header/param/prim/bool' + url = "/header/param/prim/bool" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -522,7 +522,7 @@ def build_response_bool_request( accept = "application/json" # Construct URL - url = '/header/response/prim/bool' + url = "/header/response/prim/bool" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -564,7 +564,7 @@ def build_param_string_request( accept = "application/json" # Construct URL - url = '/header/param/prim/string' + url = "/header/param/prim/string" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -603,7 +603,7 @@ def build_response_string_request( accept = "application/json" # Construct URL - url = '/header/response/prim/string' + url = "/header/response/prim/string" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -643,7 +643,7 @@ def build_param_date_request( accept = "application/json" # Construct URL - url = '/header/param/prim/date' + url = "/header/param/prim/date" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -680,7 +680,7 @@ def build_response_date_request( accept = "application/json" # Construct URL - url = '/header/response/prim/date' + url = "/header/response/prim/date" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -721,7 +721,7 @@ def build_param_datetime_request( accept = "application/json" # Construct URL - url = '/header/param/prim/datetime' + url = "/header/param/prim/datetime" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -758,7 +758,7 @@ def build_response_datetime_request( accept = "application/json" # Construct URL - url = '/header/response/prim/datetime' + url = "/header/response/prim/datetime" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -799,7 +799,7 @@ def build_param_datetime_rfc1123_request( accept = "application/json" # Construct URL - url = '/header/param/prim/datetimerfc1123' + url = "/header/param/prim/datetimerfc1123" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -838,7 +838,7 @@ def build_response_datetime_rfc1123_request( accept = "application/json" # Construct URL - url = '/header/response/prim/datetimerfc1123' + url = "/header/response/prim/datetimerfc1123" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -877,7 +877,7 @@ def build_param_duration_request( accept = "application/json" # Construct URL - url = '/header/param/prim/duration' + url = "/header/param/prim/duration" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -914,7 +914,7 @@ def build_response_duration_request( accept = "application/json" # Construct URL - url = '/header/response/prim/duration' + url = "/header/response/prim/duration" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -953,7 +953,7 @@ def build_param_byte_request( accept = "application/json" # Construct URL - url = '/header/param/prim/byte' + url = "/header/param/prim/byte" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -990,7 +990,7 @@ def build_response_byte_request( accept = "application/json" # Construct URL - url = '/header/response/prim/byte' + url = "/header/response/prim/byte" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1032,7 +1032,7 @@ def build_param_enum_request( accept = "application/json" # Construct URL - url = '/header/param/prim/enum' + url = "/header/param/prim/enum" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1071,7 +1071,7 @@ def build_response_enum_request( accept = "application/json" # Construct URL - url = '/header/response/prim/enum' + url = "/header/response/prim/enum" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1104,7 +1104,7 @@ def build_custom_request_id_request( accept = "application/json" # Construct URL - url = '/header/custom/x-ms-client-request-id/9C4D50EE-2D56-4CD3-8152-34347DC9F2B0' + url = "/header/custom/x-ms-client-request-id/9C4D50EE-2D56-4CD3-8152-34347DC9F2B0" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/httpinfrastructurelowlevel/rest/http_client_failure/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/httpinfrastructurelowlevel/rest/http_client_failure/_request_builders.py index 7a0de0cc7f8..b9350442780 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/httpinfrastructurelowlevel/rest/http_client_failure/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/httpinfrastructurelowlevel/rest/http_client_failure/_request_builders.py @@ -39,7 +39,7 @@ def build_head400_request( accept = "application/json" # Construct URL - url = '/http/failure/client/400' + url = "/http/failure/client/400" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -70,7 +70,7 @@ def build_get400_request( accept = "application/json" # Construct URL - url = '/http/failure/client/400' + url = "/http/failure/client/400" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -101,7 +101,7 @@ def build_options400_request( accept = "application/json" # Construct URL - url = '/http/failure/client/400' + url = "/http/failure/client/400" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -146,7 +146,7 @@ def build_put400_request( accept = "application/json" # Construct URL - url = '/http/failure/client/400' + url = "/http/failure/client/400" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -193,7 +193,7 @@ def build_patch400_request( accept = "application/json" # Construct URL - url = '/http/failure/client/400' + url = "/http/failure/client/400" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -240,7 +240,7 @@ def build_post400_request( accept = "application/json" # Construct URL - url = '/http/failure/client/400' + url = "/http/failure/client/400" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -287,7 +287,7 @@ def build_delete400_request( accept = "application/json" # Construct URL - url = '/http/failure/client/400' + url = "/http/failure/client/400" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -320,7 +320,7 @@ def build_head401_request( accept = "application/json" # Construct URL - url = '/http/failure/client/401' + url = "/http/failure/client/401" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -351,7 +351,7 @@ def build_get402_request( accept = "application/json" # Construct URL - url = '/http/failure/client/402' + url = "/http/failure/client/402" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -382,7 +382,7 @@ def build_options403_request( accept = "application/json" # Construct URL - url = '/http/failure/client/403' + url = "/http/failure/client/403" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -413,7 +413,7 @@ def build_get403_request( accept = "application/json" # Construct URL - url = '/http/failure/client/403' + url = "/http/failure/client/403" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -458,7 +458,7 @@ def build_put404_request( accept = "application/json" # Construct URL - url = '/http/failure/client/404' + url = "/http/failure/client/404" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -505,7 +505,7 @@ def build_patch405_request( accept = "application/json" # Construct URL - url = '/http/failure/client/405' + url = "/http/failure/client/405" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -552,7 +552,7 @@ def build_post406_request( accept = "application/json" # Construct URL - url = '/http/failure/client/406' + url = "/http/failure/client/406" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -599,7 +599,7 @@ def build_delete407_request( accept = "application/json" # Construct URL - url = '/http/failure/client/407' + url = "/http/failure/client/407" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -646,7 +646,7 @@ def build_put409_request( accept = "application/json" # Construct URL - url = '/http/failure/client/409' + url = "/http/failure/client/409" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -679,7 +679,7 @@ def build_head410_request( accept = "application/json" # Construct URL - url = '/http/failure/client/410' + url = "/http/failure/client/410" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -710,7 +710,7 @@ def build_get411_request( accept = "application/json" # Construct URL - url = '/http/failure/client/411' + url = "/http/failure/client/411" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -741,7 +741,7 @@ def build_options412_request( accept = "application/json" # Construct URL - url = '/http/failure/client/412' + url = "/http/failure/client/412" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -772,7 +772,7 @@ def build_get412_request( accept = "application/json" # Construct URL - url = '/http/failure/client/412' + url = "/http/failure/client/412" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -817,7 +817,7 @@ def build_put413_request( accept = "application/json" # Construct URL - url = '/http/failure/client/413' + url = "/http/failure/client/413" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -864,7 +864,7 @@ def build_patch414_request( accept = "application/json" # Construct URL - url = '/http/failure/client/414' + url = "/http/failure/client/414" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -911,7 +911,7 @@ def build_post415_request( accept = "application/json" # Construct URL - url = '/http/failure/client/415' + url = "/http/failure/client/415" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -944,7 +944,7 @@ def build_get416_request( accept = "application/json" # Construct URL - url = '/http/failure/client/416' + url = "/http/failure/client/416" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -989,7 +989,7 @@ def build_delete417_request( accept = "application/json" # Construct URL - url = '/http/failure/client/417' + url = "/http/failure/client/417" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1022,7 +1022,7 @@ def build_head429_request( accept = "application/json" # Construct URL - url = '/http/failure/client/429' + url = "/http/failure/client/429" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/httpinfrastructurelowlevel/rest/http_failure/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/httpinfrastructurelowlevel/rest/http_failure/_request_builders.py index ce0a7d61348..a0893ae04d5 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/httpinfrastructurelowlevel/rest/http_failure/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/httpinfrastructurelowlevel/rest/http_failure/_request_builders.py @@ -36,7 +36,7 @@ def build_get_empty_error_request( accept = "application/json" # Construct URL - url = '/http/failure/emptybody/error' + url = "/http/failure/emptybody/error" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -67,7 +67,7 @@ def build_get_no_model_error_request( accept = "application/json" # Construct URL - url = '/http/failure/nomodel/error' + url = "/http/failure/nomodel/error" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -98,7 +98,7 @@ def build_get_no_model_empty_request( accept = "application/json" # Construct URL - url = '/http/failure/nomodel/empty' + url = "/http/failure/nomodel/empty" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/httpinfrastructurelowlevel/rest/http_redirects/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/httpinfrastructurelowlevel/rest/http_redirects/_request_builders.py index bd7cd196d91..ecb8a8ee36d 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/httpinfrastructurelowlevel/rest/http_redirects/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/httpinfrastructurelowlevel/rest/http_redirects/_request_builders.py @@ -39,7 +39,7 @@ def build_head300_request( accept = "application/json" # Construct URL - url = '/http/redirect/300' + url = "/http/redirect/300" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -78,7 +78,7 @@ def build_get300_request( accept = "application/json" # Construct URL - url = '/http/redirect/300' + url = "/http/redirect/300" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -109,7 +109,7 @@ def build_head301_request( accept = "application/json" # Construct URL - url = '/http/redirect/301' + url = "/http/redirect/301" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -140,7 +140,7 @@ def build_get301_request( accept = "application/json" # Construct URL - url = '/http/redirect/301' + url = "/http/redirect/301" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -186,7 +186,7 @@ def build_put301_request( accept = "application/json" # Construct URL - url = '/http/redirect/301' + url = "/http/redirect/301" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -219,7 +219,7 @@ def build_head302_request( accept = "application/json" # Construct URL - url = '/http/redirect/302' + url = "/http/redirect/302" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -250,7 +250,7 @@ def build_get302_request( accept = "application/json" # Construct URL - url = '/http/redirect/302' + url = "/http/redirect/302" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -296,7 +296,7 @@ def build_patch302_request( accept = "application/json" # Construct URL - url = '/http/redirect/302' + url = "/http/redirect/302" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -344,7 +344,7 @@ def build_post303_request( accept = "application/json" # Construct URL - url = '/http/redirect/303' + url = "/http/redirect/303" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -377,7 +377,7 @@ def build_head307_request( accept = "application/json" # Construct URL - url = '/http/redirect/307' + url = "/http/redirect/307" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -408,7 +408,7 @@ def build_get307_request( accept = "application/json" # Construct URL - url = '/http/redirect/307' + url = "/http/redirect/307" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -439,7 +439,7 @@ def build_options307_request( accept = "application/json" # Construct URL - url = '/http/redirect/307' + url = "/http/redirect/307" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -484,7 +484,7 @@ def build_put307_request( accept = "application/json" # Construct URL - url = '/http/redirect/307' + url = "/http/redirect/307" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -531,7 +531,7 @@ def build_patch307_request( accept = "application/json" # Construct URL - url = '/http/redirect/307' + url = "/http/redirect/307" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -578,7 +578,7 @@ def build_post307_request( accept = "application/json" # Construct URL - url = '/http/redirect/307' + url = "/http/redirect/307" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -625,7 +625,7 @@ def build_delete307_request( accept = "application/json" # Construct URL - url = '/http/redirect/307' + url = "/http/redirect/307" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/httpinfrastructurelowlevel/rest/http_retry/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/httpinfrastructurelowlevel/rest/http_retry/_request_builders.py index ef8306ed239..7d7e37b4333 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/httpinfrastructurelowlevel/rest/http_retry/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/httpinfrastructurelowlevel/rest/http_retry/_request_builders.py @@ -39,7 +39,7 @@ def build_head408_request( accept = "application/json" # Construct URL - url = '/http/retry/408' + url = "/http/retry/408" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -84,7 +84,7 @@ def build_put500_request( accept = "application/json" # Construct URL - url = '/http/retry/500' + url = "/http/retry/500" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -131,7 +131,7 @@ def build_patch500_request( accept = "application/json" # Construct URL - url = '/http/retry/500' + url = "/http/retry/500" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -164,7 +164,7 @@ def build_get502_request( accept = "application/json" # Construct URL - url = '/http/retry/502' + url = "/http/retry/502" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -195,7 +195,7 @@ def build_options502_request( accept = "application/json" # Construct URL - url = '/http/retry/502' + url = "/http/retry/502" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -240,7 +240,7 @@ def build_post503_request( accept = "application/json" # Construct URL - url = '/http/retry/503' + url = "/http/retry/503" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -287,7 +287,7 @@ def build_delete503_request( accept = "application/json" # Construct URL - url = '/http/retry/503' + url = "/http/retry/503" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -334,7 +334,7 @@ def build_put504_request( accept = "application/json" # Construct URL - url = '/http/retry/504' + url = "/http/retry/504" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -381,7 +381,7 @@ def build_patch504_request( accept = "application/json" # Construct URL - url = '/http/retry/504' + url = "/http/retry/504" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/httpinfrastructurelowlevel/rest/http_server_failure/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/httpinfrastructurelowlevel/rest/http_server_failure/_request_builders.py index f866bcc8e7c..9da21d470a1 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/httpinfrastructurelowlevel/rest/http_server_failure/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/httpinfrastructurelowlevel/rest/http_server_failure/_request_builders.py @@ -39,7 +39,7 @@ def build_head501_request( accept = "application/json" # Construct URL - url = '/http/failure/server/501' + url = "/http/failure/server/501" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -70,7 +70,7 @@ def build_get501_request( accept = "application/json" # Construct URL - url = '/http/failure/server/501' + url = "/http/failure/server/501" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -115,7 +115,7 @@ def build_post505_request( accept = "application/json" # Construct URL - url = '/http/failure/server/505' + url = "/http/failure/server/505" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -162,7 +162,7 @@ def build_delete505_request( accept = "application/json" # Construct URL - url = '/http/failure/server/505' + url = "/http/failure/server/505" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/httpinfrastructurelowlevel/rest/http_success/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/httpinfrastructurelowlevel/rest/http_success/_request_builders.py index ec595be088b..08d68d13d4a 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/httpinfrastructurelowlevel/rest/http_success/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/httpinfrastructurelowlevel/rest/http_success/_request_builders.py @@ -39,7 +39,7 @@ def build_head200_request( accept = "application/json" # Construct URL - url = '/http/success/200' + url = "/http/success/200" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -70,7 +70,7 @@ def build_get200_request( accept = "application/json" # Construct URL - url = '/http/success/200' + url = "/http/success/200" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -101,7 +101,7 @@ def build_options200_request( accept = "application/json" # Construct URL - url = '/http/success/200' + url = "/http/success/200" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -146,7 +146,7 @@ def build_put200_request( accept = "application/json" # Construct URL - url = '/http/success/200' + url = "/http/success/200" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -193,7 +193,7 @@ def build_patch200_request( accept = "application/json" # Construct URL - url = '/http/success/200' + url = "/http/success/200" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -240,7 +240,7 @@ def build_post200_request( accept = "application/json" # Construct URL - url = '/http/success/200' + url = "/http/success/200" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -287,7 +287,7 @@ def build_delete200_request( accept = "application/json" # Construct URL - url = '/http/success/200' + url = "/http/success/200" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -334,7 +334,7 @@ def build_put201_request( accept = "application/json" # Construct URL - url = '/http/success/201' + url = "/http/success/201" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -381,7 +381,7 @@ def build_post201_request( accept = "application/json" # Construct URL - url = '/http/success/201' + url = "/http/success/201" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -428,7 +428,7 @@ def build_put202_request( accept = "application/json" # Construct URL - url = '/http/success/202' + url = "/http/success/202" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -475,7 +475,7 @@ def build_patch202_request( accept = "application/json" # Construct URL - url = '/http/success/202' + url = "/http/success/202" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -522,7 +522,7 @@ def build_post202_request( accept = "application/json" # Construct URL - url = '/http/success/202' + url = "/http/success/202" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -569,7 +569,7 @@ def build_delete202_request( accept = "application/json" # Construct URL - url = '/http/success/202' + url = "/http/success/202" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -602,7 +602,7 @@ def build_head204_request( accept = "application/json" # Construct URL - url = '/http/success/204' + url = "/http/success/204" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -647,7 +647,7 @@ def build_put204_request( accept = "application/json" # Construct URL - url = '/http/success/204' + url = "/http/success/204" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -694,7 +694,7 @@ def build_patch204_request( accept = "application/json" # Construct URL - url = '/http/success/204' + url = "/http/success/204" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -741,7 +741,7 @@ def build_post204_request( accept = "application/json" # Construct URL - url = '/http/success/204' + url = "/http/success/204" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -788,7 +788,7 @@ def build_delete204_request( accept = "application/json" # Construct URL - url = '/http/success/204' + url = "/http/success/204" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -821,7 +821,7 @@ def build_head404_request( accept = "application/json" # Construct URL - url = '/http/success/404' + url = "/http/success/404" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/httpinfrastructurelowlevel/rest/multiple_responses/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/httpinfrastructurelowlevel/rest/multiple_responses/_request_builders.py index f4122f67833..62561def45f 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/httpinfrastructurelowlevel/rest/multiple_responses/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/httpinfrastructurelowlevel/rest/multiple_responses/_request_builders.py @@ -44,7 +44,7 @@ def build_get200_model204_no_model_default_error200_valid_request( accept = "application/json" # Construct URL - url = '/http/payloads/200/A/204/none/default/Error/response/200/valid' + url = "/http/payloads/200/A/204/none/default/Error/response/200/valid" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -83,7 +83,7 @@ def build_get200_model204_no_model_default_error204_valid_request( accept = "application/json" # Construct URL - url = '/http/payloads/200/A/204/none/default/Error/response/204/none' + url = "/http/payloads/200/A/204/none/default/Error/response/204/none" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -122,7 +122,7 @@ def build_get200_model204_no_model_default_error201_invalid_request( accept = "application/json" # Construct URL - url = '/http/payloads/200/A/204/none/default/Error/response/201/valid' + url = "/http/payloads/200/A/204/none/default/Error/response/201/valid" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -161,7 +161,7 @@ def build_get200_model204_no_model_default_error202_none_request( accept = "application/json" # Construct URL - url = '/http/payloads/200/A/204/none/default/Error/response/202/none' + url = "/http/payloads/200/A/204/none/default/Error/response/202/none" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -200,7 +200,7 @@ def build_get200_model204_no_model_default_error400_valid_request( accept = "application/json" # Construct URL - url = '/http/payloads/200/A/204/none/default/Error/response/400/valid' + url = "/http/payloads/200/A/204/none/default/Error/response/400/valid" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -244,7 +244,7 @@ def build_get200_model201_model_default_error200_valid_request( accept = "application/json" # Construct URL - url = '/http/payloads/200/A/201/B/default/Error/response/200/valid' + url = "/http/payloads/200/A/201/B/default/Error/response/200/valid" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -288,7 +288,7 @@ def build_get200_model201_model_default_error201_valid_request( accept = "application/json" # Construct URL - url = '/http/payloads/200/A/201/B/default/Error/response/201/valid' + url = "/http/payloads/200/A/201/B/default/Error/response/201/valid" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -332,7 +332,7 @@ def build_get200_model201_model_default_error400_valid_request( accept = "application/json" # Construct URL - url = '/http/payloads/200/A/201/B/default/Error/response/400/valid' + url = "/http/payloads/200/A/201/B/default/Error/response/400/valid" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -379,7 +379,7 @@ def build_get200_model_a201_model_c404_model_d_default_error200_valid_request( accept = "application/json" # Construct URL - url = '/http/payloads/200/A/201/C/404/D/default/Error/response/200/valid' + url = "/http/payloads/200/A/201/C/404/D/default/Error/response/200/valid" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -426,7 +426,7 @@ def build_get200_model_a201_model_c404_model_d_default_error201_valid_request( accept = "application/json" # Construct URL - url = '/http/payloads/200/A/201/C/404/D/default/Error/response/201/valid' + url = "/http/payloads/200/A/201/C/404/D/default/Error/response/201/valid" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -473,7 +473,7 @@ def build_get200_model_a201_model_c404_model_d_default_error404_valid_request( accept = "application/json" # Construct URL - url = '/http/payloads/200/A/201/C/404/D/default/Error/response/404/valid' + url = "/http/payloads/200/A/201/C/404/D/default/Error/response/404/valid" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -520,7 +520,7 @@ def build_get200_model_a201_model_c404_model_d_default_error400_valid_request( accept = "application/json" # Construct URL - url = '/http/payloads/200/A/201/C/404/D/default/Error/response/400/valid' + url = "/http/payloads/200/A/201/C/404/D/default/Error/response/400/valid" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -551,7 +551,7 @@ def build_get202_none204_none_default_error202_none_request( accept = "application/json" # Construct URL - url = '/http/payloads/202/none/204/none/default/Error/response/202/none' + url = "/http/payloads/202/none/204/none/default/Error/response/202/none" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -582,7 +582,7 @@ def build_get202_none204_none_default_error204_none_request( accept = "application/json" # Construct URL - url = '/http/payloads/202/none/204/none/default/Error/response/204/none' + url = "/http/payloads/202/none/204/none/default/Error/response/204/none" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -613,7 +613,7 @@ def build_get202_none204_none_default_error400_valid_request( accept = "application/json" # Construct URL - url = '/http/payloads/202/none/204/none/default/Error/response/400/valid' + url = "/http/payloads/202/none/204/none/default/Error/response/400/valid" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -643,7 +643,7 @@ def build_get202_none204_none_default_none202_invalid_request( """ # Construct URL - url = '/http/payloads/202/none/204/none/default/none/response/202/invalid' + url = "/http/payloads/202/none/204/none/default/none/response/202/invalid" return HttpRequest( method="GET", @@ -668,7 +668,7 @@ def build_get202_none204_none_default_none204_none_request( """ # Construct URL - url = '/http/payloads/202/none/204/none/default/none/response/204/none' + url = "/http/payloads/202/none/204/none/default/none/response/204/none" return HttpRequest( method="GET", @@ -693,7 +693,7 @@ def build_get202_none204_none_default_none400_none_request( """ # Construct URL - url = '/http/payloads/202/none/204/none/default/none/response/400/none' + url = "/http/payloads/202/none/204/none/default/none/response/400/none" return HttpRequest( method="GET", @@ -718,7 +718,7 @@ def build_get202_none204_none_default_none400_invalid_request( """ # Construct URL - url = '/http/payloads/202/none/204/none/default/none/response/400/invalid' + url = "/http/payloads/202/none/204/none/default/none/response/400/invalid" return HttpRequest( method="GET", @@ -752,7 +752,7 @@ def build_get_default_model_a200_valid_request( accept = "application/json" # Construct URL - url = '/http/payloads/default/A/response/200/valid' + url = "/http/payloads/default/A/response/200/valid" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -791,7 +791,7 @@ def build_get_default_model_a200_none_request( accept = "application/json" # Construct URL - url = '/http/payloads/default/A/response/200/none' + url = "/http/payloads/default/A/response/200/none" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -822,7 +822,7 @@ def build_get_default_model_a400_valid_request( accept = "application/json" # Construct URL - url = '/http/payloads/default/A/response/400/valid' + url = "/http/payloads/default/A/response/400/valid" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -853,7 +853,7 @@ def build_get_default_model_a400_none_request( accept = "application/json" # Construct URL - url = '/http/payloads/default/A/response/400/none' + url = "/http/payloads/default/A/response/400/none" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -883,7 +883,7 @@ def build_get_default_none200_invalid_request( """ # Construct URL - url = '/http/payloads/default/none/response/200/invalid' + url = "/http/payloads/default/none/response/200/invalid" return HttpRequest( method="GET", @@ -908,7 +908,7 @@ def build_get_default_none200_none_request( """ # Construct URL - url = '/http/payloads/default/none/response/200/none' + url = "/http/payloads/default/none/response/200/none" return HttpRequest( method="GET", @@ -933,7 +933,7 @@ def build_get_default_none400_invalid_request( """ # Construct URL - url = '/http/payloads/default/none/response/400/invalid' + url = "/http/payloads/default/none/response/400/invalid" return HttpRequest( method="GET", @@ -958,7 +958,7 @@ def build_get_default_none400_none_request( """ # Construct URL - url = '/http/payloads/default/none/response/400/none' + url = "/http/payloads/default/none/response/400/none" return HttpRequest( method="GET", @@ -993,7 +993,7 @@ def build_get200_model_a200_none_request( accept = "application/json" # Construct URL - url = '/http/payloads/200/A/response/200/none' + url = "/http/payloads/200/A/response/200/none" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1032,7 +1032,7 @@ def build_get200_model_a200_valid_request( accept = "application/json" # Construct URL - url = '/http/payloads/200/A/response/200/valid' + url = "/http/payloads/200/A/response/200/valid" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1071,7 +1071,7 @@ def build_get200_model_a200_invalid_request( accept = "application/json" # Construct URL - url = '/http/payloads/200/A/response/200/invalid' + url = "/http/payloads/200/A/response/200/invalid" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1110,7 +1110,7 @@ def build_get200_model_a400_none_request( accept = "application/json" # Construct URL - url = '/http/payloads/200/A/response/400/none' + url = "/http/payloads/200/A/response/400/none" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1149,7 +1149,7 @@ def build_get200_model_a400_valid_request( accept = "application/json" # Construct URL - url = '/http/payloads/200/A/response/400/valid' + url = "/http/payloads/200/A/response/400/valid" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1188,7 +1188,7 @@ def build_get200_model_a400_invalid_request( accept = "application/json" # Construct URL - url = '/http/payloads/200/A/response/400/invalid' + url = "/http/payloads/200/A/response/400/invalid" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1227,7 +1227,7 @@ def build_get200_model_a202_valid_request( accept = "application/json" # Construct URL - url = '/http/payloads/200/A/response/202/valid' + url = "/http/payloads/200/A/response/202/valid" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/IncorrectErrorResponseLowLevel/incorrecterrorresponselowlevel/rest/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/IncorrectErrorResponseLowLevel/incorrecterrorresponselowlevel/rest/_request_builders.py index 2edb0a8b7e1..02d97f98afe 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/IncorrectErrorResponseLowLevel/incorrecterrorresponselowlevel/rest/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/IncorrectErrorResponseLowLevel/incorrecterrorresponselowlevel/rest/_request_builders.py @@ -36,7 +36,7 @@ def build_get_incorrect_error_from_server_request( """ # Construct URL - url = '/incorrectError' + url = "/incorrectError" return HttpRequest( method="GET", diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/MediaTypesLowLevel/mediatypeslowlevel/rest/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/MediaTypesLowLevel/mediatypeslowlevel/rest/_request_builders.py index 9d5c665ea34..64f98f2eaaa 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/MediaTypesLowLevel/mediatypeslowlevel/rest/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/MediaTypesLowLevel/mediatypeslowlevel/rest/_request_builders.py @@ -56,7 +56,7 @@ def build_analyze_body_request( accept = "application/json" # Construct URL - url = '/mediatypes/analyze' + url = "/mediatypes/analyze" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -106,7 +106,7 @@ def build_analyze_body_no_accept_header_request( content_type = kwargs.pop('content_type', None) # type: Optional[str] # Construct URL - url = '/mediatypes/analyzeNoAccept' + url = "/mediatypes/analyzeNoAccept" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -143,7 +143,7 @@ def build_content_type_with_encoding_request( accept = "application/json" # Construct URL - url = '/mediatypes/contentTypeWithEncoding' + url = "/mediatypes/contentTypeWithEncoding" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -191,7 +191,7 @@ def build_binary_body_with_two_content_types_request( accept = "text/plain" # Construct URL - url = '/mediatypes/binaryBodyTwoContentTypes' + url = "/mediatypes/binaryBodyTwoContentTypes" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -243,7 +243,7 @@ def build_binary_body_with_three_content_types_request( accept = "text/plain" # Construct URL - url = '/mediatypes/binaryBodyThreeContentTypes' + url = "/mediatypes/binaryBodyThreeContentTypes" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -292,7 +292,7 @@ def build_put_text_and_json_body_request( accept = "text/plain" # Construct URL - url = '/mediatypes/textAndJson' + url = "/mediatypes/textAndJson" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/MergePatchJsonLowLevel/mergepatchjsonlowlevel/rest/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/MergePatchJsonLowLevel/mergepatchjsonlowlevel/rest/_request_builders.py index 7bc9de19ecb..fe89749f271 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/MergePatchJsonLowLevel/mergepatchjsonlowlevel/rest/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/MergePatchJsonLowLevel/mergepatchjsonlowlevel/rest/_request_builders.py @@ -55,7 +55,7 @@ def build_patch_single_request( accept = "application/json" # Construct URL - url = '/mergePatchJson/single' + url = "/mergePatchJson/single" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/ModelFlatteningLowLevel/modelflatteninglowlevel/rest/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/ModelFlatteningLowLevel/modelflatteninglowlevel/rest/_request_builders.py index f6b1407e34a..97d2d2e96fd 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/ModelFlatteningLowLevel/modelflatteninglowlevel/rest/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/ModelFlatteningLowLevel/modelflatteninglowlevel/rest/_request_builders.py @@ -66,7 +66,7 @@ def build_put_array_request( accept = "application/json" # Construct URL - url = '/model-flatten/array' + url = "/model-flatten/array" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -125,7 +125,7 @@ def build_get_array_request( accept = "application/json" # Construct URL - url = '/model-flatten/array' + url = "/model-flatten/array" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -175,7 +175,7 @@ def build_put_wrapped_array_request( accept = "application/json" # Construct URL - url = '/model-flatten/wrappedarray' + url = "/model-flatten/wrappedarray" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -221,7 +221,7 @@ def build_get_wrapped_array_request( accept = "application/json" # Construct URL - url = '/model-flatten/wrappedarray' + url = "/model-flatten/wrappedarray" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -286,7 +286,7 @@ def build_put_dictionary_request( accept = "application/json" # Construct URL - url = '/model-flatten/dictionary' + url = "/model-flatten/dictionary" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -345,7 +345,7 @@ def build_get_dictionary_request( accept = "application/json" # Construct URL - url = '/model-flatten/dictionary' + url = "/model-flatten/dictionary" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -455,7 +455,7 @@ def build_put_resource_collection_request( accept = "application/json" # Construct URL - url = '/model-flatten/resourcecollection' + url = "/model-flatten/resourcecollection" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -559,7 +559,7 @@ def build_get_resource_collection_request( accept = "application/json" # Construct URL - url = '/model-flatten/resourcecollection' + url = "/model-flatten/resourcecollection" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -637,7 +637,7 @@ def build_put_simple_product_request( accept = "application/json" # Construct URL - url = '/model-flatten/customFlattening' + url = "/model-flatten/customFlattening" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -717,7 +717,7 @@ def build_post_flattened_simple_product_request( accept = "application/json" # Construct URL - url = '/model-flatten/customFlattening' + url = "/model-flatten/customFlattening" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -800,7 +800,7 @@ def build_put_simple_product_with_grouping_request( accept = "application/json" # Construct URL - url = '/model-flatten/customFlattening/parametergrouping/{name}/' + url = "/model-flatten/customFlattening/parametergrouping/{name}/" path_format_arguments = { "name": _SERIALIZER.url("name", name, 'str'), } diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/MultipleInheritanceLowLevel/multipleinheritancelowlevel/rest/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/MultipleInheritanceLowLevel/multipleinheritancelowlevel/rest/_request_builders.py index d42b3b08306..1583b11da39 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/MultipleInheritanceLowLevel/multipleinheritancelowlevel/rest/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/MultipleInheritanceLowLevel/multipleinheritancelowlevel/rest/_request_builders.py @@ -48,7 +48,7 @@ def build_get_horse_request( accept = "application/json" # Construct URL - url = '/multipleInheritance/horse' + url = "/multipleInheritance/horse" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -96,7 +96,7 @@ def build_put_horse_request( accept = "application/json" # Construct URL - url = '/multipleInheritance/horse' + url = "/multipleInheritance/horse" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -137,7 +137,7 @@ def build_get_pet_request( accept = "application/json" # Construct URL - url = '/multipleInheritance/pet' + url = "/multipleInheritance/pet" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -184,7 +184,7 @@ def build_put_pet_request( accept = "application/json" # Construct URL - url = '/multipleInheritance/pet' + url = "/multipleInheritance/pet" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -226,7 +226,7 @@ def build_get_feline_request( accept = "application/json" # Construct URL - url = '/multipleInheritance/feline' + url = "/multipleInheritance/feline" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -274,7 +274,7 @@ def build_put_feline_request( accept = "application/json" # Construct URL - url = '/multipleInheritance/feline' + url = "/multipleInheritance/feline" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -318,7 +318,7 @@ def build_get_cat_request( accept = "application/json" # Construct URL - url = '/multipleInheritance/cat' + url = "/multipleInheritance/cat" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -370,7 +370,7 @@ def build_put_cat_request( accept = "application/json" # Construct URL - url = '/multipleInheritance/cat' + url = "/multipleInheritance/cat" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -416,7 +416,7 @@ def build_get_kitten_request( accept = "application/json" # Construct URL - url = '/multipleInheritance/kitten' + url = "/multipleInheritance/kitten" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -470,7 +470,7 @@ def build_put_kitten_request( accept = "application/json" # Construct URL - url = '/multipleInheritance/kitten' + url = "/multipleInheritance/kitten" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/NonStringEnumsLowLevel/nonstringenumslowlevel/rest/float/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/NonStringEnumsLowLevel/nonstringenumslowlevel/rest/float/_request_builders.py index 01e33e87b5c..7aa1f69f3ed 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/NonStringEnumsLowLevel/nonstringenumslowlevel/rest/float/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/NonStringEnumsLowLevel/nonstringenumslowlevel/rest/float/_request_builders.py @@ -53,7 +53,7 @@ def build_put_request( accept = "application/json" # Construct URL - url = '/nonStringEnums/float/put' + url = "/nonStringEnums/float/put" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -92,7 +92,7 @@ def build_get_request( accept = "application/json" # Construct URL - url = '/nonStringEnums/float/get' + url = "/nonStringEnums/float/get" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/NonStringEnumsLowLevel/nonstringenumslowlevel/rest/int/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/NonStringEnumsLowLevel/nonstringenumslowlevel/rest/int/_request_builders.py index 3e50200712d..a33d3ff30b3 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/NonStringEnumsLowLevel/nonstringenumslowlevel/rest/int/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/NonStringEnumsLowLevel/nonstringenumslowlevel/rest/int/_request_builders.py @@ -53,7 +53,7 @@ def build_put_request( accept = "application/json" # Construct URL - url = '/nonStringEnums/int/put' + url = "/nonStringEnums/int/put" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -92,7 +92,7 @@ def build_get_request( accept = "application/json" # Construct URL - url = '/nonStringEnums/int/get' + url = "/nonStringEnums/int/get" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/ObjectTypeLowLevel/objecttypelowlevel/rest/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/ObjectTypeLowLevel/objecttypelowlevel/rest/_request_builders.py index 62dd4794260..74f36ac9047 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/ObjectTypeLowLevel/objecttypelowlevel/rest/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/ObjectTypeLowLevel/objecttypelowlevel/rest/_request_builders.py @@ -40,7 +40,7 @@ def build_get_request( accept = "application/json" # Construct URL - url = '/objectType/get' + url = "/objectType/get" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -88,7 +88,7 @@ def build_put_request( accept = "application/json" # Construct URL - url = '/objectType/put' + url = "/objectType/put" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/ParameterFlatteningLowLevel/parameterflatteninglowlevel/rest/availability_sets/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/ParameterFlatteningLowLevel/parameterflatteninglowlevel/rest/availability_sets/_request_builders.py index f41796ec03e..b4486cfd7d0 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/ParameterFlatteningLowLevel/parameterflatteninglowlevel/rest/availability_sets/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/ParameterFlatteningLowLevel/parameterflatteninglowlevel/rest/availability_sets/_request_builders.py @@ -65,7 +65,7 @@ def build_update_request( content_type = kwargs.pop('content_type', None) # type: Optional[str] # Construct URL - url = '/parameterFlattening/{resourceGroupName}/{availabilitySetName}' + url = "/parameterFlattening/{resourceGroupName}/{availabilitySetName}" path_format_arguments = { "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str'), "availabilitySetName": _SERIALIZER.url("avset", avset, 'str', max_length=80, min_length=0), diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/ParameterizedEndpointLowLevel/parameterizedendpointlowlevel/rest/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/ParameterizedEndpointLowLevel/parameterizedendpointlowlevel/rest/_request_builders.py index ca3ca3c7eed..cc8156bd05f 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/ParameterizedEndpointLowLevel/parameterizedendpointlowlevel/rest/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/ParameterizedEndpointLowLevel/parameterizedendpointlowlevel/rest/_request_builders.py @@ -35,7 +35,7 @@ def build_get_request( """ # Construct URL - url = '/parameterizedEndpoint/get' + url = "/parameterizedEndpoint/get" return HttpRequest( method="GET", diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/ReportLowLevel/reportlowlevel/rest/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/ReportLowLevel/reportlowlevel/rest/_request_builders.py index 2aaa9b9fd8b..078b24c0add 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/ReportLowLevel/reportlowlevel/rest/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/ReportLowLevel/reportlowlevel/rest/_request_builders.py @@ -50,7 +50,7 @@ def build_get_report_request( accept = "application/json" # Construct URL - url = '/report' + url = "/report" # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -101,7 +101,7 @@ def build_get_optional_report_request( accept = "application/json" # Construct URL - url = '/report/optional' + url = "/report/optional" # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/RequiredOptionalLowLevel/requiredoptionallowlevel/rest/explicit/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/RequiredOptionalLowLevel/requiredoptionallowlevel/rest/explicit/_request_builders.py index 9ed3559bdee..531c2f76591 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/RequiredOptionalLowLevel/requiredoptionallowlevel/rest/explicit/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/RequiredOptionalLowLevel/requiredoptionallowlevel/rest/explicit/_request_builders.py @@ -43,7 +43,7 @@ def build_put_optional_binary_body_request( accept = "application/json" # Construct URL - url = '/reqopt/explicit/optional/binary-body' + url = "/reqopt/explicit/optional/binary-body" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -81,7 +81,7 @@ def build_put_required_binary_body_request( accept = "application/json" # Construct URL - url = '/reqopt/explicit/required/binary-body' + url = "/reqopt/explicit/required/binary-body" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -129,7 +129,7 @@ def build_post_required_integer_parameter_request( accept = "application/json" # Construct URL - url = '/reqopt/requied/integer/parameter' + url = "/reqopt/requied/integer/parameter" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -176,7 +176,7 @@ def build_post_optional_integer_parameter_request( accept = "application/json" # Construct URL - url = '/reqopt/optional/integer/parameter' + url = "/reqopt/optional/integer/parameter" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -226,7 +226,7 @@ def build_post_required_integer_property_request( accept = "application/json" # Construct URL - url = '/reqopt/requied/integer/property' + url = "/reqopt/requied/integer/property" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -275,7 +275,7 @@ def build_post_optional_integer_property_request( accept = "application/json" # Construct URL - url = '/reqopt/optional/integer/property' + url = "/reqopt/optional/integer/property" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -313,7 +313,7 @@ def build_post_required_integer_header_request( accept = "application/json" # Construct URL - url = '/reqopt/requied/integer/header' + url = "/reqopt/requied/integer/header" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -349,7 +349,7 @@ def build_post_optional_integer_header_request( accept = "application/json" # Construct URL - url = '/reqopt/optional/integer/header' + url = "/reqopt/optional/integer/header" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -397,7 +397,7 @@ def build_post_required_string_parameter_request( accept = "application/json" # Construct URL - url = '/reqopt/requied/string/parameter' + url = "/reqopt/requied/string/parameter" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -444,7 +444,7 @@ def build_post_optional_string_parameter_request( accept = "application/json" # Construct URL - url = '/reqopt/optional/string/parameter' + url = "/reqopt/optional/string/parameter" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -494,7 +494,7 @@ def build_post_required_string_property_request( accept = "application/json" # Construct URL - url = '/reqopt/requied/string/property' + url = "/reqopt/requied/string/property" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -543,7 +543,7 @@ def build_post_optional_string_property_request( accept = "application/json" # Construct URL - url = '/reqopt/optional/string/property' + url = "/reqopt/optional/string/property" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -581,7 +581,7 @@ def build_post_required_string_header_request( accept = "application/json" # Construct URL - url = '/reqopt/requied/string/header' + url = "/reqopt/requied/string/header" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -617,7 +617,7 @@ def build_post_optional_string_header_request( accept = "application/json" # Construct URL - url = '/reqopt/optional/string/header' + url = "/reqopt/optional/string/header" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -668,7 +668,7 @@ def build_post_required_class_parameter_request( accept = "application/json" # Construct URL - url = '/reqopt/requied/class/parameter' + url = "/reqopt/requied/class/parameter" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -718,7 +718,7 @@ def build_post_optional_class_parameter_request( accept = "application/json" # Construct URL - url = '/reqopt/optional/class/parameter' + url = "/reqopt/optional/class/parameter" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -771,7 +771,7 @@ def build_post_required_class_property_request( accept = "application/json" # Construct URL - url = '/reqopt/requied/class/property' + url = "/reqopt/requied/class/property" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -823,7 +823,7 @@ def build_post_optional_class_property_request( accept = "application/json" # Construct URL - url = '/reqopt/optional/class/property' + url = "/reqopt/optional/class/property" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -873,7 +873,7 @@ def build_post_required_array_parameter_request( accept = "application/json" # Construct URL - url = '/reqopt/requied/array/parameter' + url = "/reqopt/requied/array/parameter" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -922,7 +922,7 @@ def build_post_optional_array_parameter_request( accept = "application/json" # Construct URL - url = '/reqopt/optional/array/parameter' + url = "/reqopt/optional/array/parameter" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -974,7 +974,7 @@ def build_post_required_array_property_request( accept = "application/json" # Construct URL - url = '/reqopt/requied/array/property' + url = "/reqopt/requied/array/property" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1025,7 +1025,7 @@ def build_post_optional_array_property_request( accept = "application/json" # Construct URL - url = '/reqopt/optional/array/property' + url = "/reqopt/optional/array/property" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1063,7 +1063,7 @@ def build_post_required_array_header_request( accept = "application/json" # Construct URL - url = '/reqopt/requied/array/header' + url = "/reqopt/requied/array/header" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1099,7 +1099,7 @@ def build_post_optional_array_header_request( accept = "application/json" # Construct URL - url = '/reqopt/optional/array/header' + url = "/reqopt/optional/array/header" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/RequiredOptionalLowLevel/requiredoptionallowlevel/rest/implicit/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/RequiredOptionalLowLevel/requiredoptionallowlevel/rest/implicit/_request_builders.py index 23d56492ded..ac6d6776470 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/RequiredOptionalLowLevel/requiredoptionallowlevel/rest/implicit/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/RequiredOptionalLowLevel/requiredoptionallowlevel/rest/implicit/_request_builders.py @@ -43,7 +43,7 @@ def build_get_required_path_request( accept = "application/json" # Construct URL - url = '/reqopt/implicit/required/path/{pathParameter}' + url = "/reqopt/implicit/required/path/{pathParameter}" path_format_arguments = { "pathParameter": _SERIALIZER.url("path_parameter", path_parameter, 'str'), } @@ -83,7 +83,7 @@ def build_put_optional_query_request( accept = "application/json" # Construct URL - url = '/reqopt/implicit/optional/query' + url = "/reqopt/implicit/optional/query" # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -124,7 +124,7 @@ def build_put_optional_header_request( accept = "application/json" # Construct URL - url = '/reqopt/implicit/optional/header' + url = "/reqopt/implicit/optional/header" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -171,7 +171,7 @@ def build_put_optional_body_request( accept = "application/json" # Construct URL - url = '/reqopt/implicit/optional/body' + url = "/reqopt/implicit/optional/body" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -209,7 +209,7 @@ def build_put_optional_binary_body_request( accept = "application/json" # Construct URL - url = '/reqopt/implicit/optional/binary-body' + url = "/reqopt/implicit/optional/binary-body" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -245,7 +245,7 @@ def build_get_required_global_path_request( accept = "application/json" # Construct URL - url = '/reqopt/global/required/path/{required-global-path}' + url = "/reqopt/global/required/path/{required-global-path}" path_format_arguments = { "required-global-path": _SERIALIZER.url("required_global_path", required_global_path, 'str'), } @@ -285,7 +285,7 @@ def build_get_required_global_query_request( accept = "application/json" # Construct URL - url = '/reqopt/global/required/query' + url = "/reqopt/global/required/query" # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -325,7 +325,7 @@ def build_get_optional_global_query_request( accept = "application/json" # Construct URL - url = '/reqopt/global/optional/query' + url = "/reqopt/global/optional/query" # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/ReservedWordsLowLevel/reservedwordslowlevel/rest/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/ReservedWordsLowLevel/reservedwordslowlevel/rest/_request_builders.py index 8d108b88779..cbab3489d5b 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/ReservedWordsLowLevel/reservedwordslowlevel/rest/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/ReservedWordsLowLevel/reservedwordslowlevel/rest/_request_builders.py @@ -44,7 +44,7 @@ def build_operation_with_content_param_request( accept = "application/json" # Construct URL - url = '/reservedWords/operation/content' + url = "/reservedWords/operation/content" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -91,7 +91,7 @@ def build_operation_with_json_param_request( accept = "application/json" # Construct URL - url = '/reservedWords/operation/json' + url = "/reservedWords/operation/json" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -141,7 +141,7 @@ def build_operation_with_data_param_request( accept = "application/json" # Construct URL - url = '/reservedWords/operation/data' + url = "/reservedWords/operation/data" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -191,7 +191,7 @@ def build_operation_with_files_param_request( accept = "application/json" # Construct URL - url = '/reservedWords/operation/files' + url = "/reservedWords/operation/files" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/ReservedWordsLowLevel/reservedwordslowlevel/rest/import_builders/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/ReservedWordsLowLevel/reservedwordslowlevel/rest/import_builders/_request_builders.py index 281b08ff693..6f005093d8b 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/ReservedWordsLowLevel/reservedwordslowlevel/rest/import_builders/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/ReservedWordsLowLevel/reservedwordslowlevel/rest/import_builders/_request_builders.py @@ -40,7 +40,7 @@ def build_operation_one_request( accept = "application/json" # Construct URL - url = '/reservedWords/operationGroup/import' + url = "/reservedWords/operationGroup/import" # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/UrlLowLevel/urllowlevel/rest/path_items/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/UrlLowLevel/urllowlevel/rest/path_items/_request_builders.py index dc9356dbee1..206c228ffe9 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/UrlLowLevel/urllowlevel/rest/path_items/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/UrlLowLevel/urllowlevel/rest/path_items/_request_builders.py @@ -59,7 +59,7 @@ def build_get_all_with_values_request( accept = "application/json" # Construct URL - url = '/pathitem/nullable/globalStringPath/{globalStringPath}/pathItemStringPath/{pathItemStringPath}/localStringPath/{localStringPath}/globalStringQuery/pathItemStringQuery/localStringQuery' # pylint: disable=line-too-long + url = "/pathitem/nullable/globalStringPath/{globalStringPath}/pathItemStringPath/{pathItemStringPath}/localStringPath/{localStringPath}/globalStringQuery/pathItemStringQuery/localStringQuery" # pylint: disable=line-too-long path_format_arguments = { "pathItemStringPath": _SERIALIZER.url("path_item_string_path", path_item_string_path, 'str'), "globalStringPath": _SERIALIZER.url("global_string_path", global_string_path, 'str'), @@ -129,7 +129,7 @@ def build_get_global_query_null_request( accept = "application/json" # Construct URL - url = '/pathitem/nullable/globalStringPath/{globalStringPath}/pathItemStringPath/{pathItemStringPath}/localStringPath/{localStringPath}/null/pathItemStringQuery/localStringQuery' # pylint: disable=line-too-long + url = "/pathitem/nullable/globalStringPath/{globalStringPath}/pathItemStringPath/{pathItemStringPath}/localStringPath/{localStringPath}/null/pathItemStringQuery/localStringQuery" # pylint: disable=line-too-long path_format_arguments = { "pathItemStringPath": _SERIALIZER.url("path_item_string_path", path_item_string_path, 'str'), "globalStringPath": _SERIALIZER.url("global_string_path", global_string_path, 'str'), @@ -199,7 +199,7 @@ def build_get_global_and_local_query_null_request( accept = "application/json" # Construct URL - url = '/pathitem/nullable/globalStringPath/{globalStringPath}/pathItemStringPath/{pathItemStringPath}/localStringPath/{localStringPath}/null/pathItemStringQuery/null' # pylint: disable=line-too-long + url = "/pathitem/nullable/globalStringPath/{globalStringPath}/pathItemStringPath/{pathItemStringPath}/localStringPath/{localStringPath}/null/pathItemStringQuery/null" # pylint: disable=line-too-long path_format_arguments = { "pathItemStringPath": _SERIALIZER.url("path_item_string_path", path_item_string_path, 'str'), "globalStringPath": _SERIALIZER.url("global_string_path", global_string_path, 'str'), @@ -268,7 +268,7 @@ def build_get_local_path_item_query_null_request( accept = "application/json" # Construct URL - url = '/pathitem/nullable/globalStringPath/{globalStringPath}/pathItemStringPath/{pathItemStringPath}/localStringPath/{localStringPath}/globalStringQuery/null/null' # pylint: disable=line-too-long + url = "/pathitem/nullable/globalStringPath/{globalStringPath}/pathItemStringPath/{pathItemStringPath}/localStringPath/{localStringPath}/globalStringQuery/null/null" # pylint: disable=line-too-long path_format_arguments = { "pathItemStringPath": _SERIALIZER.url("path_item_string_path", path_item_string_path, 'str'), "globalStringPath": _SERIALIZER.url("global_string_path", global_string_path, 'str'), diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/UrlLowLevel/urllowlevel/rest/paths/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/UrlLowLevel/urllowlevel/rest/paths/_request_builders.py index dbc35d4061d..1025c6b3bc9 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/UrlLowLevel/urllowlevel/rest/paths/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/UrlLowLevel/urllowlevel/rest/paths/_request_builders.py @@ -43,7 +43,7 @@ def build_get_boolean_true_request( accept = "application/json" # Construct URL - url = '/paths/bool/true/{boolPath}' + url = "/paths/bool/true/{boolPath}" path_format_arguments = { "boolPath": _SERIALIZER.url("bool_path", bool_path, 'bool'), } @@ -84,7 +84,7 @@ def build_get_boolean_false_request( accept = "application/json" # Construct URL - url = '/paths/bool/false/{boolPath}' + url = "/paths/bool/false/{boolPath}" path_format_arguments = { "boolPath": _SERIALIZER.url("bool_path", bool_path, 'bool'), } @@ -125,7 +125,7 @@ def build_get_int_one_million_request( accept = "application/json" # Construct URL - url = '/paths/int/1000000/{intPath}' + url = "/paths/int/1000000/{intPath}" path_format_arguments = { "intPath": _SERIALIZER.url("int_path", int_path, 'int'), } @@ -166,7 +166,7 @@ def build_get_int_negative_one_million_request( accept = "application/json" # Construct URL - url = '/paths/int/-1000000/{intPath}' + url = "/paths/int/-1000000/{intPath}" path_format_arguments = { "intPath": _SERIALIZER.url("int_path", int_path, 'int'), } @@ -207,7 +207,7 @@ def build_get_ten_billion_request( accept = "application/json" # Construct URL - url = '/paths/long/10000000000/{longPath}' + url = "/paths/long/10000000000/{longPath}" path_format_arguments = { "longPath": _SERIALIZER.url("long_path", long_path, 'long'), } @@ -248,7 +248,7 @@ def build_get_negative_ten_billion_request( accept = "application/json" # Construct URL - url = '/paths/long/-10000000000/{longPath}' + url = "/paths/long/-10000000000/{longPath}" path_format_arguments = { "longPath": _SERIALIZER.url("long_path", long_path, 'long'), } @@ -289,7 +289,7 @@ def build_float_scientific_positive_request( accept = "application/json" # Construct URL - url = '/paths/float/1.034E+20/{floatPath}' + url = "/paths/float/1.034E+20/{floatPath}" path_format_arguments = { "floatPath": _SERIALIZER.url("float_path", float_path, 'float'), } @@ -330,7 +330,7 @@ def build_float_scientific_negative_request( accept = "application/json" # Construct URL - url = '/paths/float/-1.034E-20/{floatPath}' + url = "/paths/float/-1.034E-20/{floatPath}" path_format_arguments = { "floatPath": _SERIALIZER.url("float_path", float_path, 'float'), } @@ -371,7 +371,7 @@ def build_double_decimal_positive_request( accept = "application/json" # Construct URL - url = '/paths/double/9999999.999/{doublePath}' + url = "/paths/double/9999999.999/{doublePath}" path_format_arguments = { "doublePath": _SERIALIZER.url("double_path", double_path, 'float'), } @@ -412,7 +412,7 @@ def build_double_decimal_negative_request( accept = "application/json" # Construct URL - url = '/paths/double/-9999999.999/{doublePath}' + url = "/paths/double/-9999999.999/{doublePath}" path_format_arguments = { "doublePath": _SERIALIZER.url("double_path", double_path, 'float'), } @@ -453,7 +453,7 @@ def build_string_unicode_request( accept = "application/json" # Construct URL - url = '/paths/string/unicode/{stringPath}' + url = "/paths/string/unicode/{stringPath}" path_format_arguments = { "stringPath": _SERIALIZER.url("string_path", string_path, 'str'), } @@ -495,7 +495,7 @@ def build_string_url_encoded_request( accept = "application/json" # Construct URL - url = '/paths/string/begin%21%2A%27%28%29%3B%3A%40%20%26%3D%2B%24%2C%2F%3F%23%5B%5Dend/{stringPath}' + url = "/paths/string/begin%21%2A%27%28%29%3B%3A%40%20%26%3D%2B%24%2C%2F%3F%23%5B%5Dend/{stringPath}" path_format_arguments = { "stringPath": _SERIALIZER.url("string_path", string_path, 'str'), } @@ -539,7 +539,7 @@ def build_string_url_non_encoded_request( accept = "application/json" # Construct URL - url = '/paths/string/begin!*\'();:@&=+$,end/{stringPath}' + url = "/paths/string/begin!*\'();:@&=+$,end/{stringPath}" path_format_arguments = { "stringPath": _SERIALIZER.url("string_path", string_path, 'str', skip_quote=True), } @@ -580,7 +580,7 @@ def build_string_empty_request( accept = "application/json" # Construct URL - url = '/paths/string/empty/{stringPath}' + url = "/paths/string/empty/{stringPath}" path_format_arguments = { "stringPath": _SERIALIZER.url("string_path", string_path, 'str'), } @@ -619,7 +619,7 @@ def build_string_null_request( accept = "application/json" # Construct URL - url = '/paths/string/null/{stringPath}' + url = "/paths/string/null/{stringPath}" path_format_arguments = { "stringPath": _SERIALIZER.url("string_path", string_path, 'str'), } @@ -659,7 +659,7 @@ def build_enum_valid_request( accept = "application/json" # Construct URL - url = '/paths/enum/green%20color/{enumPath}' + url = "/paths/enum/green%20color/{enumPath}" path_format_arguments = { "enumPath": _SERIALIZER.url("enum_path", enum_path, 'str'), } @@ -699,7 +699,7 @@ def build_enum_null_request( accept = "application/json" # Construct URL - url = '/paths/string/null/{enumPath}' + url = "/paths/string/null/{enumPath}" path_format_arguments = { "enumPath": _SERIALIZER.url("enum_path", enum_path, 'str'), } @@ -738,7 +738,7 @@ def build_byte_multi_byte_request( accept = "application/json" # Construct URL - url = '/paths/byte/multibyte/{bytePath}' + url = "/paths/byte/multibyte/{bytePath}" path_format_arguments = { "bytePath": _SERIALIZER.url("byte_path", byte_path, 'bytearray'), } @@ -779,7 +779,7 @@ def build_byte_empty_request( accept = "application/json" # Construct URL - url = '/paths/byte/empty/{bytePath}' + url = "/paths/byte/empty/{bytePath}" path_format_arguments = { "bytePath": _SERIALIZER.url("byte_path", byte_path, 'bytearray'), } @@ -818,7 +818,7 @@ def build_byte_null_request( accept = "application/json" # Construct URL - url = '/paths/byte/null/{bytePath}' + url = "/paths/byte/null/{bytePath}" path_format_arguments = { "bytePath": _SERIALIZER.url("byte_path", byte_path, 'bytearray'), } @@ -859,7 +859,7 @@ def build_date_valid_request( accept = "application/json" # Construct URL - url = '/paths/date/2012-01-01/{datePath}' + url = "/paths/date/2012-01-01/{datePath}" path_format_arguments = { "datePath": _SERIALIZER.url("date_path", date_path, 'date'), } @@ -899,7 +899,7 @@ def build_date_null_request( accept = "application/json" # Construct URL - url = '/paths/date/null/{datePath}' + url = "/paths/date/null/{datePath}" path_format_arguments = { "datePath": _SERIALIZER.url("date_path", date_path, 'date'), } @@ -941,7 +941,7 @@ def build_date_time_valid_request( accept = "application/json" # Construct URL - url = '/paths/datetime/2012-01-01T01%3A01%3A01Z/{dateTimePath}' + url = "/paths/datetime/2012-01-01T01%3A01%3A01Z/{dateTimePath}" path_format_arguments = { "dateTimePath": _SERIALIZER.url("date_time_path", date_time_path, 'iso-8601'), } @@ -980,7 +980,7 @@ def build_date_time_null_request( accept = "application/json" # Construct URL - url = '/paths/datetime/null/{dateTimePath}' + url = "/paths/datetime/null/{dateTimePath}" path_format_arguments = { "dateTimePath": _SERIALIZER.url("date_time_path", date_time_path, 'iso-8601'), } @@ -1019,7 +1019,7 @@ def build_base64_url_request( accept = "application/json" # Construct URL - url = '/paths/string/bG9yZW0/{base64UrlPath}' + url = "/paths/string/bG9yZW0/{base64UrlPath}" path_format_arguments = { "base64UrlPath": _SERIALIZER.url("base64_url_path", base64_url_path, 'base64'), } @@ -1060,7 +1060,7 @@ def build_array_csv_in_path_request( accept = "application/json" # Construct URL - url = '/paths/array/ArrayPath1%2cbegin%21%2A%27%28%29%3B%3A%40%20%26%3D%2B%24%2C%2F%3F%23%5B%5Dend%2c%2c/{arrayPath}' + url = "/paths/array/ArrayPath1%2cbegin%21%2A%27%28%29%3B%3A%40%20%26%3D%2B%24%2C%2F%3F%23%5B%5Dend%2c%2c/{arrayPath}" path_format_arguments = { "arrayPath": _SERIALIZER.url("array_path", array_path, '[str]', div=','), } @@ -1099,7 +1099,7 @@ def build_unix_time_url_request( accept = "application/json" # Construct URL - url = '/paths/int/1460505600/{unixTimeUrlPath}' + url = "/paths/int/1460505600/{unixTimeUrlPath}" path_format_arguments = { "unixTimeUrlPath": _SERIALIZER.url("unix_time_url_path", unix_time_url_path, 'unix-time'), } diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/UrlLowLevel/urllowlevel/rest/queries/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/UrlLowLevel/urllowlevel/rest/queries/_request_builders.py index 41341abf2cf..6b579171f62 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/UrlLowLevel/urllowlevel/rest/queries/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/UrlLowLevel/urllowlevel/rest/queries/_request_builders.py @@ -41,7 +41,7 @@ def build_get_boolean_true_request( accept = "application/json" # Construct URL - url = '/queries/bool/true' + url = "/queries/bool/true" # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -82,7 +82,7 @@ def build_get_boolean_false_request( accept = "application/json" # Construct URL - url = '/queries/bool/false' + url = "/queries/bool/false" # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -122,7 +122,7 @@ def build_get_boolean_null_request( accept = "application/json" # Construct URL - url = '/queries/bool/null' + url = "/queries/bool/null" # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -164,7 +164,7 @@ def build_get_int_one_million_request( accept = "application/json" # Construct URL - url = '/queries/int/1000000' + url = "/queries/int/1000000" # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -205,7 +205,7 @@ def build_get_int_negative_one_million_request( accept = "application/json" # Construct URL - url = '/queries/int/-1000000' + url = "/queries/int/-1000000" # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -245,7 +245,7 @@ def build_get_int_null_request( accept = "application/json" # Construct URL - url = '/queries/int/null' + url = "/queries/int/null" # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -287,7 +287,7 @@ def build_get_ten_billion_request( accept = "application/json" # Construct URL - url = '/queries/long/10000000000' + url = "/queries/long/10000000000" # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -328,7 +328,7 @@ def build_get_negative_ten_billion_request( accept = "application/json" # Construct URL - url = '/queries/long/-10000000000' + url = "/queries/long/-10000000000" # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -368,7 +368,7 @@ def build_get_long_null_request( accept = "application/json" # Construct URL - url = '/queries/long/null' + url = "/queries/long/null" # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -410,7 +410,7 @@ def build_float_scientific_positive_request( accept = "application/json" # Construct URL - url = '/queries/float/1.034E+20' + url = "/queries/float/1.034E+20" # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -451,7 +451,7 @@ def build_float_scientific_negative_request( accept = "application/json" # Construct URL - url = '/queries/float/-1.034E-20' + url = "/queries/float/-1.034E-20" # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -491,7 +491,7 @@ def build_float_null_request( accept = "application/json" # Construct URL - url = '/queries/float/null' + url = "/queries/float/null" # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -533,7 +533,7 @@ def build_double_decimal_positive_request( accept = "application/json" # Construct URL - url = '/queries/double/9999999.999' + url = "/queries/double/9999999.999" # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -574,7 +574,7 @@ def build_double_decimal_negative_request( accept = "application/json" # Construct URL - url = '/queries/double/-9999999.999' + url = "/queries/double/-9999999.999" # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -614,7 +614,7 @@ def build_double_null_request( accept = "application/json" # Construct URL - url = '/queries/double/null' + url = "/queries/double/null" # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -656,7 +656,7 @@ def build_string_unicode_request( accept = "application/json" # Construct URL - url = '/queries/string/unicode/' + url = "/queries/string/unicode/" # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -698,7 +698,7 @@ def build_string_url_encoded_request( accept = "application/json" # Construct URL - url = '/queries/string/begin%21%2A%27%28%29%3B%3A%40%20%26%3D%2B%24%2C%2F%3F%23%5B%5Dend' + url = "/queries/string/begin%21%2A%27%28%29%3B%3A%40%20%26%3D%2B%24%2C%2F%3F%23%5B%5Dend" # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -739,7 +739,7 @@ def build_string_empty_request( accept = "application/json" # Construct URL - url = '/queries/string/empty' + url = "/queries/string/empty" # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -779,7 +779,7 @@ def build_string_null_request( accept = "application/json" # Construct URL - url = '/queries/string/null' + url = "/queries/string/null" # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -821,7 +821,7 @@ def build_enum_valid_request( accept = "application/json" # Construct URL - url = '/queries/enum/green%20color' + url = "/queries/enum/green%20color" # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -863,7 +863,7 @@ def build_enum_null_request( accept = "application/json" # Construct URL - url = '/queries/enum/null' + url = "/queries/enum/null" # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -904,7 +904,7 @@ def build_byte_multi_byte_request( accept = "application/json" # Construct URL - url = '/queries/byte/multibyte' + url = "/queries/byte/multibyte" # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -946,7 +946,7 @@ def build_byte_empty_request( accept = "application/json" # Construct URL - url = '/queries/byte/empty' + url = "/queries/byte/empty" # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -986,7 +986,7 @@ def build_byte_null_request( accept = "application/json" # Construct URL - url = '/queries/byte/null' + url = "/queries/byte/null" # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -1028,7 +1028,7 @@ def build_date_valid_request( accept = "application/json" # Construct URL - url = '/queries/date/2012-01-01' + url = "/queries/date/2012-01-01" # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -1068,7 +1068,7 @@ def build_date_null_request( accept = "application/json" # Construct URL - url = '/queries/date/null' + url = "/queries/date/null" # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -1111,7 +1111,7 @@ def build_date_time_valid_request( accept = "application/json" # Construct URL - url = '/queries/datetime/2012-01-01T01%3A01%3A01Z' + url = "/queries/datetime/2012-01-01T01%3A01%3A01Z" # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -1151,7 +1151,7 @@ def build_date_time_null_request( accept = "application/json" # Construct URL - url = '/queries/datetime/null' + url = "/queries/datetime/null" # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -1194,7 +1194,7 @@ def build_array_string_csv_valid_request( accept = "application/json" # Construct URL - url = '/queries/array/csv/string/valid' + url = "/queries/array/csv/string/valid" # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -1235,7 +1235,7 @@ def build_array_string_csv_null_request( accept = "application/json" # Construct URL - url = '/queries/array/csv/string/null' + url = "/queries/array/csv/string/null" # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -1276,7 +1276,7 @@ def build_array_string_csv_empty_request( accept = "application/json" # Construct URL - url = '/queries/array/csv/string/empty' + url = "/queries/array/csv/string/empty" # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -1318,7 +1318,7 @@ def build_array_string_no_collection_format_empty_request( accept = "application/json" # Construct URL - url = '/queries/array/none/string/empty' + url = "/queries/array/none/string/empty" # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -1361,7 +1361,7 @@ def build_array_string_ssv_valid_request( accept = "application/json" # Construct URL - url = '/queries/array/ssv/string/valid' + url = "/queries/array/ssv/string/valid" # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -1404,7 +1404,7 @@ def build_array_string_tsv_valid_request( accept = "application/json" # Construct URL - url = '/queries/array/tsv/string/valid' + url = "/queries/array/tsv/string/valid" # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -1447,7 +1447,7 @@ def build_array_string_pipes_valid_request( accept = "application/json" # Construct URL - url = '/queries/array/pipes/string/valid' + url = "/queries/array/pipes/string/valid" # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/UrlMultiCollectionFormatLowLevel/urlmulticollectionformatlowlevel/rest/queries/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/UrlMultiCollectionFormatLowLevel/urlmulticollectionformatlowlevel/rest/queries/_request_builders.py index 4751a8d2f58..19bc06c6021 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/UrlMultiCollectionFormatLowLevel/urlmulticollectionformatlowlevel/rest/queries/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/UrlMultiCollectionFormatLowLevel/urlmulticollectionformatlowlevel/rest/queries/_request_builders.py @@ -40,7 +40,7 @@ def build_array_string_multi_null_request( accept = "application/json" # Construct URL - url = '/queries/array/multi/string/null' + url = "/queries/array/multi/string/null" # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -81,7 +81,7 @@ def build_array_string_multi_empty_request( accept = "application/json" # Construct URL - url = '/queries/array/multi/string/empty' + url = "/queries/array/multi/string/empty" # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -124,7 +124,7 @@ def build_array_string_multi_valid_request( accept = "application/json" # Construct URL - url = '/queries/array/multi/string/valid' + url = "/queries/array/multi/string/valid" # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/ValidationLowLevel/validationlowlevel/rest/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/ValidationLowLevel/validationlowlevel/rest/_request_builders.py index 8dfe5edd53c..b432e190f90 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/ValidationLowLevel/validationlowlevel/rest/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/ValidationLowLevel/validationlowlevel/rest/_request_builders.py @@ -81,7 +81,7 @@ def build_validation_of_method_parameters_request( accept = "application/json" # Construct URL - url = '/fakepath/{subscriptionId}/{resourceGroupName}/{id}' + url = "/fakepath/{subscriptionId}/{resourceGroupName}/{id}" path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str', max_length=10, min_length=3, pattern=r'[a-zA-Z0-9\']+'), @@ -199,7 +199,7 @@ def build_validation_of_body_request( accept = "application/json" # Construct URL - url = '/fakepath/{subscriptionId}/{resourceGroupName}/{id}' + url = "/fakepath/{subscriptionId}/{resourceGroupName}/{id}" path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str', max_length=10, min_length=3, pattern=r'[a-zA-Z0-9]+'), @@ -248,7 +248,7 @@ def build_get_with_constant_in_path_request( constant_param = kwargs.pop('constant_param', "constant") # type: str # Construct URL - url = '/validation/constantsInPath/{constantParam}/value' + url = "/validation/constantsInPath/{constantParam}/value" path_format_arguments = { "constantParam": _SERIALIZER.url("constant_param", constant_param, 'str'), } @@ -348,7 +348,7 @@ def build_post_with_constant_in_body_request( accept = "application/json" # Construct URL - url = '/validation/constantsInPath/{constantParam}/value' + url = "/validation/constantsInPath/{constantParam}/value" path_format_arguments = { "constantParam": _SERIALIZER.url("constant_param", constant_param, 'str'), } diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/XmlLowLevel/xmlservicelowlevel/rest/xml/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/XmlLowLevel/xmlservicelowlevel/rest/xml/_request_builders.py index c3d50e7e710..541843169bc 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/XmlLowLevel/xmlservicelowlevel/rest/xml/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/XmlLowLevel/xmlservicelowlevel/rest/xml/_request_builders.py @@ -50,7 +50,7 @@ def build_get_complex_type_ref_no_meta_request( accept = "application/xml" # Construct URL - url = '/xml/complex-type-ref-no-meta' + url = "/xml/complex-type-ref-no-meta" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -85,7 +85,7 @@ def build_put_complex_type_ref_no_meta_request( content_type = kwargs.pop('content_type', None) # type: Optional[str] # Construct URL - url = '/xml/complex-type-ref-no-meta' + url = "/xml/complex-type-ref-no-meta" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -128,7 +128,7 @@ def build_get_complex_type_ref_with_meta_request( accept = "application/xml" # Construct URL - url = '/xml/complex-type-ref-with-meta' + url = "/xml/complex-type-ref-with-meta" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -163,7 +163,7 @@ def build_put_complex_type_ref_with_meta_request( content_type = kwargs.pop('content_type', None) # type: Optional[str] # Construct URL - url = '/xml/complex-type-ref-with-meta' + url = "/xml/complex-type-ref-with-meta" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -214,7 +214,7 @@ def build_get_simple_request( accept = "application/xml" # Construct URL - url = '/xml/simple' + url = "/xml/simple" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -250,7 +250,7 @@ def build_put_simple_request( accept = "application/xml" # Construct URL - url = '/xml/simple' + url = "/xml/simple" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -296,7 +296,7 @@ def build_get_wrapped_lists_request( accept = "application/xml" # Construct URL - url = '/xml/wrapped-lists' + url = "/xml/wrapped-lists" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -332,7 +332,7 @@ def build_put_wrapped_lists_request( accept = "application/xml" # Construct URL - url = '/xml/wrapped-lists' + url = "/xml/wrapped-lists" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -364,7 +364,7 @@ def build_get_headers_request( """ # Construct URL - url = '/xml/headers' + url = "/xml/headers" return HttpRequest( method="GET", @@ -409,7 +409,7 @@ def build_get_empty_list_request( accept = "application/xml" # Construct URL - url = '/xml/empty-list' + url = "/xml/empty-list" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -444,7 +444,7 @@ def build_put_empty_list_request( content_type = kwargs.pop('content_type', None) # type: Optional[str] # Construct URL - url = '/xml/empty-list' + url = "/xml/empty-list" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -489,7 +489,7 @@ def build_get_empty_wrapped_lists_request( accept = "application/xml" # Construct URL - url = '/xml/empty-wrapped-lists' + url = "/xml/empty-wrapped-lists" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -524,7 +524,7 @@ def build_put_empty_wrapped_lists_request( content_type = kwargs.pop('content_type', None) # type: Optional[str] # Construct URL - url = '/xml/empty-wrapped-lists' + url = "/xml/empty-wrapped-lists" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -569,7 +569,7 @@ def build_get_root_list_request( accept = "application/xml" # Construct URL - url = '/xml/root-list' + url = "/xml/root-list" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -604,7 +604,7 @@ def build_put_root_list_request( content_type = kwargs.pop('content_type', None) # type: Optional[str] # Construct URL - url = '/xml/root-list' + url = "/xml/root-list" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -649,7 +649,7 @@ def build_get_root_list_single_item_request( accept = "application/xml" # Construct URL - url = '/xml/root-list-single-item' + url = "/xml/root-list-single-item" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -684,7 +684,7 @@ def build_put_root_list_single_item_request( content_type = kwargs.pop('content_type', None) # type: Optional[str] # Construct URL - url = '/xml/root-list-single-item' + url = "/xml/root-list-single-item" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -729,7 +729,7 @@ def build_get_empty_root_list_request( accept = "application/xml" # Construct URL - url = '/xml/empty-root-list' + url = "/xml/empty-root-list" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -764,7 +764,7 @@ def build_put_empty_root_list_request( content_type = kwargs.pop('content_type', None) # type: Optional[str] # Construct URL - url = '/xml/empty-root-list' + url = "/xml/empty-root-list" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -807,7 +807,7 @@ def build_get_empty_child_element_request( accept = "application/xml" # Construct URL - url = '/xml/empty-child-element' + url = "/xml/empty-child-element" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -842,7 +842,7 @@ def build_put_empty_child_element_request( content_type = kwargs.pop('content_type', None) # type: Optional[str] # Construct URL - url = '/xml/empty-child-element' + url = "/xml/empty-child-element" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -912,7 +912,7 @@ def build_list_containers_request( accept = "application/xml" # Construct URL - url = '/xml/' + url = "/xml/" # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -1041,7 +1041,7 @@ def build_get_service_properties_request( accept = "application/xml" # Construct URL - url = '/xml/' + url = "/xml/" # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -1090,7 +1090,7 @@ def build_put_service_properties_request( content_type = kwargs.pop('content_type', None) # type: Optional[str] # Construct URL - url = '/xml/' + url = "/xml/" # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -1155,7 +1155,7 @@ def build_get_acls_request( accept = "application/xml" # Construct URL - url = '/xml/mycontainer' + url = "/xml/mycontainer" # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -1204,7 +1204,7 @@ def build_put_acls_request( content_type = kwargs.pop('content_type', None) # type: Optional[str] # Construct URL - url = '/xml/mycontainer' + url = "/xml/mycontainer" # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -1343,7 +1343,7 @@ def build_list_blobs_request( accept = "application/xml" # Construct URL - url = '/xml/mycontainer' + url = "/xml/mycontainer" # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] @@ -1396,7 +1396,7 @@ def build_json_input_request( content_type = kwargs.pop('content_type', None) # type: Optional[str] # Construct URL - url = '/xml/jsoninput' + url = "/xml/jsoninput" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1436,7 +1436,7 @@ def build_json_output_request( accept = "application/json" # Construct URL - url = '/xml/jsonoutput' + url = "/xml/jsonoutput" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1477,7 +1477,7 @@ def build_get_xms_text_request( accept = "application/xml" # Construct URL - url = '/xml/x-ms-text' + url = "/xml/x-ms-text" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1516,7 +1516,7 @@ def build_get_bytes_request( accept = "application/xml" # Construct URL - url = '/xml/bytes' + url = "/xml/bytes" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1552,7 +1552,7 @@ def build_put_binary_request( accept = "application/xml" # Construct URL - url = '/xml/bytes' + url = "/xml/bytes" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1593,7 +1593,7 @@ def build_get_uri_request( accept = "application/xml" # Construct URL - url = '/xml/url' + url = "/xml/url" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -1629,7 +1629,7 @@ def build_put_uri_request( accept = "application/xml" # Construct URL - url = '/xml/url' + url = "/xml/url" # Construct headers header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/XmsErrorResponseLowLevel/xmserrorresponselowlevel/rest/pet/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/XmsErrorResponseLowLevel/xmserrorresponselowlevel/rest/pet/_request_builders.py index 16f229bd536..fad132c81dc 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/XmsErrorResponseLowLevel/xmserrorresponselowlevel/rest/pet/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/XmsErrorResponseLowLevel/xmserrorresponselowlevel/rest/pet/_request_builders.py @@ -50,7 +50,7 @@ def build_get_pet_by_id_request( accept = "application/json" # Construct URL - url = '/errorStatusCodes/Pets/{petId}/GetPet' + url = "/errorStatusCodes/Pets/{petId}/GetPet" path_format_arguments = { "petId": _SERIALIZER.url("pet_id", pet_id, 'str'), } @@ -97,7 +97,7 @@ def build_do_something_request( accept = "application/json" # Construct URL - url = '/errorStatusCodes/Pets/doSomething/{whatAction}' + url = "/errorStatusCodes/Pets/doSomething/{whatAction}" path_format_arguments = { "whatAction": _SERIALIZER.url("what_action", what_action, 'str'), } @@ -139,7 +139,7 @@ def build_has_models_param_request( accept = "application/json" # Construct URL - url = '/errorStatusCodes/Pets/hasModelsParam' + url = "/errorStatusCodes/Pets/hasModelsParam" # Construct parameters query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] From 9ec9ecb14bc88282206605ae03fd1e12934f66ab Mon Sep 17 00:00:00 2001 From: iscai-msft Date: Mon, 7 Feb 2022 18:33:39 -0500 Subject: [PATCH 2/6] internalize url, query, and header params --- .../codegen/serializers/builder_serializer.py | 12 +- .../templates/request_builder.py.jinja2 | 2 +- .../operations/_http_success_operations.py | 12 +- .../operations/_http_success_operations.py | 12 +- .../_polling_paging_example_operations.py | 22 +- .../operations/_http_success_operations.py | 12 +- .../_multiapi_service_client_operations.py | 66 +- .../_operation_group_one_operations.py | 16 +- .../_multiapi_service_client_operations.py | 40 +- .../_operation_group_one_operations.py | 34 +- .../_operation_group_two_operations.py | 18 +- .../_multiapi_service_client_operations.py | 32 +- .../_operation_group_one_operations.py | 18 +- .../_operation_group_two_operations.py | 34 +- .../operations/_duration_operations.py | 42 +- .../_parameter_grouping_operations.py | 98 +- ...est_report_service_for_azure_operations.py | 16 +- .../_api_version_default_operations.py | 64 +- .../_api_version_local_operations.py | 64 +- .../operations/_header_operations.py | 36 +- .../operations/_odata_operations.py | 20 +- .../_skip_url_encoding_operations.py | 100 +- ..._subscription_in_credentials_operations.py | 66 +- .../_subscription_in_method_operations.py | 48 +- .../_xms_client_request_id_operations.py | 16 +- .../operations/_paths_operations.py | 10 +- .../operations/_paging_operations.py | 340 ++--- .../operations/_paging_operations.py | 32 +- .../operations/_http_success_operations.py | 12 +- .../operations/_head_exception_operations.py | 12 +- .../operations/_http_success_operations.py | 12 +- .../_lr_os_custom_header_operations.py | 48 +- .../lro/operations/_lro_retrys_operations.py | 78 +- .../Lro/lro/operations/_lros_operations.py | 494 +++---- .../Lro/lro/operations/_lrosads_operations.py | 296 ++-- ...with_paramaterized_endpoints_operations.py | 22 +- .../paging/operations/_paging_operations.py | 272 ++-- .../_storage_accounts_operations.py | 164 +-- .../storage/operations/_usage_operations.py | 18 +- .../operations/_group_operations.py | 18 +- test/azure/legacy/coverage/report-azure.json | 276 ++-- .../rest/duration/_request_builders.py | 42 +- .../rest/duration/_request_builders_py3.py | 34 +- .../parameter_grouping/_request_builders.py | 98 +- .../_request_builders_py3.py | 84 +- .../rest/_request_builders.py | 16 +- .../rest/_request_builders_py3.py | 12 +- .../api_version_default/_request_builders.py | 64 +- .../_request_builders_py3.py | 48 +- .../api_version_local/_request_builders.py | 64 +- .../_request_builders_py3.py | 48 +- .../rest/header/_request_builders.py | 36 +- .../rest/header/_request_builders_py3.py | 30 +- .../rest/odata/_request_builders.py | 20 +- .../rest/odata/_request_builders_py3.py | 16 +- .../skip_url_encoding/_request_builders.py | 100 +- .../_request_builders_py3.py | 78 +- .../_request_builders.py | 66 +- .../_request_builders_py3.py | 56 +- .../_request_builders.py | 48 +- .../_request_builders_py3.py | 40 +- .../_request_builders.py | 16 +- .../_request_builders_py3.py | 14 +- .../rest/paths/_request_builders.py | 10 +- .../rest/paths/_request_builders_py3.py | 8 +- .../rest/paging/_request_builders.py | 32 +- .../rest/paging/_request_builders_py3.py | 26 +- .../rest/head_exception/_request_builders.py | 12 +- .../head_exception/_request_builders_py3.py | 12 +- .../rest/http_success/_request_builders.py | 12 +- .../http_success/_request_builders_py3.py | 12 +- .../lr_os_custom_header/_request_builders.py | 48 +- .../_request_builders_py3.py | 40 +- .../rest/lro_retrys/_request_builders.py | 78 +- .../rest/lro_retrys/_request_builders_py3.py | 64 +- .../rest/lros/_request_builders.py | 494 +++---- .../rest/lros/_request_builders_py3.py | 406 +++--- .../rest/lrosads/_request_builders.py | 296 ++-- .../rest/lrosads/_request_builders_py3.py | 244 ++-- .../rest/_request_builders.py | 22 +- .../rest/_request_builders_py3.py | 18 +- .../rest/paging/_request_builders.py | 272 ++-- .../rest/paging/_request_builders_py3.py | 220 +-- .../storage_accounts/_request_builders.py | 164 +-- .../storage_accounts/_request_builders_py3.py | 152 +- .../rest/usage/_request_builders.py | 18 +- .../rest/usage/_request_builders_py3.py | 14 +- .../rest/group/_request_builders.py | 18 +- .../rest/group/_request_builders_py3.py | 14 +- .../operations/_operations.py | 34 +- .../operations/_operations.py | 84 +- .../_operations/_operations.py | 12 +- .../operations/_operations.py | 330 ++--- .../operations/_operations.py | 8 +- .../operations/_operations.py | 220 +-- .../operations/_operations.py | 26 +- .../operations/_operations.py | 12 +- .../operations/_operations.py | 12 +- .../operations/_operations.py | 754 +++++----- .../_operations/_operations.py | 18 +- .../operations/_operations.py | 220 +-- .../operations/_operations.py | 166 ++- .../operations/_operations.py | 14 +- .../coverage/report-azure.json | 2 + .../rest/params/_request_builders.py | 72 +- .../rest/params/_request_builders_py3.py | 56 +- .../rest/params/_request_builders.py | 98 +- .../rest/params/_request_builders_py3.py | 78 +- .../operations/_operations.py | 56 +- .../operations/_operations.py | 78 +- .../_operation_group_one_operations.py | 16 +- .../_multiapi_service_client_operations.py | 66 +- .../_operation_group_one_operations.py | 16 +- .../_multiapi_service_client_operations.py | 40 +- .../_operation_group_one_operations.py | 34 +- .../_operation_group_two_operations.py | 18 +- .../_multiapi_service_client_operations.py | 32 +- .../_operation_group_one_operations.py | 18 +- .../_operation_group_two_operations.py | 34 +- .../_multiapi_service_client_operations.py | 66 +- .../_operation_group_one_operations.py | 16 +- .../_multiapi_service_client_operations.py | 40 +- .../_operation_group_one_operations.py | 34 +- .../_operation_group_two_operations.py | 18 +- .../_multiapi_service_client_operations.py | 32 +- .../_operation_group_one_operations.py | 18 +- .../_operation_group_two_operations.py | 34 +- ...stom_base_url_service_client_operations.py | 18 +- ...stom_base_url_service_client_operations.py | 18 +- .../_multiapi_service_client_operations.py | 66 +- .../_operation_group_one_operations.py | 16 +- .../_multiapi_service_client_operations.py | 40 +- .../_operation_group_one_operations.py | 34 +- .../_operation_group_two_operations.py | 18 +- .../_multiapi_service_client_operations.py | 32 +- .../_operation_group_one_operations.py | 18 +- .../_operation_group_two_operations.py | 34 +- .../_multiapi_service_client_operations.py | 66 +- .../_operation_group_one_operations.py | 16 +- .../_multiapi_service_client_operations.py | 40 +- .../_operation_group_one_operations.py | 34 +- .../_operation_group_two_operations.py | 18 +- .../_multiapi_service_client_operations.py | 32 +- .../_operation_group_one_operations.py | 18 +- .../_operation_group_two_operations.py | 34 +- .../_multiapi_service_client_operations.py | 66 +- .../_operation_group_one_operations.py | 16 +- .../_multiapi_service_client_operations.py | 40 +- .../_operation_group_one_operations.py | 34 +- .../_operation_group_two_operations.py | 18 +- .../_multiapi_service_client_operations.py | 32 +- .../_operation_group_one_operations.py | 18 +- .../_operation_group_two_operations.py | 34 +- .../operations/_pets_operations.py | 72 +- .../operations/_anything_client_operations.py | 60 +- .../bodyarray/operations/_array_operations.py | 726 +++++----- .../array/operations/_array_operations.py | 726 +++++----- .../operations/_array_operations.py | 726 +++++----- .../operations/_array_operations_py3.py | 588 ++++---- .../operations/_upload_operations.py | 20 +- .../operations/_bool_operations.py | 64 +- .../bodybyte/operations/_byte_operations.py | 52 +- .../operations/_byte_operations.py | 52 +- .../operations/_array_operations.py | 54 +- .../operations/_basic_operations.py | 68 +- .../operations/_dictionary_operations.py | 64 +- .../operations/_flattencomplex_operations.py | 10 +- .../operations/_inheritance_operations.py | 22 +- .../_polymorphicrecursive_operations.py | 22 +- .../operations/_polymorphism_operations.py | 98 +- .../operations/_primitive_operations.py | 242 ++-- .../_readonlyproperty_operations.py | 22 +- .../operations/_array_operations.py | 44 +- .../operations/_basic_operations.py | 60 +- .../operations/_dictionary_operations.py | 52 +- .../operations/_flattencomplex_operations.py | 8 +- .../operations/_inheritance_operations.py | 18 +- .../_polymorphicrecursive_operations.py | 18 +- .../operations/_polymorphism_operations.py | 80 +- .../operations/_primitive_operations.py | 198 +-- .../_readonlyproperty_operations.py | 18 +- .../bodydate/operations/_date_operations.py | 84 +- .../operations/_datetime_operations.py | 234 +-- .../operations/_datetimerfc1123_operations.py | 94 +- .../operations/_dictionary_operations.py | 680 ++++----- .../operations/_duration_operations.py | 42 +- .../bodyfile/operations/_files_operations.py | 30 +- .../operations/_formdata_operations.py | 36 +- .../_formdataurlencoded_operations.py | 22 +- .../bodyinteger/operations/_int_operations.py | 150 +- .../operations/_number_operations.py | 260 ++-- .../bodystring/operations/_enum_operations.py | 66 +- .../operations/_string_operations.py | 140 +- .../bodytime/operations/_time_operations.py | 22 +- .../operations/_contants_operations.py | 178 +-- .../operations/_paths_operations.py | 10 +- .../operations/_paths_operations.py | 18 +- .../operations/_pet_operations.py | 24 +- .../header/operations/_header_operations.py | 366 ++--- .../_http_client_failure_operations.py | 286 ++-- .../operations/_http_failure_operations.py | 30 +- .../operations/_http_redirects_operations.py | 174 +-- .../operations/_http_retry_operations.py | 102 +- .../_http_server_failure_operations.py | 44 +- .../operations/_http_success_operations.py | 218 +-- .../_multiple_responses_operations.py | 292 ++-- ...correct_returned_error_model_operations.py | 4 +- .../_media_types_client_operations.py | 70 +- .../_merge_patch_json_client_operations.py | 12 +- ...urce_flattening_test_service_operations.py | 126 +- ...e_inheritance_service_client_operations.py | 110 +- .../operations/_float_operations.py | 22 +- .../operations/_int_operations.py | 22 +- .../_object_type_client_operations.py | 22 +- .../_availability_sets_operations.py | 12 +- ...parmaterized_endpoint_client_operations.py | 4 +- .../_auto_rest_report_service_operations.py | 32 +- .../operations/_explicit_operations.py | 288 ++-- .../operations/_implicit_operations.py | 108 +- .../_import_operations_operations.py | 16 +- .../_reserved_words_client_operations.py | 48 +- .../url/operations/_path_items_operations.py | 88 +- .../Url/url/operations/_paths_operations.py | 324 ++--- .../Url/url/operations/_queries_operations.py | 560 ++++---- .../operations/_queries_operations.py | 48 +- .../_auto_rest_validation_test_operations.py | 58 +- .../xmlservice/operations/_xml_operations.py | 388 ++--- .../operations/_pet_operations.py | 40 +- .../rest/pets/_request_builders.py | 72 +- .../rest/pets/_request_builders_py3.py | 60 +- .../rest/_request_builders.py | 60 +- .../rest/_request_builders_py3.py | 48 +- .../rest/array/_request_builders.py | 726 +++++----- .../rest/array/_request_builders_py3.py | 588 ++++---- .../rest/upload/_request_builders.py | 20 +- .../rest/upload/_request_builders_py3.py | 16 +- .../rest/bool/_request_builders.py | 64 +- .../rest/bool/_request_builders_py3.py | 52 +- .../rest/byte/_request_builders.py | 52 +- .../rest/byte/_request_builders_py3.py | 42 +- .../rest/array/_request_builders.py | 54 +- .../rest/array/_request_builders_py3.py | 44 +- .../rest/basic/_request_builders.py | 68 +- .../rest/basic/_request_builders_py3.py | 60 +- .../rest/dictionary/_request_builders.py | 64 +- .../rest/dictionary/_request_builders_py3.py | 52 +- .../rest/flattencomplex/_request_builders.py | 10 +- .../flattencomplex/_request_builders_py3.py | 8 +- .../rest/inheritance/_request_builders.py | 22 +- .../rest/inheritance/_request_builders_py3.py | 18 +- .../polymorphicrecursive/_request_builders.py | 22 +- .../_request_builders_py3.py | 18 +- .../rest/polymorphism/_request_builders.py | 98 +- .../polymorphism/_request_builders_py3.py | 80 +- .../rest/primitive/_request_builders.py | 242 ++-- .../rest/primitive/_request_builders_py3.py | 198 +-- .../readonlyproperty/_request_builders.py | 22 +- .../readonlyproperty/_request_builders_py3.py | 18 +- .../rest/date/_request_builders.py | 84 +- .../rest/date/_request_builders_py3.py | 68 +- .../rest/datetime/_request_builders.py | 234 +-- .../rest/datetime/_request_builders_py3.py | 190 +-- .../rest/datetimerfc1123/_request_builders.py | 94 +- .../datetimerfc1123/_request_builders_py3.py | 76 +- .../rest/dictionary/_request_builders.py | 680 ++++----- .../rest/dictionary/_request_builders_py3.py | 550 ++++---- .../rest/duration/_request_builders.py | 42 +- .../rest/duration/_request_builders_py3.py | 34 +- .../rest/files/_request_builders.py | 30 +- .../rest/files/_request_builders_py3.py | 24 +- .../rest/formdata/_request_builders.py | 36 +- .../rest/formdata/_request_builders_py3.py | 30 +- .../formdataurlencoded/_request_builders.py | 22 +- .../_request_builders_py3.py | 18 +- .../rest/int/_request_builders.py | 150 +- .../rest/int/_request_builders_py3.py | 122 +- .../rest/number/_request_builders.py | 260 ++-- .../rest/number/_request_builders_py3.py | 212 +-- .../rest/enum/_request_builders.py | 66 +- .../rest/enum/_request_builders_py3.py | 54 +- .../rest/string/_request_builders.py | 140 +- .../rest/string/_request_builders_py3.py | 114 +- .../rest/time/_request_builders.py | 22 +- .../rest/time/_request_builders_py3.py | 18 +- .../rest/contants/_request_builders.py | 178 +-- .../rest/contants/_request_builders_py3.py | 142 +- .../rest/paths/_request_builders.py | 10 +- .../rest/paths/_request_builders_py3.py | 8 +- .../rest/paths/_request_builders.py | 18 +- .../rest/paths/_request_builders_py3.py | 14 +- .../rest/pet/_request_builders.py | 24 +- .../rest/pet/_request_builders_py3.py | 20 +- .../rest/header/_request_builders.py | 366 ++--- .../rest/header/_request_builders_py3.py | 308 ++-- .../http_client_failure/_request_builders.py | 286 ++-- .../_request_builders_py3.py | 234 +-- .../rest/http_failure/_request_builders.py | 30 +- .../http_failure/_request_builders_py3.py | 24 +- .../rest/http_redirects/_request_builders.py | 174 +-- .../http_redirects/_request_builders_py3.py | 142 +- .../rest/http_retry/_request_builders.py | 102 +- .../rest/http_retry/_request_builders_py3.py | 84 +- .../http_server_failure/_request_builders.py | 44 +- .../_request_builders_py3.py | 36 +- .../rest/http_success/_request_builders.py | 218 +-- .../http_success/_request_builders_py3.py | 180 +-- .../multiple_responses/_request_builders.py | 292 ++-- .../_request_builders_py3.py | 240 ++-- .../rest/_request_builders.py | 4 +- .../rest/_request_builders_py3.py | 4 +- .../rest/_request_builders.py | 70 +- .../rest/_request_builders_py3.py | 58 +- .../rest/_request_builders.py | 12 +- .../rest/_request_builders_py3.py | 10 +- .../rest/_request_builders.py | 126 +- .../rest/_request_builders_py3.py | 104 +- .../rest/_request_builders.py | 110 +- .../rest/_request_builders_py3.py | 90 +- .../rest/float/_request_builders.py | 22 +- .../rest/float/_request_builders_py3.py | 18 +- .../rest/int/_request_builders.py | 22 +- .../rest/int/_request_builders_py3.py | 18 +- .../rest/_request_builders.py | 22 +- .../rest/_request_builders_py3.py | 18 +- .../availability_sets/_request_builders.py | 12 +- .../_request_builders_py3.py | 10 +- .../rest/_request_builders.py | 4 +- .../rest/_request_builders_py3.py | 4 +- .../reportlowlevel/rest/_request_builders.py | 32 +- .../rest/_request_builders_py3.py | 24 +- .../rest/explicit/_request_builders.py | 288 ++-- .../rest/explicit/_request_builders_py3.py | 240 ++-- .../rest/implicit/_request_builders.py | 108 +- .../rest/implicit/_request_builders_py3.py | 88 +- .../rest/_request_builders.py | 48 +- .../rest/_request_builders_py3.py | 40 +- .../rest/import_builders/_request_builders.py | 16 +- .../import_builders/_request_builders_py3.py | 12 +- .../rest/path_items/_request_builders.py | 88 +- .../rest/path_items/_request_builders_py3.py | 72 +- .../rest/paths/_request_builders.py | 324 ++--- .../rest/paths/_request_builders_py3.py | 270 ++-- .../rest/queries/_request_builders.py | 560 ++++---- .../rest/queries/_request_builders_py3.py | 420 +++--- .../rest/queries/_request_builders.py | 48 +- .../rest/queries/_request_builders_py3.py | 36 +- .../rest/_request_builders.py | 58 +- .../rest/_request_builders_py3.py | 54 +- .../rest/xml/_request_builders.py | 388 ++--- .../rest/xml/_request_builders_py3.py | 310 ++-- .../rest/pet/_request_builders.py | 40 +- .../rest/pet/_request_builders_py3.py | 32 +- .../operations/_operations.py | 60 +- .../_operations/_operations.py | 48 +- .../operations/_operations.py | 588 ++++---- .../operations/_operations.py | 16 +- .../operations/_operations.py | 52 +- .../operations/_operations.py | 42 +- .../operations/_operations.py | 496 +++---- .../operations/_operations.py | 496 +++---- .../operations/_operations.py | 76 +- .../operations/_operations.py | 190 +-- .../operations/_operations.py | 68 +- .../operations/_operations.py | 550 ++++---- .../operations/_operations.py | 34 +- .../operations/_operations.py | 24 +- .../operations/_operations.py | 30 +- .../operations/_operations.py | 18 +- .../operations/_operations.py | 122 +- .../operations/_operations.py | 212 +-- .../operations/_operations.py | 168 +-- .../operations/_operations.py | 18 +- .../operations/_operations.py | 142 +- .../operations/_operations.py | 14 +- .../operations/_operations.py | 8 +- .../operations/_operations.py | 20 +- .../operations/_operations.py | 308 ++-- .../operations/_operations.py | 940 ++++++------- .../_operations/_operations.py | 4 +- .../_operations/_operations.py | 58 +- .../_operations/_operations.py | 10 +- .../_operations/_operations.py | 104 +- .../_operations/_operations.py | 90 +- .../operations/_operations.py | 36 +- .../_operations/_operations.py | 18 +- .../operations/_operations.py | 10 +- .../_operations/_operations.py | 4 +- .../_operations/_operations.py | 24 +- .../operations/_operations.py | 328 ++--- .../operations/_operations.py | 52 +- .../operations/_operations.py | 36 +- .../operations/_operations.py | 762 +++++----- .../_operations/_operations.py | 54 +- .../operations/_operations.py | 310 ++-- .../operations/_operations.py | 32 +- .../coverage/report-optional.json | 38 +- .../coverage/report-vanilla.json | 1250 +++++++++-------- 397 files changed, 21227 insertions(+), 21129 deletions(-) diff --git a/autorest/codegen/serializers/builder_serializer.py b/autorest/codegen/serializers/builder_serializer.py index dc402af039d..7dc8630b50b 100644 --- a/autorest/codegen/serializers/builder_serializer.py +++ b/autorest/codegen/serializers/builder_serializer.py @@ -115,7 +115,7 @@ def _pop_parameters_kwarg( function_name: str, kwarg_name: str, ) -> str: - return f'{function_name}_parameters = kwargs.pop("{kwarg_name}", {{}}) # type: Dict[str, Any]' + return f'_{function_name}_parameters = kwargs.pop("{kwarg_name}", {{}}) # type: Dict[str, Any]' def _serialize_grouped_body(builder) -> List[str]: retval: List[str] = [] @@ -407,7 +407,7 @@ def serializer_name(self) -> str: def _serialize_parameter( self, param: Parameter, function_name: str ) -> List[str]: - set_parameter = "{}_parameters['{}'] = {}".format( + set_parameter = "_{}_parameters['{}'] = {}".format( function_name, param.rest_api_name, utils.build_serialize_data_call(param, function_name, self.serializer_name) @@ -504,11 +504,11 @@ def _body_params_to_pass_to_request_creation(self, builder) -> List[str]: def create_http_request(self, builder) -> List[str]: retval = ["return HttpRequest("] retval.append(f' method="{builder.method}",') - retval.append(" url=url,") + retval.append(" url=_url,") if builder.parameters.query: - retval.append(" params=query_parameters,") + retval.append(" params=_query_parameters,") if builder.parameters.headers: - retval.append(" headers=header_parameters,") + retval.append(" headers=_header_parameters,") if builder.parameters.has_body: retval.extend([ f" {body_kwarg}={body_kwarg}," @@ -543,7 +543,7 @@ def construct_url(self, builder) -> str: url_value = _escape_str(builder.url) else: url_value = f'kwargs.pop("template_url", {_escape_str(builder.url)})' - return f"url = {url_value}{' # pylint: disable=line-too-long' if len(url_value) > 114 else ''}" + return f"_url = {url_value}{' # pylint: disable=line-too-long' if len(url_value) > 114 else ''}" class RequestBuilderGenericSerializer(_RequestBuilderBaseSerializer): @property diff --git a/autorest/codegen/templates/request_builder.py.jinja2 b/autorest/codegen/templates/request_builder.py.jinja2 index d2b7b729bf5..94d48ca88dd 100644 --- a/autorest/codegen/templates/request_builder.py.jinja2 +++ b/autorest/codegen/templates/request_builder.py.jinja2 @@ -16,7 +16,7 @@ {{ request_builder_serializer.construct_url(request_builder) }} {% if request_builder.parameters.path %} {{ op_tools.serialize(request_builder_serializer.serialize_path(request_builder)) | indent }} - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) {% endif %} {% if request_builder.parameters.query %} diff --git a/docs/samples/specification/azure_key_credential/generated/azure/key/credential/sample/operations/_http_success_operations.py b/docs/samples/specification/azure_key_credential/generated/azure/key/credential/sample/operations/_http_success_operations.py index c0d85f4e572..868042632f4 100644 --- a/docs/samples/specification/azure_key_credential/generated/azure/key/credential/sample/operations/_http_success_operations.py +++ b/docs/samples/specification/azure_key_credential/generated/azure/key/credential/sample/operations/_http_success_operations.py @@ -32,11 +32,11 @@ def build_head200_request( ): # type: (...) -> HttpRequest # Construct URL - url = kwargs.pop("template_url", "/http/success/200") + _url = kwargs.pop("template_url", "/http/success/200") return HttpRequest( method="HEAD", - url=url, + url=_url, **kwargs ) @@ -46,11 +46,11 @@ def build_head204_request( ): # type: (...) -> HttpRequest # Construct URL - url = kwargs.pop("template_url", "/http/success/204") + _url = kwargs.pop("template_url", "/http/success/204") return HttpRequest( method="HEAD", - url=url, + url=_url, **kwargs ) @@ -60,11 +60,11 @@ def build_head404_request( ): # type: (...) -> HttpRequest # Construct URL - url = kwargs.pop("template_url", "/http/success/404") + _url = kwargs.pop("template_url", "/http/success/404") return HttpRequest( method="HEAD", - url=url, + url=_url, **kwargs ) diff --git a/docs/samples/specification/basic/generated/azure/basic/sample/operations/_http_success_operations.py b/docs/samples/specification/basic/generated/azure/basic/sample/operations/_http_success_operations.py index c0d85f4e572..868042632f4 100644 --- a/docs/samples/specification/basic/generated/azure/basic/sample/operations/_http_success_operations.py +++ b/docs/samples/specification/basic/generated/azure/basic/sample/operations/_http_success_operations.py @@ -32,11 +32,11 @@ def build_head200_request( ): # type: (...) -> HttpRequest # Construct URL - url = kwargs.pop("template_url", "/http/success/200") + _url = kwargs.pop("template_url", "/http/success/200") return HttpRequest( method="HEAD", - url=url, + url=_url, **kwargs ) @@ -46,11 +46,11 @@ def build_head204_request( ): # type: (...) -> HttpRequest # Construct URL - url = kwargs.pop("template_url", "/http/success/204") + _url = kwargs.pop("template_url", "/http/success/204") return HttpRequest( method="HEAD", - url=url, + url=_url, **kwargs ) @@ -60,11 +60,11 @@ def build_head404_request( ): # type: (...) -> HttpRequest # Construct URL - url = kwargs.pop("template_url", "/http/success/404") + _url = kwargs.pop("template_url", "/http/success/404") return HttpRequest( method="HEAD", - url=url, + url=_url, **kwargs ) diff --git a/docs/samples/specification/directives/generated/azure/directives/sample/operations/_polling_paging_example_operations.py b/docs/samples/specification/directives/generated/azure/directives/sample/operations/_polling_paging_example_operations.py index 691a46ce42f..124cf1b8b9a 100644 --- a/docs/samples/specification/directives/generated/azure/directives/sample/operations/_polling_paging_example_operations.py +++ b/docs/samples/specification/directives/generated/azure/directives/sample/operations/_polling_paging_example_operations.py @@ -38,18 +38,18 @@ def build_basic_polling_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/basic/polling") + _url = kwargs.pop("template_url", "/basic/polling") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -60,16 +60,16 @@ def build_basic_paging_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/basic/paging") + _url = kwargs.pop("template_url", "/basic/paging") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/docs/samples/specification/management/generated/azure/mgmt/sample/operations/_http_success_operations.py b/docs/samples/specification/management/generated/azure/mgmt/sample/operations/_http_success_operations.py index 0b2ecaadf13..d593201c747 100644 --- a/docs/samples/specification/management/generated/azure/mgmt/sample/operations/_http_success_operations.py +++ b/docs/samples/specification/management/generated/azure/mgmt/sample/operations/_http_success_operations.py @@ -33,11 +33,11 @@ def build_head200_request( ): # type: (...) -> HttpRequest # Construct URL - url = kwargs.pop("template_url", "/http/success/200") + _url = kwargs.pop("template_url", "/http/success/200") return HttpRequest( method="HEAD", - url=url, + url=_url, **kwargs ) @@ -47,11 +47,11 @@ def build_head204_request( ): # type: (...) -> HttpRequest # Construct URL - url = kwargs.pop("template_url", "/http/success/204") + _url = kwargs.pop("template_url", "/http/success/204") return HttpRequest( method="HEAD", - url=url, + url=_url, **kwargs ) @@ -61,11 +61,11 @@ def build_head404_request( ): # type: (...) -> HttpRequest # Construct URL - url = kwargs.pop("template_url", "/http/success/404") + _url = kwargs.pop("template_url", "/http/success/404") return HttpRequest( method="HEAD", - url=url, + url=_url, **kwargs ) diff --git a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v1/operations/_multiapi_service_client_operations.py b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v1/operations/_multiapi_service_client_operations.py index b887f43f707..c1f3913e192 100644 --- a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v1/operations/_multiapi_service_client_operations.py +++ b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v1/operations/_multiapi_service_client_operations.py @@ -42,24 +42,24 @@ def build_test_one_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/multiapi/testOneEndpoint") + _url = kwargs.pop("template_url", "/multiapi/testOneEndpoint") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['id'] = _SERIALIZER.query("id", id, 'int') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['id'] = _SERIALIZER.query("id", id, 'int') if message is not None: - query_parameters['message'] = _SERIALIZER.query("message", message, 'str') - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters['message'] = _SERIALIZER.query("message", message, 'str') + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -72,18 +72,18 @@ def build_test_lro_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/multiapi/lro") + _url = kwargs.pop("template_url", "/multiapi/lro") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -98,22 +98,22 @@ def build_test_lro_and_paging_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/multiapi/lroAndPaging") + _url = kwargs.pop("template_url", "/multiapi/lroAndPaging") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if client_request_id is not None: - header_parameters['client-request-id'] = _SERIALIZER.header("client_request_id", client_request_id, 'str') + _header_parameters['client-request-id'] = _SERIALIZER.header("client_request_id", client_request_id, 'str') if maxresults is not None: - header_parameters['maxresults'] = _SERIALIZER.header("maxresults", maxresults, 'int') + _header_parameters['maxresults'] = _SERIALIZER.header("maxresults", maxresults, 'int') if timeout is not None: - header_parameters['timeout'] = _SERIALIZER.header("timeout", timeout, 'int') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['timeout'] = _SERIALIZER.header("timeout", timeout, 'int') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -127,22 +127,22 @@ def build_test_different_calls_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/multiapi/testDifferentCalls") + _url = kwargs.pop("template_url", "/multiapi/testDifferentCalls") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['greetingInEnglish'] = _SERIALIZER.header("greeting_in_english", greeting_in_english, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['greetingInEnglish'] = _SERIALIZER.header("greeting_in_english", greeting_in_english, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) diff --git a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v1/operations/_operation_group_one_operations.py b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v1/operations/_operation_group_one_operations.py index 0f3c2490f49..8dd91973758 100644 --- a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v1/operations/_operation_group_one_operations.py +++ b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v1/operations/_operation_group_one_operations.py @@ -37,21 +37,21 @@ def build_test_two_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/multiapi/one/testTwoEndpoint") + _url = kwargs.pop("template_url", "/multiapi/one/testTwoEndpoint") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) diff --git a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v2/operations/_multiapi_service_client_operations.py b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v2/operations/_multiapi_service_client_operations.py index 76fbbf3c27c..517ade8a806 100644 --- a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v2/operations/_multiapi_service_client_operations.py +++ b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v2/operations/_multiapi_service_client_operations.py @@ -39,24 +39,24 @@ def build_test_one_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/multiapi/testOneEndpoint") + _url = kwargs.pop("template_url", "/multiapi/testOneEndpoint") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['id'] = _SERIALIZER.query("id", id, 'int') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['id'] = _SERIALIZER.query("id", id, 'int') if message is not None: - query_parameters['message'] = _SERIALIZER.query("message", message, 'str') - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters['message'] = _SERIALIZER.query("message", message, 'str') + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -71,24 +71,24 @@ def build_test_different_calls_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/multiapi/testDifferentCalls") + _url = kwargs.pop("template_url", "/multiapi/testDifferentCalls") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['greetingInEnglish'] = _SERIALIZER.header("greeting_in_english", greeting_in_english, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['greetingInEnglish'] = _SERIALIZER.header("greeting_in_english", greeting_in_english, 'str') if greeting_in_chinese is not None: - header_parameters['greetingInChinese'] = _SERIALIZER.header("greeting_in_chinese", greeting_in_chinese, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['greetingInChinese'] = _SERIALIZER.header("greeting_in_chinese", greeting_in_chinese, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) diff --git a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v2/operations/_operation_group_one_operations.py b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v2/operations/_operation_group_one_operations.py index 913f6a82294..96ca64feb2f 100644 --- a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v2/operations/_operation_group_one_operations.py +++ b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v2/operations/_operation_group_one_operations.py @@ -38,23 +38,23 @@ def build_test_two_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/multiapi/one/testTwoEndpoint") + _url = kwargs.pop("template_url", "/multiapi/one/testTwoEndpoint") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -67,21 +67,21 @@ def build_test_three_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/multiapi/one/testThreeEndpoint") + _url = kwargs.pop("template_url", "/multiapi/one/testThreeEndpoint") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) diff --git a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v2/operations/_operation_group_two_operations.py b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v2/operations/_operation_group_two_operations.py index 58761ed176d..a9a62489522 100644 --- a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v2/operations/_operation_group_two_operations.py +++ b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v2/operations/_operation_group_two_operations.py @@ -38,22 +38,22 @@ def build_test_four_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/multiapi/two/testFourEndpoint") + _url = kwargs.pop("template_url", "/multiapi/two/testFourEndpoint") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['parameterOne'] = _SERIALIZER.query("parameter_one", parameter_one, 'bool') - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['parameterOne'] = _SERIALIZER.query("parameter_one", parameter_one, 'bool') + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) diff --git a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v3/operations/_multiapi_service_client_operations.py b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v3/operations/_multiapi_service_client_operations.py index c7ef2374fa3..181a73b62a8 100644 --- a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v3/operations/_multiapi_service_client_operations.py +++ b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v3/operations/_multiapi_service_client_operations.py @@ -36,16 +36,16 @@ def build_test_paging_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/multiapi/paging") + _url = kwargs.pop("template_url", "/multiapi/paging") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -61,26 +61,26 @@ def build_test_different_calls_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/multiapi/testDifferentCalls") + _url = kwargs.pop("template_url", "/multiapi/testDifferentCalls") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['greetingInEnglish'] = _SERIALIZER.header("greeting_in_english", greeting_in_english, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['greetingInEnglish'] = _SERIALIZER.header("greeting_in_english", greeting_in_english, 'str') if greeting_in_chinese is not None: - header_parameters['greetingInChinese'] = _SERIALIZER.header("greeting_in_chinese", greeting_in_chinese, 'str') + _header_parameters['greetingInChinese'] = _SERIALIZER.header("greeting_in_chinese", greeting_in_chinese, 'str') if greeting_in_french is not None: - header_parameters['greetingInFrench'] = _SERIALIZER.header("greeting_in_french", greeting_in_french, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['greetingInFrench'] = _SERIALIZER.header("greeting_in_french", greeting_in_french, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) diff --git a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v3/operations/_operation_group_one_operations.py b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v3/operations/_operation_group_one_operations.py index c027246ad12..9ac6aa6d3d4 100644 --- a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v3/operations/_operation_group_one_operations.py +++ b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v3/operations/_operation_group_one_operations.py @@ -38,23 +38,23 @@ def build_test_two_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/multiapi/one/testTwoEndpoint") + _url = kwargs.pop("template_url", "/multiapi/one/testTwoEndpoint") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) diff --git a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v3/operations/_operation_group_two_operations.py b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v3/operations/_operation_group_two_operations.py index 50502dc3ef0..87bc757f82d 100644 --- a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v3/operations/_operation_group_two_operations.py +++ b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v3/operations/_operation_group_two_operations.py @@ -38,23 +38,23 @@ def build_test_four_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/multiapi/two/testFourEndpoint") + _url = kwargs.pop("template_url", "/multiapi/two/testFourEndpoint") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -67,21 +67,21 @@ def build_test_five_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/multiapi/two/testFiveEndpoint") + _url = kwargs.pop("template_url", "/multiapi/two/testFiveEndpoint") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) diff --git a/test/azure/legacy/Expected/AcceptanceTests/AzureBodyDuration/bodyduration/operations/_duration_operations.py b/test/azure/legacy/Expected/AcceptanceTests/AzureBodyDuration/bodyduration/operations/_duration_operations.py index 8c6bdd8385c..1b7f8c296e1 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/AzureBodyDuration/bodyduration/operations/_duration_operations.py +++ b/test/azure/legacy/Expected/AcceptanceTests/AzureBodyDuration/bodyduration/operations/_duration_operations.py @@ -42,16 +42,16 @@ def build_get_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/duration/null") + _url = kwargs.pop("template_url", "/duration/null") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -64,18 +64,18 @@ def build_put_positive_duration_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/duration/positiveduration") + _url = kwargs.pop("template_url", "/duration/positiveduration") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -86,16 +86,16 @@ def build_get_positive_duration_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/duration/positiveduration") + _url = kwargs.pop("template_url", "/duration/positiveduration") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -106,16 +106,16 @@ def build_get_invalid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/duration/invalid") + _url = kwargs.pop("template_url", "/duration/invalid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/azure/legacy/Expected/AcceptanceTests/AzureParameterGrouping/azureparametergrouping/operations/_parameter_grouping_operations.py b/test/azure/legacy/Expected/AcceptanceTests/AzureParameterGrouping/azureparametergrouping/operations/_parameter_grouping_operations.py index c91258fdbb5..06d58e8c995 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/AzureParameterGrouping/azureparametergrouping/operations/_parameter_grouping_operations.py +++ b/test/azure/legacy/Expected/AcceptanceTests/AzureParameterGrouping/azureparametergrouping/operations/_parameter_grouping_operations.py @@ -45,31 +45,31 @@ def build_post_required_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/parameterGrouping/postRequired/{path}") + _url = kwargs.pop("template_url", "/parameterGrouping/postRequired/{path}") path_format_arguments = { "path": _SERIALIZER.url("path", path, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if query is not None: - query_parameters['query'] = _SERIALIZER.query("query", query, 'int') + _query_parameters['query'] = _SERIALIZER.query("query", query, 'int') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if custom_header is not None: - header_parameters['customHeader'] = _SERIALIZER.header("custom_header", custom_header, 'str') + _header_parameters['customHeader'] = _SERIALIZER.header("custom_header", custom_header, 'str') if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -83,24 +83,24 @@ def build_post_optional_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/parameterGrouping/postOptional") + _url = kwargs.pop("template_url", "/parameterGrouping/postOptional") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if query is not None: - query_parameters['query'] = _SERIALIZER.query("query", query, 'int') + _query_parameters['query'] = _SERIALIZER.query("query", query, 'int') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if custom_header is not None: - header_parameters['customHeader'] = _SERIALIZER.header("custom_header", custom_header, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['customHeader'] = _SERIALIZER.header("custom_header", custom_header, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -114,24 +114,24 @@ def build_post_reserved_words_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/parameterGrouping/postReservedWords") + _url = kwargs.pop("template_url", "/parameterGrouping/postReservedWords") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if from_parameter is not None: - query_parameters['from'] = _SERIALIZER.query("from_parameter", from_parameter, 'str') + _query_parameters['from'] = _SERIALIZER.query("from_parameter", from_parameter, 'str') if accept_parameter is not None: - query_parameters['accept'] = _SERIALIZER.query("accept_parameter", accept_parameter, 'str') + _query_parameters['accept'] = _SERIALIZER.query("accept_parameter", accept_parameter, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -147,28 +147,28 @@ def build_post_multi_param_groups_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/parameterGrouping/postMultipleParameterGroups") + _url = kwargs.pop("template_url", "/parameterGrouping/postMultipleParameterGroups") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if query_one is not None: - query_parameters['query-one'] = _SERIALIZER.query("query_one", query_one, 'int') + _query_parameters['query-one'] = _SERIALIZER.query("query_one", query_one, 'int') if query_two is not None: - query_parameters['query-two'] = _SERIALIZER.query("query_two", query_two, 'int') + _query_parameters['query-two'] = _SERIALIZER.query("query_two", query_two, 'int') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if header_one is not None: - header_parameters['header-one'] = _SERIALIZER.header("header_one", header_one, 'str') + _header_parameters['header-one'] = _SERIALIZER.header("header_one", header_one, 'str') if header_two is not None: - header_parameters['header-two'] = _SERIALIZER.header("header_two", header_two, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['header-two'] = _SERIALIZER.header("header_two", header_two, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -182,24 +182,24 @@ def build_post_shared_parameter_group_object_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/parameterGrouping/sharedParameterGroupObject") + _url = kwargs.pop("template_url", "/parameterGrouping/sharedParameterGroupObject") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if query_one is not None: - query_parameters['query-one'] = _SERIALIZER.query("query_one", query_one, 'int') + _query_parameters['query-one'] = _SERIALIZER.query("query_one", query_one, 'int') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if header_one is not None: - header_parameters['header-one'] = _SERIALIZER.header("header_one", header_one, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['header-one'] = _SERIALIZER.header("header_one", header_one, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) diff --git a/test/azure/legacy/Expected/AcceptanceTests/AzureReport/azurereport/operations/_auto_rest_report_service_for_azure_operations.py b/test/azure/legacy/Expected/AcceptanceTests/AzureReport/azurereport/operations/_auto_rest_report_service_for_azure_operations.py index 2115afe6686..cd880f6f599 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/AzureReport/azurereport/operations/_auto_rest_report_service_for_azure_operations.py +++ b/test/azure/legacy/Expected/AcceptanceTests/AzureReport/azurereport/operations/_auto_rest_report_service_for_azure_operations.py @@ -43,22 +43,22 @@ def build_get_report_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/report/azure") + _url = kwargs.pop("template_url", "/report/azure") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if qualifier is not None: - query_parameters['qualifier'] = _SERIALIZER.query("qualifier", qualifier, 'str') + _query_parameters['qualifier'] = _SERIALIZER.query("qualifier", qualifier, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) diff --git a/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_api_version_default_operations.py b/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_api_version_default_operations.py index b48392d8f77..453912c1b89 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_api_version_default_operations.py +++ b/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_api_version_default_operations.py @@ -43,21 +43,21 @@ def build_get_method_global_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/azurespecials/apiVersion/method/string/none/query/global/2015-07-01-preview") + _url = kwargs.pop("template_url", "/azurespecials/apiVersion/method/string/none/query/global/2015-07-01-preview") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -70,21 +70,21 @@ def build_get_method_global_not_provided_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/azurespecials/apiVersion/method/string/none/query/globalNotProvided/2015-07-01-preview") # pylint: disable=line-too-long + _url = kwargs.pop("template_url", "/azurespecials/apiVersion/method/string/none/query/globalNotProvided/2015-07-01-preview") # pylint: disable=line-too-long # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -97,21 +97,21 @@ def build_get_path_global_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/azurespecials/apiVersion/path/string/none/query/global/2015-07-01-preview") + _url = kwargs.pop("template_url", "/azurespecials/apiVersion/path/string/none/query/global/2015-07-01-preview") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -124,21 +124,21 @@ def build_get_swagger_global_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/azurespecials/apiVersion/swagger/string/none/query/global/2015-07-01-preview") + _url = kwargs.pop("template_url", "/azurespecials/apiVersion/swagger/string/none/query/global/2015-07-01-preview") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) diff --git a/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_api_version_local_operations.py b/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_api_version_local_operations.py index 38b8aef50fd..2ddf28041e4 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_api_version_local_operations.py +++ b/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_api_version_local_operations.py @@ -43,21 +43,21 @@ def build_get_method_local_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/azurespecials/apiVersion/method/string/none/query/local/2.0") + _url = kwargs.pop("template_url", "/azurespecials/apiVersion/method/string/none/query/local/2.0") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -70,22 +70,22 @@ def build_get_method_local_null_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/azurespecials/apiVersion/method/string/none/query/local/null") + _url = kwargs.pop("template_url", "/azurespecials/apiVersion/method/string/none/query/local/null") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if api_version is not None: - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -98,21 +98,21 @@ def build_get_path_local_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/azurespecials/apiVersion/path/string/none/query/local/2.0") + _url = kwargs.pop("template_url", "/azurespecials/apiVersion/path/string/none/query/local/2.0") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -125,21 +125,21 @@ def build_get_swagger_local_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/azurespecials/apiVersion/swagger/string/none/query/local/2.0") + _url = kwargs.pop("template_url", "/azurespecials/apiVersion/swagger/string/none/query/local/2.0") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) diff --git a/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_header_operations.py b/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_header_operations.py index 2c72145b4f6..f53646dc5df 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_header_operations.py +++ b/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_header_operations.py @@ -43,17 +43,17 @@ def build_custom_named_request_id_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/azurespecials/customNamedRequestId") + _url = kwargs.pop("template_url", "/azurespecials/customNamedRequestId") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['foo-client-request-id'] = _SERIALIZER.header("foo_client_request_id", foo_client_request_id, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['foo-client-request-id'] = _SERIALIZER.header("foo_client_request_id", foo_client_request_id, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -66,17 +66,17 @@ def build_custom_named_request_id_param_grouping_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/azurespecials/customNamedRequestIdParamGrouping") + _url = kwargs.pop("template_url", "/azurespecials/customNamedRequestIdParamGrouping") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['foo-client-request-id'] = _SERIALIZER.header("foo_client_request_id", foo_client_request_id, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['foo-client-request-id'] = _SERIALIZER.header("foo_client_request_id", foo_client_request_id, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -89,17 +89,17 @@ def build_custom_named_request_id_head_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/azurespecials/customNamedRequestIdHead") + _url = kwargs.pop("template_url", "/azurespecials/customNamedRequestIdHead") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['foo-client-request-id'] = _SERIALIZER.header("foo_client_request_id", foo_client_request_id, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['foo-client-request-id'] = _SERIALIZER.header("foo_client_request_id", foo_client_request_id, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="HEAD", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_odata_operations.py b/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_odata_operations.py index 01dbbf353d1..b639d08c6c9 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_odata_operations.py +++ b/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_odata_operations.py @@ -45,26 +45,26 @@ def build_get_with_filter_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/azurespecials/odata/filter") + _url = kwargs.pop("template_url", "/azurespecials/odata/filter") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if filter is not None: - query_parameters['$filter'] = _SERIALIZER.query("filter", filter, 'str') + _query_parameters['$filter'] = _SERIALIZER.query("filter", filter, 'str') if top is not None: - query_parameters['$top'] = _SERIALIZER.query("top", top, 'int') + _query_parameters['$top'] = _SERIALIZER.query("top", top, 'int') if orderby is not None: - query_parameters['$orderby'] = _SERIALIZER.query("orderby", orderby, 'str') + _query_parameters['$orderby'] = _SERIALIZER.query("orderby", orderby, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) diff --git a/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_skip_url_encoding_operations.py b/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_skip_url_encoding_operations.py index eb72d7cd15a..142d0bc1ffc 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_skip_url_encoding_operations.py +++ b/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_skip_url_encoding_operations.py @@ -42,21 +42,21 @@ def build_get_method_path_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/azurespecials/skipUrlEncoding/method/path/valid/{unencodedPathParam}") + _url = kwargs.pop("template_url", "/azurespecials/skipUrlEncoding/method/path/valid/{unencodedPathParam}") path_format_arguments = { "unencodedPathParam": _SERIALIZER.url("unencoded_path_param", unencoded_path_param, 'str', skip_quote=True), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -68,21 +68,21 @@ def build_get_path_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/azurespecials/skipUrlEncoding/path/path/valid/{unencodedPathParam}") + _url = kwargs.pop("template_url", "/azurespecials/skipUrlEncoding/path/path/valid/{unencodedPathParam}") path_format_arguments = { "unencodedPathParam": _SERIALIZER.url("unencoded_path_param", unencoded_path_param, 'str', skip_quote=True), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -95,21 +95,21 @@ def build_get_swagger_path_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/azurespecials/skipUrlEncoding/swagger/path/valid/{unencodedPathParam}") + _url = kwargs.pop("template_url", "/azurespecials/skipUrlEncoding/swagger/path/valid/{unencodedPathParam}") path_format_arguments = { "unencodedPathParam": _SERIALIZER.url("unencoded_path_param", unencoded_path_param, 'str', skip_quote=True), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -122,21 +122,21 @@ def build_get_method_query_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/azurespecials/skipUrlEncoding/method/query/valid") + _url = kwargs.pop("template_url", "/azurespecials/skipUrlEncoding/method/query/valid") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['q1'] = _SERIALIZER.query("q1", q1, 'str', skip_quote=True) + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['q1'] = _SERIALIZER.query("q1", q1, 'str', skip_quote=True) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -149,22 +149,22 @@ def build_get_method_query_null_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/azurespecials/skipUrlEncoding/method/query/null") + _url = kwargs.pop("template_url", "/azurespecials/skipUrlEncoding/method/query/null") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if q1 is not None: - query_parameters['q1'] = _SERIALIZER.query("q1", q1, 'str', skip_quote=True) + _query_parameters['q1'] = _SERIALIZER.query("q1", q1, 'str', skip_quote=True) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -177,21 +177,21 @@ def build_get_path_query_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/azurespecials/skipUrlEncoding/path/query/valid") + _url = kwargs.pop("template_url", "/azurespecials/skipUrlEncoding/path/query/valid") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['q1'] = _SERIALIZER.query("q1", q1, 'str', skip_quote=True) + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['q1'] = _SERIALIZER.query("q1", q1, 'str', skip_quote=True) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -204,21 +204,21 @@ def build_get_swagger_query_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/azurespecials/skipUrlEncoding/swagger/query/valid") + _url = kwargs.pop("template_url", "/azurespecials/skipUrlEncoding/swagger/query/valid") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['q1'] = _SERIALIZER.query("q1", q1, 'str', skip_quote=True) + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['q1'] = _SERIALIZER.query("q1", q1, 'str', skip_quote=True) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) diff --git a/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_subscription_in_credentials_operations.py b/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_subscription_in_credentials_operations.py index f9bdac614b2..0b43bd6ce8c 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_subscription_in_credentials_operations.py +++ b/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_subscription_in_credentials_operations.py @@ -42,21 +42,21 @@ def build_post_method_global_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/azurespecials/subscriptionId/method/string/none/path/global/1234-5678-9012-3456/{subscriptionId}") # pylint: disable=line-too-long + _url = kwargs.pop("template_url", "/azurespecials/subscriptionId/method/string/none/path/global/1234-5678-9012-3456/{subscriptionId}") # pylint: disable=line-too-long path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -68,21 +68,21 @@ def build_post_method_global_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/azurespecials/subscriptionId/method/string/none/path/global/null/{subscriptionId}") + _url = kwargs.pop("template_url", "/azurespecials/subscriptionId/method/string/none/path/global/null/{subscriptionId}") path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -96,26 +96,26 @@ def build_post_method_global_not_provided_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/azurespecials/subscriptionId/method/string/none/path/globalNotProvided/1234-5678-9012-3456/{subscriptionId}") # pylint: disable=line-too-long + _url = kwargs.pop("template_url", "/azurespecials/subscriptionId/method/string/none/path/globalNotProvided/1234-5678-9012-3456/{subscriptionId}") # pylint: disable=line-too-long path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -127,21 +127,21 @@ def build_post_path_global_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/azurespecials/subscriptionId/path/string/none/path/global/1234-5678-9012-3456/{subscriptionId}") # pylint: disable=line-too-long + _url = kwargs.pop("template_url", "/azurespecials/subscriptionId/path/string/none/path/global/1234-5678-9012-3456/{subscriptionId}") # pylint: disable=line-too-long path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -153,21 +153,21 @@ def build_post_swagger_global_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/azurespecials/subscriptionId/swagger/string/none/path/global/1234-5678-9012-3456/{subscriptionId}") # pylint: disable=line-too-long + _url = kwargs.pop("template_url", "/azurespecials/subscriptionId/swagger/string/none/path/global/1234-5678-9012-3456/{subscriptionId}") # pylint: disable=line-too-long path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_subscription_in_method_operations.py b/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_subscription_in_method_operations.py index 0a3cd4c3310..a6bcbed2171 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_subscription_in_method_operations.py +++ b/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_subscription_in_method_operations.py @@ -42,21 +42,21 @@ def build_post_method_local_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/azurespecials/subscriptionId/method/string/none/path/local/1234-5678-9012-3456/{subscriptionId}") # pylint: disable=line-too-long + _url = kwargs.pop("template_url", "/azurespecials/subscriptionId/method/string/none/path/local/1234-5678-9012-3456/{subscriptionId}") # pylint: disable=line-too-long path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -68,21 +68,21 @@ def build_post_method_local_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/azurespecials/subscriptionId/method/string/none/path/local/null/{subscriptionId}") + _url = kwargs.pop("template_url", "/azurespecials/subscriptionId/method/string/none/path/local/null/{subscriptionId}") path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -94,21 +94,21 @@ def build_post_path_local_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/azurespecials/subscriptionId/path/string/none/path/local/1234-5678-9012-3456/{subscriptionId}") # pylint: disable=line-too-long + _url = kwargs.pop("template_url", "/azurespecials/subscriptionId/path/string/none/path/local/1234-5678-9012-3456/{subscriptionId}") # pylint: disable=line-too-long path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -120,21 +120,21 @@ def build_post_swagger_local_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/azurespecials/subscriptionId/swagger/string/none/path/local/1234-5678-9012-3456/{subscriptionId}") # pylint: disable=line-too-long + _url = kwargs.pop("template_url", "/azurespecials/subscriptionId/swagger/string/none/path/local/1234-5678-9012-3456/{subscriptionId}") # pylint: disable=line-too-long path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_xms_client_request_id_operations.py b/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_xms_client_request_id_operations.py index c6a6da065e2..2e4e5b83df0 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_xms_client_request_id_operations.py +++ b/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_xms_client_request_id_operations.py @@ -40,11 +40,11 @@ def build_get_request( ): # type: (...) -> HttpRequest # Construct URL - url = kwargs.pop("template_url", "/azurespecials/overwrite/x-ms-client-request-id/method/") + _url = kwargs.pop("template_url", "/azurespecials/overwrite/x-ms-client-request-id/method/") return HttpRequest( method="GET", - url=url, + url=_url, **kwargs ) @@ -57,17 +57,17 @@ def build_param_get_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/azurespecials/overwrite/x-ms-client-request-id/via-param/method/") + _url = kwargs.pop("template_url", "/azurespecials/overwrite/x-ms-client-request-id/via-param/method/") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['x-ms-client-request-id'] = _SERIALIZER.header("x_ms_client_request_id", x_ms_client_request_id, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['x-ms-client-request-id'] = _SERIALIZER.header("x_ms_client_request_id", x_ms_client_request_id, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/azure/legacy/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/operations/_paths_operations.py b/test/azure/legacy/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/operations/_paths_operations.py index 5a6ef601186..24b7a0502d2 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/operations/_paths_operations.py +++ b/test/azure/legacy/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/operations/_paths_operations.py @@ -40,16 +40,16 @@ def build_get_empty_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/customuri") + _url = kwargs.pop("template_url", "/customuri") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/azure/legacy/Expected/AcceptanceTests/CustomPollerPager/custompollerpager/operations/_paging_operations.py b/test/azure/legacy/Expected/AcceptanceTests/CustomPollerPager/custompollerpager/operations/_paging_operations.py index 2c1d76bd007..105884665d9 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/CustomPollerPager/custompollerpager/operations/_paging_operations.py +++ b/test/azure/legacy/Expected/AcceptanceTests/CustomPollerPager/custompollerpager/operations/_paging_operations.py @@ -39,16 +39,16 @@ def build_get_no_item_name_pages_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/paging/noitemname") + _url = kwargs.pop("template_url", "/paging/noitemname") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -59,16 +59,16 @@ def build_get_null_next_link_name_pages_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/paging/nullnextlink") + _url = kwargs.pop("template_url", "/paging/nullnextlink") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -79,16 +79,16 @@ def build_get_single_pages_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/paging/single") + _url = kwargs.pop("template_url", "/paging/single") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -99,16 +99,16 @@ def build_first_response_empty_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/paging/firstResponseEmpty/1") + _url = kwargs.pop("template_url", "/paging/firstResponseEmpty/1") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -123,22 +123,22 @@ def build_get_multiple_pages_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/paging/multiple") + _url = kwargs.pop("template_url", "/paging/multiple") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if client_request_id is not None: - header_parameters['client-request-id'] = _SERIALIZER.header("client_request_id", client_request_id, 'str') + _header_parameters['client-request-id'] = _SERIALIZER.header("client_request_id", client_request_id, 'str') if maxresults is not None: - header_parameters['maxresults'] = _SERIALIZER.header("maxresults", maxresults, 'int') + _header_parameters['maxresults'] = _SERIALIZER.header("maxresults", maxresults, 'int') if timeout is not None: - header_parameters['timeout'] = _SERIALIZER.header("timeout", timeout, 'int') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['timeout'] = _SERIALIZER.header("timeout", timeout, 'int') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -152,22 +152,22 @@ def build_get_with_query_params_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/paging/multiple/getWithQueryParams") + _url = kwargs.pop("template_url", "/paging/multiple/getWithQueryParams") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['requiredQueryParameter'] = _SERIALIZER.query("required_query_parameter", required_query_parameter, 'int') - query_parameters['queryConstant'] = _SERIALIZER.query("query_constant", query_constant, 'bool') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['requiredQueryParameter'] = _SERIALIZER.query("required_query_parameter", required_query_parameter, 'int') + _query_parameters['queryConstant'] = _SERIALIZER.query("query_constant", query_constant, 'bool') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -180,21 +180,21 @@ def build_next_operation_with_query_params_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/paging/multiple/nextOperationWithQueryParams") + _url = kwargs.pop("template_url", "/paging/multiple/nextOperationWithQueryParams") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['queryConstant'] = _SERIALIZER.query("query_constant", query_constant, 'bool') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['queryConstant'] = _SERIALIZER.query("query_constant", query_constant, 'bool') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -209,22 +209,22 @@ def build_get_odata_multiple_pages_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/paging/multiple/odata") + _url = kwargs.pop("template_url", "/paging/multiple/odata") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if client_request_id is not None: - header_parameters['client-request-id'] = _SERIALIZER.header("client_request_id", client_request_id, 'str') + _header_parameters['client-request-id'] = _SERIALIZER.header("client_request_id", client_request_id, 'str') if maxresults is not None: - header_parameters['maxresults'] = _SERIALIZER.header("maxresults", maxresults, 'int') + _header_parameters['maxresults'] = _SERIALIZER.header("maxresults", maxresults, 'int') if timeout is not None: - header_parameters['timeout'] = _SERIALIZER.header("timeout", timeout, 'int') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['timeout'] = _SERIALIZER.header("timeout", timeout, 'int') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -240,27 +240,27 @@ def build_get_multiple_pages_with_offset_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/paging/multiple/withpath/{offset}") + _url = kwargs.pop("template_url", "/paging/multiple/withpath/{offset}") path_format_arguments = { "offset": _SERIALIZER.url("offset", offset, 'int'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if client_request_id is not None: - header_parameters['client-request-id'] = _SERIALIZER.header("client_request_id", client_request_id, 'str') + _header_parameters['client-request-id'] = _SERIALIZER.header("client_request_id", client_request_id, 'str') if maxresults is not None: - header_parameters['maxresults'] = _SERIALIZER.header("maxresults", maxresults, 'int') + _header_parameters['maxresults'] = _SERIALIZER.header("maxresults", maxresults, 'int') if timeout is not None: - header_parameters['timeout'] = _SERIALIZER.header("timeout", timeout, 'int') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['timeout'] = _SERIALIZER.header("timeout", timeout, 'int') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -271,16 +271,16 @@ def build_get_multiple_pages_retry_first_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/paging/multiple/retryfirst") + _url = kwargs.pop("template_url", "/paging/multiple/retryfirst") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -291,16 +291,16 @@ def build_get_multiple_pages_retry_second_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/paging/multiple/retrysecond") + _url = kwargs.pop("template_url", "/paging/multiple/retrysecond") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -311,16 +311,16 @@ def build_get_single_pages_failure_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/paging/single/failure") + _url = kwargs.pop("template_url", "/paging/single/failure") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -331,16 +331,16 @@ def build_get_multiple_pages_failure_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/paging/multiple/failure") + _url = kwargs.pop("template_url", "/paging/multiple/failure") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -351,16 +351,16 @@ def build_get_multiple_pages_failure_uri_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/paging/multiple/failureuri") + _url = kwargs.pop("template_url", "/paging/multiple/failureuri") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -374,26 +374,26 @@ def build_get_multiple_pages_fragment_next_link_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/paging/multiple/fragment/{tenant}") + _url = kwargs.pop("template_url", "/paging/multiple/fragment/{tenant}") path_format_arguments = { "tenant": _SERIALIZER.url("tenant", tenant, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api_version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api_version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -407,26 +407,26 @@ def build_get_multiple_pages_fragment_with_grouping_next_link_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/paging/multiple/fragmentwithgrouping/{tenant}") + _url = kwargs.pop("template_url", "/paging/multiple/fragmentwithgrouping/{tenant}") path_format_arguments = { "tenant": _SERIALIZER.url("tenant", tenant, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api_version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api_version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -441,22 +441,22 @@ def build_get_multiple_pages_lro_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/paging/multiple/lro") + _url = kwargs.pop("template_url", "/paging/multiple/lro") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if client_request_id is not None: - header_parameters['client-request-id'] = _SERIALIZER.header("client_request_id", client_request_id, 'str') + _header_parameters['client-request-id'] = _SERIALIZER.header("client_request_id", client_request_id, 'str') if maxresults is not None: - header_parameters['maxresults'] = _SERIALIZER.header("maxresults", maxresults, 'int') + _header_parameters['maxresults'] = _SERIALIZER.header("maxresults", maxresults, 'int') if timeout is not None: - header_parameters['timeout'] = _SERIALIZER.header("timeout", timeout, 'int') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['timeout'] = _SERIALIZER.header("timeout", timeout, 'int') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -471,27 +471,27 @@ def build_next_fragment_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/paging/multiple/fragment/{tenant}/{nextLink}") + _url = kwargs.pop("template_url", "/paging/multiple/fragment/{tenant}/{nextLink}") path_format_arguments = { "tenant": _SERIALIZER.url("tenant", tenant, 'str'), "nextLink": _SERIALIZER.url("next_link", next_link, 'str', skip_quote=True), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api_version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api_version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -506,27 +506,27 @@ def build_next_fragment_with_grouping_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/paging/multiple/fragmentwithgrouping/{tenant}/{nextLink}") + _url = kwargs.pop("template_url", "/paging/multiple/fragmentwithgrouping/{tenant}/{nextLink}") path_format_arguments = { "tenant": _SERIALIZER.url("tenant", tenant, 'str'), "nextLink": _SERIALIZER.url("next_link", next_link, 'str', skip_quote=True), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api_version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api_version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -537,16 +537,16 @@ def build_get_paging_model_with_item_name_with_xms_client_name_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/paging/itemNameWithXMSClientName") + _url = kwargs.pop("template_url", "/paging/itemNameWithXMSClientName") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -593,7 +593,7 @@ def get_no_item_name_pages( error_map.update(kwargs.pop('error_map', {})) def prepare_request(next_link=None): if not next_link: - + request = build_get_no_item_name_pages_request( template_url=self.get_no_item_name_pages.metadata['url'], ) @@ -601,7 +601,7 @@ def prepare_request(next_link=None): request.url = self._client.format_url(request.url) else: - + request = build_get_no_item_name_pages_request( template_url=next_link, ) @@ -659,7 +659,7 @@ def get_null_next_link_name_pages( error_map.update(kwargs.pop('error_map', {})) def prepare_request(next_link=None): if not next_link: - + request = build_get_null_next_link_name_pages_request( template_url=self.get_null_next_link_name_pages.metadata['url'], ) @@ -667,7 +667,7 @@ def prepare_request(next_link=None): request.url = self._client.format_url(request.url) else: - + request = build_get_null_next_link_name_pages_request( template_url=next_link, ) @@ -725,7 +725,7 @@ def get_single_pages( error_map.update(kwargs.pop('error_map', {})) def prepare_request(next_link=None): if not next_link: - + request = build_get_single_pages_request( template_url=self.get_single_pages.metadata['url'], ) @@ -733,7 +733,7 @@ def prepare_request(next_link=None): request.url = self._client.format_url(request.url) else: - + request = build_get_single_pages_request( template_url=next_link, ) @@ -792,7 +792,7 @@ def first_response_empty( error_map.update(kwargs.pop('error_map', {})) def prepare_request(next_link=None): if not next_link: - + request = build_first_response_empty_request( template_url=self.first_response_empty.metadata['url'], ) @@ -800,7 +800,7 @@ def prepare_request(next_link=None): request.url = self._client.format_url(request.url) else: - + request = build_first_response_empty_request( template_url=next_link, ) @@ -870,7 +870,7 @@ def prepare_request(next_link=None): if paging_get_multiple_pages_options is not None: _maxresults = paging_get_multiple_pages_options.maxresults _timeout = paging_get_multiple_pages_options.timeout - + request = build_get_multiple_pages_request( client_request_id=client_request_id, maxresults=_maxresults, @@ -886,7 +886,7 @@ def prepare_request(next_link=None): if paging_get_multiple_pages_options is not None: _maxresults = paging_get_multiple_pages_options.maxresults _timeout = paging_get_multiple_pages_options.timeout - + request = build_get_multiple_pages_request( client_request_id=client_request_id, maxresults=_maxresults, @@ -958,7 +958,7 @@ def get_with_query_params( error_map.update(kwargs.pop('error_map', {})) def prepare_request(next_link=None): if not next_link: - + request = build_get_with_query_params_request( query_constant=query_constant, required_query_parameter=required_query_parameter, @@ -968,7 +968,7 @@ def prepare_request(next_link=None): request.url = self._client.format_url(request.url) else: - + request = build_next_operation_with_query_params_request( query_constant=query_constant, template_url='/paging/multiple/nextOperationWithQueryParams', @@ -1039,7 +1039,7 @@ def prepare_request(next_link=None): if paging_get_odata_multiple_pages_options is not None: _maxresults = paging_get_odata_multiple_pages_options.maxresults _timeout = paging_get_odata_multiple_pages_options.timeout - + request = build_get_odata_multiple_pages_request( client_request_id=client_request_id, maxresults=_maxresults, @@ -1055,7 +1055,7 @@ def prepare_request(next_link=None): if paging_get_odata_multiple_pages_options is not None: _maxresults = paging_get_odata_multiple_pages_options.maxresults _timeout = paging_get_odata_multiple_pages_options.timeout - + request = build_get_odata_multiple_pages_request( client_request_id=client_request_id, maxresults=_maxresults, @@ -1130,7 +1130,7 @@ def prepare_request(next_link=None): _maxresults = paging_get_multiple_pages_with_offset_options.maxresults _offset = paging_get_multiple_pages_with_offset_options.offset _timeout = paging_get_multiple_pages_with_offset_options.timeout - + request = build_get_multiple_pages_with_offset_request( offset=_offset, client_request_id=client_request_id, @@ -1149,7 +1149,7 @@ def prepare_request(next_link=None): _maxresults = paging_get_multiple_pages_with_offset_options.maxresults _offset = paging_get_multiple_pages_with_offset_options.offset _timeout = paging_get_multiple_pages_with_offset_options.timeout - + request = build_get_multiple_pages_with_offset_request( offset=_offset, client_request_id=client_request_id, @@ -1212,7 +1212,7 @@ def get_multiple_pages_retry_first( error_map.update(kwargs.pop('error_map', {})) def prepare_request(next_link=None): if not next_link: - + request = build_get_multiple_pages_retry_first_request( template_url=self.get_multiple_pages_retry_first.metadata['url'], ) @@ -1220,7 +1220,7 @@ def prepare_request(next_link=None): request.url = self._client.format_url(request.url) else: - + request = build_get_multiple_pages_retry_first_request( template_url=next_link, ) @@ -1279,7 +1279,7 @@ def get_multiple_pages_retry_second( error_map.update(kwargs.pop('error_map', {})) def prepare_request(next_link=None): if not next_link: - + request = build_get_multiple_pages_retry_second_request( template_url=self.get_multiple_pages_retry_second.metadata['url'], ) @@ -1287,7 +1287,7 @@ def prepare_request(next_link=None): request.url = self._client.format_url(request.url) else: - + request = build_get_multiple_pages_retry_second_request( template_url=next_link, ) @@ -1345,7 +1345,7 @@ def get_single_pages_failure( error_map.update(kwargs.pop('error_map', {})) def prepare_request(next_link=None): if not next_link: - + request = build_get_single_pages_failure_request( template_url=self.get_single_pages_failure.metadata['url'], ) @@ -1353,7 +1353,7 @@ def prepare_request(next_link=None): request.url = self._client.format_url(request.url) else: - + request = build_get_single_pages_failure_request( template_url=next_link, ) @@ -1411,7 +1411,7 @@ def get_multiple_pages_failure( error_map.update(kwargs.pop('error_map', {})) def prepare_request(next_link=None): if not next_link: - + request = build_get_multiple_pages_failure_request( template_url=self.get_multiple_pages_failure.metadata['url'], ) @@ -1419,7 +1419,7 @@ def prepare_request(next_link=None): request.url = self._client.format_url(request.url) else: - + request = build_get_multiple_pages_failure_request( template_url=next_link, ) @@ -1477,7 +1477,7 @@ def get_multiple_pages_failure_uri( error_map.update(kwargs.pop('error_map', {})) def prepare_request(next_link=None): if not next_link: - + request = build_get_multiple_pages_failure_uri_request( template_url=self.get_multiple_pages_failure_uri.metadata['url'], ) @@ -1485,7 +1485,7 @@ def prepare_request(next_link=None): request.url = self._client.format_url(request.url) else: - + request = build_get_multiple_pages_failure_uri_request( template_url=next_link, ) @@ -1549,7 +1549,7 @@ def get_multiple_pages_fragment_next_link( error_map.update(kwargs.pop('error_map', {})) def prepare_request(next_link=None): if not next_link: - + request = build_get_multiple_pages_fragment_next_link_request( tenant=tenant, api_version=api_version, @@ -1559,7 +1559,7 @@ def prepare_request(next_link=None): request.url = self._client.format_url(request.url) else: - + request = build_next_fragment_request( tenant=tenant, next_link=next_link, @@ -1628,7 +1628,7 @@ def prepare_request(next_link=None): if custom_parameter_group is not None: _api_version = custom_parameter_group.api_version _tenant = custom_parameter_group.tenant - + request = build_get_multiple_pages_fragment_with_grouping_next_link_request( tenant=_tenant, api_version=_api_version, @@ -1643,7 +1643,7 @@ def prepare_request(next_link=None): if custom_parameter_group is not None: _api_version = custom_parameter_group.api_version _tenant = custom_parameter_group.tenant - + request = build_next_fragment_with_grouping_request( tenant=_tenant, next_link=next_link, @@ -1775,7 +1775,7 @@ def prepare_request(next_link=None): if paging_get_multiple_pages_lro_options is not None: _maxresults = paging_get_multiple_pages_lro_options.maxresults _timeout = paging_get_multiple_pages_lro_options.timeout - + request = build_get_multiple_pages_lro_request_initial( client_request_id=client_request_id, maxresults=_maxresults, @@ -1791,7 +1791,7 @@ def prepare_request(next_link=None): if paging_get_multiple_pages_lro_options is not None: _maxresults = paging_get_multiple_pages_lro_options.maxresults _timeout = paging_get_multiple_pages_lro_options.timeout - + request = build_get_multiple_pages_lro_request_initial( client_request_id=client_request_id, maxresults=_maxresults, @@ -1891,7 +1891,7 @@ def get_paging_model_with_item_name_with_xms_client_name( error_map.update(kwargs.pop('error_map', {})) def prepare_request(next_link=None): if not next_link: - + request = build_get_paging_model_with_item_name_with_xms_client_name_request( template_url=self.get_paging_model_with_item_name_with_xms_client_name.metadata['url'], ) @@ -1899,7 +1899,7 @@ def prepare_request(next_link=None): request.url = self._client.format_url(request.url) else: - + request = build_get_paging_model_with_item_name_with_xms_client_name_request( template_url=next_link, ) diff --git a/test/azure/legacy/Expected/AcceptanceTests/CustomUrlPaging/custombaseurlpaging/operations/_paging_operations.py b/test/azure/legacy/Expected/AcceptanceTests/CustomUrlPaging/custombaseurlpaging/operations/_paging_operations.py index 6a382583fc0..06378430111 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/CustomUrlPaging/custombaseurlpaging/operations/_paging_operations.py +++ b/test/azure/legacy/Expected/AcceptanceTests/CustomUrlPaging/custombaseurlpaging/operations/_paging_operations.py @@ -42,16 +42,16 @@ def build_get_pages_partial_url_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/paging/customurl/partialnextlink") + _url = kwargs.pop("template_url", "/paging/customurl/partialnextlink") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -62,16 +62,16 @@ def build_get_pages_partial_url_operation_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/paging/customurl/partialnextlinkop") + _url = kwargs.pop("template_url", "/paging/customurl/partialnextlinkop") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -83,21 +83,21 @@ def build_get_pages_partial_url_operation_next_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/paging/customurl/{nextLink}") + _url = kwargs.pop("template_url", "/paging/customurl/{nextLink}") path_format_arguments = { "nextLink": _SERIALIZER.url("next_link", next_link, 'str', skip_quote=True), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/azure/legacy/Expected/AcceptanceTests/Head/head/operations/_http_success_operations.py b/test/azure/legacy/Expected/AcceptanceTests/Head/head/operations/_http_success_operations.py index de0fefe186d..bd6e19ad2cd 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/Head/head/operations/_http_success_operations.py +++ b/test/azure/legacy/Expected/AcceptanceTests/Head/head/operations/_http_success_operations.py @@ -40,11 +40,11 @@ def build_head200_request( ): # type: (...) -> HttpRequest # Construct URL - url = kwargs.pop("template_url", "/http/success/200") + _url = kwargs.pop("template_url", "/http/success/200") return HttpRequest( method="HEAD", - url=url, + url=_url, **kwargs ) @@ -54,11 +54,11 @@ def build_head204_request( ): # type: (...) -> HttpRequest # Construct URL - url = kwargs.pop("template_url", "/http/success/204") + _url = kwargs.pop("template_url", "/http/success/204") return HttpRequest( method="HEAD", - url=url, + url=_url, **kwargs ) @@ -68,11 +68,11 @@ def build_head404_request( ): # type: (...) -> HttpRequest # Construct URL - url = kwargs.pop("template_url", "/http/success/404") + _url = kwargs.pop("template_url", "/http/success/404") return HttpRequest( method="HEAD", - url=url, + url=_url, **kwargs ) diff --git a/test/azure/legacy/Expected/AcceptanceTests/HeadExceptions/headexceptions/operations/_head_exception_operations.py b/test/azure/legacy/Expected/AcceptanceTests/HeadExceptions/headexceptions/operations/_head_exception_operations.py index de8fa60eed5..9da11d91b15 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/HeadExceptions/headexceptions/operations/_head_exception_operations.py +++ b/test/azure/legacy/Expected/AcceptanceTests/HeadExceptions/headexceptions/operations/_head_exception_operations.py @@ -40,11 +40,11 @@ def build_head200_request( ): # type: (...) -> HttpRequest # Construct URL - url = kwargs.pop("template_url", "/http/success/200") + _url = kwargs.pop("template_url", "/http/success/200") return HttpRequest( method="HEAD", - url=url, + url=_url, **kwargs ) @@ -54,11 +54,11 @@ def build_head204_request( ): # type: (...) -> HttpRequest # Construct URL - url = kwargs.pop("template_url", "/http/success/204") + _url = kwargs.pop("template_url", "/http/success/204") return HttpRequest( method="HEAD", - url=url, + url=_url, **kwargs ) @@ -68,11 +68,11 @@ def build_head404_request( ): # type: (...) -> HttpRequest # Construct URL - url = kwargs.pop("template_url", "/http/success/404") + _url = kwargs.pop("template_url", "/http/success/404") return HttpRequest( method="HEAD", - url=url, + url=_url, **kwargs ) diff --git a/test/azure/legacy/Expected/AcceptanceTests/HeadWithAzureKeyCredentialPolicy/headwithazurekeycredentialpolicy/operations/_http_success_operations.py b/test/azure/legacy/Expected/AcceptanceTests/HeadWithAzureKeyCredentialPolicy/headwithazurekeycredentialpolicy/operations/_http_success_operations.py index de0fefe186d..bd6e19ad2cd 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/HeadWithAzureKeyCredentialPolicy/headwithazurekeycredentialpolicy/operations/_http_success_operations.py +++ b/test/azure/legacy/Expected/AcceptanceTests/HeadWithAzureKeyCredentialPolicy/headwithazurekeycredentialpolicy/operations/_http_success_operations.py @@ -40,11 +40,11 @@ def build_head200_request( ): # type: (...) -> HttpRequest # Construct URL - url = kwargs.pop("template_url", "/http/success/200") + _url = kwargs.pop("template_url", "/http/success/200") return HttpRequest( method="HEAD", - url=url, + url=_url, **kwargs ) @@ -54,11 +54,11 @@ def build_head204_request( ): # type: (...) -> HttpRequest # Construct URL - url = kwargs.pop("template_url", "/http/success/204") + _url = kwargs.pop("template_url", "/http/success/204") return HttpRequest( method="HEAD", - url=url, + url=_url, **kwargs ) @@ -68,11 +68,11 @@ def build_head404_request( ): # type: (...) -> HttpRequest # Construct URL - url = kwargs.pop("template_url", "/http/success/404") + _url = kwargs.pop("template_url", "/http/success/404") return HttpRequest( method="HEAD", - url=url, + url=_url, **kwargs ) diff --git a/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/operations/_lr_os_custom_header_operations.py b/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/operations/_lr_os_custom_header_operations.py index d6e22848eea..688956fdefd 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/operations/_lr_os_custom_header_operations.py +++ b/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/operations/_lr_os_custom_header_operations.py @@ -46,18 +46,18 @@ def build_put_async_retry_succeeded_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/lro/customheader/putasync/retry/succeeded") + _url = kwargs.pop("template_url", "/lro/customheader/putasync/retry/succeeded") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -70,18 +70,18 @@ def build_put201_creating_succeeded200_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/lro/customheader/put/201/creating/succeeded/200") + _url = kwargs.pop("template_url", "/lro/customheader/put/201/creating/succeeded/200") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -94,18 +94,18 @@ def build_post202_retry200_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/lro/customheader/post/202/retry/200") + _url = kwargs.pop("template_url", "/lro/customheader/post/202/retry/200") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -118,18 +118,18 @@ def build_post_async_retry_succeeded_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/lro/customheader/postasync/retry/succeeded") + _url = kwargs.pop("template_url", "/lro/customheader/postasync/retry/succeeded") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/operations/_lro_retrys_operations.py b/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/operations/_lro_retrys_operations.py index 815f0e3ac30..2900b32db9f 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/operations/_lro_retrys_operations.py +++ b/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/operations/_lro_retrys_operations.py @@ -46,18 +46,18 @@ def build_put201_creating_succeeded200_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/lro/retryerror/put/201/creating/succeeded/200") + _url = kwargs.pop("template_url", "/lro/retryerror/put/201/creating/succeeded/200") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -70,18 +70,18 @@ def build_put_async_relative_retry_succeeded_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/lro/retryerror/putasync/retry/succeeded") + _url = kwargs.pop("template_url", "/lro/retryerror/putasync/retry/succeeded") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -92,16 +92,16 @@ def build_delete_provisioning202_accepted200_succeeded_request_initial( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/lro/retryerror/delete/provisioning/202/accepted/200/succeeded") + _url = kwargs.pop("template_url", "/lro/retryerror/delete/provisioning/202/accepted/200/succeeded") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="DELETE", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -112,16 +112,16 @@ def build_delete202_retry200_request_initial( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/lro/retryerror/delete/202/retry/200") + _url = kwargs.pop("template_url", "/lro/retryerror/delete/202/retry/200") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="DELETE", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -132,16 +132,16 @@ def build_delete_async_relative_retry_succeeded_request_initial( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/lro/retryerror/deleteasync/retry/succeeded") + _url = kwargs.pop("template_url", "/lro/retryerror/deleteasync/retry/succeeded") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="DELETE", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -154,18 +154,18 @@ def build_post202_retry200_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/lro/retryerror/post/202/retry/200") + _url = kwargs.pop("template_url", "/lro/retryerror/post/202/retry/200") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -178,18 +178,18 @@ def build_post_async_relative_retry_succeeded_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/lro/retryerror/postasync/retry/succeeded") + _url = kwargs.pop("template_url", "/lro/retryerror/postasync/retry/succeeded") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/operations/_lros_operations.py b/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/operations/_lros_operations.py index 42a3ac48c07..e61502f8f38 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/operations/_lros_operations.py +++ b/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/operations/_lros_operations.py @@ -46,18 +46,18 @@ def build_put200_succeeded_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/lro/put/200/succeeded") + _url = kwargs.pop("template_url", "/lro/put/200/succeeded") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -70,18 +70,18 @@ def build_patch200_succeeded_ignore_headers_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/lro/patch/200/succeeded/ignoreheaders") + _url = kwargs.pop("template_url", "/lro/patch/200/succeeded/ignoreheaders") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PATCH", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -94,18 +94,18 @@ def build_patch201_retry_with_async_header_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/lro/patch/201/retry/onlyAsyncHeader") + _url = kwargs.pop("template_url", "/lro/patch/201/retry/onlyAsyncHeader") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PATCH", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -118,18 +118,18 @@ def build_patch202_retry_with_async_and_location_header_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/lro/patch/202/retry/asyncAndLocationHeader") + _url = kwargs.pop("template_url", "/lro/patch/202/retry/asyncAndLocationHeader") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PATCH", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -142,18 +142,18 @@ def build_put201_succeeded_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/lro/put/201/succeeded") + _url = kwargs.pop("template_url", "/lro/put/201/succeeded") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -164,16 +164,16 @@ def build_post202_list_request_initial( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/lro/list") + _url = kwargs.pop("template_url", "/lro/list") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -186,18 +186,18 @@ def build_put200_succeeded_no_state_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/lro/put/200/succeeded/nostate") + _url = kwargs.pop("template_url", "/lro/put/200/succeeded/nostate") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -210,18 +210,18 @@ def build_put202_retry200_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/lro/put/202/retry/200") + _url = kwargs.pop("template_url", "/lro/put/202/retry/200") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -234,18 +234,18 @@ def build_put201_creating_succeeded200_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/lro/put/201/creating/succeeded/200") + _url = kwargs.pop("template_url", "/lro/put/201/creating/succeeded/200") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -258,18 +258,18 @@ def build_put200_updating_succeeded204_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/lro/put/200/updating/succeeded/200") + _url = kwargs.pop("template_url", "/lro/put/200/updating/succeeded/200") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -282,18 +282,18 @@ def build_put201_creating_failed200_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/lro/put/201/created/failed/200") + _url = kwargs.pop("template_url", "/lro/put/201/created/failed/200") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -306,18 +306,18 @@ def build_put200_acceptedcanceled200_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/lro/put/200/accepted/canceled/200") + _url = kwargs.pop("template_url", "/lro/put/200/accepted/canceled/200") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -330,18 +330,18 @@ def build_put_no_header_in_retry_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/lro/put/noheader/202/200") + _url = kwargs.pop("template_url", "/lro/put/noheader/202/200") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -354,18 +354,18 @@ def build_put_async_retry_succeeded_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/lro/putasync/retry/succeeded") + _url = kwargs.pop("template_url", "/lro/putasync/retry/succeeded") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -378,18 +378,18 @@ def build_put_async_no_retry_succeeded_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/lro/putasync/noretry/succeeded") + _url = kwargs.pop("template_url", "/lro/putasync/noretry/succeeded") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -402,18 +402,18 @@ def build_put_async_retry_failed_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/lro/putasync/retry/failed") + _url = kwargs.pop("template_url", "/lro/putasync/retry/failed") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -426,18 +426,18 @@ def build_put_async_no_retrycanceled_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/lro/putasync/noretry/canceled") + _url = kwargs.pop("template_url", "/lro/putasync/noretry/canceled") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -450,18 +450,18 @@ def build_put_async_no_header_in_retry_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/lro/putasync/noheader/201/200") + _url = kwargs.pop("template_url", "/lro/putasync/noheader/201/200") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -474,18 +474,18 @@ def build_put_non_resource_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/lro/putnonresource/202/200") + _url = kwargs.pop("template_url", "/lro/putnonresource/202/200") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -498,18 +498,18 @@ def build_put_async_non_resource_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/lro/putnonresourceasync/202/200") + _url = kwargs.pop("template_url", "/lro/putnonresourceasync/202/200") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -522,18 +522,18 @@ def build_put_sub_resource_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/lro/putsubresource/202/200") + _url = kwargs.pop("template_url", "/lro/putsubresource/202/200") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -546,18 +546,18 @@ def build_put_async_sub_resource_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/lro/putsubresourceasync/202/200") + _url = kwargs.pop("template_url", "/lro/putsubresourceasync/202/200") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -568,16 +568,16 @@ def build_delete_provisioning202_accepted200_succeeded_request_initial( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/lro/delete/provisioning/202/accepted/200/succeeded") + _url = kwargs.pop("template_url", "/lro/delete/provisioning/202/accepted/200/succeeded") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="DELETE", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -588,16 +588,16 @@ def build_delete_provisioning202_deleting_failed200_request_initial( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/lro/delete/provisioning/202/deleting/200/failed") + _url = kwargs.pop("template_url", "/lro/delete/provisioning/202/deleting/200/failed") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="DELETE", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -608,16 +608,16 @@ def build_delete_provisioning202_deletingcanceled200_request_initial( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/lro/delete/provisioning/202/deleting/200/canceled") + _url = kwargs.pop("template_url", "/lro/delete/provisioning/202/deleting/200/canceled") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="DELETE", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -628,16 +628,16 @@ def build_delete204_succeeded_request_initial( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/lro/delete/204/succeeded") + _url = kwargs.pop("template_url", "/lro/delete/204/succeeded") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="DELETE", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -648,16 +648,16 @@ def build_delete202_retry200_request_initial( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/lro/delete/202/retry/200") + _url = kwargs.pop("template_url", "/lro/delete/202/retry/200") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="DELETE", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -668,16 +668,16 @@ def build_delete202_no_retry204_request_initial( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/lro/delete/202/noretry/204") + _url = kwargs.pop("template_url", "/lro/delete/202/noretry/204") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="DELETE", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -688,16 +688,16 @@ def build_delete_no_header_in_retry_request_initial( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/lro/delete/noheader") + _url = kwargs.pop("template_url", "/lro/delete/noheader") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="DELETE", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -708,16 +708,16 @@ def build_delete_async_no_header_in_retry_request_initial( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/lro/deleteasync/noheader/202/204") + _url = kwargs.pop("template_url", "/lro/deleteasync/noheader/202/204") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="DELETE", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -728,16 +728,16 @@ def build_delete_async_retry_succeeded_request_initial( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/lro/deleteasync/retry/succeeded") + _url = kwargs.pop("template_url", "/lro/deleteasync/retry/succeeded") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="DELETE", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -748,16 +748,16 @@ def build_delete_async_no_retry_succeeded_request_initial( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/lro/deleteasync/noretry/succeeded") + _url = kwargs.pop("template_url", "/lro/deleteasync/noretry/succeeded") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="DELETE", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -768,16 +768,16 @@ def build_delete_async_retry_failed_request_initial( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/lro/deleteasync/retry/failed") + _url = kwargs.pop("template_url", "/lro/deleteasync/retry/failed") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="DELETE", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -788,16 +788,16 @@ def build_delete_async_retrycanceled_request_initial( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/lro/deleteasync/retry/canceled") + _url = kwargs.pop("template_url", "/lro/deleteasync/retry/canceled") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="DELETE", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -808,16 +808,16 @@ def build_post200_with_payload_request_initial( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/lro/post/payload/200") + _url = kwargs.pop("template_url", "/lro/post/payload/200") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -830,18 +830,18 @@ def build_post202_retry200_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/lro/post/202/retry/200") + _url = kwargs.pop("template_url", "/lro/post/202/retry/200") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -854,18 +854,18 @@ def build_post202_no_retry204_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/lro/post/202/noretry/204") + _url = kwargs.pop("template_url", "/lro/post/202/noretry/204") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -876,16 +876,16 @@ def build_post_double_headers_final_location_get_request_initial( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/lro/LROPostDoubleHeadersFinalLocationGet") + _url = kwargs.pop("template_url", "/lro/LROPostDoubleHeadersFinalLocationGet") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -896,16 +896,16 @@ def build_post_double_headers_final_azure_header_get_request_initial( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/lro/LROPostDoubleHeadersFinalAzureHeaderGet") + _url = kwargs.pop("template_url", "/lro/LROPostDoubleHeadersFinalAzureHeaderGet") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -916,16 +916,16 @@ def build_post_double_headers_final_azure_header_get_default_request_initial( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/lro/LROPostDoubleHeadersFinalAzureHeaderGetDefault") + _url = kwargs.pop("template_url", "/lro/LROPostDoubleHeadersFinalAzureHeaderGetDefault") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -938,18 +938,18 @@ def build_post_async_retry_succeeded_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/lro/postasync/retry/succeeded") + _url = kwargs.pop("template_url", "/lro/postasync/retry/succeeded") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -962,18 +962,18 @@ def build_post_async_no_retry_succeeded_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/lro/postasync/noretry/succeeded") + _url = kwargs.pop("template_url", "/lro/postasync/noretry/succeeded") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -986,18 +986,18 @@ def build_post_async_retry_failed_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/lro/postasync/retry/failed") + _url = kwargs.pop("template_url", "/lro/postasync/retry/failed") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1010,18 +1010,18 @@ def build_post_async_retrycanceled_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/lro/postasync/retry/canceled") + _url = kwargs.pop("template_url", "/lro/postasync/retry/canceled") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/operations/_lrosads_operations.py b/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/operations/_lrosads_operations.py index 1bd71fd0623..27536271812 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/operations/_lrosads_operations.py +++ b/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/operations/_lrosads_operations.py @@ -46,18 +46,18 @@ def build_put_non_retry400_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/lro/nonretryerror/put/400") + _url = kwargs.pop("template_url", "/lro/nonretryerror/put/400") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -70,18 +70,18 @@ def build_put_non_retry201_creating400_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/lro/nonretryerror/put/201/creating/400") + _url = kwargs.pop("template_url", "/lro/nonretryerror/put/201/creating/400") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -94,18 +94,18 @@ def build_put_non_retry201_creating400_invalid_json_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/lro/nonretryerror/put/201/creating/400/invalidjson") + _url = kwargs.pop("template_url", "/lro/nonretryerror/put/201/creating/400/invalidjson") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -118,18 +118,18 @@ def build_put_async_relative_retry400_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/lro/nonretryerror/putasync/retry/400") + _url = kwargs.pop("template_url", "/lro/nonretryerror/putasync/retry/400") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -140,16 +140,16 @@ def build_delete_non_retry400_request_initial( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/lro/nonretryerror/delete/400") + _url = kwargs.pop("template_url", "/lro/nonretryerror/delete/400") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="DELETE", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -160,16 +160,16 @@ def build_delete202_non_retry400_request_initial( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/lro/nonretryerror/delete/202/retry/400") + _url = kwargs.pop("template_url", "/lro/nonretryerror/delete/202/retry/400") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="DELETE", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -180,16 +180,16 @@ def build_delete_async_relative_retry400_request_initial( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/lro/nonretryerror/deleteasync/retry/400") + _url = kwargs.pop("template_url", "/lro/nonretryerror/deleteasync/retry/400") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="DELETE", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -202,18 +202,18 @@ def build_post_non_retry400_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/lro/nonretryerror/post/400") + _url = kwargs.pop("template_url", "/lro/nonretryerror/post/400") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -226,18 +226,18 @@ def build_post202_non_retry400_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/lro/nonretryerror/post/202/retry/400") + _url = kwargs.pop("template_url", "/lro/nonretryerror/post/202/retry/400") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -250,18 +250,18 @@ def build_post_async_relative_retry400_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/lro/nonretryerror/postasync/retry/400") + _url = kwargs.pop("template_url", "/lro/nonretryerror/postasync/retry/400") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -274,18 +274,18 @@ def build_put_error201_no_provisioning_state_payload_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/lro/error/put/201/noprovisioningstatepayload") + _url = kwargs.pop("template_url", "/lro/error/put/201/noprovisioningstatepayload") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -298,18 +298,18 @@ def build_put_async_relative_retry_no_status_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/lro/error/putasync/retry/nostatus") + _url = kwargs.pop("template_url", "/lro/error/putasync/retry/nostatus") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -322,18 +322,18 @@ def build_put_async_relative_retry_no_status_payload_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/lro/error/putasync/retry/nostatuspayload") + _url = kwargs.pop("template_url", "/lro/error/putasync/retry/nostatuspayload") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -344,16 +344,16 @@ def build_delete204_succeeded_request_initial( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/lro/error/delete/204/nolocation") + _url = kwargs.pop("template_url", "/lro/error/delete/204/nolocation") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="DELETE", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -364,16 +364,16 @@ def build_delete_async_relative_retry_no_status_request_initial( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/lro/error/deleteasync/retry/nostatus") + _url = kwargs.pop("template_url", "/lro/error/deleteasync/retry/nostatus") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="DELETE", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -386,18 +386,18 @@ def build_post202_no_location_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/lro/error/post/202/nolocation") + _url = kwargs.pop("template_url", "/lro/error/post/202/nolocation") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -410,18 +410,18 @@ def build_post_async_relative_retry_no_payload_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/lro/error/postasync/retry/nopayload") + _url = kwargs.pop("template_url", "/lro/error/postasync/retry/nopayload") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -434,18 +434,18 @@ def build_put200_invalid_json_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/lro/error/put/200/invalidjson") + _url = kwargs.pop("template_url", "/lro/error/put/200/invalidjson") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -458,18 +458,18 @@ def build_put_async_relative_retry_invalid_header_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/lro/error/putasync/retry/invalidheader") + _url = kwargs.pop("template_url", "/lro/error/putasync/retry/invalidheader") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -482,18 +482,18 @@ def build_put_async_relative_retry_invalid_json_polling_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/lro/error/putasync/retry/invalidjsonpolling") + _url = kwargs.pop("template_url", "/lro/error/putasync/retry/invalidjsonpolling") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -504,16 +504,16 @@ def build_delete202_retry_invalid_header_request_initial( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/lro/error/delete/202/retry/invalidheader") + _url = kwargs.pop("template_url", "/lro/error/delete/202/retry/invalidheader") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="DELETE", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -524,16 +524,16 @@ def build_delete_async_relative_retry_invalid_header_request_initial( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/lro/error/deleteasync/retry/invalidheader") + _url = kwargs.pop("template_url", "/lro/error/deleteasync/retry/invalidheader") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="DELETE", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -544,16 +544,16 @@ def build_delete_async_relative_retry_invalid_json_polling_request_initial( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/lro/error/deleteasync/retry/invalidjsonpolling") + _url = kwargs.pop("template_url", "/lro/error/deleteasync/retry/invalidjsonpolling") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="DELETE", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -566,18 +566,18 @@ def build_post202_retry_invalid_header_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/lro/error/post/202/retry/invalidheader") + _url = kwargs.pop("template_url", "/lro/error/post/202/retry/invalidheader") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -590,18 +590,18 @@ def build_post_async_relative_retry_invalid_header_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/lro/error/postasync/retry/invalidheader") + _url = kwargs.pop("template_url", "/lro/error/postasync/retry/invalidheader") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -614,18 +614,18 @@ def build_post_async_relative_retry_invalid_json_polling_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/lro/error/postasync/retry/invalidjsonpolling") + _url = kwargs.pop("template_url", "/lro/error/postasync/retry/invalidjsonpolling") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/azure/legacy/Expected/AcceptanceTests/LroWithParameterizedEndpoints/lrowithparameterizedendpoints/operations/_lro_with_paramaterized_endpoints_operations.py b/test/azure/legacy/Expected/AcceptanceTests/LroWithParameterizedEndpoints/lrowithparameterizedendpoints/operations/_lro_with_paramaterized_endpoints_operations.py index 5809b91b210..42796e60f23 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/LroWithParameterizedEndpoints/lrowithparameterizedendpoints/operations/_lro_with_paramaterized_endpoints_operations.py +++ b/test/azure/legacy/Expected/AcceptanceTests/LroWithParameterizedEndpoints/lrowithparameterizedendpoints/operations/_lro_with_paramaterized_endpoints_operations.py @@ -43,16 +43,16 @@ def build_poll_with_parameterized_endpoints_request_initial( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/lroParameterizedEndpoints") + _url = kwargs.pop("template_url", "/lroParameterizedEndpoints") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -65,21 +65,21 @@ def build_poll_with_constant_parameterized_endpoints_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/lroConstantParameterizedEndpoints/{constantParameter}") + _url = kwargs.pop("template_url", "/lroConstantParameterizedEndpoints/{constantParameter}") path_format_arguments = { "constantParameter": _SERIALIZER.url("constant_parameter", constant_parameter, 'str', skip_quote=True), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/azure/legacy/Expected/AcceptanceTests/Paging/paging/operations/_paging_operations.py b/test/azure/legacy/Expected/AcceptanceTests/Paging/paging/operations/_paging_operations.py index 1f43a6889c7..4e6a536ff86 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/Paging/paging/operations/_paging_operations.py +++ b/test/azure/legacy/Expected/AcceptanceTests/Paging/paging/operations/_paging_operations.py @@ -44,16 +44,16 @@ def build_get_no_item_name_pages_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/paging/noitemname") + _url = kwargs.pop("template_url", "/paging/noitemname") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -64,16 +64,16 @@ def build_get_null_next_link_name_pages_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/paging/nullnextlink") + _url = kwargs.pop("template_url", "/paging/nullnextlink") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -84,16 +84,16 @@ def build_get_single_pages_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/paging/single") + _url = kwargs.pop("template_url", "/paging/single") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -104,16 +104,16 @@ def build_first_response_empty_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/paging/firstResponseEmpty/1") + _url = kwargs.pop("template_url", "/paging/firstResponseEmpty/1") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -128,22 +128,22 @@ def build_get_multiple_pages_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/paging/multiple") + _url = kwargs.pop("template_url", "/paging/multiple") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if client_request_id is not None: - header_parameters['client-request-id'] = _SERIALIZER.header("client_request_id", client_request_id, 'str') + _header_parameters['client-request-id'] = _SERIALIZER.header("client_request_id", client_request_id, 'str') if maxresults is not None: - header_parameters['maxresults'] = _SERIALIZER.header("maxresults", maxresults, 'int') + _header_parameters['maxresults'] = _SERIALIZER.header("maxresults", maxresults, 'int') if timeout is not None: - header_parameters['timeout'] = _SERIALIZER.header("timeout", timeout, 'int') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['timeout'] = _SERIALIZER.header("timeout", timeout, 'int') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -157,22 +157,22 @@ def build_get_with_query_params_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/paging/multiple/getWithQueryParams") + _url = kwargs.pop("template_url", "/paging/multiple/getWithQueryParams") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['requiredQueryParameter'] = _SERIALIZER.query("required_query_parameter", required_query_parameter, 'int') - query_parameters['queryConstant'] = _SERIALIZER.query("query_constant", query_constant, 'bool') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['requiredQueryParameter'] = _SERIALIZER.query("required_query_parameter", required_query_parameter, 'int') + _query_parameters['queryConstant'] = _SERIALIZER.query("query_constant", query_constant, 'bool') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -185,21 +185,21 @@ def build_next_operation_with_query_params_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/paging/multiple/nextOperationWithQueryParams") + _url = kwargs.pop("template_url", "/paging/multiple/nextOperationWithQueryParams") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['queryConstant'] = _SERIALIZER.query("query_constant", query_constant, 'bool') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['queryConstant'] = _SERIALIZER.query("query_constant", query_constant, 'bool') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -214,22 +214,22 @@ def build_get_odata_multiple_pages_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/paging/multiple/odata") + _url = kwargs.pop("template_url", "/paging/multiple/odata") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if client_request_id is not None: - header_parameters['client-request-id'] = _SERIALIZER.header("client_request_id", client_request_id, 'str') + _header_parameters['client-request-id'] = _SERIALIZER.header("client_request_id", client_request_id, 'str') if maxresults is not None: - header_parameters['maxresults'] = _SERIALIZER.header("maxresults", maxresults, 'int') + _header_parameters['maxresults'] = _SERIALIZER.header("maxresults", maxresults, 'int') if timeout is not None: - header_parameters['timeout'] = _SERIALIZER.header("timeout", timeout, 'int') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['timeout'] = _SERIALIZER.header("timeout", timeout, 'int') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -245,27 +245,27 @@ def build_get_multiple_pages_with_offset_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/paging/multiple/withpath/{offset}") + _url = kwargs.pop("template_url", "/paging/multiple/withpath/{offset}") path_format_arguments = { "offset": _SERIALIZER.url("offset", offset, 'int'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if client_request_id is not None: - header_parameters['client-request-id'] = _SERIALIZER.header("client_request_id", client_request_id, 'str') + _header_parameters['client-request-id'] = _SERIALIZER.header("client_request_id", client_request_id, 'str') if maxresults is not None: - header_parameters['maxresults'] = _SERIALIZER.header("maxresults", maxresults, 'int') + _header_parameters['maxresults'] = _SERIALIZER.header("maxresults", maxresults, 'int') if timeout is not None: - header_parameters['timeout'] = _SERIALIZER.header("timeout", timeout, 'int') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['timeout'] = _SERIALIZER.header("timeout", timeout, 'int') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -276,16 +276,16 @@ def build_get_multiple_pages_retry_first_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/paging/multiple/retryfirst") + _url = kwargs.pop("template_url", "/paging/multiple/retryfirst") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -296,16 +296,16 @@ def build_get_multiple_pages_retry_second_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/paging/multiple/retrysecond") + _url = kwargs.pop("template_url", "/paging/multiple/retrysecond") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -316,16 +316,16 @@ def build_get_single_pages_failure_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/paging/single/failure") + _url = kwargs.pop("template_url", "/paging/single/failure") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -336,16 +336,16 @@ def build_get_multiple_pages_failure_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/paging/multiple/failure") + _url = kwargs.pop("template_url", "/paging/multiple/failure") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -356,16 +356,16 @@ def build_get_multiple_pages_failure_uri_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/paging/multiple/failureuri") + _url = kwargs.pop("template_url", "/paging/multiple/failureuri") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -379,26 +379,26 @@ def build_get_multiple_pages_fragment_next_link_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/paging/multiple/fragment/{tenant}") + _url = kwargs.pop("template_url", "/paging/multiple/fragment/{tenant}") path_format_arguments = { "tenant": _SERIALIZER.url("tenant", tenant, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api_version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api_version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -412,26 +412,26 @@ def build_get_multiple_pages_fragment_with_grouping_next_link_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/paging/multiple/fragmentwithgrouping/{tenant}") + _url = kwargs.pop("template_url", "/paging/multiple/fragmentwithgrouping/{tenant}") path_format_arguments = { "tenant": _SERIALIZER.url("tenant", tenant, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api_version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api_version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -446,22 +446,22 @@ def build_get_multiple_pages_lro_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/paging/multiple/lro") + _url = kwargs.pop("template_url", "/paging/multiple/lro") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if client_request_id is not None: - header_parameters['client-request-id'] = _SERIALIZER.header("client_request_id", client_request_id, 'str') + _header_parameters['client-request-id'] = _SERIALIZER.header("client_request_id", client_request_id, 'str') if maxresults is not None: - header_parameters['maxresults'] = _SERIALIZER.header("maxresults", maxresults, 'int') + _header_parameters['maxresults'] = _SERIALIZER.header("maxresults", maxresults, 'int') if timeout is not None: - header_parameters['timeout'] = _SERIALIZER.header("timeout", timeout, 'int') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['timeout'] = _SERIALIZER.header("timeout", timeout, 'int') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -476,27 +476,27 @@ def build_next_fragment_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/paging/multiple/fragment/{tenant}/{nextLink}") + _url = kwargs.pop("template_url", "/paging/multiple/fragment/{tenant}/{nextLink}") path_format_arguments = { "tenant": _SERIALIZER.url("tenant", tenant, 'str'), "nextLink": _SERIALIZER.url("next_link", next_link, 'str', skip_quote=True), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api_version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api_version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -511,27 +511,27 @@ def build_next_fragment_with_grouping_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/paging/multiple/fragmentwithgrouping/{tenant}/{nextLink}") + _url = kwargs.pop("template_url", "/paging/multiple/fragmentwithgrouping/{tenant}/{nextLink}") path_format_arguments = { "tenant": _SERIALIZER.url("tenant", tenant, 'str'), "nextLink": _SERIALIZER.url("next_link", next_link, 'str', skip_quote=True), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api_version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api_version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -542,16 +542,16 @@ def build_get_paging_model_with_item_name_with_xms_client_name_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/paging/itemNameWithXMSClientName") + _url = kwargs.pop("template_url", "/paging/itemNameWithXMSClientName") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/azure/legacy/Expected/AcceptanceTests/StorageManagementClient/storage/operations/_storage_accounts_operations.py b/test/azure/legacy/Expected/AcceptanceTests/StorageManagementClient/storage/operations/_storage_accounts_operations.py index e5daa15de8b..972a00f3e66 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/StorageManagementClient/storage/operations/_storage_accounts_operations.py +++ b/test/azure/legacy/Expected/AcceptanceTests/StorageManagementClient/storage/operations/_storage_accounts_operations.py @@ -49,28 +49,28 @@ def build_check_name_availability_request( accept = "application/json, text/json" # Construct URL - url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/providers/Microsoft.Storage/checkNameAvailability") + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/providers/Microsoft.Storage/checkNameAvailability") path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -87,30 +87,30 @@ def build_create_request_initial( accept = "application/json, text/json" # Construct URL - url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}") # pylint: disable=line-too-long + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}") # pylint: disable=line-too-long path_format_arguments = { "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str'), "accountName": _SERIALIZER.url("account_name", account_name, 'str'), "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -125,23 +125,23 @@ def build_delete_request( api_version = kwargs.pop('api_version', "2015-05-01-preview") # type: str # Construct URL - url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}") # pylint: disable=line-too-long + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}") # pylint: disable=line-too-long path_format_arguments = { "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str'), "accountName": _SERIALIZER.url("account_name", account_name, 'str'), "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') return HttpRequest( method="DELETE", - url=url, - params=query_parameters, + url=_url, + params=_query_parameters, **kwargs ) @@ -157,28 +157,28 @@ def build_get_properties_request( accept = "application/json, text/json" # Construct URL - url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}") # pylint: disable=line-too-long + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}") # pylint: disable=line-too-long path_format_arguments = { "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str'), "accountName": _SERIALIZER.url("account_name", account_name, 'str'), "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -195,30 +195,30 @@ def build_update_request( accept = "application/json, text/json" # Construct URL - url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}") # pylint: disable=line-too-long + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}") # pylint: disable=line-too-long path_format_arguments = { "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str'), "accountName": _SERIALIZER.url("account_name", account_name, 'str'), "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PATCH", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -234,28 +234,28 @@ def build_list_keys_request( accept = "application/json, text/json" # Construct URL - url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/listKeys") # pylint: disable=line-too-long + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/listKeys") # pylint: disable=line-too-long path_format_arguments = { "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str'), "accountName": _SERIALIZER.url("account_name", account_name, 'str'), "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -269,26 +269,26 @@ def build_list_request( accept = "application/json, text/json" # Construct URL - url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/providers/Microsoft.Storage/storageAccounts") + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/providers/Microsoft.Storage/storageAccounts") path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -303,27 +303,27 @@ def build_list_by_resource_group_request( accept = "application/json, text/json" # Construct URL - url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts") # pylint: disable=line-too-long + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts") # pylint: disable=line-too-long path_format_arguments = { "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str'), "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -340,30 +340,30 @@ def build_regenerate_key_request( accept = "application/json, text/json" # Construct URL - url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/regenerateKey") # pylint: disable=line-too-long + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/regenerateKey") # pylint: disable=line-too-long path_format_arguments = { "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str'), "accountName": _SERIALIZER.url("account_name", account_name, 'str'), "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) diff --git a/test/azure/legacy/Expected/AcceptanceTests/StorageManagementClient/storage/operations/_usage_operations.py b/test/azure/legacy/Expected/AcceptanceTests/StorageManagementClient/storage/operations/_usage_operations.py index 70cd1b0cab7..826b7d92011 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/StorageManagementClient/storage/operations/_usage_operations.py +++ b/test/azure/legacy/Expected/AcceptanceTests/StorageManagementClient/storage/operations/_usage_operations.py @@ -45,26 +45,26 @@ def build_list_request( accept = "application/json, text/json" # Construct URL - url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/providers/Microsoft.Storage/usages") + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/providers/Microsoft.Storage/usages") path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) diff --git a/test/azure/legacy/Expected/AcceptanceTests/SubscriptionIdApiVersion/subscriptionidapiversion/operations/_group_operations.py b/test/azure/legacy/Expected/AcceptanceTests/SubscriptionIdApiVersion/subscriptionidapiversion/operations/_group_operations.py index acf9bbaabc9..b809bb2a00a 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/SubscriptionIdApiVersion/subscriptionidapiversion/operations/_group_operations.py +++ b/test/azure/legacy/Expected/AcceptanceTests/SubscriptionIdApiVersion/subscriptionidapiversion/operations/_group_operations.py @@ -46,27 +46,27 @@ def build_get_sample_resource_group_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}") + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}") path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) diff --git a/test/azure/legacy/coverage/report-azure.json b/test/azure/legacy/coverage/report-azure.json index f77637f599e..fc04d3b16cb 100644 --- a/test/azure/legacy/coverage/report-azure.json +++ b/test/azure/legacy/coverage/report-azure.json @@ -1,140 +1,142 @@ { - "LROPostDoubleHeadersFinalLocationPost": 63, - "LROPostDoubleHeadersFinalLocationAsync": 69, - "LROPostDoubleHeadersFinalLocationGet": 69, - "LROConstantParameterizedPost": 28, - "LROConstantParameterizedGet": 28, - "PostParameterGroupingWithReservedWords": 28, - "LROPutInlineComplete": 73, - "LROPutInlineComplete201": 37, - "CustomHeaderPutAsyncSucceded": 34, - "CustomHeaderPostAsyncSucceded": 34, - "CustomHeaderPutSucceeded": 35, - "CustomHeaderPostSucceeded": 34, - "LROPut200InlineCompleteNoState": 37, + "LROPostDoubleHeadersFinalLocationPost": 2, + "LROPostDoubleHeadersFinalLocationAsync": 3, + "LROPostDoubleHeadersFinalLocationGet": 3, + "LROConstantParameterizedPost": 1, + "LROConstantParameterizedGet": 1, + "PostParameterGroupingWithReservedWords": 1, + "LROPutInlineComplete": 2, + "LROPutInlineComplete201": 1, + "CustomHeaderPutAsyncSucceded": 1, + "CustomHeaderPostAsyncSucceded": 1, + "CustomHeaderPutSucceeded": 1, + "CustomHeaderPostSucceeded": 1, + "LROPut200InlineCompleteNoState": 1, "LROPatchInlineCompleteIgnoreHeaders": 0, - "LROPut202Retry200": 37, - "LROPutSucceededWithBody": 40, - "LROPutSucceededNoBody": 37, - "LROPutFailed": 37, - "LROPutCanceled": 37, - "LROPutAsyncRetrySucceeded": 36, - "LROPutAsyncNoRetrySucceeded": 34, - "LROPutAsyncRetryFailed": 36, - "LROPutAsyncNoRetryCanceled": 36, - "LROPutNoHeaderInRetry": 36, - "LROPutAsyncNoHeaderInRetry": 34, - "LRODeleteNoHeaderInRetry": 35, - "LRODeleteAsyncNoHeaderInRetry": 35, - "LROPutSubResourceInRetry": 36, - "LROPutSubResourceAsyncInRetry": 68, - "LROPutNonResourceInRetry": 36, - "LROPutNonResourceAsyncInRetry": 34, - "LRODeleteProvisioningSucceededWithBody": 36, - "LRODeleteProvisioningFailed": 33, - "LRODeleteProvisioningCanceled": 33, - "LRODeleteInlineComplete": 37, - "LRODelete200": 37, - "LRODelete204": 36, - "LRODeleteAsyncRetrySucceeded": 35, - "LRODeleteAsyncNoRetrySucceeded": 35, - "LRODeleteAsyncRetryFailed": 35, - "LRODeleteAsyncRetryCanceled": 35, - "LROPostSuccededWithBody": 36, - "LROPostSuccededNoBody": 35, - "LROPost200": 35, - "LROPostDoubleHeadersFinalAzureHeaderGet": 20, - "LROPostDoubleHeadersFinalAzureHeaderGetDefault": 179, - "LROPostAndGetList": 35, - "LROPostAsyncRetrySucceeded": 35, - "LROPostAsyncNoRetrySucceeded": 33, - "LROPostAsyncRetryFailed": 35, - "LROPostAsyncRetryCanceled": 35, - "LRORetryPutSucceededWithBody": 36, - "LRORetryErrorPutAsyncSucceeded": 33, - "LRORetryErrorPutAsyncSucceededPolling": 33, - "LRORetryErrorDelete202Accepted200Succeeded": 36, - "LRORetryErrorDelete202Retry200Succeeded": 33, - "LRORetryErrorDeleteAsyncRetrySucceeded": 33, - "LRORetryErrorPost202Retry200Succeeded": 36, - "LRORetryErrorPostAsyncRetrySucceeded": 70, - "LRONonRetryPut400": 36, - "LRONonRetryPut201Creating400": 36, - "LRONonRetryPut201Creating400InvalidJson": 36, - "LRONonRetryPutAsyncRetry400": 36, - "LRONonRetryDelete400": 36, - "LRONonRetryDelete202Retry400": 36, - "LRONonRetryDeleteAsyncRetry400": 36, - "LRONonRetryPost400": 36, - "LRONonRetryPost202Retry400": 36, - "LRONonRetryPostAsyncRetry400": 36, - "LROErrorPut201NoProvisioningStatePayload": 36, - "LROErrorPutAsyncNoPollingStatus": 35, - "LROErrorPutAsyncNoPollingStatusPayload": 35, - "LROErrorPut200InvalidJson": 36, - "LROErrorPutAsyncInvalidHeader": 35, - "LROErrorPutAsyncInvalidJsonPolling": 35, - "LROErrorDeleteNoLocation": 36, - "LROErrorDelete202RetryInvalidHeader": 35, - "LROErrorDeleteAsyncNoPollingStatus": 35, - "LROErrorDeleteAsyncInvalidHeader": 35, - "LROErrorDeleteAsyncInvalidJsonPolling": 35, - "LROErrorPostNoLocation": 36, - "LROErrorPost202RetryInvalidHeader": 35, - "LROErrorPostAsyncNoPollingPayload": 35, - "LROErrorPostAsyncInvalidHeader": 35, - "LROErrorPostAsyncInvalidJsonPolling": 35, - "LROParameterizedEndpoint": 28, - "PagingNoItemName": 33, - "PagingNextLinkNameNull": 33, - "PagingSingle": 66, - "PagingMultiple": 66, - "PagingMultipleWithQueryParameters": 33, - "PagingOdataMultiple": 33, - "PagingMultiplePath": 33, - "PagingMultipleRetryFirst": 33, - "PagingMultipleRetrySecond": 33, - "PagingSingleFailure": 33, - "PagingMultipleFailure": 33, - "PagingMultipleFailureUri": 33, - "PagingFragment": 33, - "PagingMultipleLRO": 35, - "PagingCustomUrlPartialNextLink": 33, - "PagingCustomUrlPartialOperationNextLink": 33, - "PagingReturnModelWithXMSClientName": 33, - "PagingFirstResponseEmpty": 33, - "AzureSubscriptionMethodLocalValid": 27, - "AzureSubscriptionMethodGlobalValid": 27, - "AzureSubscriptionMethodGlobalNotProvidedValid": 27, - "AzureSubscriptionPathLocalValid": 27, - "AzureSubscriptionPathGlobalValid": 27, - "AzureSubscriptionSwaggerLocalValid": 27, - "AzureSubscriptionSwaggerGlobalValid": 27, - "AzureApiVersionMethodLocalNull": 27, - "AzureApiVersionMethodLocalValid": 27, - "AzureApiVersionMethodGlobalValid": 27, - "AzureApiVersionMethodGlobalNotProvidedValid": 27, - "AzureApiVersionPathLocalValid": 27, - "AzureApiVersionPathGlobalValid": 27, - "AzureApiVersionSwaggerLocalValid": 27, - "AzureApiVersionSwaggerGlobalValid": 27, - "AzureMethodPathUrlEncoding": 27, - "AzurePathPathUrlEncoding": 27, - "AzureSwaggerPathUrlEncoding": 27, - "AzureMethodQueryUrlEncoding": 27, - "AzurePathQueryUrlEncoding": 27, - "AzureSwaggerQueryUrlEncoding": 27, - "AzureMethodQueryUrlEncodingNull": 54, - "AzureXmsRequestClientOverwrite": 27, - "AzureXmsRequestClientOverwriteViaParameter": 27, - "AzureXmsRequestClientIdNull": 27, - "AzureXmsCustomNamedRequestId": 27, - "AzureXmsCustomNamedRequestIdParameterGroup": 27, - "AzureRequestClientIdInError": 27, - "AzureODataFilter": 27, - "SubscriptionIdAndApiVersion": 28, - "postParameterGroupingOptionalParameters": 56, - "postParameterGroupingRequiredParameters": 56, - "postParameterGroupingMultipleParameterGroups": 56, - "postParameterGroupingSharedParameterGroupObject": 28 + "LROPatch201WithAsyncHeader": 1, + "LROPatch202WithAsyncAndLocationHeader": 1, + "LROPut202Retry200": 1, + "LROPutSucceededWithBody": 1, + "LROPutSucceededNoBody": 1, + "LROPutFailed": 1, + "LROPutCanceled": 1, + "LROPutAsyncRetrySucceeded": 1, + "LROPutAsyncNoRetrySucceeded": 1, + "LROPutAsyncRetryFailed": 1, + "LROPutAsyncNoRetryCanceled": 1, + "LROPutNoHeaderInRetry": 1, + "LROPutAsyncNoHeaderInRetry": 1, + "LRODeleteNoHeaderInRetry": 1, + "LRODeleteAsyncNoHeaderInRetry": 1, + "LROPutSubResourceInRetry": 1, + "LROPutSubResourceAsyncInRetry": 2, + "LROPutNonResourceInRetry": 1, + "LROPutNonResourceAsyncInRetry": 1, + "LRODeleteProvisioningSucceededWithBody": 1, + "LRODeleteProvisioningFailed": 1, + "LRODeleteProvisioningCanceled": 1, + "LRODeleteInlineComplete": 1, + "LRODelete200": 1, + "LRODelete204": 1, + "LRODeleteAsyncRetrySucceeded": 1, + "LRODeleteAsyncNoRetrySucceeded": 1, + "LRODeleteAsyncRetryFailed": 1, + "LRODeleteAsyncRetryCanceled": 1, + "LROPostSuccededWithBody": 1, + "LROPostSuccededNoBody": 1, + "LROPost200": 1, + "LROPostDoubleHeadersFinalAzureHeaderGet": 1, + "LROPostDoubleHeadersFinalAzureHeaderGetDefault": 5, + "LROPostAndGetList": 1, + "LROPostAsyncRetrySucceeded": 1, + "LROPostAsyncNoRetrySucceeded": 1, + "LROPostAsyncRetryFailed": 1, + "LROPostAsyncRetryCanceled": 1, + "LRORetryPutSucceededWithBody": 1, + "LRORetryErrorPutAsyncSucceeded": 1, + "LRORetryErrorPutAsyncSucceededPolling": 1, + "LRORetryErrorDelete202Accepted200Succeeded": 1, + "LRORetryErrorDelete202Retry200Succeeded": 1, + "LRORetryErrorDeleteAsyncRetrySucceeded": 1, + "LRORetryErrorPost202Retry200Succeeded": 1, + "LRORetryErrorPostAsyncRetrySucceeded": 2, + "LRONonRetryPut400": 1, + "LRONonRetryPut201Creating400": 1, + "LRONonRetryPut201Creating400InvalidJson": 1, + "LRONonRetryPutAsyncRetry400": 1, + "LRONonRetryDelete400": 1, + "LRONonRetryDelete202Retry400": 1, + "LRONonRetryDeleteAsyncRetry400": 1, + "LRONonRetryPost400": 1, + "LRONonRetryPost202Retry400": 1, + "LRONonRetryPostAsyncRetry400": 1, + "LROErrorPut201NoProvisioningStatePayload": 1, + "LROErrorPutAsyncNoPollingStatus": 1, + "LROErrorPutAsyncNoPollingStatusPayload": 1, + "LROErrorPut200InvalidJson": 1, + "LROErrorPutAsyncInvalidHeader": 1, + "LROErrorPutAsyncInvalidJsonPolling": 1, + "LROErrorDeleteNoLocation": 1, + "LROErrorDelete202RetryInvalidHeader": 1, + "LROErrorDeleteAsyncNoPollingStatus": 1, + "LROErrorDeleteAsyncInvalidHeader": 1, + "LROErrorDeleteAsyncInvalidJsonPolling": 1, + "LROErrorPostNoLocation": 1, + "LROErrorPost202RetryInvalidHeader": 1, + "LROErrorPostAsyncNoPollingPayload": 1, + "LROErrorPostAsyncInvalidHeader": 1, + "LROErrorPostAsyncInvalidJsonPolling": 1, + "LROParameterizedEndpoint": 1, + "PagingNoItemName": 1, + "PagingNextLinkNameNull": 1, + "PagingSingle": 2, + "PagingMultiple": 2, + "PagingMultipleWithQueryParameters": 1, + "PagingOdataMultiple": 1, + "PagingMultiplePath": 1, + "PagingMultipleRetryFirst": 1, + "PagingMultipleRetrySecond": 1, + "PagingSingleFailure": 1, + "PagingMultipleFailure": 1, + "PagingMultipleFailureUri": 1, + "PagingFragment": 1, + "PagingMultipleLRO": 1, + "PagingCustomUrlPartialNextLink": 1, + "PagingCustomUrlPartialOperationNextLink": 1, + "PagingReturnModelWithXMSClientName": 1, + "PagingFirstResponseEmpty": 1, + "AzureSubscriptionMethodLocalValid": 0, + "AzureSubscriptionMethodGlobalValid": 0, + "AzureSubscriptionMethodGlobalNotProvidedValid": 0, + "AzureSubscriptionPathLocalValid": 0, + "AzureSubscriptionPathGlobalValid": 0, + "AzureSubscriptionSwaggerLocalValid": 0, + "AzureSubscriptionSwaggerGlobalValid": 0, + "AzureApiVersionMethodLocalNull": 0, + "AzureApiVersionMethodLocalValid": 0, + "AzureApiVersionMethodGlobalValid": 0, + "AzureApiVersionMethodGlobalNotProvidedValid": 0, + "AzureApiVersionPathLocalValid": 0, + "AzureApiVersionPathGlobalValid": 0, + "AzureApiVersionSwaggerLocalValid": 0, + "AzureApiVersionSwaggerGlobalValid": 0, + "AzureMethodPathUrlEncoding": 0, + "AzurePathPathUrlEncoding": 0, + "AzureSwaggerPathUrlEncoding": 0, + "AzureMethodQueryUrlEncoding": 0, + "AzurePathQueryUrlEncoding": 0, + "AzureSwaggerQueryUrlEncoding": 0, + "AzureMethodQueryUrlEncodingNull": 0, + "AzureXmsRequestClientOverwrite": 0, + "AzureXmsRequestClientOverwriteViaParameter": 0, + "AzureXmsRequestClientIdNull": 0, + "AzureXmsCustomNamedRequestId": 0, + "AzureXmsCustomNamedRequestIdParameterGroup": 0, + "AzureRequestClientIdInError": 0, + "AzureODataFilter": 0, + "SubscriptionIdAndApiVersion": 1, + "postParameterGroupingOptionalParameters": 2, + "postParameterGroupingRequiredParameters": 2, + "postParameterGroupingMultipleParameterGroups": 2, + "postParameterGroupingSharedParameterGroupObject": 1 } \ No newline at end of file diff --git a/test/azure/low-level/Expected/AcceptanceTests/AzureBodyDurationLowLevel/bodydurationlowlevel/rest/duration/_request_builders.py b/test/azure/low-level/Expected/AcceptanceTests/AzureBodyDurationLowLevel/bodydurationlowlevel/rest/duration/_request_builders.py index 66f8d460b1e..cd739045169 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/AzureBodyDurationLowLevel/bodydurationlowlevel/rest/duration/_request_builders.py +++ b/test/azure/low-level/Expected/AcceptanceTests/AzureBodyDurationLowLevel/bodydurationlowlevel/rest/duration/_request_builders.py @@ -39,16 +39,16 @@ def build_get_null_request( accept = "application/json" # Construct URL - url = "/duration/null" + _url = "/duration/null" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -84,18 +84,18 @@ def build_put_positive_duration_request( accept = "application/json" # Construct URL - url = "/duration/positiveduration" + _url = "/duration/positiveduration" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -117,16 +117,16 @@ def build_get_positive_duration_request( accept = "application/json" # Construct URL - url = "/duration/positiveduration" + _url = "/duration/positiveduration" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -148,15 +148,15 @@ def build_get_invalid_request( accept = "application/json" # Construct URL - url = "/duration/invalid" + _url = "/duration/invalid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/azure/low-level/Expected/AcceptanceTests/AzureBodyDurationLowLevel/bodydurationlowlevel/rest/duration/_request_builders_py3.py b/test/azure/low-level/Expected/AcceptanceTests/AzureBodyDurationLowLevel/bodydurationlowlevel/rest/duration/_request_builders_py3.py index 83a739a799c..a698dbe16bf 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/AzureBodyDurationLowLevel/bodydurationlowlevel/rest/duration/_request_builders_py3.py +++ b/test/azure/low-level/Expected/AcceptanceTests/AzureBodyDurationLowLevel/bodydurationlowlevel/rest/duration/_request_builders_py3.py @@ -31,13 +31,13 @@ def build_get_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/duration/null" + _url = "/duration/null" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_positive_duration_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -68,15 +68,15 @@ def build_put_positive_duration_request(*, json: JSONType = None, content: Any = accept = "application/json" # Construct URL - url = "/duration/positiveduration" + _url = "/duration/positiveduration" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_positive_duration_request(**kwargs: Any) -> HttpRequest: @@ -93,13 +93,13 @@ def build_get_positive_duration_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/duration/positiveduration" + _url = "/duration/positiveduration" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_invalid_request(**kwargs: Any) -> HttpRequest: @@ -116,10 +116,10 @@ def build_get_invalid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/duration/invalid" + _url = "/duration/invalid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) diff --git a/test/azure/low-level/Expected/AcceptanceTests/AzureParameterGroupingLowLevel/azureparametergroupinglowlevel/rest/parameter_grouping/_request_builders.py b/test/azure/low-level/Expected/AcceptanceTests/AzureParameterGroupingLowLevel/azureparametergroupinglowlevel/rest/parameter_grouping/_request_builders.py index 672d0a47554..ad6adfe57ec 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/AzureParameterGroupingLowLevel/azureparametergroupinglowlevel/rest/parameter_grouping/_request_builders.py +++ b/test/azure/low-level/Expected/AcceptanceTests/AzureParameterGroupingLowLevel/azureparametergroupinglowlevel/rest/parameter_grouping/_request_builders.py @@ -63,31 +63,31 @@ def build_post_required_request( accept = "application/json" # Construct URL - url = "/parameterGrouping/postRequired/{path}" + _url = "/parameterGrouping/postRequired/{path}" path_format_arguments = { "path": _SERIALIZER.url("path", path, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if query is not None: - query_parameters['query'] = _SERIALIZER.query("query", query, 'int') + _query_parameters['query'] = _SERIALIZER.query("query", query, 'int') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if custom_header is not None: - header_parameters['customHeader'] = _SERIALIZER.header("custom_header", custom_header, 'str') + _header_parameters['customHeader'] = _SERIALIZER.header("custom_header", custom_header, 'str') if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -116,24 +116,24 @@ def build_post_optional_request( accept = "application/json" # Construct URL - url = "/parameterGrouping/postOptional" + _url = "/parameterGrouping/postOptional" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if query is not None: - query_parameters['query'] = _SERIALIZER.query("query", query, 'int') + _query_parameters['query'] = _SERIALIZER.query("query", query, 'int') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if custom_header is not None: - header_parameters['customHeader'] = _SERIALIZER.header("custom_header", custom_header, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['customHeader'] = _SERIALIZER.header("custom_header", custom_header, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -162,24 +162,24 @@ def build_post_reserved_words_request( accept = "application/json" # Construct URL - url = "/parameterGrouping/postReservedWords" + _url = "/parameterGrouping/postReservedWords" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if from_parameter is not None: - query_parameters['from'] = _SERIALIZER.query("from_parameter", from_parameter, 'str') + _query_parameters['from'] = _SERIALIZER.query("from_parameter", from_parameter, 'str') if accept_parameter is not None: - query_parameters['accept'] = _SERIALIZER.query("accept_parameter", accept_parameter, 'str') + _query_parameters['accept'] = _SERIALIZER.query("accept_parameter", accept_parameter, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -214,28 +214,28 @@ def build_post_multi_param_groups_request( accept = "application/json" # Construct URL - url = "/parameterGrouping/postMultipleParameterGroups" + _url = "/parameterGrouping/postMultipleParameterGroups" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if query_one is not None: - query_parameters['query-one'] = _SERIALIZER.query("query_one", query_one, 'int') + _query_parameters['query-one'] = _SERIALIZER.query("query_one", query_one, 'int') if query_two is not None: - query_parameters['query-two'] = _SERIALIZER.query("query_two", query_two, 'int') + _query_parameters['query-two'] = _SERIALIZER.query("query_two", query_two, 'int') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if header_one is not None: - header_parameters['header-one'] = _SERIALIZER.header("header_one", header_one, 'str') + _header_parameters['header-one'] = _SERIALIZER.header("header_one", header_one, 'str') if header_two is not None: - header_parameters['header-two'] = _SERIALIZER.header("header_two", header_two, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['header-two'] = _SERIALIZER.header("header_two", header_two, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -264,23 +264,23 @@ def build_post_shared_parameter_group_object_request( accept = "application/json" # Construct URL - url = "/parameterGrouping/sharedParameterGroupObject" + _url = "/parameterGrouping/sharedParameterGroupObject" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if query_one is not None: - query_parameters['query-one'] = _SERIALIZER.query("query_one", query_one, 'int') + _query_parameters['query-one'] = _SERIALIZER.query("query_one", query_one, 'int') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if header_one is not None: - header_parameters['header-one'] = _SERIALIZER.header("header_one", header_one, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['header-one'] = _SERIALIZER.header("header_one", header_one, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) diff --git a/test/azure/low-level/Expected/AcceptanceTests/AzureParameterGroupingLowLevel/azureparametergroupinglowlevel/rest/parameter_grouping/_request_builders_py3.py b/test/azure/low-level/Expected/AcceptanceTests/AzureParameterGroupingLowLevel/azureparametergroupinglowlevel/rest/parameter_grouping/_request_builders_py3.py index a8b1a8ab8c0..5dc57af47b4 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/AzureParameterGroupingLowLevel/azureparametergroupinglowlevel/rest/parameter_grouping/_request_builders_py3.py +++ b/test/azure/low-level/Expected/AcceptanceTests/AzureParameterGroupingLowLevel/azureparametergroupinglowlevel/rest/parameter_grouping/_request_builders_py3.py @@ -60,28 +60,34 @@ def build_post_required_request( accept = "application/json" # Construct URL - url = "/parameterGrouping/postRequired/{path}" + _url = "/parameterGrouping/postRequired/{path}" path_format_arguments = { "path": _SERIALIZER.url("path", path, "str"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if query is not None: - query_parameters["query"] = _SERIALIZER.query("query", query, "int") + _query_parameters["query"] = _SERIALIZER.query("query", query, "int") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if custom_header is not None: - header_parameters["customHeader"] = _SERIALIZER.header("custom_header", custom_header, "str") + _header_parameters["customHeader"] = _SERIALIZER.header("custom_header", custom_header, "str") if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") return HttpRequest( - method="POST", url=url, params=query_parameters, headers=header_parameters, json=json, content=content, **kwargs + method="POST", + url=_url, + params=_query_parameters, + headers=_header_parameters, + json=json, + content=content, + **kwargs ) @@ -105,20 +111,20 @@ def build_post_optional_request( accept = "application/json" # Construct URL - url = "/parameterGrouping/postOptional" + _url = "/parameterGrouping/postOptional" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if query is not None: - query_parameters["query"] = _SERIALIZER.query("query", query, "int") + _query_parameters["query"] = _SERIALIZER.query("query", query, "int") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if custom_header is not None: - header_parameters["customHeader"] = _SERIALIZER.header("custom_header", custom_header, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["customHeader"] = _SERIALIZER.header("custom_header", custom_header, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_post_reserved_words_request( @@ -141,20 +147,20 @@ def build_post_reserved_words_request( accept = "application/json" # Construct URL - url = "/parameterGrouping/postReservedWords" + _url = "/parameterGrouping/postReservedWords" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if from_parameter is not None: - query_parameters["from"] = _SERIALIZER.query("from_parameter", from_parameter, "str") + _query_parameters["from"] = _SERIALIZER.query("from_parameter", from_parameter, "str") if accept_parameter is not None: - query_parameters["accept"] = _SERIALIZER.query("accept_parameter", accept_parameter, "str") + _query_parameters["accept"] = _SERIALIZER.query("accept_parameter", accept_parameter, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_post_multi_param_groups_request( @@ -186,24 +192,24 @@ def build_post_multi_param_groups_request( accept = "application/json" # Construct URL - url = "/parameterGrouping/postMultipleParameterGroups" + _url = "/parameterGrouping/postMultipleParameterGroups" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if query_one is not None: - query_parameters["query-one"] = _SERIALIZER.query("query_one", query_one, "int") + _query_parameters["query-one"] = _SERIALIZER.query("query_one", query_one, "int") if query_two is not None: - query_parameters["query-two"] = _SERIALIZER.query("query_two", query_two, "int") + _query_parameters["query-two"] = _SERIALIZER.query("query_two", query_two, "int") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if header_one is not None: - header_parameters["header-one"] = _SERIALIZER.header("header_one", header_one, "str") + _header_parameters["header-one"] = _SERIALIZER.header("header_one", header_one, "str") if header_two is not None: - header_parameters["header-two"] = _SERIALIZER.header("header_two", header_two, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["header-two"] = _SERIALIZER.header("header_two", header_two, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_post_shared_parameter_group_object_request( @@ -226,17 +232,17 @@ def build_post_shared_parameter_group_object_request( accept = "application/json" # Construct URL - url = "/parameterGrouping/sharedParameterGroupObject" + _url = "/parameterGrouping/sharedParameterGroupObject" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if query_one is not None: - query_parameters["query-one"] = _SERIALIZER.query("query_one", query_one, "int") + _query_parameters["query-one"] = _SERIALIZER.query("query_one", query_one, "int") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if header_one is not None: - header_parameters["header-one"] = _SERIALIZER.header("header_one", header_one, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["header-one"] = _SERIALIZER.header("header_one", header_one, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) diff --git a/test/azure/low-level/Expected/AcceptanceTests/AzureReportLowLevel/azurereportlowlevel/rest/_request_builders.py b/test/azure/low-level/Expected/AcceptanceTests/AzureReportLowLevel/azurereportlowlevel/rest/_request_builders.py index f49eeba9b80..01f9366e4ff 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/AzureReportLowLevel/azurereportlowlevel/rest/_request_builders.py +++ b/test/azure/low-level/Expected/AcceptanceTests/AzureReportLowLevel/azurereportlowlevel/rest/_request_builders.py @@ -50,21 +50,21 @@ def build_get_report_request( accept = "application/json" # Construct URL - url = "/report/azure" + _url = "/report/azure" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if qualifier is not None: - query_parameters['qualifier'] = _SERIALIZER.query("qualifier", qualifier, 'str') + _query_parameters['qualifier'] = _SERIALIZER.query("qualifier", qualifier, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) diff --git a/test/azure/low-level/Expected/AcceptanceTests/AzureReportLowLevel/azurereportlowlevel/rest/_request_builders_py3.py b/test/azure/low-level/Expected/AcceptanceTests/AzureReportLowLevel/azurereportlowlevel/rest/_request_builders_py3.py index c7ff65244e7..aff795d4f75 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/AzureReportLowLevel/azurereportlowlevel/rest/_request_builders_py3.py +++ b/test/azure/low-level/Expected/AcceptanceTests/AzureReportLowLevel/azurereportlowlevel/rest/_request_builders_py3.py @@ -40,15 +40,15 @@ def build_get_report_request(*, qualifier: Optional[str] = None, **kwargs: Any) accept = "application/json" # Construct URL - url = "/report/azure" + _url = "/report/azure" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if qualifier is not None: - query_parameters["qualifier"] = _SERIALIZER.query("qualifier", qualifier, "str") + _query_parameters["qualifier"] = _SERIALIZER.query("qualifier", qualifier, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) diff --git a/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/rest/api_version_default/_request_builders.py b/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/rest/api_version_default/_request_builders.py index fc1807a9ebf..e15e4afb8a7 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/rest/api_version_default/_request_builders.py +++ b/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/rest/api_version_default/_request_builders.py @@ -37,21 +37,21 @@ def build_get_method_global_valid_request( accept = "application/json" # Construct URL - url = "/azurespecials/apiVersion/method/string/none/query/global/2015-07-01-preview" + _url = "/azurespecials/apiVersion/method/string/none/query/global/2015-07-01-preview" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -75,21 +75,21 @@ def build_get_method_global_not_provided_valid_request( accept = "application/json" # Construct URL - url = "/azurespecials/apiVersion/method/string/none/query/globalNotProvided/2015-07-01-preview" + _url = "/azurespecials/apiVersion/method/string/none/query/globalNotProvided/2015-07-01-preview" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -113,21 +113,21 @@ def build_get_path_global_valid_request( accept = "application/json" # Construct URL - url = "/azurespecials/apiVersion/path/string/none/query/global/2015-07-01-preview" + _url = "/azurespecials/apiVersion/path/string/none/query/global/2015-07-01-preview" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -151,20 +151,20 @@ def build_get_swagger_global_valid_request( accept = "application/json" # Construct URL - url = "/azurespecials/apiVersion/swagger/string/none/query/global/2015-07-01-preview" + _url = "/azurespecials/apiVersion/swagger/string/none/query/global/2015-07-01-preview" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) diff --git a/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/rest/api_version_default/_request_builders_py3.py b/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/rest/api_version_default/_request_builders_py3.py index 9b6db9bde8a..1af88593ed8 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/rest/api_version_default/_request_builders_py3.py +++ b/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/rest/api_version_default/_request_builders_py3.py @@ -29,17 +29,17 @@ def build_get_method_global_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/azurespecials/apiVersion/method/string/none/query/global/2015-07-01-preview" + _url = "/azurespecials/apiVersion/method/string/none/query/global/2015-07-01-preview" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["api-version"] = _SERIALIZER.query("api_version", api_version, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_get_method_global_not_provided_valid_request(**kwargs: Any) -> HttpRequest: @@ -58,17 +58,17 @@ def build_get_method_global_not_provided_valid_request(**kwargs: Any) -> HttpReq accept = "application/json" # Construct URL - url = "/azurespecials/apiVersion/method/string/none/query/globalNotProvided/2015-07-01-preview" + _url = "/azurespecials/apiVersion/method/string/none/query/globalNotProvided/2015-07-01-preview" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["api-version"] = _SERIALIZER.query("api_version", api_version, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_get_path_global_valid_request(**kwargs: Any) -> HttpRequest: @@ -87,17 +87,17 @@ def build_get_path_global_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/azurespecials/apiVersion/path/string/none/query/global/2015-07-01-preview" + _url = "/azurespecials/apiVersion/path/string/none/query/global/2015-07-01-preview" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["api-version"] = _SERIALIZER.query("api_version", api_version, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_get_swagger_global_valid_request(**kwargs: Any) -> HttpRequest: @@ -116,14 +116,14 @@ def build_get_swagger_global_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/azurespecials/apiVersion/swagger/string/none/query/global/2015-07-01-preview" + _url = "/azurespecials/apiVersion/swagger/string/none/query/global/2015-07-01-preview" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["api-version"] = _SERIALIZER.query("api_version", api_version, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) diff --git a/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/rest/api_version_local/_request_builders.py b/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/rest/api_version_local/_request_builders.py index 899e8153f8a..33b30425ea4 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/rest/api_version_local/_request_builders.py +++ b/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/rest/api_version_local/_request_builders.py @@ -40,21 +40,21 @@ def build_get_method_local_valid_request( accept = "application/json" # Construct URL - url = "/azurespecials/apiVersion/method/string/none/query/local/2.0" + _url = "/azurespecials/apiVersion/method/string/none/query/local/2.0" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -81,22 +81,22 @@ def build_get_method_local_null_request( accept = "application/json" # Construct URL - url = "/azurespecials/apiVersion/method/string/none/query/local/null" + _url = "/azurespecials/apiVersion/method/string/none/query/local/null" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if api_version is not None: - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -123,21 +123,21 @@ def build_get_path_local_valid_request( accept = "application/json" # Construct URL - url = "/azurespecials/apiVersion/path/string/none/query/local/2.0" + _url = "/azurespecials/apiVersion/path/string/none/query/local/2.0" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -165,20 +165,20 @@ def build_get_swagger_local_valid_request( accept = "application/json" # Construct URL - url = "/azurespecials/apiVersion/swagger/string/none/query/local/2.0" + _url = "/azurespecials/apiVersion/swagger/string/none/query/local/2.0" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) diff --git a/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/rest/api_version_local/_request_builders_py3.py b/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/rest/api_version_local/_request_builders_py3.py index 80fb6acb0c2..41c32429779 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/rest/api_version_local/_request_builders_py3.py +++ b/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/rest/api_version_local/_request_builders_py3.py @@ -32,17 +32,17 @@ def build_get_method_local_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/azurespecials/apiVersion/method/string/none/query/local/2.0" + _url = "/azurespecials/apiVersion/method/string/none/query/local/2.0" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["api-version"] = _SERIALIZER.query("api_version", api_version, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_get_method_local_null_request(*, api_version: Optional[str] = None, **kwargs: Any) -> HttpRequest: @@ -62,18 +62,18 @@ def build_get_method_local_null_request(*, api_version: Optional[str] = None, ** accept = "application/json" # Construct URL - url = "/azurespecials/apiVersion/method/string/none/query/local/null" + _url = "/azurespecials/apiVersion/method/string/none/query/local/null" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if api_version is not None: - query_parameters["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + _query_parameters["api-version"] = _SERIALIZER.query("api_version", api_version, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_get_path_local_valid_request(**kwargs: Any) -> HttpRequest: @@ -95,17 +95,17 @@ def build_get_path_local_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/azurespecials/apiVersion/path/string/none/query/local/2.0" + _url = "/azurespecials/apiVersion/path/string/none/query/local/2.0" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["api-version"] = _SERIALIZER.query("api_version", api_version, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_get_swagger_local_valid_request(**kwargs: Any) -> HttpRequest: @@ -128,14 +128,14 @@ def build_get_swagger_local_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/azurespecials/apiVersion/swagger/string/none/query/local/2.0" + _url = "/azurespecials/apiVersion/swagger/string/none/query/local/2.0" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["api-version"] = _SERIALIZER.query("api_version", api_version, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) diff --git a/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/rest/header/_request_builders.py b/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/rest/header/_request_builders.py index c9868b00eca..005eac2d5b7 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/rest/header/_request_builders.py +++ b/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/rest/header/_request_builders.py @@ -39,17 +39,17 @@ def build_custom_named_request_id_request( accept = "application/json" # Construct URL - url = "/azurespecials/customNamedRequestId" + _url = "/azurespecials/customNamedRequestId" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['foo-client-request-id'] = _SERIALIZER.header("foo_client_request_id", foo_client_request_id, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['foo-client-request-id'] = _SERIALIZER.header("foo_client_request_id", foo_client_request_id, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -76,17 +76,17 @@ def build_custom_named_request_id_param_grouping_request( accept = "application/json" # Construct URL - url = "/azurespecials/customNamedRequestIdParamGrouping" + _url = "/azurespecials/customNamedRequestIdParamGrouping" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['foo-client-request-id'] = _SERIALIZER.header("foo_client_request_id", foo_client_request_id, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['foo-client-request-id'] = _SERIALIZER.header("foo_client_request_id", foo_client_request_id, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -112,16 +112,16 @@ def build_custom_named_request_id_head_request( accept = "application/json" # Construct URL - url = "/azurespecials/customNamedRequestIdHead" + _url = "/azurespecials/customNamedRequestIdHead" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['foo-client-request-id'] = _SERIALIZER.header("foo_client_request_id", foo_client_request_id, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['foo-client-request-id'] = _SERIALIZER.header("foo_client_request_id", foo_client_request_id, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="HEAD", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/rest/header/_request_builders_py3.py b/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/rest/header/_request_builders_py3.py index 0014f2a9bab..a808e1f9954 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/rest/header/_request_builders_py3.py +++ b/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/rest/header/_request_builders_py3.py @@ -29,16 +29,16 @@ def build_custom_named_request_id_request(*, foo_client_request_id: str, **kwarg accept = "application/json" # Construct URL - url = "/azurespecials/customNamedRequestId" + _url = "/azurespecials/customNamedRequestId" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["foo-client-request-id"] = _SERIALIZER.header( + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["foo-client-request-id"] = _SERIALIZER.header( "foo_client_request_id", foo_client_request_id, "str" ) - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) def build_custom_named_request_id_param_grouping_request(*, foo_client_request_id: str, **kwargs: Any) -> HttpRequest: @@ -58,16 +58,16 @@ def build_custom_named_request_id_param_grouping_request(*, foo_client_request_i accept = "application/json" # Construct URL - url = "/azurespecials/customNamedRequestIdParamGrouping" + _url = "/azurespecials/customNamedRequestIdParamGrouping" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["foo-client-request-id"] = _SERIALIZER.header( + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["foo-client-request-id"] = _SERIALIZER.header( "foo_client_request_id", foo_client_request_id, "str" ) - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) def build_custom_named_request_id_head_request(*, foo_client_request_id: str, **kwargs: Any) -> HttpRequest: @@ -86,13 +86,13 @@ def build_custom_named_request_id_head_request(*, foo_client_request_id: str, ** accept = "application/json" # Construct URL - url = "/azurespecials/customNamedRequestIdHead" + _url = "/azurespecials/customNamedRequestIdHead" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["foo-client-request-id"] = _SERIALIZER.header( + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["foo-client-request-id"] = _SERIALIZER.header( "foo_client_request_id", foo_client_request_id, "str" ) - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="HEAD", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="HEAD", url=_url, headers=_header_parameters, **kwargs) diff --git a/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/rest/odata/_request_builders.py b/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/rest/odata/_request_builders.py index a4c67034a4a..5f13bd6b9d0 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/rest/odata/_request_builders.py +++ b/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/rest/odata/_request_builders.py @@ -45,25 +45,25 @@ def build_get_with_filter_request( accept = "application/json" # Construct URL - url = "/azurespecials/odata/filter" + _url = "/azurespecials/odata/filter" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if filter is not None: - query_parameters['$filter'] = _SERIALIZER.query("filter", filter, 'str') + _query_parameters['$filter'] = _SERIALIZER.query("filter", filter, 'str') if top is not None: - query_parameters['$top'] = _SERIALIZER.query("top", top, 'int') + _query_parameters['$top'] = _SERIALIZER.query("top", top, 'int') if orderby is not None: - query_parameters['$orderby'] = _SERIALIZER.query("orderby", orderby, 'str') + _query_parameters['$orderby'] = _SERIALIZER.query("orderby", orderby, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) diff --git a/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/rest/odata/_request_builders_py3.py b/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/rest/odata/_request_builders_py3.py index ab83be993b0..86ecd0b5b32 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/rest/odata/_request_builders_py3.py +++ b/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/rest/odata/_request_builders_py3.py @@ -35,19 +35,19 @@ def build_get_with_filter_request( accept = "application/json" # Construct URL - url = "/azurespecials/odata/filter" + _url = "/azurespecials/odata/filter" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if filter is not None: - query_parameters["$filter"] = _SERIALIZER.query("filter", filter, "str") + _query_parameters["$filter"] = _SERIALIZER.query("filter", filter, "str") if top is not None: - query_parameters["$top"] = _SERIALIZER.query("top", top, "int") + _query_parameters["$top"] = _SERIALIZER.query("top", top, "int") if orderby is not None: - query_parameters["$orderby"] = _SERIALIZER.query("orderby", orderby, "str") + _query_parameters["$orderby"] = _SERIALIZER.query("orderby", orderby, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) diff --git a/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/rest/skip_url_encoding/_request_builders.py b/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/rest/skip_url_encoding/_request_builders.py index 8700ad6d4a0..12c8639e56a 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/rest/skip_url_encoding/_request_builders.py +++ b/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/rest/skip_url_encoding/_request_builders.py @@ -40,21 +40,21 @@ def build_get_method_path_valid_request( accept = "application/json" # Construct URL - url = "/azurespecials/skipUrlEncoding/method/path/valid/{unencodedPathParam}" + _url = "/azurespecials/skipUrlEncoding/method/path/valid/{unencodedPathParam}" path_format_arguments = { "unencodedPathParam": _SERIALIZER.url("unencoded_path_param", unencoded_path_param, 'str', skip_quote=True), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -79,21 +79,21 @@ def build_get_path_valid_request( accept = "application/json" # Construct URL - url = "/azurespecials/skipUrlEncoding/path/path/valid/{unencodedPathParam}" + _url = "/azurespecials/skipUrlEncoding/path/path/valid/{unencodedPathParam}" path_format_arguments = { "unencodedPathParam": _SERIALIZER.url("unencoded_path_param", unencoded_path_param, 'str', skip_quote=True), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -121,21 +121,21 @@ def build_get_swagger_path_valid_request( accept = "application/json" # Construct URL - url = "/azurespecials/skipUrlEncoding/swagger/path/valid/{unencodedPathParam}" + _url = "/azurespecials/skipUrlEncoding/swagger/path/valid/{unencodedPathParam}" path_format_arguments = { "unencodedPathParam": _SERIALIZER.url("unencoded_path_param", unencoded_path_param, 'str', skip_quote=True), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -161,21 +161,21 @@ def build_get_method_query_valid_request( accept = "application/json" # Construct URL - url = "/azurespecials/skipUrlEncoding/method/query/valid" + _url = "/azurespecials/skipUrlEncoding/method/query/valid" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['q1'] = _SERIALIZER.query("q1", q1, 'str', skip_quote=True) + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['q1'] = _SERIALIZER.query("q1", q1, 'str', skip_quote=True) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -201,22 +201,22 @@ def build_get_method_query_null_request( accept = "application/json" # Construct URL - url = "/azurespecials/skipUrlEncoding/method/query/null" + _url = "/azurespecials/skipUrlEncoding/method/query/null" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if q1 is not None: - query_parameters['q1'] = _SERIALIZER.query("q1", q1, 'str', skip_quote=True) + _query_parameters['q1'] = _SERIALIZER.query("q1", q1, 'str', skip_quote=True) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -242,21 +242,21 @@ def build_get_path_query_valid_request( accept = "application/json" # Construct URL - url = "/azurespecials/skipUrlEncoding/path/query/valid" + _url = "/azurespecials/skipUrlEncoding/path/query/valid" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['q1'] = _SERIALIZER.query("q1", q1, 'str', skip_quote=True) + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['q1'] = _SERIALIZER.query("q1", q1, 'str', skip_quote=True) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -284,20 +284,20 @@ def build_get_swagger_query_valid_request( accept = "application/json" # Construct URL - url = "/azurespecials/skipUrlEncoding/swagger/query/valid" + _url = "/azurespecials/skipUrlEncoding/swagger/query/valid" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['q1'] = _SERIALIZER.query("q1", q1, 'str', skip_quote=True) + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['q1'] = _SERIALIZER.query("q1", q1, 'str', skip_quote=True) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) diff --git a/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/rest/skip_url_encoding/_request_builders_py3.py b/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/rest/skip_url_encoding/_request_builders_py3.py index e2f7ad004c8..f5d39c82780 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/rest/skip_url_encoding/_request_builders_py3.py +++ b/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/rest/skip_url_encoding/_request_builders_py3.py @@ -31,18 +31,18 @@ def build_get_method_path_valid_request(unencoded_path_param: str, **kwargs: Any accept = "application/json" # Construct URL - url = "/azurespecials/skipUrlEncoding/method/path/valid/{unencodedPathParam}" + _url = "/azurespecials/skipUrlEncoding/method/path/valid/{unencodedPathParam}" path_format_arguments = { "unencodedPathParam": _SERIALIZER.url("unencoded_path_param", unencoded_path_param, "str", skip_quote=True), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_path_valid_request(unencoded_path_param: str, **kwargs: Any) -> HttpRequest: @@ -61,18 +61,18 @@ def build_get_path_valid_request(unencoded_path_param: str, **kwargs: Any) -> Ht accept = "application/json" # Construct URL - url = "/azurespecials/skipUrlEncoding/path/path/valid/{unencodedPathParam}" + _url = "/azurespecials/skipUrlEncoding/path/path/valid/{unencodedPathParam}" path_format_arguments = { "unencodedPathParam": _SERIALIZER.url("unencoded_path_param", unencoded_path_param, "str", skip_quote=True), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_swagger_path_valid_request(**kwargs: Any) -> HttpRequest: @@ -95,18 +95,18 @@ def build_get_swagger_path_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/azurespecials/skipUrlEncoding/swagger/path/valid/{unencodedPathParam}" + _url = "/azurespecials/skipUrlEncoding/swagger/path/valid/{unencodedPathParam}" path_format_arguments = { "unencodedPathParam": _SERIALIZER.url("unencoded_path_param", unencoded_path_param, "str", skip_quote=True), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_method_query_valid_request(*, q1: str, **kwargs: Any) -> HttpRequest: @@ -125,17 +125,17 @@ def build_get_method_query_valid_request(*, q1: str, **kwargs: Any) -> HttpReque accept = "application/json" # Construct URL - url = "/azurespecials/skipUrlEncoding/method/query/valid" + _url = "/azurespecials/skipUrlEncoding/method/query/valid" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["q1"] = _SERIALIZER.query("q1", q1, "str", skip_quote=True) + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["q1"] = _SERIALIZER.query("q1", q1, "str", skip_quote=True) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_get_method_query_null_request(*, q1: Optional[str] = None, **kwargs: Any) -> HttpRequest: @@ -154,18 +154,18 @@ def build_get_method_query_null_request(*, q1: Optional[str] = None, **kwargs: A accept = "application/json" # Construct URL - url = "/azurespecials/skipUrlEncoding/method/query/null" + _url = "/azurespecials/skipUrlEncoding/method/query/null" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if q1 is not None: - query_parameters["q1"] = _SERIALIZER.query("q1", q1, "str", skip_quote=True) + _query_parameters["q1"] = _SERIALIZER.query("q1", q1, "str", skip_quote=True) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_get_path_query_valid_request(*, q1: str, **kwargs: Any) -> HttpRequest: @@ -184,17 +184,17 @@ def build_get_path_query_valid_request(*, q1: str, **kwargs: Any) -> HttpRequest accept = "application/json" # Construct URL - url = "/azurespecials/skipUrlEncoding/path/query/valid" + _url = "/azurespecials/skipUrlEncoding/path/query/valid" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["q1"] = _SERIALIZER.query("q1", q1, "str", skip_quote=True) + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["q1"] = _SERIALIZER.query("q1", q1, "str", skip_quote=True) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_get_swagger_query_valid_request(**kwargs: Any) -> HttpRequest: @@ -217,14 +217,14 @@ def build_get_swagger_query_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/azurespecials/skipUrlEncoding/swagger/query/valid" + _url = "/azurespecials/skipUrlEncoding/swagger/query/valid" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["q1"] = _SERIALIZER.query("q1", q1, "str", skip_quote=True) + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["q1"] = _SERIALIZER.query("q1", q1, "str", skip_quote=True) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) diff --git a/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/rest/subscription_in_credentials/_request_builders.py b/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/rest/subscription_in_credentials/_request_builders.py index 709c0908099..7c156447dd7 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/rest/subscription_in_credentials/_request_builders.py +++ b/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/rest/subscription_in_credentials/_request_builders.py @@ -42,21 +42,21 @@ def build_post_method_global_valid_request( accept = "application/json" # Construct URL - url = "/azurespecials/subscriptionId/method/string/none/path/global/1234-5678-9012-3456/{subscriptionId}" + _url = "/azurespecials/subscriptionId/method/string/none/path/global/1234-5678-9012-3456/{subscriptionId}" path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -83,21 +83,21 @@ def build_post_method_global_null_request( accept = "application/json" # Construct URL - url = "/azurespecials/subscriptionId/method/string/none/path/global/null/{subscriptionId}" + _url = "/azurespecials/subscriptionId/method/string/none/path/global/null/{subscriptionId}" path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -126,26 +126,26 @@ def build_post_method_global_not_provided_valid_request( accept = "application/json" # Construct URL - url = "/azurespecials/subscriptionId/method/string/none/path/globalNotProvided/1234-5678-9012-3456/{subscriptionId}" + _url = "/azurespecials/subscriptionId/method/string/none/path/globalNotProvided/1234-5678-9012-3456/{subscriptionId}" path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -172,21 +172,21 @@ def build_post_path_global_valid_request( accept = "application/json" # Construct URL - url = "/azurespecials/subscriptionId/path/string/none/path/global/1234-5678-9012-3456/{subscriptionId}" + _url = "/azurespecials/subscriptionId/path/string/none/path/global/1234-5678-9012-3456/{subscriptionId}" path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -213,20 +213,20 @@ def build_post_swagger_global_valid_request( accept = "application/json" # Construct URL - url = "/azurespecials/subscriptionId/swagger/string/none/path/global/1234-5678-9012-3456/{subscriptionId}" + _url = "/azurespecials/subscriptionId/swagger/string/none/path/global/1234-5678-9012-3456/{subscriptionId}" path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/rest/subscription_in_credentials/_request_builders_py3.py b/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/rest/subscription_in_credentials/_request_builders_py3.py index ebf28b645f6..8b811ed6eff 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/rest/subscription_in_credentials/_request_builders_py3.py +++ b/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/rest/subscription_in_credentials/_request_builders_py3.py @@ -33,18 +33,18 @@ def build_post_method_global_valid_request(subscription_id: str, **kwargs: Any) accept = "application/json" # Construct URL - url = "/azurespecials/subscriptionId/method/string/none/path/global/1234-5678-9012-3456/{subscriptionId}" + _url = "/azurespecials/subscriptionId/method/string/none/path/global/1234-5678-9012-3456/{subscriptionId}" path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) def build_post_method_global_null_request(subscription_id: str, **kwargs: Any) -> HttpRequest: @@ -65,18 +65,18 @@ def build_post_method_global_null_request(subscription_id: str, **kwargs: Any) - accept = "application/json" # Construct URL - url = "/azurespecials/subscriptionId/method/string/none/path/global/null/{subscriptionId}" + _url = "/azurespecials/subscriptionId/method/string/none/path/global/null/{subscriptionId}" path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) def build_post_method_global_not_provided_valid_request(subscription_id: str, **kwargs: Any) -> HttpRequest: @@ -99,22 +99,24 @@ def build_post_method_global_not_provided_valid_request(subscription_id: str, ** accept = "application/json" # Construct URL - url = "/azurespecials/subscriptionId/method/string/none/path/globalNotProvided/1234-5678-9012-3456/{subscriptionId}" + _url = ( + "/azurespecials/subscriptionId/method/string/none/path/globalNotProvided/1234-5678-9012-3456/{subscriptionId}" + ) path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["api-version"] = _SERIALIZER.query("api_version", api_version, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_post_path_global_valid_request(subscription_id: str, **kwargs: Any) -> HttpRequest: @@ -135,18 +137,18 @@ def build_post_path_global_valid_request(subscription_id: str, **kwargs: Any) -> accept = "application/json" # Construct URL - url = "/azurespecials/subscriptionId/path/string/none/path/global/1234-5678-9012-3456/{subscriptionId}" + _url = "/azurespecials/subscriptionId/path/string/none/path/global/1234-5678-9012-3456/{subscriptionId}" path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) def build_post_swagger_global_valid_request(subscription_id: str, **kwargs: Any) -> HttpRequest: @@ -167,15 +169,15 @@ def build_post_swagger_global_valid_request(subscription_id: str, **kwargs: Any) accept = "application/json" # Construct URL - url = "/azurespecials/subscriptionId/swagger/string/none/path/global/1234-5678-9012-3456/{subscriptionId}" + _url = "/azurespecials/subscriptionId/swagger/string/none/path/global/1234-5678-9012-3456/{subscriptionId}" path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) diff --git a/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/rest/subscription_in_method/_request_builders.py b/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/rest/subscription_in_method/_request_builders.py index 0a223769a09..279c805ba4d 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/rest/subscription_in_method/_request_builders.py +++ b/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/rest/subscription_in_method/_request_builders.py @@ -42,21 +42,21 @@ def build_post_method_local_valid_request( accept = "application/json" # Construct URL - url = "/azurespecials/subscriptionId/method/string/none/path/local/1234-5678-9012-3456/{subscriptionId}" + _url = "/azurespecials/subscriptionId/method/string/none/path/local/1234-5678-9012-3456/{subscriptionId}" path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -83,21 +83,21 @@ def build_post_method_local_null_request( accept = "application/json" # Construct URL - url = "/azurespecials/subscriptionId/method/string/none/path/local/null/{subscriptionId}" + _url = "/azurespecials/subscriptionId/method/string/none/path/local/null/{subscriptionId}" path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -123,21 +123,21 @@ def build_post_path_local_valid_request( accept = "application/json" # Construct URL - url = "/azurespecials/subscriptionId/path/string/none/path/local/1234-5678-9012-3456/{subscriptionId}" + _url = "/azurespecials/subscriptionId/path/string/none/path/local/1234-5678-9012-3456/{subscriptionId}" path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -164,20 +164,20 @@ def build_post_swagger_local_valid_request( accept = "application/json" # Construct URL - url = "/azurespecials/subscriptionId/swagger/string/none/path/local/1234-5678-9012-3456/{subscriptionId}" + _url = "/azurespecials/subscriptionId/swagger/string/none/path/local/1234-5678-9012-3456/{subscriptionId}" path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/rest/subscription_in_method/_request_builders_py3.py b/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/rest/subscription_in_method/_request_builders_py3.py index 8e99ee28212..cfec610d7e4 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/rest/subscription_in_method/_request_builders_py3.py +++ b/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/rest/subscription_in_method/_request_builders_py3.py @@ -33,18 +33,18 @@ def build_post_method_local_valid_request(subscription_id: str, **kwargs: Any) - accept = "application/json" # Construct URL - url = "/azurespecials/subscriptionId/method/string/none/path/local/1234-5678-9012-3456/{subscriptionId}" + _url = "/azurespecials/subscriptionId/method/string/none/path/local/1234-5678-9012-3456/{subscriptionId}" path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) def build_post_method_local_null_request(subscription_id: str, **kwargs: Any) -> HttpRequest: @@ -65,18 +65,18 @@ def build_post_method_local_null_request(subscription_id: str, **kwargs: Any) -> accept = "application/json" # Construct URL - url = "/azurespecials/subscriptionId/method/string/none/path/local/null/{subscriptionId}" + _url = "/azurespecials/subscriptionId/method/string/none/path/local/null/{subscriptionId}" path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) def build_post_path_local_valid_request(subscription_id: str, **kwargs: Any) -> HttpRequest: @@ -96,18 +96,18 @@ def build_post_path_local_valid_request(subscription_id: str, **kwargs: Any) -> accept = "application/json" # Construct URL - url = "/azurespecials/subscriptionId/path/string/none/path/local/1234-5678-9012-3456/{subscriptionId}" + _url = "/azurespecials/subscriptionId/path/string/none/path/local/1234-5678-9012-3456/{subscriptionId}" path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) def build_post_swagger_local_valid_request(subscription_id: str, **kwargs: Any) -> HttpRequest: @@ -128,15 +128,15 @@ def build_post_swagger_local_valid_request(subscription_id: str, **kwargs: Any) accept = "application/json" # Construct URL - url = "/azurespecials/subscriptionId/swagger/string/none/path/local/1234-5678-9012-3456/{subscriptionId}" + _url = "/azurespecials/subscriptionId/swagger/string/none/path/local/1234-5678-9012-3456/{subscriptionId}" path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) diff --git a/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/rest/xms_client_request_id/_request_builders.py b/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/rest/xms_client_request_id/_request_builders.py index 7d577df5435..6c4f8dbb2cd 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/rest/xms_client_request_id/_request_builders.py +++ b/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/rest/xms_client_request_id/_request_builders.py @@ -35,11 +35,11 @@ def build_get_request( """ # Construct URL - url = "/azurespecials/overwrite/x-ms-client-request-id/method/" + _url = "/azurespecials/overwrite/x-ms-client-request-id/method/" return HttpRequest( method="GET", - url=url, + url=_url, **kwargs ) @@ -67,16 +67,16 @@ def build_param_get_request( accept = "application/json" # Construct URL - url = "/azurespecials/overwrite/x-ms-client-request-id/via-param/method/" + _url = "/azurespecials/overwrite/x-ms-client-request-id/via-param/method/" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['x-ms-client-request-id'] = _SERIALIZER.header("x_ms_client_request_id", x_ms_client_request_id, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['x-ms-client-request-id'] = _SERIALIZER.header("x_ms_client_request_id", x_ms_client_request_id, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/rest/xms_client_request_id/_request_builders_py3.py b/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/rest/xms_client_request_id/_request_builders_py3.py index 3d6dfeee4cc..a005a1c46e7 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/rest/xms_client_request_id/_request_builders_py3.py +++ b/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/rest/xms_client_request_id/_request_builders_py3.py @@ -27,9 +27,9 @@ def build_get_request(**kwargs: Any) -> HttpRequest: """ # Construct URL - url = "/azurespecials/overwrite/x-ms-client-request-id/method/" + _url = "/azurespecials/overwrite/x-ms-client-request-id/method/" - return HttpRequest(method="GET", url=url, **kwargs) + return HttpRequest(method="GET", url=_url, **kwargs) def build_param_get_request(*, x_ms_client_request_id: str, **kwargs: Any) -> HttpRequest: @@ -50,13 +50,13 @@ def build_param_get_request(*, x_ms_client_request_id: str, **kwargs: Any) -> Ht accept = "application/json" # Construct URL - url = "/azurespecials/overwrite/x-ms-client-request-id/via-param/method/" + _url = "/azurespecials/overwrite/x-ms-client-request-id/via-param/method/" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["x-ms-client-request-id"] = _SERIALIZER.header( + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["x-ms-client-request-id"] = _SERIALIZER.header( "x_ms_client_request_id", x_ms_client_request_id, "str" ) - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) diff --git a/test/azure/low-level/Expected/AcceptanceTests/CustomBaseUriLowLevel/custombaseurllowlevel/rest/paths/_request_builders.py b/test/azure/low-level/Expected/AcceptanceTests/CustomBaseUriLowLevel/custombaseurllowlevel/rest/paths/_request_builders.py index e0c223d0f9d..51746c8b6ca 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/CustomBaseUriLowLevel/custombaseurllowlevel/rest/paths/_request_builders.py +++ b/test/azure/low-level/Expected/AcceptanceTests/CustomBaseUriLowLevel/custombaseurllowlevel/rest/paths/_request_builders.py @@ -35,15 +35,15 @@ def build_get_empty_request( accept = "application/json" # Construct URL - url = "/customuri" + _url = "/customuri" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/azure/low-level/Expected/AcceptanceTests/CustomBaseUriLowLevel/custombaseurllowlevel/rest/paths/_request_builders_py3.py b/test/azure/low-level/Expected/AcceptanceTests/CustomBaseUriLowLevel/custombaseurllowlevel/rest/paths/_request_builders_py3.py index 728ef604371..dfe3bc8f74f 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/CustomBaseUriLowLevel/custombaseurllowlevel/rest/paths/_request_builders_py3.py +++ b/test/azure/low-level/Expected/AcceptanceTests/CustomBaseUriLowLevel/custombaseurllowlevel/rest/paths/_request_builders_py3.py @@ -27,10 +27,10 @@ def build_get_empty_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/customuri" + _url = "/customuri" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) diff --git a/test/azure/low-level/Expected/AcceptanceTests/CustomUrlPagingLowLevel/custombaseurlpaginglowlevel/rest/paging/_request_builders.py b/test/azure/low-level/Expected/AcceptanceTests/CustomUrlPagingLowLevel/custombaseurlpaginglowlevel/rest/paging/_request_builders.py index e808b5a3dad..134d30c2fa6 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/CustomUrlPagingLowLevel/custombaseurlpaginglowlevel/rest/paging/_request_builders.py +++ b/test/azure/low-level/Expected/AcceptanceTests/CustomUrlPagingLowLevel/custombaseurlpaginglowlevel/rest/paging/_request_builders.py @@ -55,16 +55,16 @@ def build_get_pages_partial_url_request( accept = "application/json" # Construct URL - url = "/paging/customurl/partialnextlink" + _url = "/paging/customurl/partialnextlink" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -102,16 +102,16 @@ def build_get_pages_partial_url_operation_request( accept = "application/json" # Construct URL - url = "/paging/customurl/partialnextlinkop" + _url = "/paging/customurl/partialnextlinkop" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -152,20 +152,20 @@ def build_get_pages_partial_url_operation_next_request( accept = "application/json" # Construct URL - url = "/paging/customurl/{nextLink}" + _url = "/paging/customurl/{nextLink}" path_format_arguments = { "nextLink": _SERIALIZER.url("next_link", next_link, 'str', skip_quote=True), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/azure/low-level/Expected/AcceptanceTests/CustomUrlPagingLowLevel/custombaseurlpaginglowlevel/rest/paging/_request_builders_py3.py b/test/azure/low-level/Expected/AcceptanceTests/CustomUrlPagingLowLevel/custombaseurlpaginglowlevel/rest/paging/_request_builders_py3.py index e25f251e265..583454c607e 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/CustomUrlPagingLowLevel/custombaseurlpaginglowlevel/rest/paging/_request_builders_py3.py +++ b/test/azure/low-level/Expected/AcceptanceTests/CustomUrlPagingLowLevel/custombaseurlpaginglowlevel/rest/paging/_request_builders_py3.py @@ -47,13 +47,13 @@ def build_get_pages_partial_url_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/paging/customurl/partialnextlink" + _url = "/paging/customurl/partialnextlink" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_pages_partial_url_operation_request(**kwargs: Any) -> HttpRequest: @@ -86,13 +86,13 @@ def build_get_pages_partial_url_operation_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/paging/customurl/partialnextlinkop" + _url = "/paging/customurl/partialnextlinkop" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_pages_partial_url_operation_next_request(next_link: str, **kwargs: Any) -> HttpRequest: @@ -127,15 +127,15 @@ def build_get_pages_partial_url_operation_next_request(next_link: str, **kwargs: accept = "application/json" # Construct URL - url = "/paging/customurl/{nextLink}" + _url = "/paging/customurl/{nextLink}" path_format_arguments = { "nextLink": _SERIALIZER.url("next_link", next_link, "str", skip_quote=True), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) diff --git a/test/azure/low-level/Expected/AcceptanceTests/HeadExceptionsLowLevel/headexceptionslowlevel/rest/head_exception/_request_builders.py b/test/azure/low-level/Expected/AcceptanceTests/HeadExceptionsLowLevel/headexceptionslowlevel/rest/head_exception/_request_builders.py index 2d87db70cd4..bde72d0bc00 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/HeadExceptionsLowLevel/headexceptionslowlevel/rest/head_exception/_request_builders.py +++ b/test/azure/low-level/Expected/AcceptanceTests/HeadExceptionsLowLevel/headexceptionslowlevel/rest/head_exception/_request_builders.py @@ -35,11 +35,11 @@ def build_head200_request( """ # Construct URL - url = "/http/success/200" + _url = "/http/success/200" return HttpRequest( method="HEAD", - url=url, + url=_url, **kwargs ) @@ -60,11 +60,11 @@ def build_head204_request( """ # Construct URL - url = "/http/success/204" + _url = "/http/success/204" return HttpRequest( method="HEAD", - url=url, + url=_url, **kwargs ) @@ -85,10 +85,10 @@ def build_head404_request( """ # Construct URL - url = "/http/success/404" + _url = "/http/success/404" return HttpRequest( method="HEAD", - url=url, + url=_url, **kwargs ) diff --git a/test/azure/low-level/Expected/AcceptanceTests/HeadExceptionsLowLevel/headexceptionslowlevel/rest/head_exception/_request_builders_py3.py b/test/azure/low-level/Expected/AcceptanceTests/HeadExceptionsLowLevel/headexceptionslowlevel/rest/head_exception/_request_builders_py3.py index 702f87a0eb9..fdce3aa8a6b 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/HeadExceptionsLowLevel/headexceptionslowlevel/rest/head_exception/_request_builders_py3.py +++ b/test/azure/low-level/Expected/AcceptanceTests/HeadExceptionsLowLevel/headexceptionslowlevel/rest/head_exception/_request_builders_py3.py @@ -27,9 +27,9 @@ def build_head200_request(**kwargs: Any) -> HttpRequest: """ # Construct URL - url = "/http/success/200" + _url = "/http/success/200" - return HttpRequest(method="HEAD", url=url, **kwargs) + return HttpRequest(method="HEAD", url=_url, **kwargs) def build_head204_request(**kwargs: Any) -> HttpRequest: @@ -45,9 +45,9 @@ def build_head204_request(**kwargs: Any) -> HttpRequest: """ # Construct URL - url = "/http/success/204" + _url = "/http/success/204" - return HttpRequest(method="HEAD", url=url, **kwargs) + return HttpRequest(method="HEAD", url=_url, **kwargs) def build_head404_request(**kwargs: Any) -> HttpRequest: @@ -63,6 +63,6 @@ def build_head404_request(**kwargs: Any) -> HttpRequest: """ # Construct URL - url = "/http/success/404" + _url = "/http/success/404" - return HttpRequest(method="HEAD", url=url, **kwargs) + return HttpRequest(method="HEAD", url=_url, **kwargs) diff --git a/test/azure/low-level/Expected/AcceptanceTests/HeadLowLevel/headlowlevel/rest/http_success/_request_builders.py b/test/azure/low-level/Expected/AcceptanceTests/HeadLowLevel/headlowlevel/rest/http_success/_request_builders.py index 2d87db70cd4..bde72d0bc00 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/HeadLowLevel/headlowlevel/rest/http_success/_request_builders.py +++ b/test/azure/low-level/Expected/AcceptanceTests/HeadLowLevel/headlowlevel/rest/http_success/_request_builders.py @@ -35,11 +35,11 @@ def build_head200_request( """ # Construct URL - url = "/http/success/200" + _url = "/http/success/200" return HttpRequest( method="HEAD", - url=url, + url=_url, **kwargs ) @@ -60,11 +60,11 @@ def build_head204_request( """ # Construct URL - url = "/http/success/204" + _url = "/http/success/204" return HttpRequest( method="HEAD", - url=url, + url=_url, **kwargs ) @@ -85,10 +85,10 @@ def build_head404_request( """ # Construct URL - url = "/http/success/404" + _url = "/http/success/404" return HttpRequest( method="HEAD", - url=url, + url=_url, **kwargs ) diff --git a/test/azure/low-level/Expected/AcceptanceTests/HeadLowLevel/headlowlevel/rest/http_success/_request_builders_py3.py b/test/azure/low-level/Expected/AcceptanceTests/HeadLowLevel/headlowlevel/rest/http_success/_request_builders_py3.py index 702f87a0eb9..fdce3aa8a6b 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/HeadLowLevel/headlowlevel/rest/http_success/_request_builders_py3.py +++ b/test/azure/low-level/Expected/AcceptanceTests/HeadLowLevel/headlowlevel/rest/http_success/_request_builders_py3.py @@ -27,9 +27,9 @@ def build_head200_request(**kwargs: Any) -> HttpRequest: """ # Construct URL - url = "/http/success/200" + _url = "/http/success/200" - return HttpRequest(method="HEAD", url=url, **kwargs) + return HttpRequest(method="HEAD", url=_url, **kwargs) def build_head204_request(**kwargs: Any) -> HttpRequest: @@ -45,9 +45,9 @@ def build_head204_request(**kwargs: Any) -> HttpRequest: """ # Construct URL - url = "/http/success/204" + _url = "/http/success/204" - return HttpRequest(method="HEAD", url=url, **kwargs) + return HttpRequest(method="HEAD", url=_url, **kwargs) def build_head404_request(**kwargs: Any) -> HttpRequest: @@ -63,6 +63,6 @@ def build_head404_request(**kwargs: Any) -> HttpRequest: """ # Construct URL - url = "/http/success/404" + _url = "/http/success/404" - return HttpRequest(method="HEAD", url=url, **kwargs) + return HttpRequest(method="HEAD", url=_url, **kwargs) diff --git a/test/azure/low-level/Expected/AcceptanceTests/LroLowLevel/lrolowlevel/rest/lr_os_custom_header/_request_builders.py b/test/azure/low-level/Expected/AcceptanceTests/LroLowLevel/lrolowlevel/rest/lr_os_custom_header/_request_builders.py index 1117cff68df..99d296b12ed 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/LroLowLevel/lrolowlevel/rest/lr_os_custom_header/_request_builders.py +++ b/test/azure/low-level/Expected/AcceptanceTests/LroLowLevel/lrolowlevel/rest/lr_os_custom_header/_request_builders.py @@ -89,18 +89,18 @@ def build_put_async_retry_succeeded_request( accept = "application/json" # Construct URL - url = "/lro/customheader/putasync/retry/succeeded" + _url = "/lro/customheader/putasync/retry/succeeded" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -172,18 +172,18 @@ def build_put201_creating_succeeded200_request( accept = "application/json" # Construct URL - url = "/lro/customheader/put/201/creating/succeeded/200" + _url = "/lro/customheader/put/201/creating/succeeded/200" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -236,18 +236,18 @@ def build_post202_retry200_request( accept = "application/json" # Construct URL - url = "/lro/customheader/post/202/retry/200" + _url = "/lro/customheader/post/202/retry/200" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -301,17 +301,17 @@ def build_post_async_retry_succeeded_request( accept = "application/json" # Construct URL - url = "/lro/customheader/postasync/retry/succeeded" + _url = "/lro/customheader/postasync/retry/succeeded" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/azure/low-level/Expected/AcceptanceTests/LroLowLevel/lrolowlevel/rest/lr_os_custom_header/_request_builders_py3.py b/test/azure/low-level/Expected/AcceptanceTests/LroLowLevel/lrolowlevel/rest/lr_os_custom_header/_request_builders_py3.py index 36a26afb94d..cdd623ddbcf 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/LroLowLevel/lrolowlevel/rest/lr_os_custom_header/_request_builders_py3.py +++ b/test/azure/low-level/Expected/AcceptanceTests/LroLowLevel/lrolowlevel/rest/lr_os_custom_header/_request_builders_py3.py @@ -83,15 +83,15 @@ def build_put_async_retry_succeeded_request( accept = "application/json" # Construct URL - url = "/lro/customheader/putasync/retry/succeeded" + _url = "/lro/customheader/putasync/retry/succeeded" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_put201_creating_succeeded200_request( @@ -160,15 +160,15 @@ def build_put201_creating_succeeded200_request( accept = "application/json" # Construct URL - url = "/lro/customheader/put/201/creating/succeeded/200" + _url = "/lro/customheader/put/201/creating/succeeded/200" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_post202_retry200_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -216,15 +216,15 @@ def build_post202_retry200_request(*, json: JSONType = None, content: Any = None accept = "application/json" # Construct URL - url = "/lro/customheader/post/202/retry/200" + _url = "/lro/customheader/post/202/retry/200" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_post_async_retry_succeeded_request( @@ -275,12 +275,12 @@ def build_post_async_retry_succeeded_request( accept = "application/json" # Construct URL - url = "/lro/customheader/postasync/retry/succeeded" + _url = "/lro/customheader/postasync/retry/succeeded" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) diff --git a/test/azure/low-level/Expected/AcceptanceTests/LroLowLevel/lrolowlevel/rest/lro_retrys/_request_builders.py b/test/azure/low-level/Expected/AcceptanceTests/LroLowLevel/lrolowlevel/rest/lro_retrys/_request_builders.py index a485385d266..a5ea8ec341b 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/LroLowLevel/lrolowlevel/rest/lro_retrys/_request_builders.py +++ b/test/azure/low-level/Expected/AcceptanceTests/LroLowLevel/lrolowlevel/rest/lro_retrys/_request_builders.py @@ -88,18 +88,18 @@ def build_put201_creating_succeeded200_request( accept = "application/json" # Construct URL - url = "/lro/retryerror/put/201/creating/succeeded/200" + _url = "/lro/retryerror/put/201/creating/succeeded/200" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -170,18 +170,18 @@ def build_put_async_relative_retry_succeeded_request( accept = "application/json" # Construct URL - url = "/lro/retryerror/putasync/retry/succeeded" + _url = "/lro/retryerror/putasync/retry/succeeded" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -226,16 +226,16 @@ def build_delete_provisioning202_accepted200_succeeded_request( accept = "application/json" # Construct URL - url = "/lro/retryerror/delete/provisioning/202/accepted/200/succeeded" + _url = "/lro/retryerror/delete/provisioning/202/accepted/200/succeeded" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="DELETE", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -258,16 +258,16 @@ def build_delete202_retry200_request( accept = "application/json" # Construct URL - url = "/lro/retryerror/delete/202/retry/200" + _url = "/lro/retryerror/delete/202/retry/200" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="DELETE", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -290,16 +290,16 @@ def build_delete_async_relative_retry_succeeded_request( accept = "application/json" # Construct URL - url = "/lro/retryerror/deleteasync/retry/succeeded" + _url = "/lro/retryerror/deleteasync/retry/succeeded" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="DELETE", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -351,18 +351,18 @@ def build_post202_retry200_request( accept = "application/json" # Construct URL - url = "/lro/retryerror/post/202/retry/200" + _url = "/lro/retryerror/post/202/retry/200" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -415,17 +415,17 @@ def build_post_async_relative_retry_succeeded_request( accept = "application/json" # Construct URL - url = "/lro/retryerror/postasync/retry/succeeded" + _url = "/lro/retryerror/postasync/retry/succeeded" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/azure/low-level/Expected/AcceptanceTests/LroLowLevel/lrolowlevel/rest/lro_retrys/_request_builders_py3.py b/test/azure/low-level/Expected/AcceptanceTests/LroLowLevel/lrolowlevel/rest/lro_retrys/_request_builders_py3.py index bcd13dc77fc..2caad5f29e4 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/LroLowLevel/lrolowlevel/rest/lro_retrys/_request_builders_py3.py +++ b/test/azure/low-level/Expected/AcceptanceTests/LroLowLevel/lrolowlevel/rest/lro_retrys/_request_builders_py3.py @@ -82,15 +82,15 @@ def build_put201_creating_succeeded200_request( accept = "application/json" # Construct URL - url = "/lro/retryerror/put/201/creating/succeeded/200" + _url = "/lro/retryerror/put/201/creating/succeeded/200" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_put_async_relative_retry_succeeded_request( @@ -158,15 +158,15 @@ def build_put_async_relative_retry_succeeded_request( accept = "application/json" # Construct URL - url = "/lro/retryerror/putasync/retry/succeeded" + _url = "/lro/retryerror/putasync/retry/succeeded" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_delete_provisioning202_accepted200_succeeded_request(**kwargs: Any) -> HttpRequest: @@ -206,13 +206,13 @@ def build_delete_provisioning202_accepted200_succeeded_request(**kwargs: Any) -> accept = "application/json" # Construct URL - url = "/lro/retryerror/delete/provisioning/202/accepted/200/succeeded" + _url = "/lro/retryerror/delete/provisioning/202/accepted/200/succeeded" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="DELETE", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="DELETE", url=_url, headers=_header_parameters, **kwargs) def build_delete202_retry200_request(**kwargs: Any) -> HttpRequest: @@ -230,13 +230,13 @@ def build_delete202_retry200_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/lro/retryerror/delete/202/retry/200" + _url = "/lro/retryerror/delete/202/retry/200" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="DELETE", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="DELETE", url=_url, headers=_header_parameters, **kwargs) def build_delete_async_relative_retry_succeeded_request(**kwargs: Any) -> HttpRequest: @@ -254,13 +254,13 @@ def build_delete_async_relative_retry_succeeded_request(**kwargs: Any) -> HttpRe accept = "application/json" # Construct URL - url = "/lro/retryerror/deleteasync/retry/succeeded" + _url = "/lro/retryerror/deleteasync/retry/succeeded" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="DELETE", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="DELETE", url=_url, headers=_header_parameters, **kwargs) def build_post202_retry200_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -307,15 +307,15 @@ def build_post202_retry200_request(*, json: JSONType = None, content: Any = None accept = "application/json" # Construct URL - url = "/lro/retryerror/post/202/retry/200" + _url = "/lro/retryerror/post/202/retry/200" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_post_async_relative_retry_succeeded_request( @@ -365,12 +365,12 @@ def build_post_async_relative_retry_succeeded_request( accept = "application/json" # Construct URL - url = "/lro/retryerror/postasync/retry/succeeded" + _url = "/lro/retryerror/postasync/retry/succeeded" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) diff --git a/test/azure/low-level/Expected/AcceptanceTests/LroLowLevel/lrolowlevel/rest/lros/_request_builders.py b/test/azure/low-level/Expected/AcceptanceTests/LroLowLevel/lrolowlevel/rest/lros/_request_builders.py index f5988e80ffa..efec3a08dd8 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/LroLowLevel/lrolowlevel/rest/lros/_request_builders.py +++ b/test/azure/low-level/Expected/AcceptanceTests/LroLowLevel/lrolowlevel/rest/lros/_request_builders.py @@ -87,18 +87,18 @@ def build_put200_succeeded_request( accept = "application/json" # Construct URL - url = "/lro/put/200/succeeded" + _url = "/lro/put/200/succeeded" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -168,18 +168,18 @@ def build_patch200_succeeded_ignore_headers_request( accept = "application/json" # Construct URL - url = "/lro/patch/200/succeeded/ignoreheaders" + _url = "/lro/patch/200/succeeded/ignoreheaders" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PATCH", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -248,18 +248,18 @@ def build_patch201_retry_with_async_header_request( accept = "application/json" # Construct URL - url = "/lro/patch/201/retry/onlyAsyncHeader" + _url = "/lro/patch/201/retry/onlyAsyncHeader" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PATCH", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -329,18 +329,18 @@ def build_patch202_retry_with_async_and_location_header_request( accept = "application/json" # Construct URL - url = "/lro/patch/202/retry/asyncAndLocationHeader" + _url = "/lro/patch/202/retry/asyncAndLocationHeader" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PATCH", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -410,18 +410,18 @@ def build_put201_succeeded_request( accept = "application/json" # Construct URL - url = "/lro/put/201/succeeded" + _url = "/lro/put/201/succeeded" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -467,16 +467,16 @@ def build_post202_list_request( accept = "application/json" # Construct URL - url = "/lro/list" + _url = "/lro/list" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -546,18 +546,18 @@ def build_put200_succeeded_no_state_request( accept = "application/json" # Construct URL - url = "/lro/put/200/succeeded/nostate" + _url = "/lro/put/200/succeeded/nostate" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -628,18 +628,18 @@ def build_put202_retry200_request( accept = "application/json" # Construct URL - url = "/lro/put/202/retry/200" + _url = "/lro/put/202/retry/200" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -710,18 +710,18 @@ def build_put201_creating_succeeded200_request( accept = "application/json" # Construct URL - url = "/lro/put/201/creating/succeeded/200" + _url = "/lro/put/201/creating/succeeded/200" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -792,18 +792,18 @@ def build_put200_updating_succeeded204_request( accept = "application/json" # Construct URL - url = "/lro/put/200/updating/succeeded/200" + _url = "/lro/put/200/updating/succeeded/200" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -874,18 +874,18 @@ def build_put201_creating_failed200_request( accept = "application/json" # Construct URL - url = "/lro/put/201/created/failed/200" + _url = "/lro/put/201/created/failed/200" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -956,18 +956,18 @@ def build_put200_acceptedcanceled200_request( accept = "application/json" # Construct URL - url = "/lro/put/200/accepted/canceled/200" + _url = "/lro/put/200/accepted/canceled/200" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1037,18 +1037,18 @@ def build_put_no_header_in_retry_request( accept = "application/json" # Construct URL - url = "/lro/put/noheader/202/200" + _url = "/lro/put/noheader/202/200" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1119,18 +1119,18 @@ def build_put_async_retry_succeeded_request( accept = "application/json" # Construct URL - url = "/lro/putasync/retry/succeeded" + _url = "/lro/putasync/retry/succeeded" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1201,18 +1201,18 @@ def build_put_async_no_retry_succeeded_request( accept = "application/json" # Construct URL - url = "/lro/putasync/noretry/succeeded" + _url = "/lro/putasync/noretry/succeeded" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1283,18 +1283,18 @@ def build_put_async_retry_failed_request( accept = "application/json" # Construct URL - url = "/lro/putasync/retry/failed" + _url = "/lro/putasync/retry/failed" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1365,18 +1365,18 @@ def build_put_async_no_retrycanceled_request( accept = "application/json" # Construct URL - url = "/lro/putasync/noretry/canceled" + _url = "/lro/putasync/noretry/canceled" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1447,18 +1447,18 @@ def build_put_async_no_header_in_retry_request( accept = "application/json" # Construct URL - url = "/lro/putasync/noheader/201/200" + _url = "/lro/putasync/noheader/201/200" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1503,18 +1503,18 @@ def build_put_non_resource_request( accept = "application/json" # Construct URL - url = "/lro/putnonresource/202/200" + _url = "/lro/putnonresource/202/200" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1559,18 +1559,18 @@ def build_put_async_non_resource_request( accept = "application/json" # Construct URL - url = "/lro/putnonresourceasync/202/200" + _url = "/lro/putnonresourceasync/202/200" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1625,18 +1625,18 @@ def build_put_sub_resource_request( accept = "application/json" # Construct URL - url = "/lro/putsubresource/202/200" + _url = "/lro/putsubresource/202/200" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1691,18 +1691,18 @@ def build_put_async_sub_resource_request( accept = "application/json" # Construct URL - url = "/lro/putsubresourceasync/202/200" + _url = "/lro/putsubresourceasync/202/200" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1747,16 +1747,16 @@ def build_delete_provisioning202_accepted200_succeeded_request( accept = "application/json" # Construct URL - url = "/lro/delete/provisioning/202/accepted/200/succeeded" + _url = "/lro/delete/provisioning/202/accepted/200/succeeded" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="DELETE", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1801,16 +1801,16 @@ def build_delete_provisioning202_deleting_failed200_request( accept = "application/json" # Construct URL - url = "/lro/delete/provisioning/202/deleting/200/failed" + _url = "/lro/delete/provisioning/202/deleting/200/failed" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="DELETE", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1855,16 +1855,16 @@ def build_delete_provisioning202_deletingcanceled200_request( accept = "application/json" # Construct URL - url = "/lro/delete/provisioning/202/deleting/200/canceled" + _url = "/lro/delete/provisioning/202/deleting/200/canceled" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="DELETE", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1886,16 +1886,16 @@ def build_delete204_succeeded_request( accept = "application/json" # Construct URL - url = "/lro/delete/204/succeeded" + _url = "/lro/delete/204/succeeded" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="DELETE", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1939,16 +1939,16 @@ def build_delete202_retry200_request( accept = "application/json" # Construct URL - url = "/lro/delete/202/retry/200" + _url = "/lro/delete/202/retry/200" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="DELETE", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1992,16 +1992,16 @@ def build_delete202_no_retry204_request( accept = "application/json" # Construct URL - url = "/lro/delete/202/noretry/204" + _url = "/lro/delete/202/noretry/204" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="DELETE", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -2024,16 +2024,16 @@ def build_delete_no_header_in_retry_request( accept = "application/json" # Construct URL - url = "/lro/delete/noheader" + _url = "/lro/delete/noheader" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="DELETE", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -2056,16 +2056,16 @@ def build_delete_async_no_header_in_retry_request( accept = "application/json" # Construct URL - url = "/lro/deleteasync/noheader/202/204" + _url = "/lro/deleteasync/noheader/202/204" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="DELETE", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -2088,16 +2088,16 @@ def build_delete_async_retry_succeeded_request( accept = "application/json" # Construct URL - url = "/lro/deleteasync/retry/succeeded" + _url = "/lro/deleteasync/retry/succeeded" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="DELETE", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -2120,16 +2120,16 @@ def build_delete_async_no_retry_succeeded_request( accept = "application/json" # Construct URL - url = "/lro/deleteasync/noretry/succeeded" + _url = "/lro/deleteasync/noretry/succeeded" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="DELETE", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -2152,16 +2152,16 @@ def build_delete_async_retry_failed_request( accept = "application/json" # Construct URL - url = "/lro/deleteasync/retry/failed" + _url = "/lro/deleteasync/retry/failed" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="DELETE", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -2184,16 +2184,16 @@ def build_delete_async_retrycanceled_request( accept = "application/json" # Construct URL - url = "/lro/deleteasync/retry/canceled" + _url = "/lro/deleteasync/retry/canceled" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="DELETE", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -2225,16 +2225,16 @@ def build_post200_with_payload_request( accept = "application/json" # Construct URL - url = "/lro/post/payload/200" + _url = "/lro/post/payload/200" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -2286,18 +2286,18 @@ def build_post202_retry200_request( accept = "application/json" # Construct URL - url = "/lro/post/202/retry/200" + _url = "/lro/post/202/retry/200" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -2367,18 +2367,18 @@ def build_post202_no_retry204_request( accept = "application/json" # Construct URL - url = "/lro/post/202/noretry/204" + _url = "/lro/post/202/noretry/204" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -2423,16 +2423,16 @@ def build_post_double_headers_final_location_get_request( accept = "application/json" # Construct URL - url = "/lro/LROPostDoubleHeadersFinalLocationGet" + _url = "/lro/LROPostDoubleHeadersFinalLocationGet" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -2477,16 +2477,16 @@ def build_post_double_headers_final_azure_header_get_request( accept = "application/json" # Construct URL - url = "/lro/LROPostDoubleHeadersFinalAzureHeaderGet" + _url = "/lro/LROPostDoubleHeadersFinalAzureHeaderGet" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -2531,16 +2531,16 @@ def build_post_double_headers_final_azure_header_get_default_request( accept = "application/json" # Construct URL - url = "/lro/LROPostDoubleHeadersFinalAzureHeaderGetDefault" + _url = "/lro/LROPostDoubleHeadersFinalAzureHeaderGetDefault" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -2611,18 +2611,18 @@ def build_post_async_retry_succeeded_request( accept = "application/json" # Construct URL - url = "/lro/postasync/retry/succeeded" + _url = "/lro/postasync/retry/succeeded" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -2693,18 +2693,18 @@ def build_post_async_no_retry_succeeded_request( accept = "application/json" # Construct URL - url = "/lro/postasync/noretry/succeeded" + _url = "/lro/postasync/noretry/succeeded" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -2757,18 +2757,18 @@ def build_post_async_retry_failed_request( accept = "application/json" # Construct URL - url = "/lro/postasync/retry/failed" + _url = "/lro/postasync/retry/failed" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -2821,17 +2821,17 @@ def build_post_async_retrycanceled_request( accept = "application/json" # Construct URL - url = "/lro/postasync/retry/canceled" + _url = "/lro/postasync/retry/canceled" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/azure/low-level/Expected/AcceptanceTests/LroLowLevel/lrolowlevel/rest/lros/_request_builders_py3.py b/test/azure/low-level/Expected/AcceptanceTests/LroLowLevel/lrolowlevel/rest/lros/_request_builders_py3.py index 85be517e8a8..67e63fcde16 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/LroLowLevel/lrolowlevel/rest/lros/_request_builders_py3.py +++ b/test/azure/low-level/Expected/AcceptanceTests/LroLowLevel/lrolowlevel/rest/lros/_request_builders_py3.py @@ -79,15 +79,15 @@ def build_put200_succeeded_request(*, json: JSONType = None, content: Any = None accept = "application/json" # Construct URL - url = "/lro/put/200/succeeded" + _url = "/lro/put/200/succeeded" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_patch200_succeeded_ignore_headers_request( @@ -154,15 +154,15 @@ def build_patch200_succeeded_ignore_headers_request( accept = "application/json" # Construct URL - url = "/lro/patch/200/succeeded/ignoreheaders" + _url = "/lro/patch/200/succeeded/ignoreheaders" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PATCH", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PATCH", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_patch201_retry_with_async_header_request( @@ -228,15 +228,15 @@ def build_patch201_retry_with_async_header_request( accept = "application/json" # Construct URL - url = "/lro/patch/201/retry/onlyAsyncHeader" + _url = "/lro/patch/201/retry/onlyAsyncHeader" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PATCH", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PATCH", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_patch202_retry_with_async_and_location_header_request( @@ -303,15 +303,15 @@ def build_patch202_retry_with_async_and_location_header_request( accept = "application/json" # Construct URL - url = "/lro/patch/202/retry/asyncAndLocationHeader" + _url = "/lro/patch/202/retry/asyncAndLocationHeader" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PATCH", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PATCH", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_put201_succeeded_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -376,15 +376,15 @@ def build_put201_succeeded_request(*, json: JSONType = None, content: Any = None accept = "application/json" # Construct URL - url = "/lro/put/201/succeeded" + _url = "/lro/put/201/succeeded" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_post202_list_request(**kwargs: Any) -> HttpRequest: @@ -425,13 +425,13 @@ def build_post202_list_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/lro/list" + _url = "/lro/list" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) def build_put200_succeeded_no_state_request( @@ -498,15 +498,15 @@ def build_put200_succeeded_no_state_request( accept = "application/json" # Construct URL - url = "/lro/put/200/succeeded/nostate" + _url = "/lro/put/200/succeeded/nostate" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_put202_retry200_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -572,15 +572,15 @@ def build_put202_retry200_request(*, json: JSONType = None, content: Any = None, accept = "application/json" # Construct URL - url = "/lro/put/202/retry/200" + _url = "/lro/put/202/retry/200" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_put201_creating_succeeded200_request( @@ -648,15 +648,15 @@ def build_put201_creating_succeeded200_request( accept = "application/json" # Construct URL - url = "/lro/put/201/creating/succeeded/200" + _url = "/lro/put/201/creating/succeeded/200" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_put200_updating_succeeded204_request( @@ -724,15 +724,15 @@ def build_put200_updating_succeeded204_request( accept = "application/json" # Construct URL - url = "/lro/put/200/updating/succeeded/200" + _url = "/lro/put/200/updating/succeeded/200" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_put201_creating_failed200_request( @@ -800,15 +800,15 @@ def build_put201_creating_failed200_request( accept = "application/json" # Construct URL - url = "/lro/put/201/created/failed/200" + _url = "/lro/put/201/created/failed/200" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_put200_acceptedcanceled200_request( @@ -876,15 +876,15 @@ def build_put200_acceptedcanceled200_request( accept = "application/json" # Construct URL - url = "/lro/put/200/accepted/canceled/200" + _url = "/lro/put/200/accepted/canceled/200" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_put_no_header_in_retry_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -949,15 +949,15 @@ def build_put_no_header_in_retry_request(*, json: JSONType = None, content: Any accept = "application/json" # Construct URL - url = "/lro/put/noheader/202/200" + _url = "/lro/put/noheader/202/200" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_put_async_retry_succeeded_request( @@ -1025,15 +1025,15 @@ def build_put_async_retry_succeeded_request( accept = "application/json" # Construct URL - url = "/lro/putasync/retry/succeeded" + _url = "/lro/putasync/retry/succeeded" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_put_async_no_retry_succeeded_request( @@ -1101,15 +1101,15 @@ def build_put_async_no_retry_succeeded_request( accept = "application/json" # Construct URL - url = "/lro/putasync/noretry/succeeded" + _url = "/lro/putasync/noretry/succeeded" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_put_async_retry_failed_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -1175,15 +1175,15 @@ def build_put_async_retry_failed_request(*, json: JSONType = None, content: Any accept = "application/json" # Construct URL - url = "/lro/putasync/retry/failed" + _url = "/lro/putasync/retry/failed" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_put_async_no_retrycanceled_request( @@ -1251,15 +1251,15 @@ def build_put_async_no_retrycanceled_request( accept = "application/json" # Construct URL - url = "/lro/putasync/noretry/canceled" + _url = "/lro/putasync/noretry/canceled" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_put_async_no_header_in_retry_request( @@ -1327,15 +1327,15 @@ def build_put_async_no_header_in_retry_request( accept = "application/json" # Construct URL - url = "/lro/putasync/noheader/201/200" + _url = "/lro/putasync/noheader/201/200" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_put_non_resource_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -1375,15 +1375,15 @@ def build_put_non_resource_request(*, json: JSONType = None, content: Any = None accept = "application/json" # Construct URL - url = "/lro/putnonresource/202/200" + _url = "/lro/putnonresource/202/200" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_put_async_non_resource_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -1423,15 +1423,15 @@ def build_put_async_non_resource_request(*, json: JSONType = None, content: Any accept = "application/json" # Construct URL - url = "/lro/putnonresourceasync/202/200" + _url = "/lro/putnonresourceasync/202/200" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_put_sub_resource_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -1481,15 +1481,15 @@ def build_put_sub_resource_request(*, json: JSONType = None, content: Any = None accept = "application/json" # Construct URL - url = "/lro/putsubresource/202/200" + _url = "/lro/putsubresource/202/200" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_put_async_sub_resource_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -1539,15 +1539,15 @@ def build_put_async_sub_resource_request(*, json: JSONType = None, content: Any accept = "application/json" # Construct URL - url = "/lro/putsubresourceasync/202/200" + _url = "/lro/putsubresourceasync/202/200" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_delete_provisioning202_accepted200_succeeded_request(**kwargs: Any) -> HttpRequest: @@ -1587,13 +1587,13 @@ def build_delete_provisioning202_accepted200_succeeded_request(**kwargs: Any) -> accept = "application/json" # Construct URL - url = "/lro/delete/provisioning/202/accepted/200/succeeded" + _url = "/lro/delete/provisioning/202/accepted/200/succeeded" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="DELETE", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="DELETE", url=_url, headers=_header_parameters, **kwargs) def build_delete_provisioning202_deleting_failed200_request(**kwargs: Any) -> HttpRequest: @@ -1633,13 +1633,13 @@ def build_delete_provisioning202_deleting_failed200_request(**kwargs: Any) -> Ht accept = "application/json" # Construct URL - url = "/lro/delete/provisioning/202/deleting/200/failed" + _url = "/lro/delete/provisioning/202/deleting/200/failed" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="DELETE", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="DELETE", url=_url, headers=_header_parameters, **kwargs) def build_delete_provisioning202_deletingcanceled200_request(**kwargs: Any) -> HttpRequest: @@ -1679,13 +1679,13 @@ def build_delete_provisioning202_deletingcanceled200_request(**kwargs: Any) -> H accept = "application/json" # Construct URL - url = "/lro/delete/provisioning/202/deleting/200/canceled" + _url = "/lro/delete/provisioning/202/deleting/200/canceled" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="DELETE", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="DELETE", url=_url, headers=_header_parameters, **kwargs) def build_delete204_succeeded_request(**kwargs: Any) -> HttpRequest: @@ -1702,13 +1702,13 @@ def build_delete204_succeeded_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/lro/delete/204/succeeded" + _url = "/lro/delete/204/succeeded" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="DELETE", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="DELETE", url=_url, headers=_header_parameters, **kwargs) def build_delete202_retry200_request(**kwargs: Any) -> HttpRequest: @@ -1747,13 +1747,13 @@ def build_delete202_retry200_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/lro/delete/202/retry/200" + _url = "/lro/delete/202/retry/200" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="DELETE", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="DELETE", url=_url, headers=_header_parameters, **kwargs) def build_delete202_no_retry204_request(**kwargs: Any) -> HttpRequest: @@ -1792,13 +1792,13 @@ def build_delete202_no_retry204_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/lro/delete/202/noretry/204" + _url = "/lro/delete/202/noretry/204" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="DELETE", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="DELETE", url=_url, headers=_header_parameters, **kwargs) def build_delete_no_header_in_retry_request(**kwargs: Any) -> HttpRequest: @@ -1816,13 +1816,13 @@ def build_delete_no_header_in_retry_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/lro/delete/noheader" + _url = "/lro/delete/noheader" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="DELETE", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="DELETE", url=_url, headers=_header_parameters, **kwargs) def build_delete_async_no_header_in_retry_request(**kwargs: Any) -> HttpRequest: @@ -1840,13 +1840,13 @@ def build_delete_async_no_header_in_retry_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/lro/deleteasync/noheader/202/204" + _url = "/lro/deleteasync/noheader/202/204" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="DELETE", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="DELETE", url=_url, headers=_header_parameters, **kwargs) def build_delete_async_retry_succeeded_request(**kwargs: Any) -> HttpRequest: @@ -1864,13 +1864,13 @@ def build_delete_async_retry_succeeded_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/lro/deleteasync/retry/succeeded" + _url = "/lro/deleteasync/retry/succeeded" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="DELETE", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="DELETE", url=_url, headers=_header_parameters, **kwargs) def build_delete_async_no_retry_succeeded_request(**kwargs: Any) -> HttpRequest: @@ -1888,13 +1888,13 @@ def build_delete_async_no_retry_succeeded_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/lro/deleteasync/noretry/succeeded" + _url = "/lro/deleteasync/noretry/succeeded" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="DELETE", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="DELETE", url=_url, headers=_header_parameters, **kwargs) def build_delete_async_retry_failed_request(**kwargs: Any) -> HttpRequest: @@ -1912,13 +1912,13 @@ def build_delete_async_retry_failed_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/lro/deleteasync/retry/failed" + _url = "/lro/deleteasync/retry/failed" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="DELETE", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="DELETE", url=_url, headers=_header_parameters, **kwargs) def build_delete_async_retrycanceled_request(**kwargs: Any) -> HttpRequest: @@ -1936,13 +1936,13 @@ def build_delete_async_retrycanceled_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/lro/deleteasync/retry/canceled" + _url = "/lro/deleteasync/retry/canceled" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="DELETE", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="DELETE", url=_url, headers=_header_parameters, **kwargs) def build_post200_with_payload_request(**kwargs: Any) -> HttpRequest: @@ -1969,13 +1969,13 @@ def build_post200_with_payload_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/lro/post/payload/200" + _url = "/lro/post/payload/200" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) def build_post202_retry200_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -2022,15 +2022,15 @@ def build_post202_retry200_request(*, json: JSONType = None, content: Any = None accept = "application/json" # Construct URL - url = "/lro/post/202/retry/200" + _url = "/lro/post/202/retry/200" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_post202_no_retry204_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -2095,15 +2095,15 @@ def build_post202_no_retry204_request(*, json: JSONType = None, content: Any = N accept = "application/json" # Construct URL - url = "/lro/post/202/noretry/204" + _url = "/lro/post/202/noretry/204" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_post_double_headers_final_location_get_request(**kwargs: Any) -> HttpRequest: @@ -2143,13 +2143,13 @@ def build_post_double_headers_final_location_get_request(**kwargs: Any) -> HttpR accept = "application/json" # Construct URL - url = "/lro/LROPostDoubleHeadersFinalLocationGet" + _url = "/lro/LROPostDoubleHeadersFinalLocationGet" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) def build_post_double_headers_final_azure_header_get_request(**kwargs: Any) -> HttpRequest: @@ -2189,13 +2189,13 @@ def build_post_double_headers_final_azure_header_get_request(**kwargs: Any) -> H accept = "application/json" # Construct URL - url = "/lro/LROPostDoubleHeadersFinalAzureHeaderGet" + _url = "/lro/LROPostDoubleHeadersFinalAzureHeaderGet" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) def build_post_double_headers_final_azure_header_get_default_request(**kwargs: Any) -> HttpRequest: @@ -2235,13 +2235,13 @@ def build_post_double_headers_final_azure_header_get_default_request(**kwargs: A accept = "application/json" # Construct URL - url = "/lro/LROPostDoubleHeadersFinalAzureHeaderGetDefault" + _url = "/lro/LROPostDoubleHeadersFinalAzureHeaderGetDefault" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) def build_post_async_retry_succeeded_request( @@ -2309,15 +2309,15 @@ def build_post_async_retry_succeeded_request( accept = "application/json" # Construct URL - url = "/lro/postasync/retry/succeeded" + _url = "/lro/postasync/retry/succeeded" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_post_async_no_retry_succeeded_request( @@ -2385,15 +2385,15 @@ def build_post_async_no_retry_succeeded_request( accept = "application/json" # Construct URL - url = "/lro/postasync/noretry/succeeded" + _url = "/lro/postasync/noretry/succeeded" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_post_async_retry_failed_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -2441,15 +2441,15 @@ def build_post_async_retry_failed_request(*, json: JSONType = None, content: Any accept = "application/json" # Construct URL - url = "/lro/postasync/retry/failed" + _url = "/lro/postasync/retry/failed" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_post_async_retrycanceled_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -2497,12 +2497,12 @@ def build_post_async_retrycanceled_request(*, json: JSONType = None, content: An accept = "application/json" # Construct URL - url = "/lro/postasync/retry/canceled" + _url = "/lro/postasync/retry/canceled" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) diff --git a/test/azure/low-level/Expected/AcceptanceTests/LroLowLevel/lrolowlevel/rest/lrosads/_request_builders.py b/test/azure/low-level/Expected/AcceptanceTests/LroLowLevel/lrolowlevel/rest/lrosads/_request_builders.py index 2f6eefbc816..de480400ba9 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/LroLowLevel/lrolowlevel/rest/lrosads/_request_builders.py +++ b/test/azure/low-level/Expected/AcceptanceTests/LroLowLevel/lrolowlevel/rest/lrosads/_request_builders.py @@ -86,18 +86,18 @@ def build_put_non_retry400_request( accept = "application/json" # Construct URL - url = "/lro/nonretryerror/put/400" + _url = "/lro/nonretryerror/put/400" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -167,18 +167,18 @@ def build_put_non_retry201_creating400_request( accept = "application/json" # Construct URL - url = "/lro/nonretryerror/put/201/creating/400" + _url = "/lro/nonretryerror/put/201/creating/400" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -248,18 +248,18 @@ def build_put_non_retry201_creating400_invalid_json_request( accept = "application/json" # Construct URL - url = "/lro/nonretryerror/put/201/creating/400/invalidjson" + _url = "/lro/nonretryerror/put/201/creating/400/invalidjson" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -329,18 +329,18 @@ def build_put_async_relative_retry400_request( accept = "application/json" # Construct URL - url = "/lro/nonretryerror/putasync/retry/400" + _url = "/lro/nonretryerror/putasync/retry/400" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -362,16 +362,16 @@ def build_delete_non_retry400_request( accept = "application/json" # Construct URL - url = "/lro/nonretryerror/delete/400" + _url = "/lro/nonretryerror/delete/400" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="DELETE", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -393,16 +393,16 @@ def build_delete202_non_retry400_request( accept = "application/json" # Construct URL - url = "/lro/nonretryerror/delete/202/retry/400" + _url = "/lro/nonretryerror/delete/202/retry/400" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="DELETE", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -425,16 +425,16 @@ def build_delete_async_relative_retry400_request( accept = "application/json" # Construct URL - url = "/lro/nonretryerror/deleteasync/retry/400" + _url = "/lro/nonretryerror/deleteasync/retry/400" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="DELETE", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -485,18 +485,18 @@ def build_post_non_retry400_request( accept = "application/json" # Construct URL - url = "/lro/nonretryerror/post/400" + _url = "/lro/nonretryerror/post/400" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -547,18 +547,18 @@ def build_post202_non_retry400_request( accept = "application/json" # Construct URL - url = "/lro/nonretryerror/post/202/retry/400" + _url = "/lro/nonretryerror/post/202/retry/400" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -610,18 +610,18 @@ def build_post_async_relative_retry400_request( accept = "application/json" # Construct URL - url = "/lro/nonretryerror/postasync/retry/400" + _url = "/lro/nonretryerror/postasync/retry/400" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -690,18 +690,18 @@ def build_put_error201_no_provisioning_state_payload_request( accept = "application/json" # Construct URL - url = "/lro/error/put/201/noprovisioningstatepayload" + _url = "/lro/error/put/201/noprovisioningstatepayload" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -772,18 +772,18 @@ def build_put_async_relative_retry_no_status_request( accept = "application/json" # Construct URL - url = "/lro/error/putasync/retry/nostatus" + _url = "/lro/error/putasync/retry/nostatus" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -854,18 +854,18 @@ def build_put_async_relative_retry_no_status_payload_request( accept = "application/json" # Construct URL - url = "/lro/error/putasync/retry/nostatuspayload" + _url = "/lro/error/putasync/retry/nostatuspayload" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -887,16 +887,16 @@ def build_delete204_succeeded_request( accept = "application/json" # Construct URL - url = "/lro/error/delete/204/nolocation" + _url = "/lro/error/delete/204/nolocation" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="DELETE", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -919,16 +919,16 @@ def build_delete_async_relative_retry_no_status_request( accept = "application/json" # Construct URL - url = "/lro/error/deleteasync/retry/nostatus" + _url = "/lro/error/deleteasync/retry/nostatus" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="DELETE", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -980,18 +980,18 @@ def build_post202_no_location_request( accept = "application/json" # Construct URL - url = "/lro/error/post/202/nolocation" + _url = "/lro/error/post/202/nolocation" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1044,18 +1044,18 @@ def build_post_async_relative_retry_no_payload_request( accept = "application/json" # Construct URL - url = "/lro/error/postasync/retry/nopayload" + _url = "/lro/error/postasync/retry/nopayload" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1125,18 +1125,18 @@ def build_put200_invalid_json_request( accept = "application/json" # Construct URL - url = "/lro/error/put/200/invalidjson" + _url = "/lro/error/put/200/invalidjson" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1207,18 +1207,18 @@ def build_put_async_relative_retry_invalid_header_request( accept = "application/json" # Construct URL - url = "/lro/error/putasync/retry/invalidheader" + _url = "/lro/error/putasync/retry/invalidheader" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1289,18 +1289,18 @@ def build_put_async_relative_retry_invalid_json_polling_request( accept = "application/json" # Construct URL - url = "/lro/error/putasync/retry/invalidjsonpolling" + _url = "/lro/error/putasync/retry/invalidjsonpolling" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1323,16 +1323,16 @@ def build_delete202_retry_invalid_header_request( accept = "application/json" # Construct URL - url = "/lro/error/delete/202/retry/invalidheader" + _url = "/lro/error/delete/202/retry/invalidheader" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="DELETE", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1355,16 +1355,16 @@ def build_delete_async_relative_retry_invalid_header_request( accept = "application/json" # Construct URL - url = "/lro/error/deleteasync/retry/invalidheader" + _url = "/lro/error/deleteasync/retry/invalidheader" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="DELETE", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1387,16 +1387,16 @@ def build_delete_async_relative_retry_invalid_json_polling_request( accept = "application/json" # Construct URL - url = "/lro/error/deleteasync/retry/invalidjsonpolling" + _url = "/lro/error/deleteasync/retry/invalidjsonpolling" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="DELETE", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1448,18 +1448,18 @@ def build_post202_retry_invalid_header_request( accept = "application/json" # Construct URL - url = "/lro/error/post/202/retry/invalidheader" + _url = "/lro/error/post/202/retry/invalidheader" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1512,18 +1512,18 @@ def build_post_async_relative_retry_invalid_header_request( accept = "application/json" # Construct URL - url = "/lro/error/postasync/retry/invalidheader" + _url = "/lro/error/postasync/retry/invalidheader" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1576,17 +1576,17 @@ def build_post_async_relative_retry_invalid_json_polling_request( accept = "application/json" # Construct URL - url = "/lro/error/postasync/retry/invalidjsonpolling" + _url = "/lro/error/postasync/retry/invalidjsonpolling" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/azure/low-level/Expected/AcceptanceTests/LroLowLevel/lrolowlevel/rest/lrosads/_request_builders_py3.py b/test/azure/low-level/Expected/AcceptanceTests/LroLowLevel/lrolowlevel/rest/lrosads/_request_builders_py3.py index 53c7b1e72a0..f03c45215ed 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/LroLowLevel/lrolowlevel/rest/lrosads/_request_builders_py3.py +++ b/test/azure/low-level/Expected/AcceptanceTests/LroLowLevel/lrolowlevel/rest/lrosads/_request_builders_py3.py @@ -78,15 +78,15 @@ def build_put_non_retry400_request(*, json: JSONType = None, content: Any = None accept = "application/json" # Construct URL - url = "/lro/nonretryerror/put/400" + _url = "/lro/nonretryerror/put/400" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_put_non_retry201_creating400_request( @@ -153,15 +153,15 @@ def build_put_non_retry201_creating400_request( accept = "application/json" # Construct URL - url = "/lro/nonretryerror/put/201/creating/400" + _url = "/lro/nonretryerror/put/201/creating/400" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_put_non_retry201_creating400_invalid_json_request( @@ -228,15 +228,15 @@ def build_put_non_retry201_creating400_invalid_json_request( accept = "application/json" # Construct URL - url = "/lro/nonretryerror/put/201/creating/400/invalidjson" + _url = "/lro/nonretryerror/put/201/creating/400/invalidjson" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_put_async_relative_retry400_request( @@ -303,15 +303,15 @@ def build_put_async_relative_retry400_request( accept = "application/json" # Construct URL - url = "/lro/nonretryerror/putasync/retry/400" + _url = "/lro/nonretryerror/putasync/retry/400" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_delete_non_retry400_request(**kwargs: Any) -> HttpRequest: @@ -328,13 +328,13 @@ def build_delete_non_retry400_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/lro/nonretryerror/delete/400" + _url = "/lro/nonretryerror/delete/400" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="DELETE", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="DELETE", url=_url, headers=_header_parameters, **kwargs) def build_delete202_non_retry400_request(**kwargs: Any) -> HttpRequest: @@ -351,13 +351,13 @@ def build_delete202_non_retry400_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/lro/nonretryerror/delete/202/retry/400" + _url = "/lro/nonretryerror/delete/202/retry/400" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="DELETE", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="DELETE", url=_url, headers=_header_parameters, **kwargs) def build_delete_async_relative_retry400_request(**kwargs: Any) -> HttpRequest: @@ -375,13 +375,13 @@ def build_delete_async_relative_retry400_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/lro/nonretryerror/deleteasync/retry/400" + _url = "/lro/nonretryerror/deleteasync/retry/400" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="DELETE", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="DELETE", url=_url, headers=_header_parameters, **kwargs) def build_post_non_retry400_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -427,15 +427,15 @@ def build_post_non_retry400_request(*, json: JSONType = None, content: Any = Non accept = "application/json" # Construct URL - url = "/lro/nonretryerror/post/400" + _url = "/lro/nonretryerror/post/400" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_post202_non_retry400_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -481,15 +481,15 @@ def build_post202_non_retry400_request(*, json: JSONType = None, content: Any = accept = "application/json" # Construct URL - url = "/lro/nonretryerror/post/202/retry/400" + _url = "/lro/nonretryerror/post/202/retry/400" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_post_async_relative_retry400_request( @@ -538,15 +538,15 @@ def build_post_async_relative_retry400_request( accept = "application/json" # Construct URL - url = "/lro/nonretryerror/postasync/retry/400" + _url = "/lro/nonretryerror/postasync/retry/400" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_put_error201_no_provisioning_state_payload_request( @@ -612,15 +612,15 @@ def build_put_error201_no_provisioning_state_payload_request( accept = "application/json" # Construct URL - url = "/lro/error/put/201/noprovisioningstatepayload" + _url = "/lro/error/put/201/noprovisioningstatepayload" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_put_async_relative_retry_no_status_request( @@ -688,15 +688,15 @@ def build_put_async_relative_retry_no_status_request( accept = "application/json" # Construct URL - url = "/lro/error/putasync/retry/nostatus" + _url = "/lro/error/putasync/retry/nostatus" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_put_async_relative_retry_no_status_payload_request( @@ -764,15 +764,15 @@ def build_put_async_relative_retry_no_status_payload_request( accept = "application/json" # Construct URL - url = "/lro/error/putasync/retry/nostatuspayload" + _url = "/lro/error/putasync/retry/nostatuspayload" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_delete204_succeeded_request(**kwargs: Any) -> HttpRequest: @@ -789,13 +789,13 @@ def build_delete204_succeeded_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/lro/error/delete/204/nolocation" + _url = "/lro/error/delete/204/nolocation" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="DELETE", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="DELETE", url=_url, headers=_header_parameters, **kwargs) def build_delete_async_relative_retry_no_status_request(**kwargs: Any) -> HttpRequest: @@ -813,13 +813,13 @@ def build_delete_async_relative_retry_no_status_request(**kwargs: Any) -> HttpRe accept = "application/json" # Construct URL - url = "/lro/error/deleteasync/retry/nostatus" + _url = "/lro/error/deleteasync/retry/nostatus" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="DELETE", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="DELETE", url=_url, headers=_header_parameters, **kwargs) def build_post202_no_location_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -866,15 +866,15 @@ def build_post202_no_location_request(*, json: JSONType = None, content: Any = N accept = "application/json" # Construct URL - url = "/lro/error/post/202/nolocation" + _url = "/lro/error/post/202/nolocation" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_post_async_relative_retry_no_payload_request( @@ -924,15 +924,15 @@ def build_post_async_relative_retry_no_payload_request( accept = "application/json" # Construct URL - url = "/lro/error/postasync/retry/nopayload" + _url = "/lro/error/postasync/retry/nopayload" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_put200_invalid_json_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -997,15 +997,15 @@ def build_put200_invalid_json_request(*, json: JSONType = None, content: Any = N accept = "application/json" # Construct URL - url = "/lro/error/put/200/invalidjson" + _url = "/lro/error/put/200/invalidjson" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_put_async_relative_retry_invalid_header_request( @@ -1073,15 +1073,15 @@ def build_put_async_relative_retry_invalid_header_request( accept = "application/json" # Construct URL - url = "/lro/error/putasync/retry/invalidheader" + _url = "/lro/error/putasync/retry/invalidheader" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_put_async_relative_retry_invalid_json_polling_request( @@ -1149,15 +1149,15 @@ def build_put_async_relative_retry_invalid_json_polling_request( accept = "application/json" # Construct URL - url = "/lro/error/putasync/retry/invalidjsonpolling" + _url = "/lro/error/putasync/retry/invalidjsonpolling" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_delete202_retry_invalid_header_request(**kwargs: Any) -> HttpRequest: @@ -1175,13 +1175,13 @@ def build_delete202_retry_invalid_header_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/lro/error/delete/202/retry/invalidheader" + _url = "/lro/error/delete/202/retry/invalidheader" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="DELETE", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="DELETE", url=_url, headers=_header_parameters, **kwargs) def build_delete_async_relative_retry_invalid_header_request(**kwargs: Any) -> HttpRequest: @@ -1199,13 +1199,13 @@ def build_delete_async_relative_retry_invalid_header_request(**kwargs: Any) -> H accept = "application/json" # Construct URL - url = "/lro/error/deleteasync/retry/invalidheader" + _url = "/lro/error/deleteasync/retry/invalidheader" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="DELETE", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="DELETE", url=_url, headers=_header_parameters, **kwargs) def build_delete_async_relative_retry_invalid_json_polling_request(**kwargs: Any) -> HttpRequest: @@ -1223,13 +1223,13 @@ def build_delete_async_relative_retry_invalid_json_polling_request(**kwargs: Any accept = "application/json" # Construct URL - url = "/lro/error/deleteasync/retry/invalidjsonpolling" + _url = "/lro/error/deleteasync/retry/invalidjsonpolling" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="DELETE", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="DELETE", url=_url, headers=_header_parameters, **kwargs) def build_post202_retry_invalid_header_request( @@ -1278,15 +1278,15 @@ def build_post202_retry_invalid_header_request( accept = "application/json" # Construct URL - url = "/lro/error/post/202/retry/invalidheader" + _url = "/lro/error/post/202/retry/invalidheader" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_post_async_relative_retry_invalid_header_request( @@ -1336,15 +1336,15 @@ def build_post_async_relative_retry_invalid_header_request( accept = "application/json" # Construct URL - url = "/lro/error/postasync/retry/invalidheader" + _url = "/lro/error/postasync/retry/invalidheader" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_post_async_relative_retry_invalid_json_polling_request( @@ -1394,12 +1394,12 @@ def build_post_async_relative_retry_invalid_json_polling_request( accept = "application/json" # Construct URL - url = "/lro/error/postasync/retry/invalidjsonpolling" + _url = "/lro/error/postasync/retry/invalidjsonpolling" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) diff --git a/test/azure/low-level/Expected/AcceptanceTests/LroWithParameterizedEndpointsLowLevel/lrowithparameterizedendpointslowlevel/rest/_request_builders.py b/test/azure/low-level/Expected/AcceptanceTests/LroWithParameterizedEndpointsLowLevel/lrowithparameterizedendpointslowlevel/rest/_request_builders.py index ca1192f8377..4e4764b8af6 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/LroWithParameterizedEndpointsLowLevel/lrowithparameterizedendpointslowlevel/rest/_request_builders.py +++ b/test/azure/low-level/Expected/AcceptanceTests/LroWithParameterizedEndpointsLowLevel/lrowithparameterizedendpointslowlevel/rest/_request_builders.py @@ -38,16 +38,16 @@ def build_poll_with_parameterized_endpoints_request( accept = "application/json" # Construct URL - url = "/lroParameterizedEndpoints" + _url = "/lroParameterizedEndpoints" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -74,20 +74,20 @@ def build_poll_with_constant_parameterized_endpoints_request( accept = "application/json" # Construct URL - url = "/lroConstantParameterizedEndpoints/{constantParameter}" + _url = "/lroConstantParameterizedEndpoints/{constantParameter}" path_format_arguments = { "constantParameter": _SERIALIZER.url("constant_parameter", constant_parameter, 'str', skip_quote=True), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/azure/low-level/Expected/AcceptanceTests/LroWithParameterizedEndpointsLowLevel/lrowithparameterizedendpointslowlevel/rest/_request_builders_py3.py b/test/azure/low-level/Expected/AcceptanceTests/LroWithParameterizedEndpointsLowLevel/lrowithparameterizedendpointslowlevel/rest/_request_builders_py3.py index 10bd5b5e4a6..05d9eb9f782 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/LroWithParameterizedEndpointsLowLevel/lrowithparameterizedendpointslowlevel/rest/_request_builders_py3.py +++ b/test/azure/low-level/Expected/AcceptanceTests/LroWithParameterizedEndpointsLowLevel/lrowithparameterizedendpointslowlevel/rest/_request_builders_py3.py @@ -30,13 +30,13 @@ def build_poll_with_parameterized_endpoints_request(**kwargs: Any) -> HttpReques accept = "application/json" # Construct URL - url = "/lroParameterizedEndpoints" + _url = "/lroParameterizedEndpoints" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) def build_poll_with_constant_parameterized_endpoints_request(**kwargs: Any) -> HttpRequest: @@ -58,15 +58,15 @@ def build_poll_with_constant_parameterized_endpoints_request(**kwargs: Any) -> H accept = "application/json" # Construct URL - url = "/lroConstantParameterizedEndpoints/{constantParameter}" + _url = "/lroConstantParameterizedEndpoints/{constantParameter}" path_format_arguments = { "constantParameter": _SERIALIZER.url("constant_parameter", constant_parameter, "str", skip_quote=True), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) diff --git a/test/azure/low-level/Expected/AcceptanceTests/PagingLowLevel/paginglowlevel/rest/paging/_request_builders.py b/test/azure/low-level/Expected/AcceptanceTests/PagingLowLevel/paginglowlevel/rest/paging/_request_builders.py index 9bf9b2676ad..f12a496e93d 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/PagingLowLevel/paginglowlevel/rest/paging/_request_builders.py +++ b/test/azure/low-level/Expected/AcceptanceTests/PagingLowLevel/paginglowlevel/rest/paging/_request_builders.py @@ -54,16 +54,16 @@ def build_get_no_item_name_pages_request( accept = "application/json" # Construct URL - url = "/paging/noitemname" + _url = "/paging/noitemname" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -101,16 +101,16 @@ def build_get_null_next_link_name_pages_request( accept = "application/json" # Construct URL - url = "/paging/nullnextlink" + _url = "/paging/nullnextlink" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -148,16 +148,16 @@ def build_get_single_pages_request( accept = "application/json" # Construct URL - url = "/paging/single" + _url = "/paging/single" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -196,16 +196,16 @@ def build_first_response_empty_request( accept = "application/json" # Construct URL - url = "/paging/firstResponseEmpty/1" + _url = "/paging/firstResponseEmpty/1" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -254,22 +254,22 @@ def build_get_multiple_pages_request( accept = "application/json" # Construct URL - url = "/paging/multiple" + _url = "/paging/multiple" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if client_request_id is not None: - header_parameters['client-request-id'] = _SERIALIZER.header("client_request_id", client_request_id, 'str') + _header_parameters['client-request-id'] = _SERIALIZER.header("client_request_id", client_request_id, 'str') if maxresults is not None: - header_parameters['maxresults'] = _SERIALIZER.header("maxresults", maxresults, 'int') + _header_parameters['maxresults'] = _SERIALIZER.header("maxresults", maxresults, 'int') if timeout is not None: - header_parameters['timeout'] = _SERIALIZER.header("timeout", timeout, 'int') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['timeout'] = _SERIALIZER.header("timeout", timeout, 'int') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -318,22 +318,22 @@ def build_get_with_query_params_request( accept = "application/json" # Construct URL - url = "/paging/multiple/getWithQueryParams" + _url = "/paging/multiple/getWithQueryParams" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['requiredQueryParameter'] = _SERIALIZER.query("required_query_parameter", required_query_parameter, 'int') - query_parameters['queryConstant'] = _SERIALIZER.query("query_constant", query_constant, 'bool') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['requiredQueryParameter'] = _SERIALIZER.query("required_query_parameter", required_query_parameter, 'int') + _query_parameters['queryConstant'] = _SERIALIZER.query("query_constant", query_constant, 'bool') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -376,21 +376,21 @@ def build_next_operation_with_query_params_request( accept = "application/json" # Construct URL - url = "/paging/multiple/nextOperationWithQueryParams" + _url = "/paging/multiple/nextOperationWithQueryParams" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['queryConstant'] = _SERIALIZER.query("query_constant", query_constant, 'bool') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['queryConstant'] = _SERIALIZER.query("query_constant", query_constant, 'bool') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -439,22 +439,22 @@ def build_get_odata_multiple_pages_request( accept = "application/json" # Construct URL - url = "/paging/multiple/odata" + _url = "/paging/multiple/odata" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if client_request_id is not None: - header_parameters['client-request-id'] = _SERIALIZER.header("client_request_id", client_request_id, 'str') + _header_parameters['client-request-id'] = _SERIALIZER.header("client_request_id", client_request_id, 'str') if maxresults is not None: - header_parameters['maxresults'] = _SERIALIZER.header("maxresults", maxresults, 'int') + _header_parameters['maxresults'] = _SERIALIZER.header("maxresults", maxresults, 'int') if timeout is not None: - header_parameters['timeout'] = _SERIALIZER.header("timeout", timeout, 'int') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['timeout'] = _SERIALIZER.header("timeout", timeout, 'int') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -506,27 +506,27 @@ def build_get_multiple_pages_with_offset_request( accept = "application/json" # Construct URL - url = "/paging/multiple/withpath/{offset}" + _url = "/paging/multiple/withpath/{offset}" path_format_arguments = { "offset": _SERIALIZER.url("offset", offset, 'int'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if client_request_id is not None: - header_parameters['client-request-id'] = _SERIALIZER.header("client_request_id", client_request_id, 'str') + _header_parameters['client-request-id'] = _SERIALIZER.header("client_request_id", client_request_id, 'str') if maxresults is not None: - header_parameters['maxresults'] = _SERIALIZER.header("maxresults", maxresults, 'int') + _header_parameters['maxresults'] = _SERIALIZER.header("maxresults", maxresults, 'int') if timeout is not None: - header_parameters['timeout'] = _SERIALIZER.header("timeout", timeout, 'int') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['timeout'] = _SERIALIZER.header("timeout", timeout, 'int') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -565,16 +565,16 @@ def build_get_multiple_pages_retry_first_request( accept = "application/json" # Construct URL - url = "/paging/multiple/retryfirst" + _url = "/paging/multiple/retryfirst" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -613,16 +613,16 @@ def build_get_multiple_pages_retry_second_request( accept = "application/json" # Construct URL - url = "/paging/multiple/retrysecond" + _url = "/paging/multiple/retrysecond" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -660,16 +660,16 @@ def build_get_single_pages_failure_request( accept = "application/json" # Construct URL - url = "/paging/single/failure" + _url = "/paging/single/failure" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -707,16 +707,16 @@ def build_get_multiple_pages_failure_request( accept = "application/json" # Construct URL - url = "/paging/multiple/failure" + _url = "/paging/multiple/failure" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -754,16 +754,16 @@ def build_get_multiple_pages_failure_uri_request( accept = "application/json" # Construct URL - url = "/paging/multiple/failureuri" + _url = "/paging/multiple/failureuri" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -808,26 +808,26 @@ def build_get_multiple_pages_fragment_next_link_request( accept = "application/json" # Construct URL - url = "/paging/multiple/fragment/{tenant}" + _url = "/paging/multiple/fragment/{tenant}" path_format_arguments = { "tenant": _SERIALIZER.url("tenant", tenant, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api_version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api_version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -872,26 +872,26 @@ def build_get_multiple_pages_fragment_with_grouping_next_link_request( accept = "application/json" # Construct URL - url = "/paging/multiple/fragmentwithgrouping/{tenant}" + _url = "/paging/multiple/fragmentwithgrouping/{tenant}" path_format_arguments = { "tenant": _SERIALIZER.url("tenant", tenant, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api_version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api_version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -940,22 +940,22 @@ def build_get_multiple_pages_lro_request( accept = "application/json" # Construct URL - url = "/paging/multiple/lro" + _url = "/paging/multiple/lro" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if client_request_id is not None: - header_parameters['client-request-id'] = _SERIALIZER.header("client_request_id", client_request_id, 'str') + _header_parameters['client-request-id'] = _SERIALIZER.header("client_request_id", client_request_id, 'str') if maxresults is not None: - header_parameters['maxresults'] = _SERIALIZER.header("maxresults", maxresults, 'int') + _header_parameters['maxresults'] = _SERIALIZER.header("maxresults", maxresults, 'int') if timeout is not None: - header_parameters['timeout'] = _SERIALIZER.header("timeout", timeout, 'int') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['timeout'] = _SERIALIZER.header("timeout", timeout, 'int') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1003,27 +1003,27 @@ def build_next_fragment_request( accept = "application/json" # Construct URL - url = "/paging/multiple/fragment/{tenant}/{nextLink}" + _url = "/paging/multiple/fragment/{tenant}/{nextLink}" path_format_arguments = { "tenant": _SERIALIZER.url("tenant", tenant, 'str'), "nextLink": _SERIALIZER.url("next_link", next_link, 'str', skip_quote=True), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api_version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api_version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -1071,27 +1071,27 @@ def build_next_fragment_with_grouping_request( accept = "application/json" # Construct URL - url = "/paging/multiple/fragmentwithgrouping/{tenant}/{nextLink}" + _url = "/paging/multiple/fragmentwithgrouping/{tenant}/{nextLink}" path_format_arguments = { "tenant": _SERIALIZER.url("tenant", tenant, 'str'), "nextLink": _SERIALIZER.url("next_link", next_link, 'str', skip_quote=True), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api_version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api_version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -1130,15 +1130,15 @@ def build_get_paging_model_with_item_name_with_xms_client_name_request( accept = "application/json" # Construct URL - url = "/paging/itemNameWithXMSClientName" + _url = "/paging/itemNameWithXMSClientName" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/azure/low-level/Expected/AcceptanceTests/PagingLowLevel/paginglowlevel/rest/paging/_request_builders_py3.py b/test/azure/low-level/Expected/AcceptanceTests/PagingLowLevel/paginglowlevel/rest/paging/_request_builders_py3.py index 4a3a1d2ea05..4dd38a5b1b8 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/PagingLowLevel/paginglowlevel/rest/paging/_request_builders_py3.py +++ b/test/azure/low-level/Expected/AcceptanceTests/PagingLowLevel/paginglowlevel/rest/paging/_request_builders_py3.py @@ -46,13 +46,13 @@ def build_get_no_item_name_pages_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/paging/noitemname" + _url = "/paging/noitemname" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_null_next_link_name_pages_request(**kwargs: Any) -> HttpRequest: @@ -85,13 +85,13 @@ def build_get_null_next_link_name_pages_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/paging/nullnextlink" + _url = "/paging/nullnextlink" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_single_pages_request(**kwargs: Any) -> HttpRequest: @@ -124,13 +124,13 @@ def build_get_single_pages_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/paging/single" + _url = "/paging/single" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_first_response_empty_request(**kwargs: Any) -> HttpRequest: @@ -164,13 +164,13 @@ def build_first_response_empty_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/paging/firstResponseEmpty/1" + _url = "/paging/firstResponseEmpty/1" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_multiple_pages_request( @@ -216,19 +216,19 @@ def build_get_multiple_pages_request( accept = "application/json" # Construct URL - url = "/paging/multiple" + _url = "/paging/multiple" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if client_request_id is not None: - header_parameters["client-request-id"] = _SERIALIZER.header("client_request_id", client_request_id, "str") + _header_parameters["client-request-id"] = _SERIALIZER.header("client_request_id", client_request_id, "str") if maxresults is not None: - header_parameters["maxresults"] = _SERIALIZER.header("maxresults", maxresults, "int") + _header_parameters["maxresults"] = _SERIALIZER.header("maxresults", maxresults, "int") if timeout is not None: - header_parameters["timeout"] = _SERIALIZER.header("timeout", timeout, "int") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["timeout"] = _SERIALIZER.header("timeout", timeout, "int") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_with_query_params_request(*, required_query_parameter: int, **kwargs: Any) -> HttpRequest: @@ -271,20 +271,20 @@ def build_get_with_query_params_request(*, required_query_parameter: int, **kwar accept = "application/json" # Construct URL - url = "/paging/multiple/getWithQueryParams" + _url = "/paging/multiple/getWithQueryParams" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["requiredQueryParameter"] = _SERIALIZER.query( + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["requiredQueryParameter"] = _SERIALIZER.query( "required_query_parameter", required_query_parameter, "int" ) - query_parameters["queryConstant"] = _SERIALIZER.query("query_constant", query_constant, "bool") + _query_parameters["queryConstant"] = _SERIALIZER.query("query_constant", query_constant, "bool") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_next_operation_with_query_params_request(**kwargs: Any) -> HttpRequest: @@ -322,17 +322,17 @@ def build_next_operation_with_query_params_request(**kwargs: Any) -> HttpRequest accept = "application/json" # Construct URL - url = "/paging/multiple/nextOperationWithQueryParams" + _url = "/paging/multiple/nextOperationWithQueryParams" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["queryConstant"] = _SERIALIZER.query("query_constant", query_constant, "bool") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["queryConstant"] = _SERIALIZER.query("query_constant", query_constant, "bool") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_get_odata_multiple_pages_request( @@ -378,19 +378,19 @@ def build_get_odata_multiple_pages_request( accept = "application/json" # Construct URL - url = "/paging/multiple/odata" + _url = "/paging/multiple/odata" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if client_request_id is not None: - header_parameters["client-request-id"] = _SERIALIZER.header("client_request_id", client_request_id, "str") + _header_parameters["client-request-id"] = _SERIALIZER.header("client_request_id", client_request_id, "str") if maxresults is not None: - header_parameters["maxresults"] = _SERIALIZER.header("maxresults", maxresults, "int") + _header_parameters["maxresults"] = _SERIALIZER.header("maxresults", maxresults, "int") if timeout is not None: - header_parameters["timeout"] = _SERIALIZER.header("timeout", timeout, "int") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["timeout"] = _SERIALIZER.header("timeout", timeout, "int") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_multiple_pages_with_offset_request( @@ -439,24 +439,24 @@ def build_get_multiple_pages_with_offset_request( accept = "application/json" # Construct URL - url = "/paging/multiple/withpath/{offset}" + _url = "/paging/multiple/withpath/{offset}" path_format_arguments = { "offset": _SERIALIZER.url("offset", offset, "int"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if client_request_id is not None: - header_parameters["client-request-id"] = _SERIALIZER.header("client_request_id", client_request_id, "str") + _header_parameters["client-request-id"] = _SERIALIZER.header("client_request_id", client_request_id, "str") if maxresults is not None: - header_parameters["maxresults"] = _SERIALIZER.header("maxresults", maxresults, "int") + _header_parameters["maxresults"] = _SERIALIZER.header("maxresults", maxresults, "int") if timeout is not None: - header_parameters["timeout"] = _SERIALIZER.header("timeout", timeout, "int") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["timeout"] = _SERIALIZER.header("timeout", timeout, "int") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_multiple_pages_retry_first_request(**kwargs: Any) -> HttpRequest: @@ -490,13 +490,13 @@ def build_get_multiple_pages_retry_first_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/paging/multiple/retryfirst" + _url = "/paging/multiple/retryfirst" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_multiple_pages_retry_second_request(**kwargs: Any) -> HttpRequest: @@ -530,13 +530,13 @@ def build_get_multiple_pages_retry_second_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/paging/multiple/retrysecond" + _url = "/paging/multiple/retrysecond" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_single_pages_failure_request(**kwargs: Any) -> HttpRequest: @@ -569,13 +569,13 @@ def build_get_single_pages_failure_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/paging/single/failure" + _url = "/paging/single/failure" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_multiple_pages_failure_request(**kwargs: Any) -> HttpRequest: @@ -608,13 +608,13 @@ def build_get_multiple_pages_failure_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/paging/multiple/failure" + _url = "/paging/multiple/failure" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_multiple_pages_failure_uri_request(**kwargs: Any) -> HttpRequest: @@ -647,13 +647,13 @@ def build_get_multiple_pages_failure_uri_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/paging/multiple/failureuri" + _url = "/paging/multiple/failureuri" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_multiple_pages_fragment_next_link_request(tenant: str, *, api_version: str, **kwargs: Any) -> HttpRequest: @@ -690,22 +690,22 @@ def build_get_multiple_pages_fragment_next_link_request(tenant: str, *, api_vers accept = "application/json" # Construct URL - url = "/paging/multiple/fragment/{tenant}" + _url = "/paging/multiple/fragment/{tenant}" path_format_arguments = { "tenant": _SERIALIZER.url("tenant", tenant, "str"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["api_version"] = _SERIALIZER.query("api_version", api_version, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["api_version"] = _SERIALIZER.query("api_version", api_version, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_get_multiple_pages_fragment_with_grouping_next_link_request( @@ -744,22 +744,22 @@ def build_get_multiple_pages_fragment_with_grouping_next_link_request( accept = "application/json" # Construct URL - url = "/paging/multiple/fragmentwithgrouping/{tenant}" + _url = "/paging/multiple/fragmentwithgrouping/{tenant}" path_format_arguments = { "tenant": _SERIALIZER.url("tenant", tenant, "str"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["api_version"] = _SERIALIZER.query("api_version", api_version, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["api_version"] = _SERIALIZER.query("api_version", api_version, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_get_multiple_pages_lro_request( @@ -805,19 +805,19 @@ def build_get_multiple_pages_lro_request( accept = "application/json" # Construct URL - url = "/paging/multiple/lro" + _url = "/paging/multiple/lro" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if client_request_id is not None: - header_parameters["client-request-id"] = _SERIALIZER.header("client_request_id", client_request_id, "str") + _header_parameters["client-request-id"] = _SERIALIZER.header("client_request_id", client_request_id, "str") if maxresults is not None: - header_parameters["maxresults"] = _SERIALIZER.header("maxresults", maxresults, "int") + _header_parameters["maxresults"] = _SERIALIZER.header("maxresults", maxresults, "int") if timeout is not None: - header_parameters["timeout"] = _SERIALIZER.header("timeout", timeout, "int") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["timeout"] = _SERIALIZER.header("timeout", timeout, "int") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) def build_next_fragment_request(tenant: str, next_link: str, *, api_version: str, **kwargs: Any) -> HttpRequest: @@ -856,23 +856,23 @@ def build_next_fragment_request(tenant: str, next_link: str, *, api_version: str accept = "application/json" # Construct URL - url = "/paging/multiple/fragment/{tenant}/{nextLink}" + _url = "/paging/multiple/fragment/{tenant}/{nextLink}" path_format_arguments = { "tenant": _SERIALIZER.url("tenant", tenant, "str"), "nextLink": _SERIALIZER.url("next_link", next_link, "str", skip_quote=True), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["api_version"] = _SERIALIZER.query("api_version", api_version, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["api_version"] = _SERIALIZER.query("api_version", api_version, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_next_fragment_with_grouping_request( @@ -913,23 +913,23 @@ def build_next_fragment_with_grouping_request( accept = "application/json" # Construct URL - url = "/paging/multiple/fragmentwithgrouping/{tenant}/{nextLink}" + _url = "/paging/multiple/fragmentwithgrouping/{tenant}/{nextLink}" path_format_arguments = { "tenant": _SERIALIZER.url("tenant", tenant, "str"), "nextLink": _SERIALIZER.url("next_link", next_link, "str", skip_quote=True), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["api_version"] = _SERIALIZER.query("api_version", api_version, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["api_version"] = _SERIALIZER.query("api_version", api_version, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_get_paging_model_with_item_name_with_xms_client_name_request(**kwargs: Any) -> HttpRequest: @@ -963,10 +963,10 @@ def build_get_paging_model_with_item_name_with_xms_client_name_request(**kwargs: accept = "application/json" # Construct URL - url = "/paging/itemNameWithXMSClientName" + _url = "/paging/itemNameWithXMSClientName" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) diff --git a/test/azure/low-level/Expected/AcceptanceTests/StorageManagementClientLowLevel/storagelowlevel/rest/storage_accounts/_request_builders.py b/test/azure/low-level/Expected/AcceptanceTests/StorageManagementClientLowLevel/storagelowlevel/rest/storage_accounts/_request_builders.py index d60791a887c..b966386ef60 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/StorageManagementClientLowLevel/storagelowlevel/rest/storage_accounts/_request_builders.py +++ b/test/azure/low-level/Expected/AcceptanceTests/StorageManagementClientLowLevel/storagelowlevel/rest/storage_accounts/_request_builders.py @@ -80,28 +80,28 @@ def build_check_name_availability_request( accept = "application/json, text/json" # Construct URL - url = "/subscriptions/{subscriptionId}/providers/Microsoft.Storage/checkNameAvailability" + _url = "/subscriptions/{subscriptionId}/providers/Microsoft.Storage/checkNameAvailability" path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -233,30 +233,30 @@ def build_create_request( accept = "application/json, text/json" # Construct URL - url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}" # pylint: disable=line-too-long + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}" # pylint: disable=line-too-long path_format_arguments = { "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str'), "accountName": _SERIALIZER.url("account_name", account_name, 'str'), "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -291,23 +291,23 @@ def build_delete_request( api_version = kwargs.pop('api_version', "2015-05-01-preview") # type: str # Construct URL - url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}" # pylint: disable=line-too-long + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}" # pylint: disable=line-too-long path_format_arguments = { "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str'), "accountName": _SERIALIZER.url("account_name", account_name, 'str'), "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') return HttpRequest( method="DELETE", - url=url, - params=query_parameters, + url=_url, + params=_query_parameters, **kwargs ) @@ -415,28 +415,28 @@ def build_get_properties_request( accept = "application/json, text/json" # Construct URL - url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}" # pylint: disable=line-too-long + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}" # pylint: disable=line-too-long path_format_arguments = { "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str'), "accountName": _SERIALIZER.url("account_name", account_name, 'str'), "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -582,30 +582,30 @@ def build_update_request( accept = "application/json, text/json" # Construct URL - url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}" # pylint: disable=line-too-long + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}" # pylint: disable=line-too-long path_format_arguments = { "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str'), "accountName": _SERIALIZER.url("account_name", account_name, 'str'), "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PATCH", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -648,28 +648,28 @@ def build_list_keys_request( accept = "application/json, text/json" # Construct URL - url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/listKeys" # pylint: disable=line-too-long + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/listKeys" # pylint: disable=line-too-long path_format_arguments = { "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str'), "accountName": _SERIALIZER.url("account_name", account_name, 'str'), "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -784,26 +784,26 @@ def build_list_request( accept = "application/json, text/json" # Construct URL - url = "/subscriptions/{subscriptionId}/providers/Microsoft.Storage/storageAccounts" + _url = "/subscriptions/{subscriptionId}/providers/Microsoft.Storage/storageAccounts" path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -921,27 +921,27 @@ def build_list_by_resource_group_request( accept = "application/json, text/json" # Construct URL - url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts" + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts" path_format_arguments = { "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str'), "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -998,29 +998,29 @@ def build_regenerate_key_request( accept = "application/json, text/json" # Construct URL - url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/regenerateKey" # pylint: disable=line-too-long + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/regenerateKey" # pylint: disable=line-too-long path_format_arguments = { "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str'), "accountName": _SERIALIZER.url("account_name", account_name, 'str'), "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) diff --git a/test/azure/low-level/Expected/AcceptanceTests/StorageManagementClientLowLevel/storagelowlevel/rest/storage_accounts/_request_builders_py3.py b/test/azure/low-level/Expected/AcceptanceTests/StorageManagementClientLowLevel/storagelowlevel/rest/storage_accounts/_request_builders_py3.py index fa1db58fd4c..c2bf381b2e9 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/StorageManagementClientLowLevel/storagelowlevel/rest/storage_accounts/_request_builders_py3.py +++ b/test/azure/low-level/Expected/AcceptanceTests/StorageManagementClientLowLevel/storagelowlevel/rest/storage_accounts/_request_builders_py3.py @@ -73,25 +73,31 @@ def build_check_name_availability_request( accept = "application/json, text/json" # Construct URL - url = "/subscriptions/{subscriptionId}/providers/Microsoft.Storage/checkNameAvailability" + _url = "/subscriptions/{subscriptionId}/providers/Microsoft.Storage/checkNameAvailability" path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["api-version"] = _SERIALIZER.query("api_version", api_version, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") return HttpRequest( - method="POST", url=url, params=query_parameters, headers=header_parameters, json=json, content=content, **kwargs + method="POST", + url=_url, + params=_query_parameters, + headers=_header_parameters, + json=json, + content=content, + **kwargs ) @@ -224,27 +230,33 @@ def build_create_request( accept = "application/json, text/json" # Construct URL - url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}" # pylint: disable=line-too-long + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}" # pylint: disable=line-too-long path_format_arguments = { "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), "accountName": _SERIALIZER.url("account_name", account_name, "str"), "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["api-version"] = _SERIALIZER.query("api_version", api_version, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") return HttpRequest( - method="PUT", url=url, params=query_parameters, headers=header_parameters, json=json, content=content, **kwargs + method="PUT", + url=_url, + params=_query_parameters, + headers=_header_parameters, + json=json, + content=content, + **kwargs ) @@ -274,20 +286,20 @@ def build_delete_request( api_version = kwargs.pop("api_version", "2015-05-01-preview") # type: str # Construct URL - url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}" # pylint: disable=line-too-long + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}" # pylint: disable=line-too-long path_format_arguments = { "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), "accountName": _SERIALIZER.url("account_name", account_name, "str"), "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - return HttpRequest(method="DELETE", url=url, params=query_parameters, **kwargs) + return HttpRequest(method="DELETE", url=_url, params=_query_parameters, **kwargs) def build_get_properties_request( @@ -389,24 +401,24 @@ def build_get_properties_request( accept = "application/json, text/json" # Construct URL - url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}" # pylint: disable=line-too-long + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}" # pylint: disable=line-too-long path_format_arguments = { "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), "accountName": _SERIALIZER.url("account_name", account_name, "str"), "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["api-version"] = _SERIALIZER.query("api_version", api_version, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_update_request( @@ -552,30 +564,30 @@ def build_update_request( accept = "application/json, text/json" # Construct URL - url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}" # pylint: disable=line-too-long + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}" # pylint: disable=line-too-long path_format_arguments = { "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), "accountName": _SERIALIZER.url("account_name", account_name, "str"), "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["api-version"] = _SERIALIZER.query("api_version", api_version, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") return HttpRequest( method="PATCH", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, json=json, content=content, **kwargs @@ -616,24 +628,24 @@ def build_list_keys_request( accept = "application/json, text/json" # Construct URL - url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/listKeys" # pylint: disable=line-too-long + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/listKeys" # pylint: disable=line-too-long path_format_arguments = { "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), "accountName": _SERIALIZER.url("account_name", account_name, "str"), "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["api-version"] = _SERIALIZER.query("api_version", api_version, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_list_request(subscription_id: str, **kwargs: Any) -> HttpRequest: @@ -742,22 +754,22 @@ def build_list_request(subscription_id: str, **kwargs: Any) -> HttpRequest: accept = "application/json, text/json" # Construct URL - url = "/subscriptions/{subscriptionId}/providers/Microsoft.Storage/storageAccounts" + _url = "/subscriptions/{subscriptionId}/providers/Microsoft.Storage/storageAccounts" path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["api-version"] = _SERIALIZER.query("api_version", api_version, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_list_by_resource_group_request(resource_group_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: @@ -868,7 +880,7 @@ def build_list_by_resource_group_request(resource_group_name: str, subscription_ accept = "application/json, text/json" # Construct URL - url = ( + _url = ( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts" ) path_format_arguments = { @@ -876,17 +888,17 @@ def build_list_by_resource_group_request(resource_group_name: str, subscription_ "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["api-version"] = _SERIALIZER.query("api_version", api_version, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_regenerate_key_request( @@ -943,25 +955,31 @@ def build_regenerate_key_request( accept = "application/json, text/json" # Construct URL - url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/regenerateKey" # pylint: disable=line-too-long + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/regenerateKey" # pylint: disable=line-too-long path_format_arguments = { "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), "accountName": _SERIALIZER.url("account_name", account_name, "str"), "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["api-version"] = _SERIALIZER.query("api_version", api_version, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") return HttpRequest( - method="POST", url=url, params=query_parameters, headers=header_parameters, json=json, content=content, **kwargs + method="POST", + url=_url, + params=_query_parameters, + headers=_header_parameters, + json=json, + content=content, + **kwargs ) diff --git a/test/azure/low-level/Expected/AcceptanceTests/StorageManagementClientLowLevel/storagelowlevel/rest/usage/_request_builders.py b/test/azure/low-level/Expected/AcceptanceTests/StorageManagementClientLowLevel/storagelowlevel/rest/usage/_request_builders.py index 0e1771e8be4..574761e8df9 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/StorageManagementClientLowLevel/storagelowlevel/rest/usage/_request_builders.py +++ b/test/azure/low-level/Expected/AcceptanceTests/StorageManagementClientLowLevel/storagelowlevel/rest/usage/_request_builders.py @@ -68,25 +68,25 @@ def build_list_request( accept = "application/json, text/json" # Construct URL - url = "/subscriptions/{subscriptionId}/providers/Microsoft.Storage/usages" + _url = "/subscriptions/{subscriptionId}/providers/Microsoft.Storage/usages" path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) diff --git a/test/azure/low-level/Expected/AcceptanceTests/StorageManagementClientLowLevel/storagelowlevel/rest/usage/_request_builders_py3.py b/test/azure/low-level/Expected/AcceptanceTests/StorageManagementClientLowLevel/storagelowlevel/rest/usage/_request_builders_py3.py index 540bb27a0e5..f0530f445fb 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/StorageManagementClientLowLevel/storagelowlevel/rest/usage/_request_builders_py3.py +++ b/test/azure/low-level/Expected/AcceptanceTests/StorageManagementClientLowLevel/storagelowlevel/rest/usage/_request_builders_py3.py @@ -59,19 +59,19 @@ def build_list_request(subscription_id: str, **kwargs: Any) -> HttpRequest: accept = "application/json, text/json" # Construct URL - url = "/subscriptions/{subscriptionId}/providers/Microsoft.Storage/usages" + _url = "/subscriptions/{subscriptionId}/providers/Microsoft.Storage/usages" path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["api-version"] = _SERIALIZER.query("api_version", api_version, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) diff --git a/test/azure/low-level/Expected/AcceptanceTests/SubscriptionIdApiVersionLowLevel/subscriptionidapiversionlowlevel/rest/group/_request_builders.py b/test/azure/low-level/Expected/AcceptanceTests/SubscriptionIdApiVersionLowLevel/subscriptionidapiversionlowlevel/rest/group/_request_builders.py index 9eab54a78e2..203d38eb229 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/SubscriptionIdApiVersionLowLevel/subscriptionidapiversionlowlevel/rest/group/_request_builders.py +++ b/test/azure/low-level/Expected/AcceptanceTests/SubscriptionIdApiVersionLowLevel/subscriptionidapiversionlowlevel/rest/group/_request_builders.py @@ -55,26 +55,26 @@ def build_get_sample_resource_group_request( accept = "application/json" # Construct URL - url = "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}" + _url = "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}" path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) diff --git a/test/azure/low-level/Expected/AcceptanceTests/SubscriptionIdApiVersionLowLevel/subscriptionidapiversionlowlevel/rest/group/_request_builders_py3.py b/test/azure/low-level/Expected/AcceptanceTests/SubscriptionIdApiVersionLowLevel/subscriptionidapiversionlowlevel/rest/group/_request_builders_py3.py index 640a7bec21a..89d849d01ca 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/SubscriptionIdApiVersionLowLevel/subscriptionidapiversionlowlevel/rest/group/_request_builders_py3.py +++ b/test/azure/low-level/Expected/AcceptanceTests/SubscriptionIdApiVersionLowLevel/subscriptionidapiversionlowlevel/rest/group/_request_builders_py3.py @@ -47,20 +47,20 @@ def build_get_sample_resource_group_request( accept = "application/json" # Construct URL - url = "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}" + _url = "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}" path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["api-version"] = _SERIALIZER.query("api_version", api_version, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) diff --git a/test/azure/version-tolerant/Expected/AcceptanceTests/AzureBodyDurationVersionTolerant/bodydurationversiontolerant/operations/_operations.py b/test/azure/version-tolerant/Expected/AcceptanceTests/AzureBodyDurationVersionTolerant/bodydurationversiontolerant/operations/_operations.py index 5c41609c940..09ead5ac9bd 100644 --- a/test/azure/version-tolerant/Expected/AcceptanceTests/AzureBodyDurationVersionTolerant/bodydurationversiontolerant/operations/_operations.py +++ b/test/azure/version-tolerant/Expected/AcceptanceTests/AzureBodyDurationVersionTolerant/bodydurationversiontolerant/operations/_operations.py @@ -33,13 +33,13 @@ def build_duration_get_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/duration/null" + _url = "/duration/null" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_duration_put_positive_duration_request( @@ -49,39 +49,39 @@ def build_duration_put_positive_duration_request( accept = "application/json" # Construct URL - url = "/duration/positiveduration" + _url = "/duration/positiveduration" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_duration_get_positive_duration_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/duration/positiveduration" + _url = "/duration/positiveduration" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_duration_get_invalid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/duration/invalid" + _url = "/duration/invalid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) class DurationOperations(object): diff --git a/test/azure/version-tolerant/Expected/AcceptanceTests/AzureParameterGroupingVersionTolerant/azureparametergroupingversiontolerant/operations/_operations.py b/test/azure/version-tolerant/Expected/AcceptanceTests/AzureParameterGroupingVersionTolerant/azureparametergroupingversiontolerant/operations/_operations.py index eeeedb211bf..18895a2f03a 100644 --- a/test/azure/version-tolerant/Expected/AcceptanceTests/AzureParameterGroupingVersionTolerant/azureparametergroupingversiontolerant/operations/_operations.py +++ b/test/azure/version-tolerant/Expected/AcceptanceTests/AzureParameterGroupingVersionTolerant/azureparametergroupingversiontolerant/operations/_operations.py @@ -43,28 +43,34 @@ def build_parameter_grouping_post_required_request( accept = "application/json" # Construct URL - url = "/parameterGrouping/postRequired/{path}" + _url = "/parameterGrouping/postRequired/{path}" path_format_arguments = { "path": _SERIALIZER.url("path", path, "str"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if query is not None: - query_parameters["query"] = _SERIALIZER.query("query", query, "int") + _query_parameters["query"] = _SERIALIZER.query("query", query, "int") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if custom_header is not None: - header_parameters["customHeader"] = _SERIALIZER.header("custom_header", custom_header, "str") + _header_parameters["customHeader"] = _SERIALIZER.header("custom_header", custom_header, "str") if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") return HttpRequest( - method="POST", url=url, params=query_parameters, headers=header_parameters, json=json, content=content, **kwargs + method="POST", + url=_url, + params=_query_parameters, + headers=_header_parameters, + json=json, + content=content, + **kwargs ) @@ -73,20 +79,20 @@ def build_parameter_grouping_post_optional_request( ) -> HttpRequest: accept = "application/json" # Construct URL - url = "/parameterGrouping/postOptional" + _url = "/parameterGrouping/postOptional" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if query is not None: - query_parameters["query"] = _SERIALIZER.query("query", query, "int") + _query_parameters["query"] = _SERIALIZER.query("query", query, "int") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if custom_header is not None: - header_parameters["customHeader"] = _SERIALIZER.header("custom_header", custom_header, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["customHeader"] = _SERIALIZER.header("custom_header", custom_header, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_parameter_grouping_post_reserved_words_request( @@ -94,20 +100,20 @@ def build_parameter_grouping_post_reserved_words_request( ) -> HttpRequest: accept = "application/json" # Construct URL - url = "/parameterGrouping/postReservedWords" + _url = "/parameterGrouping/postReservedWords" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if from_parameter is not None: - query_parameters["from"] = _SERIALIZER.query("from_parameter", from_parameter, "str") + _query_parameters["from"] = _SERIALIZER.query("from_parameter", from_parameter, "str") if accept_parameter is not None: - query_parameters["accept"] = _SERIALIZER.query("accept_parameter", accept_parameter, "str") + _query_parameters["accept"] = _SERIALIZER.query("accept_parameter", accept_parameter, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_parameter_grouping_post_multi_param_groups_request( @@ -120,24 +126,24 @@ def build_parameter_grouping_post_multi_param_groups_request( ) -> HttpRequest: accept = "application/json" # Construct URL - url = "/parameterGrouping/postMultipleParameterGroups" + _url = "/parameterGrouping/postMultipleParameterGroups" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if query_one is not None: - query_parameters["query-one"] = _SERIALIZER.query("query_one", query_one, "int") + _query_parameters["query-one"] = _SERIALIZER.query("query_one", query_one, "int") if query_two is not None: - query_parameters["query-two"] = _SERIALIZER.query("query_two", query_two, "int") + _query_parameters["query-two"] = _SERIALIZER.query("query_two", query_two, "int") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if header_one is not None: - header_parameters["header-one"] = _SERIALIZER.header("header_one", header_one, "str") + _header_parameters["header-one"] = _SERIALIZER.header("header_one", header_one, "str") if header_two is not None: - header_parameters["header-two"] = _SERIALIZER.header("header_two", header_two, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["header-two"] = _SERIALIZER.header("header_two", header_two, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_parameter_grouping_post_shared_parameter_group_object_request( @@ -145,20 +151,20 @@ def build_parameter_grouping_post_shared_parameter_group_object_request( ) -> HttpRequest: accept = "application/json" # Construct URL - url = "/parameterGrouping/sharedParameterGroupObject" + _url = "/parameterGrouping/sharedParameterGroupObject" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if query_one is not None: - query_parameters["query-one"] = _SERIALIZER.query("query_one", query_one, "int") + _query_parameters["query-one"] = _SERIALIZER.query("query_one", query_one, "int") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if header_one is not None: - header_parameters["header-one"] = _SERIALIZER.header("header_one", header_one, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["header-one"] = _SERIALIZER.header("header_one", header_one, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) class ParameterGroupingOperations(object): diff --git a/test/azure/version-tolerant/Expected/AcceptanceTests/AzureReportVersionTolerant/azurereportversiontolerant/_operations/_operations.py b/test/azure/version-tolerant/Expected/AcceptanceTests/AzureReportVersionTolerant/azurereportversiontolerant/_operations/_operations.py index 42b8ab92e85..034b63d8ddf 100644 --- a/test/azure/version-tolerant/Expected/AcceptanceTests/AzureReportVersionTolerant/azurereportversiontolerant/_operations/_operations.py +++ b/test/azure/version-tolerant/Expected/AcceptanceTests/AzureReportVersionTolerant/azurereportversiontolerant/_operations/_operations.py @@ -32,18 +32,18 @@ def build_get_report_request(*, qualifier: Optional[str] = None, **kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/report/azure" + _url = "/report/azure" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if qualifier is not None: - query_parameters["qualifier"] = _SERIALIZER.query("qualifier", qualifier, "str") + _query_parameters["qualifier"] = _SERIALIZER.query("qualifier", qualifier, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) class AutoRestReportServiceForAzureOperationsMixin(object): diff --git a/test/azure/version-tolerant/Expected/AcceptanceTests/AzureSpecialsVersionTolerant/azurespecialpropertiesversiontolerant/operations/_operations.py b/test/azure/version-tolerant/Expected/AcceptanceTests/AzureSpecialsVersionTolerant/azurespecialpropertiesversiontolerant/operations/_operations.py index a9a2ebc2eb5..7a312c0e078 100644 --- a/test/azure/version-tolerant/Expected/AcceptanceTests/AzureSpecialsVersionTolerant/azurespecialpropertiesversiontolerant/operations/_operations.py +++ b/test/azure/version-tolerant/Expected/AcceptanceTests/AzureSpecialsVersionTolerant/azurespecialpropertiesversiontolerant/operations/_operations.py @@ -32,24 +32,24 @@ def build_xms_client_request_id_get_request(**kwargs: Any) -> HttpRequest: # Construct URL - url = "/azurespecials/overwrite/x-ms-client-request-id/method/" + _url = "/azurespecials/overwrite/x-ms-client-request-id/method/" - return HttpRequest(method="GET", url=url, **kwargs) + return HttpRequest(method="GET", url=_url, **kwargs) def build_xms_client_request_id_param_get_request(*, x_ms_client_request_id: str, **kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/azurespecials/overwrite/x-ms-client-request-id/via-param/method/" + _url = "/azurespecials/overwrite/x-ms-client-request-id/via-param/method/" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["x-ms-client-request-id"] = _SERIALIZER.header( + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["x-ms-client-request-id"] = _SERIALIZER.header( "x_ms_client_request_id", x_ms_client_request_id, "str" ) - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_subscription_in_credentials_post_method_global_valid_request( @@ -57,18 +57,18 @@ def build_subscription_in_credentials_post_method_global_valid_request( ) -> HttpRequest: accept = "application/json" # Construct URL - url = "/azurespecials/subscriptionId/method/string/none/path/global/1234-5678-9012-3456/{subscriptionId}" + _url = "/azurespecials/subscriptionId/method/string/none/path/global/1234-5678-9012-3456/{subscriptionId}" path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) def build_subscription_in_credentials_post_method_global_null_request( @@ -76,18 +76,18 @@ def build_subscription_in_credentials_post_method_global_null_request( ) -> HttpRequest: accept = "application/json" # Construct URL - url = "/azurespecials/subscriptionId/method/string/none/path/global/null/{subscriptionId}" + _url = "/azurespecials/subscriptionId/method/string/none/path/global/null/{subscriptionId}" path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) def build_subscription_in_credentials_post_method_global_not_provided_valid_request( @@ -97,22 +97,24 @@ def build_subscription_in_credentials_post_method_global_not_provided_valid_requ accept = "application/json" # Construct URL - url = "/azurespecials/subscriptionId/method/string/none/path/globalNotProvided/1234-5678-9012-3456/{subscriptionId}" + _url = ( + "/azurespecials/subscriptionId/method/string/none/path/globalNotProvided/1234-5678-9012-3456/{subscriptionId}" + ) path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["api-version"] = _SERIALIZER.query("api_version", api_version, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_subscription_in_credentials_post_path_global_valid_request( @@ -120,18 +122,18 @@ def build_subscription_in_credentials_post_path_global_valid_request( ) -> HttpRequest: accept = "application/json" # Construct URL - url = "/azurespecials/subscriptionId/path/string/none/path/global/1234-5678-9012-3456/{subscriptionId}" + _url = "/azurespecials/subscriptionId/path/string/none/path/global/1234-5678-9012-3456/{subscriptionId}" path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) def build_subscription_in_credentials_post_swagger_global_valid_request( @@ -139,86 +141,86 @@ def build_subscription_in_credentials_post_swagger_global_valid_request( ) -> HttpRequest: accept = "application/json" # Construct URL - url = "/azurespecials/subscriptionId/swagger/string/none/path/global/1234-5678-9012-3456/{subscriptionId}" + _url = "/azurespecials/subscriptionId/swagger/string/none/path/global/1234-5678-9012-3456/{subscriptionId}" path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) def build_subscription_in_method_post_method_local_valid_request(subscription_id: str, **kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/azurespecials/subscriptionId/method/string/none/path/local/1234-5678-9012-3456/{subscriptionId}" + _url = "/azurespecials/subscriptionId/method/string/none/path/local/1234-5678-9012-3456/{subscriptionId}" path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) def build_subscription_in_method_post_method_local_null_request(subscription_id: str, **kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/azurespecials/subscriptionId/method/string/none/path/local/null/{subscriptionId}" + _url = "/azurespecials/subscriptionId/method/string/none/path/local/null/{subscriptionId}" path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) def build_subscription_in_method_post_path_local_valid_request(subscription_id: str, **kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/azurespecials/subscriptionId/path/string/none/path/local/1234-5678-9012-3456/{subscriptionId}" + _url = "/azurespecials/subscriptionId/path/string/none/path/local/1234-5678-9012-3456/{subscriptionId}" path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) def build_subscription_in_method_post_swagger_local_valid_request(subscription_id: str, **kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/azurespecials/subscriptionId/swagger/string/none/path/local/1234-5678-9012-3456/{subscriptionId}" + _url = "/azurespecials/subscriptionId/swagger/string/none/path/local/1234-5678-9012-3456/{subscriptionId}" path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) def build_api_version_default_get_method_global_valid_request(**kwargs: Any) -> HttpRequest: @@ -226,17 +228,17 @@ def build_api_version_default_get_method_global_valid_request(**kwargs: Any) -> accept = "application/json" # Construct URL - url = "/azurespecials/apiVersion/method/string/none/query/global/2015-07-01-preview" + _url = "/azurespecials/apiVersion/method/string/none/query/global/2015-07-01-preview" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["api-version"] = _SERIALIZER.query("api_version", api_version, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_api_version_default_get_method_global_not_provided_valid_request(**kwargs: Any) -> HttpRequest: @@ -244,17 +246,17 @@ def build_api_version_default_get_method_global_not_provided_valid_request(**kwa accept = "application/json" # Construct URL - url = "/azurespecials/apiVersion/method/string/none/query/globalNotProvided/2015-07-01-preview" + _url = "/azurespecials/apiVersion/method/string/none/query/globalNotProvided/2015-07-01-preview" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["api-version"] = _SERIALIZER.query("api_version", api_version, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_api_version_default_get_path_global_valid_request(**kwargs: Any) -> HttpRequest: @@ -262,17 +264,17 @@ def build_api_version_default_get_path_global_valid_request(**kwargs: Any) -> Ht accept = "application/json" # Construct URL - url = "/azurespecials/apiVersion/path/string/none/query/global/2015-07-01-preview" + _url = "/azurespecials/apiVersion/path/string/none/query/global/2015-07-01-preview" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["api-version"] = _SERIALIZER.query("api_version", api_version, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_api_version_default_get_swagger_global_valid_request(**kwargs: Any) -> HttpRequest: @@ -280,17 +282,17 @@ def build_api_version_default_get_swagger_global_valid_request(**kwargs: Any) -> accept = "application/json" # Construct URL - url = "/azurespecials/apiVersion/swagger/string/none/query/global/2015-07-01-preview" + _url = "/azurespecials/apiVersion/swagger/string/none/query/global/2015-07-01-preview" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["api-version"] = _SERIALIZER.query("api_version", api_version, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_api_version_local_get_method_local_valid_request(**kwargs: Any) -> HttpRequest: @@ -298,17 +300,17 @@ def build_api_version_local_get_method_local_valid_request(**kwargs: Any) -> Htt accept = "application/json" # Construct URL - url = "/azurespecials/apiVersion/method/string/none/query/local/2.0" + _url = "/azurespecials/apiVersion/method/string/none/query/local/2.0" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["api-version"] = _SERIALIZER.query("api_version", api_version, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_api_version_local_get_method_local_null_request( @@ -316,18 +318,18 @@ def build_api_version_local_get_method_local_null_request( ) -> HttpRequest: accept = "application/json" # Construct URL - url = "/azurespecials/apiVersion/method/string/none/query/local/null" + _url = "/azurespecials/apiVersion/method/string/none/query/local/null" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if api_version is not None: - query_parameters["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + _query_parameters["api-version"] = _SERIALIZER.query("api_version", api_version, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_api_version_local_get_path_local_valid_request(**kwargs: Any) -> HttpRequest: @@ -335,17 +337,17 @@ def build_api_version_local_get_path_local_valid_request(**kwargs: Any) -> HttpR accept = "application/json" # Construct URL - url = "/azurespecials/apiVersion/path/string/none/query/local/2.0" + _url = "/azurespecials/apiVersion/path/string/none/query/local/2.0" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["api-version"] = _SERIALIZER.query("api_version", api_version, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_api_version_local_get_swagger_local_valid_request(**kwargs: Any) -> HttpRequest: @@ -353,51 +355,51 @@ def build_api_version_local_get_swagger_local_valid_request(**kwargs: Any) -> Ht accept = "application/json" # Construct URL - url = "/azurespecials/apiVersion/swagger/string/none/query/local/2.0" + _url = "/azurespecials/apiVersion/swagger/string/none/query/local/2.0" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["api-version"] = _SERIALIZER.query("api_version", api_version, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_skip_url_encoding_get_method_path_valid_request(unencoded_path_param: str, **kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/azurespecials/skipUrlEncoding/method/path/valid/{unencodedPathParam}" + _url = "/azurespecials/skipUrlEncoding/method/path/valid/{unencodedPathParam}" path_format_arguments = { "unencodedPathParam": _SERIALIZER.url("unencoded_path_param", unencoded_path_param, "str", skip_quote=True), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_skip_url_encoding_get_path_valid_request(unencoded_path_param: str, **kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/azurespecials/skipUrlEncoding/path/path/valid/{unencodedPathParam}" + _url = "/azurespecials/skipUrlEncoding/path/path/valid/{unencodedPathParam}" path_format_arguments = { "unencodedPathParam": _SERIALIZER.url("unencoded_path_param", unencoded_path_param, "str", skip_quote=True), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_skip_url_encoding_get_swagger_path_valid_request(**kwargs: Any) -> HttpRequest: @@ -405,67 +407,67 @@ def build_skip_url_encoding_get_swagger_path_valid_request(**kwargs: Any) -> Htt accept = "application/json" # Construct URL - url = "/azurespecials/skipUrlEncoding/swagger/path/valid/{unencodedPathParam}" + _url = "/azurespecials/skipUrlEncoding/swagger/path/valid/{unencodedPathParam}" path_format_arguments = { "unencodedPathParam": _SERIALIZER.url("unencoded_path_param", unencoded_path_param, "str", skip_quote=True), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_skip_url_encoding_get_method_query_valid_request(*, q1: str, **kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/azurespecials/skipUrlEncoding/method/query/valid" + _url = "/azurespecials/skipUrlEncoding/method/query/valid" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["q1"] = _SERIALIZER.query("q1", q1, "str", skip_quote=True) + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["q1"] = _SERIALIZER.query("q1", q1, "str", skip_quote=True) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_skip_url_encoding_get_method_query_null_request(*, q1: Optional[str] = None, **kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/azurespecials/skipUrlEncoding/method/query/null" + _url = "/azurespecials/skipUrlEncoding/method/query/null" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if q1 is not None: - query_parameters["q1"] = _SERIALIZER.query("q1", q1, "str", skip_quote=True) + _query_parameters["q1"] = _SERIALIZER.query("q1", q1, "str", skip_quote=True) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_skip_url_encoding_get_path_query_valid_request(*, q1: str, **kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/azurespecials/skipUrlEncoding/path/query/valid" + _url = "/azurespecials/skipUrlEncoding/path/query/valid" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["q1"] = _SERIALIZER.query("q1", q1, "str", skip_quote=True) + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["q1"] = _SERIALIZER.query("q1", q1, "str", skip_quote=True) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_skip_url_encoding_get_swagger_query_valid_request(**kwargs: Any) -> HttpRequest: @@ -473,17 +475,17 @@ def build_skip_url_encoding_get_swagger_query_valid_request(**kwargs: Any) -> Ht accept = "application/json" # Construct URL - url = "/azurespecials/skipUrlEncoding/swagger/query/valid" + _url = "/azurespecials/skipUrlEncoding/swagger/query/valid" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["q1"] = _SERIALIZER.query("q1", q1, "str", skip_quote=True) + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["q1"] = _SERIALIZER.query("q1", q1, "str", skip_quote=True) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_odata_get_with_filter_request( @@ -491,37 +493,37 @@ def build_odata_get_with_filter_request( ) -> HttpRequest: accept = "application/json" # Construct URL - url = "/azurespecials/odata/filter" + _url = "/azurespecials/odata/filter" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if filter is not None: - query_parameters["$filter"] = _SERIALIZER.query("filter", filter, "str") + _query_parameters["$filter"] = _SERIALIZER.query("filter", filter, "str") if top is not None: - query_parameters["$top"] = _SERIALIZER.query("top", top, "int") + _query_parameters["$top"] = _SERIALIZER.query("top", top, "int") if orderby is not None: - query_parameters["$orderby"] = _SERIALIZER.query("orderby", orderby, "str") + _query_parameters["$orderby"] = _SERIALIZER.query("orderby", orderby, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_header_custom_named_request_id_request(*, foo_client_request_id: str, **kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/azurespecials/customNamedRequestId" + _url = "/azurespecials/customNamedRequestId" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["foo-client-request-id"] = _SERIALIZER.header( + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["foo-client-request-id"] = _SERIALIZER.header( "foo_client_request_id", foo_client_request_id, "str" ) - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) def build_header_custom_named_request_id_param_grouping_request( @@ -529,31 +531,31 @@ def build_header_custom_named_request_id_param_grouping_request( ) -> HttpRequest: accept = "application/json" # Construct URL - url = "/azurespecials/customNamedRequestIdParamGrouping" + _url = "/azurespecials/customNamedRequestIdParamGrouping" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["foo-client-request-id"] = _SERIALIZER.header( + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["foo-client-request-id"] = _SERIALIZER.header( "foo_client_request_id", foo_client_request_id, "str" ) - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) def build_header_custom_named_request_id_head_request(*, foo_client_request_id: str, **kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/azurespecials/customNamedRequestIdHead" + _url = "/azurespecials/customNamedRequestIdHead" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["foo-client-request-id"] = _SERIALIZER.header( + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["foo-client-request-id"] = _SERIALIZER.header( "foo_client_request_id", foo_client_request_id, "str" ) - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="HEAD", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="HEAD", url=_url, headers=_header_parameters, **kwargs) class XMsClientRequestIdOperations(object): diff --git a/test/azure/version-tolerant/Expected/AcceptanceTests/CustomBaseUriVersionTolerant/custombaseurlversiontolerant/operations/_operations.py b/test/azure/version-tolerant/Expected/AcceptanceTests/CustomBaseUriVersionTolerant/custombaseurlversiontolerant/operations/_operations.py index 0d8c5f76933..4b1cabb4340 100644 --- a/test/azure/version-tolerant/Expected/AcceptanceTests/CustomBaseUriVersionTolerant/custombaseurlversiontolerant/operations/_operations.py +++ b/test/azure/version-tolerant/Expected/AcceptanceTests/CustomBaseUriVersionTolerant/custombaseurlversiontolerant/operations/_operations.py @@ -30,13 +30,13 @@ def build_paths_get_empty_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/customuri" + _url = "/customuri" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) class PathsOperations(object): diff --git a/test/azure/version-tolerant/Expected/AcceptanceTests/CustomPollerPagerVersionTolerant/custompollerpagerversiontolerant/operations/_operations.py b/test/azure/version-tolerant/Expected/AcceptanceTests/CustomPollerPagerVersionTolerant/custompollerpagerversiontolerant/operations/_operations.py index f532112e858..17d1659318b 100644 --- a/test/azure/version-tolerant/Expected/AcceptanceTests/CustomPollerPagerVersionTolerant/custompollerpagerversiontolerant/operations/_operations.py +++ b/test/azure/version-tolerant/Expected/AcceptanceTests/CustomPollerPagerVersionTolerant/custompollerpagerversiontolerant/operations/_operations.py @@ -39,49 +39,49 @@ def build_paging_get_no_item_name_pages_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/paging/noitemname" + _url = "/paging/noitemname" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_paging_get_null_next_link_name_pages_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/paging/nullnextlink" + _url = "/paging/nullnextlink" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_paging_get_single_pages_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/paging/single" + _url = "/paging/single" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_paging_first_response_empty_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/paging/firstResponseEmpty/1" + _url = "/paging/firstResponseEmpty/1" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_paging_get_multiple_pages_request( @@ -93,19 +93,19 @@ def build_paging_get_multiple_pages_request( ) -> HttpRequest: accept = "application/json" # Construct URL - url = "/paging/multiple" + _url = "/paging/multiple" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if client_request_id is not None: - header_parameters["client-request-id"] = _SERIALIZER.header("client_request_id", client_request_id, "str") + _header_parameters["client-request-id"] = _SERIALIZER.header("client_request_id", client_request_id, "str") if maxresults is not None: - header_parameters["maxresults"] = _SERIALIZER.header("maxresults", maxresults, "int") + _header_parameters["maxresults"] = _SERIALIZER.header("maxresults", maxresults, "int") if timeout is not None: - header_parameters["timeout"] = _SERIALIZER.header("timeout", timeout, "int") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["timeout"] = _SERIALIZER.header("timeout", timeout, "int") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_paging_get_with_query_params_request(*, required_query_parameter: int, **kwargs: Any) -> HttpRequest: @@ -113,20 +113,20 @@ def build_paging_get_with_query_params_request(*, required_query_parameter: int, accept = "application/json" # Construct URL - url = "/paging/multiple/getWithQueryParams" + _url = "/paging/multiple/getWithQueryParams" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["requiredQueryParameter"] = _SERIALIZER.query( + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["requiredQueryParameter"] = _SERIALIZER.query( "required_query_parameter", required_query_parameter, "int" ) - query_parameters["queryConstant"] = _SERIALIZER.query("query_constant", query_constant, "bool") + _query_parameters["queryConstant"] = _SERIALIZER.query("query_constant", query_constant, "bool") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_paging_next_operation_with_query_params_request(**kwargs: Any) -> HttpRequest: @@ -134,17 +134,17 @@ def build_paging_next_operation_with_query_params_request(**kwargs: Any) -> Http accept = "application/json" # Construct URL - url = "/paging/multiple/nextOperationWithQueryParams" + _url = "/paging/multiple/nextOperationWithQueryParams" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["queryConstant"] = _SERIALIZER.query("query_constant", query_constant, "bool") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["queryConstant"] = _SERIALIZER.query("query_constant", query_constant, "bool") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_paging_get_odata_multiple_pages_request( @@ -156,19 +156,19 @@ def build_paging_get_odata_multiple_pages_request( ) -> HttpRequest: accept = "application/json" # Construct URL - url = "/paging/multiple/odata" + _url = "/paging/multiple/odata" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if client_request_id is not None: - header_parameters["client-request-id"] = _SERIALIZER.header("client_request_id", client_request_id, "str") + _header_parameters["client-request-id"] = _SERIALIZER.header("client_request_id", client_request_id, "str") if maxresults is not None: - header_parameters["maxresults"] = _SERIALIZER.header("maxresults", maxresults, "int") + _header_parameters["maxresults"] = _SERIALIZER.header("maxresults", maxresults, "int") if timeout is not None: - header_parameters["timeout"] = _SERIALIZER.header("timeout", timeout, "int") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["timeout"] = _SERIALIZER.header("timeout", timeout, "int") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_paging_get_multiple_pages_with_offset_request( @@ -181,84 +181,84 @@ def build_paging_get_multiple_pages_with_offset_request( ) -> HttpRequest: accept = "application/json" # Construct URL - url = "/paging/multiple/withpath/{offset}" + _url = "/paging/multiple/withpath/{offset}" path_format_arguments = { "offset": _SERIALIZER.url("offset", offset, "int"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if client_request_id is not None: - header_parameters["client-request-id"] = _SERIALIZER.header("client_request_id", client_request_id, "str") + _header_parameters["client-request-id"] = _SERIALIZER.header("client_request_id", client_request_id, "str") if maxresults is not None: - header_parameters["maxresults"] = _SERIALIZER.header("maxresults", maxresults, "int") + _header_parameters["maxresults"] = _SERIALIZER.header("maxresults", maxresults, "int") if timeout is not None: - header_parameters["timeout"] = _SERIALIZER.header("timeout", timeout, "int") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["timeout"] = _SERIALIZER.header("timeout", timeout, "int") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_paging_get_multiple_pages_retry_first_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/paging/multiple/retryfirst" + _url = "/paging/multiple/retryfirst" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_paging_get_multiple_pages_retry_second_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/paging/multiple/retrysecond" + _url = "/paging/multiple/retrysecond" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_paging_get_single_pages_failure_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/paging/single/failure" + _url = "/paging/single/failure" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_paging_get_multiple_pages_failure_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/paging/multiple/failure" + _url = "/paging/multiple/failure" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_paging_get_multiple_pages_failure_uri_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/paging/multiple/failureuri" + _url = "/paging/multiple/failureuri" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_paging_get_multiple_pages_fragment_next_link_request( @@ -266,22 +266,22 @@ def build_paging_get_multiple_pages_fragment_next_link_request( ) -> HttpRequest: accept = "application/json" # Construct URL - url = "/paging/multiple/fragment/{tenant}" + _url = "/paging/multiple/fragment/{tenant}" path_format_arguments = { "tenant": _SERIALIZER.url("tenant", tenant, "str"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["api_version"] = _SERIALIZER.query("api_version", api_version, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["api_version"] = _SERIALIZER.query("api_version", api_version, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_paging_get_multiple_pages_fragment_with_grouping_next_link_request( @@ -289,22 +289,22 @@ def build_paging_get_multiple_pages_fragment_with_grouping_next_link_request( ) -> HttpRequest: accept = "application/json" # Construct URL - url = "/paging/multiple/fragmentwithgrouping/{tenant}" + _url = "/paging/multiple/fragmentwithgrouping/{tenant}" path_format_arguments = { "tenant": _SERIALIZER.url("tenant", tenant, "str"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["api_version"] = _SERIALIZER.query("api_version", api_version, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["api_version"] = _SERIALIZER.query("api_version", api_version, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_paging_get_multiple_pages_lro_request_initial( @@ -316,41 +316,41 @@ def build_paging_get_multiple_pages_lro_request_initial( ) -> HttpRequest: accept = "application/json" # Construct URL - url = "/paging/multiple/lro" + _url = "/paging/multiple/lro" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if client_request_id is not None: - header_parameters["client-request-id"] = _SERIALIZER.header("client_request_id", client_request_id, "str") + _header_parameters["client-request-id"] = _SERIALIZER.header("client_request_id", client_request_id, "str") if maxresults is not None: - header_parameters["maxresults"] = _SERIALIZER.header("maxresults", maxresults, "int") + _header_parameters["maxresults"] = _SERIALIZER.header("maxresults", maxresults, "int") if timeout is not None: - header_parameters["timeout"] = _SERIALIZER.header("timeout", timeout, "int") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["timeout"] = _SERIALIZER.header("timeout", timeout, "int") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) def build_paging_next_fragment_request(tenant: str, next_link: str, *, api_version: str, **kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/paging/multiple/fragment/{tenant}/{nextLink}" + _url = "/paging/multiple/fragment/{tenant}/{nextLink}" path_format_arguments = { "tenant": _SERIALIZER.url("tenant", tenant, "str"), "nextLink": _SERIALIZER.url("next_link", next_link, "str", skip_quote=True), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["api_version"] = _SERIALIZER.query("api_version", api_version, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["api_version"] = _SERIALIZER.query("api_version", api_version, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_paging_next_fragment_with_grouping_request( @@ -358,35 +358,35 @@ def build_paging_next_fragment_with_grouping_request( ) -> HttpRequest: accept = "application/json" # Construct URL - url = "/paging/multiple/fragmentwithgrouping/{tenant}/{nextLink}" + _url = "/paging/multiple/fragmentwithgrouping/{tenant}/{nextLink}" path_format_arguments = { "tenant": _SERIALIZER.url("tenant", tenant, "str"), "nextLink": _SERIALIZER.url("next_link", next_link, "str", skip_quote=True), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["api_version"] = _SERIALIZER.query("api_version", api_version, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["api_version"] = _SERIALIZER.query("api_version", api_version, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_paging_get_paging_model_with_item_name_with_xms_client_name_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/paging/itemNameWithXMSClientName" + _url = "/paging/itemNameWithXMSClientName" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) class PagingOperations(object): diff --git a/test/azure/version-tolerant/Expected/AcceptanceTests/CustomUrlPagingVersionTolerant/custombaseurlpagingversiontolerant/operations/_operations.py b/test/azure/version-tolerant/Expected/AcceptanceTests/CustomUrlPagingVersionTolerant/custombaseurlpagingversiontolerant/operations/_operations.py index 69886974bed..ae16cc18edd 100644 --- a/test/azure/version-tolerant/Expected/AcceptanceTests/CustomUrlPagingVersionTolerant/custombaseurlpagingversiontolerant/operations/_operations.py +++ b/test/azure/version-tolerant/Expected/AcceptanceTests/CustomUrlPagingVersionTolerant/custombaseurlpagingversiontolerant/operations/_operations.py @@ -35,42 +35,42 @@ def build_paging_get_pages_partial_url_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/paging/customurl/partialnextlink" + _url = "/paging/customurl/partialnextlink" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_paging_get_pages_partial_url_operation_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/paging/customurl/partialnextlinkop" + _url = "/paging/customurl/partialnextlinkop" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_paging_get_pages_partial_url_operation_next_request(next_link: str, **kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/paging/customurl/{nextLink}" + _url = "/paging/customurl/{nextLink}" path_format_arguments = { "nextLink": _SERIALIZER.url("next_link", next_link, "str", skip_quote=True), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) class PagingOperations(object): diff --git a/test/azure/version-tolerant/Expected/AcceptanceTests/HeadExceptionsVersionTolerant/headexceptionsversiontolerant/operations/_operations.py b/test/azure/version-tolerant/Expected/AcceptanceTests/HeadExceptionsVersionTolerant/headexceptionsversiontolerant/operations/_operations.py index fcac871b130..eab28d49398 100644 --- a/test/azure/version-tolerant/Expected/AcceptanceTests/HeadExceptionsVersionTolerant/headexceptionsversiontolerant/operations/_operations.py +++ b/test/azure/version-tolerant/Expected/AcceptanceTests/HeadExceptionsVersionTolerant/headexceptionsversiontolerant/operations/_operations.py @@ -31,23 +31,23 @@ def build_head_exception_head200_request(**kwargs: Any) -> HttpRequest: # Construct URL - url = "/http/success/200" + _url = "/http/success/200" - return HttpRequest(method="HEAD", url=url, **kwargs) + return HttpRequest(method="HEAD", url=_url, **kwargs) def build_head_exception_head204_request(**kwargs: Any) -> HttpRequest: # Construct URL - url = "/http/success/204" + _url = "/http/success/204" - return HttpRequest(method="HEAD", url=url, **kwargs) + return HttpRequest(method="HEAD", url=_url, **kwargs) def build_head_exception_head404_request(**kwargs: Any) -> HttpRequest: # Construct URL - url = "/http/success/404" + _url = "/http/success/404" - return HttpRequest(method="HEAD", url=url, **kwargs) + return HttpRequest(method="HEAD", url=_url, **kwargs) class HeadExceptionOperations(object): diff --git a/test/azure/version-tolerant/Expected/AcceptanceTests/HeadVersionTolerant/headversiontolerant/operations/_operations.py b/test/azure/version-tolerant/Expected/AcceptanceTests/HeadVersionTolerant/headversiontolerant/operations/_operations.py index bd5b7949f0a..6395e47e5b1 100644 --- a/test/azure/version-tolerant/Expected/AcceptanceTests/HeadVersionTolerant/headversiontolerant/operations/_operations.py +++ b/test/azure/version-tolerant/Expected/AcceptanceTests/HeadVersionTolerant/headversiontolerant/operations/_operations.py @@ -31,23 +31,23 @@ def build_http_success_head200_request(**kwargs: Any) -> HttpRequest: # Construct URL - url = "/http/success/200" + _url = "/http/success/200" - return HttpRequest(method="HEAD", url=url, **kwargs) + return HttpRequest(method="HEAD", url=_url, **kwargs) def build_http_success_head204_request(**kwargs: Any) -> HttpRequest: # Construct URL - url = "/http/success/204" + _url = "/http/success/204" - return HttpRequest(method="HEAD", url=url, **kwargs) + return HttpRequest(method="HEAD", url=_url, **kwargs) def build_http_success_head404_request(**kwargs: Any) -> HttpRequest: # Construct URL - url = "/http/success/404" + _url = "/http/success/404" - return HttpRequest(method="HEAD", url=url, **kwargs) + return HttpRequest(method="HEAD", url=_url, **kwargs) class HttpSuccessOperations(object): diff --git a/test/azure/version-tolerant/Expected/AcceptanceTests/LroVersionTolerant/lroversiontolerant/operations/_operations.py b/test/azure/version-tolerant/Expected/AcceptanceTests/LroVersionTolerant/lroversiontolerant/operations/_operations.py index e17ce02f188..4550137649a 100644 --- a/test/azure/version-tolerant/Expected/AcceptanceTests/LroVersionTolerant/lroversiontolerant/operations/_operations.py +++ b/test/azure/version-tolerant/Expected/AcceptanceTests/LroVersionTolerant/lroversiontolerant/operations/_operations.py @@ -39,15 +39,15 @@ def build_lros_put200_succeeded_request_initial( accept = "application/json" # Construct URL - url = "/lro/put/200/succeeded" + _url = "/lro/put/200/succeeded" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_lros_patch200_succeeded_ignore_headers_request_initial( @@ -57,15 +57,15 @@ def build_lros_patch200_succeeded_ignore_headers_request_initial( accept = "application/json" # Construct URL - url = "/lro/patch/200/succeeded/ignoreheaders" + _url = "/lro/patch/200/succeeded/ignoreheaders" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PATCH", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PATCH", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_lros_patch201_retry_with_async_header_request_initial( @@ -75,15 +75,15 @@ def build_lros_patch201_retry_with_async_header_request_initial( accept = "application/json" # Construct URL - url = "/lro/patch/201/retry/onlyAsyncHeader" + _url = "/lro/patch/201/retry/onlyAsyncHeader" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PATCH", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PATCH", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_lros_patch202_retry_with_async_and_location_header_request_initial( @@ -93,15 +93,15 @@ def build_lros_patch202_retry_with_async_and_location_header_request_initial( accept = "application/json" # Construct URL - url = "/lro/patch/202/retry/asyncAndLocationHeader" + _url = "/lro/patch/202/retry/asyncAndLocationHeader" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PATCH", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PATCH", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_lros_put201_succeeded_request_initial( @@ -111,27 +111,27 @@ def build_lros_put201_succeeded_request_initial( accept = "application/json" # Construct URL - url = "/lro/put/201/succeeded" + _url = "/lro/put/201/succeeded" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_lros_post202_list_request_initial(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/lro/list" + _url = "/lro/list" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) def build_lros_put200_succeeded_no_state_request_initial( @@ -141,15 +141,15 @@ def build_lros_put200_succeeded_no_state_request_initial( accept = "application/json" # Construct URL - url = "/lro/put/200/succeeded/nostate" + _url = "/lro/put/200/succeeded/nostate" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_lros_put202_retry200_request_initial( @@ -159,15 +159,15 @@ def build_lros_put202_retry200_request_initial( accept = "application/json" # Construct URL - url = "/lro/put/202/retry/200" + _url = "/lro/put/202/retry/200" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_lros_put201_creating_succeeded200_request_initial( @@ -177,15 +177,15 @@ def build_lros_put201_creating_succeeded200_request_initial( accept = "application/json" # Construct URL - url = "/lro/put/201/creating/succeeded/200" + _url = "/lro/put/201/creating/succeeded/200" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_lros_put200_updating_succeeded204_request_initial( @@ -195,15 +195,15 @@ def build_lros_put200_updating_succeeded204_request_initial( accept = "application/json" # Construct URL - url = "/lro/put/200/updating/succeeded/200" + _url = "/lro/put/200/updating/succeeded/200" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_lros_put201_creating_failed200_request_initial( @@ -213,15 +213,15 @@ def build_lros_put201_creating_failed200_request_initial( accept = "application/json" # Construct URL - url = "/lro/put/201/created/failed/200" + _url = "/lro/put/201/created/failed/200" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_lros_put200_acceptedcanceled200_request_initial( @@ -231,15 +231,15 @@ def build_lros_put200_acceptedcanceled200_request_initial( accept = "application/json" # Construct URL - url = "/lro/put/200/accepted/canceled/200" + _url = "/lro/put/200/accepted/canceled/200" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_lros_put_no_header_in_retry_request_initial( @@ -249,15 +249,15 @@ def build_lros_put_no_header_in_retry_request_initial( accept = "application/json" # Construct URL - url = "/lro/put/noheader/202/200" + _url = "/lro/put/noheader/202/200" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_lros_put_async_retry_succeeded_request_initial( @@ -267,15 +267,15 @@ def build_lros_put_async_retry_succeeded_request_initial( accept = "application/json" # Construct URL - url = "/lro/putasync/retry/succeeded" + _url = "/lro/putasync/retry/succeeded" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_lros_put_async_no_retry_succeeded_request_initial( @@ -285,15 +285,15 @@ def build_lros_put_async_no_retry_succeeded_request_initial( accept = "application/json" # Construct URL - url = "/lro/putasync/noretry/succeeded" + _url = "/lro/putasync/noretry/succeeded" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_lros_put_async_retry_failed_request_initial( @@ -303,15 +303,15 @@ def build_lros_put_async_retry_failed_request_initial( accept = "application/json" # Construct URL - url = "/lro/putasync/retry/failed" + _url = "/lro/putasync/retry/failed" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_lros_put_async_no_retrycanceled_request_initial( @@ -321,15 +321,15 @@ def build_lros_put_async_no_retrycanceled_request_initial( accept = "application/json" # Construct URL - url = "/lro/putasync/noretry/canceled" + _url = "/lro/putasync/noretry/canceled" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_lros_put_async_no_header_in_retry_request_initial( @@ -339,15 +339,15 @@ def build_lros_put_async_no_header_in_retry_request_initial( accept = "application/json" # Construct URL - url = "/lro/putasync/noheader/201/200" + _url = "/lro/putasync/noheader/201/200" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_lros_put_non_resource_request_initial( @@ -357,15 +357,15 @@ def build_lros_put_non_resource_request_initial( accept = "application/json" # Construct URL - url = "/lro/putnonresource/202/200" + _url = "/lro/putnonresource/202/200" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_lros_put_async_non_resource_request_initial( @@ -375,15 +375,15 @@ def build_lros_put_async_non_resource_request_initial( accept = "application/json" # Construct URL - url = "/lro/putnonresourceasync/202/200" + _url = "/lro/putnonresourceasync/202/200" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_lros_put_sub_resource_request_initial( @@ -393,15 +393,15 @@ def build_lros_put_sub_resource_request_initial( accept = "application/json" # Construct URL - url = "/lro/putsubresource/202/200" + _url = "/lro/putsubresource/202/200" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_lros_put_async_sub_resource_request_initial( @@ -411,171 +411,171 @@ def build_lros_put_async_sub_resource_request_initial( accept = "application/json" # Construct URL - url = "/lro/putsubresourceasync/202/200" + _url = "/lro/putsubresourceasync/202/200" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_lros_delete_provisioning202_accepted200_succeeded_request_initial(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/lro/delete/provisioning/202/accepted/200/succeeded" + _url = "/lro/delete/provisioning/202/accepted/200/succeeded" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="DELETE", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="DELETE", url=_url, headers=_header_parameters, **kwargs) def build_lros_delete_provisioning202_deleting_failed200_request_initial(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/lro/delete/provisioning/202/deleting/200/failed" + _url = "/lro/delete/provisioning/202/deleting/200/failed" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="DELETE", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="DELETE", url=_url, headers=_header_parameters, **kwargs) def build_lros_delete_provisioning202_deletingcanceled200_request_initial(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/lro/delete/provisioning/202/deleting/200/canceled" + _url = "/lro/delete/provisioning/202/deleting/200/canceled" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="DELETE", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="DELETE", url=_url, headers=_header_parameters, **kwargs) def build_lros_delete204_succeeded_request_initial(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/lro/delete/204/succeeded" + _url = "/lro/delete/204/succeeded" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="DELETE", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="DELETE", url=_url, headers=_header_parameters, **kwargs) def build_lros_delete202_retry200_request_initial(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/lro/delete/202/retry/200" + _url = "/lro/delete/202/retry/200" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="DELETE", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="DELETE", url=_url, headers=_header_parameters, **kwargs) def build_lros_delete202_no_retry204_request_initial(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/lro/delete/202/noretry/204" + _url = "/lro/delete/202/noretry/204" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="DELETE", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="DELETE", url=_url, headers=_header_parameters, **kwargs) def build_lros_delete_no_header_in_retry_request_initial(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/lro/delete/noheader" + _url = "/lro/delete/noheader" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="DELETE", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="DELETE", url=_url, headers=_header_parameters, **kwargs) def build_lros_delete_async_no_header_in_retry_request_initial(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/lro/deleteasync/noheader/202/204" + _url = "/lro/deleteasync/noheader/202/204" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="DELETE", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="DELETE", url=_url, headers=_header_parameters, **kwargs) def build_lros_delete_async_retry_succeeded_request_initial(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/lro/deleteasync/retry/succeeded" + _url = "/lro/deleteasync/retry/succeeded" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="DELETE", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="DELETE", url=_url, headers=_header_parameters, **kwargs) def build_lros_delete_async_no_retry_succeeded_request_initial(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/lro/deleteasync/noretry/succeeded" + _url = "/lro/deleteasync/noretry/succeeded" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="DELETE", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="DELETE", url=_url, headers=_header_parameters, **kwargs) def build_lros_delete_async_retry_failed_request_initial(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/lro/deleteasync/retry/failed" + _url = "/lro/deleteasync/retry/failed" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="DELETE", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="DELETE", url=_url, headers=_header_parameters, **kwargs) def build_lros_delete_async_retrycanceled_request_initial(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/lro/deleteasync/retry/canceled" + _url = "/lro/deleteasync/retry/canceled" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="DELETE", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="DELETE", url=_url, headers=_header_parameters, **kwargs) def build_lros_post200_with_payload_request_initial(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/lro/post/payload/200" + _url = "/lro/post/payload/200" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) def build_lros_post202_retry200_request_initial( @@ -585,15 +585,15 @@ def build_lros_post202_retry200_request_initial( accept = "application/json" # Construct URL - url = "/lro/post/202/retry/200" + _url = "/lro/post/202/retry/200" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_lros_post202_no_retry204_request_initial( @@ -603,51 +603,51 @@ def build_lros_post202_no_retry204_request_initial( accept = "application/json" # Construct URL - url = "/lro/post/202/noretry/204" + _url = "/lro/post/202/noretry/204" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_lros_post_double_headers_final_location_get_request_initial(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/lro/LROPostDoubleHeadersFinalLocationGet" + _url = "/lro/LROPostDoubleHeadersFinalLocationGet" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) def build_lros_post_double_headers_final_azure_header_get_request_initial(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/lro/LROPostDoubleHeadersFinalAzureHeaderGet" + _url = "/lro/LROPostDoubleHeadersFinalAzureHeaderGet" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) def build_lros_post_double_headers_final_azure_header_get_default_request_initial(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/lro/LROPostDoubleHeadersFinalAzureHeaderGetDefault" + _url = "/lro/LROPostDoubleHeadersFinalAzureHeaderGetDefault" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) def build_lros_post_async_retry_succeeded_request_initial( @@ -657,15 +657,15 @@ def build_lros_post_async_retry_succeeded_request_initial( accept = "application/json" # Construct URL - url = "/lro/postasync/retry/succeeded" + _url = "/lro/postasync/retry/succeeded" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_lros_post_async_no_retry_succeeded_request_initial( @@ -675,15 +675,15 @@ def build_lros_post_async_no_retry_succeeded_request_initial( accept = "application/json" # Construct URL - url = "/lro/postasync/noretry/succeeded" + _url = "/lro/postasync/noretry/succeeded" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_lros_post_async_retry_failed_request_initial( @@ -693,15 +693,15 @@ def build_lros_post_async_retry_failed_request_initial( accept = "application/json" # Construct URL - url = "/lro/postasync/retry/failed" + _url = "/lro/postasync/retry/failed" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_lros_post_async_retrycanceled_request_initial( @@ -711,15 +711,15 @@ def build_lros_post_async_retrycanceled_request_initial( accept = "application/json" # Construct URL - url = "/lro/postasync/retry/canceled" + _url = "/lro/postasync/retry/canceled" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_lro_retrys_put201_creating_succeeded200_request_initial( @@ -729,15 +729,15 @@ def build_lro_retrys_put201_creating_succeeded200_request_initial( accept = "application/json" # Construct URL - url = "/lro/retryerror/put/201/creating/succeeded/200" + _url = "/lro/retryerror/put/201/creating/succeeded/200" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_lro_retrys_put_async_relative_retry_succeeded_request_initial( @@ -747,51 +747,51 @@ def build_lro_retrys_put_async_relative_retry_succeeded_request_initial( accept = "application/json" # Construct URL - url = "/lro/retryerror/putasync/retry/succeeded" + _url = "/lro/retryerror/putasync/retry/succeeded" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_lro_retrys_delete_provisioning202_accepted200_succeeded_request_initial(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/lro/retryerror/delete/provisioning/202/accepted/200/succeeded" + _url = "/lro/retryerror/delete/provisioning/202/accepted/200/succeeded" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="DELETE", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="DELETE", url=_url, headers=_header_parameters, **kwargs) def build_lro_retrys_delete202_retry200_request_initial(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/lro/retryerror/delete/202/retry/200" + _url = "/lro/retryerror/delete/202/retry/200" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="DELETE", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="DELETE", url=_url, headers=_header_parameters, **kwargs) def build_lro_retrys_delete_async_relative_retry_succeeded_request_initial(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/lro/retryerror/deleteasync/retry/succeeded" + _url = "/lro/retryerror/deleteasync/retry/succeeded" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="DELETE", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="DELETE", url=_url, headers=_header_parameters, **kwargs) def build_lro_retrys_post202_retry200_request_initial( @@ -801,15 +801,15 @@ def build_lro_retrys_post202_retry200_request_initial( accept = "application/json" # Construct URL - url = "/lro/retryerror/post/202/retry/200" + _url = "/lro/retryerror/post/202/retry/200" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_lro_retrys_post_async_relative_retry_succeeded_request_initial( @@ -819,15 +819,15 @@ def build_lro_retrys_post_async_relative_retry_succeeded_request_initial( accept = "application/json" # Construct URL - url = "/lro/retryerror/postasync/retry/succeeded" + _url = "/lro/retryerror/postasync/retry/succeeded" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_lrosads_put_non_retry400_request_initial( @@ -837,15 +837,15 @@ def build_lrosads_put_non_retry400_request_initial( accept = "application/json" # Construct URL - url = "/lro/nonretryerror/put/400" + _url = "/lro/nonretryerror/put/400" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_lrosads_put_non_retry201_creating400_request_initial( @@ -855,15 +855,15 @@ def build_lrosads_put_non_retry201_creating400_request_initial( accept = "application/json" # Construct URL - url = "/lro/nonretryerror/put/201/creating/400" + _url = "/lro/nonretryerror/put/201/creating/400" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_lrosads_put_non_retry201_creating400_invalid_json_request_initial( @@ -873,15 +873,15 @@ def build_lrosads_put_non_retry201_creating400_invalid_json_request_initial( accept = "application/json" # Construct URL - url = "/lro/nonretryerror/put/201/creating/400/invalidjson" + _url = "/lro/nonretryerror/put/201/creating/400/invalidjson" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_lrosads_put_async_relative_retry400_request_initial( @@ -891,51 +891,51 @@ def build_lrosads_put_async_relative_retry400_request_initial( accept = "application/json" # Construct URL - url = "/lro/nonretryerror/putasync/retry/400" + _url = "/lro/nonretryerror/putasync/retry/400" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_lrosads_delete_non_retry400_request_initial(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/lro/nonretryerror/delete/400" + _url = "/lro/nonretryerror/delete/400" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="DELETE", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="DELETE", url=_url, headers=_header_parameters, **kwargs) def build_lrosads_delete202_non_retry400_request_initial(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/lro/nonretryerror/delete/202/retry/400" + _url = "/lro/nonretryerror/delete/202/retry/400" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="DELETE", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="DELETE", url=_url, headers=_header_parameters, **kwargs) def build_lrosads_delete_async_relative_retry400_request_initial(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/lro/nonretryerror/deleteasync/retry/400" + _url = "/lro/nonretryerror/deleteasync/retry/400" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="DELETE", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="DELETE", url=_url, headers=_header_parameters, **kwargs) def build_lrosads_post_non_retry400_request_initial( @@ -945,15 +945,15 @@ def build_lrosads_post_non_retry400_request_initial( accept = "application/json" # Construct URL - url = "/lro/nonretryerror/post/400" + _url = "/lro/nonretryerror/post/400" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_lrosads_post202_non_retry400_request_initial( @@ -963,15 +963,15 @@ def build_lrosads_post202_non_retry400_request_initial( accept = "application/json" # Construct URL - url = "/lro/nonretryerror/post/202/retry/400" + _url = "/lro/nonretryerror/post/202/retry/400" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_lrosads_post_async_relative_retry400_request_initial( @@ -981,15 +981,15 @@ def build_lrosads_post_async_relative_retry400_request_initial( accept = "application/json" # Construct URL - url = "/lro/nonretryerror/postasync/retry/400" + _url = "/lro/nonretryerror/postasync/retry/400" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_lrosads_put_error201_no_provisioning_state_payload_request_initial( @@ -999,15 +999,15 @@ def build_lrosads_put_error201_no_provisioning_state_payload_request_initial( accept = "application/json" # Construct URL - url = "/lro/error/put/201/noprovisioningstatepayload" + _url = "/lro/error/put/201/noprovisioningstatepayload" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_lrosads_put_async_relative_retry_no_status_request_initial( @@ -1017,15 +1017,15 @@ def build_lrosads_put_async_relative_retry_no_status_request_initial( accept = "application/json" # Construct URL - url = "/lro/error/putasync/retry/nostatus" + _url = "/lro/error/putasync/retry/nostatus" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_lrosads_put_async_relative_retry_no_status_payload_request_initial( @@ -1035,39 +1035,39 @@ def build_lrosads_put_async_relative_retry_no_status_payload_request_initial( accept = "application/json" # Construct URL - url = "/lro/error/putasync/retry/nostatuspayload" + _url = "/lro/error/putasync/retry/nostatuspayload" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_lrosads_delete204_succeeded_request_initial(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/lro/error/delete/204/nolocation" + _url = "/lro/error/delete/204/nolocation" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="DELETE", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="DELETE", url=_url, headers=_header_parameters, **kwargs) def build_lrosads_delete_async_relative_retry_no_status_request_initial(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/lro/error/deleteasync/retry/nostatus" + _url = "/lro/error/deleteasync/retry/nostatus" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="DELETE", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="DELETE", url=_url, headers=_header_parameters, **kwargs) def build_lrosads_post202_no_location_request_initial( @@ -1077,15 +1077,15 @@ def build_lrosads_post202_no_location_request_initial( accept = "application/json" # Construct URL - url = "/lro/error/post/202/nolocation" + _url = "/lro/error/post/202/nolocation" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_lrosads_post_async_relative_retry_no_payload_request_initial( @@ -1095,15 +1095,15 @@ def build_lrosads_post_async_relative_retry_no_payload_request_initial( accept = "application/json" # Construct URL - url = "/lro/error/postasync/retry/nopayload" + _url = "/lro/error/postasync/retry/nopayload" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_lrosads_put200_invalid_json_request_initial( @@ -1113,15 +1113,15 @@ def build_lrosads_put200_invalid_json_request_initial( accept = "application/json" # Construct URL - url = "/lro/error/put/200/invalidjson" + _url = "/lro/error/put/200/invalidjson" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_lrosads_put_async_relative_retry_invalid_header_request_initial( @@ -1131,15 +1131,15 @@ def build_lrosads_put_async_relative_retry_invalid_header_request_initial( accept = "application/json" # Construct URL - url = "/lro/error/putasync/retry/invalidheader" + _url = "/lro/error/putasync/retry/invalidheader" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_lrosads_put_async_relative_retry_invalid_json_polling_request_initial( @@ -1149,51 +1149,51 @@ def build_lrosads_put_async_relative_retry_invalid_json_polling_request_initial( accept = "application/json" # Construct URL - url = "/lro/error/putasync/retry/invalidjsonpolling" + _url = "/lro/error/putasync/retry/invalidjsonpolling" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_lrosads_delete202_retry_invalid_header_request_initial(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/lro/error/delete/202/retry/invalidheader" + _url = "/lro/error/delete/202/retry/invalidheader" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="DELETE", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="DELETE", url=_url, headers=_header_parameters, **kwargs) def build_lrosads_delete_async_relative_retry_invalid_header_request_initial(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/lro/error/deleteasync/retry/invalidheader" + _url = "/lro/error/deleteasync/retry/invalidheader" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="DELETE", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="DELETE", url=_url, headers=_header_parameters, **kwargs) def build_lrosads_delete_async_relative_retry_invalid_json_polling_request_initial(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/lro/error/deleteasync/retry/invalidjsonpolling" + _url = "/lro/error/deleteasync/retry/invalidjsonpolling" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="DELETE", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="DELETE", url=_url, headers=_header_parameters, **kwargs) def build_lrosads_post202_retry_invalid_header_request_initial( @@ -1203,15 +1203,15 @@ def build_lrosads_post202_retry_invalid_header_request_initial( accept = "application/json" # Construct URL - url = "/lro/error/post/202/retry/invalidheader" + _url = "/lro/error/post/202/retry/invalidheader" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_lrosads_post_async_relative_retry_invalid_header_request_initial( @@ -1221,15 +1221,15 @@ def build_lrosads_post_async_relative_retry_invalid_header_request_initial( accept = "application/json" # Construct URL - url = "/lro/error/postasync/retry/invalidheader" + _url = "/lro/error/postasync/retry/invalidheader" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_lrosads_post_async_relative_retry_invalid_json_polling_request_initial( @@ -1239,15 +1239,15 @@ def build_lrosads_post_async_relative_retry_invalid_json_polling_request_initial accept = "application/json" # Construct URL - url = "/lro/error/postasync/retry/invalidjsonpolling" + _url = "/lro/error/postasync/retry/invalidjsonpolling" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_lr_os_custom_header_put_async_retry_succeeded_request_initial( @@ -1257,15 +1257,15 @@ def build_lr_os_custom_header_put_async_retry_succeeded_request_initial( accept = "application/json" # Construct URL - url = "/lro/customheader/putasync/retry/succeeded" + _url = "/lro/customheader/putasync/retry/succeeded" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_lr_os_custom_header_put201_creating_succeeded200_request_initial( @@ -1275,15 +1275,15 @@ def build_lr_os_custom_header_put201_creating_succeeded200_request_initial( accept = "application/json" # Construct URL - url = "/lro/customheader/put/201/creating/succeeded/200" + _url = "/lro/customheader/put/201/creating/succeeded/200" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_lr_os_custom_header_post202_retry200_request_initial( @@ -1293,15 +1293,15 @@ def build_lr_os_custom_header_post202_retry200_request_initial( accept = "application/json" # Construct URL - url = "/lro/customheader/post/202/retry/200" + _url = "/lro/customheader/post/202/retry/200" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_lr_os_custom_header_post_async_retry_succeeded_request_initial( @@ -1311,15 +1311,15 @@ def build_lr_os_custom_header_post_async_retry_succeeded_request_initial( accept = "application/json" # Construct URL - url = "/lro/customheader/postasync/retry/succeeded" + _url = "/lro/customheader/postasync/retry/succeeded" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) class LROsOperations(object): # pylint: disable=too-many-public-methods diff --git a/test/azure/version-tolerant/Expected/AcceptanceTests/LroWithParameterizedEndpointsVersionTolerant/lrowithparameterizedendpointsversiontolerant/_operations/_operations.py b/test/azure/version-tolerant/Expected/AcceptanceTests/LroWithParameterizedEndpointsVersionTolerant/lrowithparameterizedendpointsversiontolerant/_operations/_operations.py index ef3518952cc..656ae1f4319 100644 --- a/test/azure/version-tolerant/Expected/AcceptanceTests/LroWithParameterizedEndpointsVersionTolerant/lrowithparameterizedendpointsversiontolerant/_operations/_operations.py +++ b/test/azure/version-tolerant/Expected/AcceptanceTests/LroWithParameterizedEndpointsVersionTolerant/lrowithparameterizedendpointsversiontolerant/_operations/_operations.py @@ -36,13 +36,13 @@ def build_poll_with_parameterized_endpoints_request_initial(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/lroParameterizedEndpoints" + _url = "/lroParameterizedEndpoints" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) def build_poll_with_constant_parameterized_endpoints_request_initial(**kwargs: Any) -> HttpRequest: @@ -50,18 +50,18 @@ def build_poll_with_constant_parameterized_endpoints_request_initial(**kwargs: A accept = "application/json" # Construct URL - url = "/lroConstantParameterizedEndpoints/{constantParameter}" + _url = "/lroConstantParameterizedEndpoints/{constantParameter}" path_format_arguments = { "constantParameter": _SERIALIZER.url("constant_parameter", constant_parameter, "str", skip_quote=True), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) class LROWithParamaterizedEndpointsOperationsMixin(object): diff --git a/test/azure/version-tolerant/Expected/AcceptanceTests/PagingVersionTolerant/pagingversiontolerant/operations/_operations.py b/test/azure/version-tolerant/Expected/AcceptanceTests/PagingVersionTolerant/pagingversiontolerant/operations/_operations.py index 0645f46dc3e..1ec89cec212 100644 --- a/test/azure/version-tolerant/Expected/AcceptanceTests/PagingVersionTolerant/pagingversiontolerant/operations/_operations.py +++ b/test/azure/version-tolerant/Expected/AcceptanceTests/PagingVersionTolerant/pagingversiontolerant/operations/_operations.py @@ -37,49 +37,49 @@ def build_paging_get_no_item_name_pages_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/paging/noitemname" + _url = "/paging/noitemname" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_paging_get_null_next_link_name_pages_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/paging/nullnextlink" + _url = "/paging/nullnextlink" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_paging_get_single_pages_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/paging/single" + _url = "/paging/single" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_paging_first_response_empty_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/paging/firstResponseEmpty/1" + _url = "/paging/firstResponseEmpty/1" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_paging_get_multiple_pages_request( @@ -91,19 +91,19 @@ def build_paging_get_multiple_pages_request( ) -> HttpRequest: accept = "application/json" # Construct URL - url = "/paging/multiple" + _url = "/paging/multiple" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if client_request_id is not None: - header_parameters["client-request-id"] = _SERIALIZER.header("client_request_id", client_request_id, "str") + _header_parameters["client-request-id"] = _SERIALIZER.header("client_request_id", client_request_id, "str") if maxresults is not None: - header_parameters["maxresults"] = _SERIALIZER.header("maxresults", maxresults, "int") + _header_parameters["maxresults"] = _SERIALIZER.header("maxresults", maxresults, "int") if timeout is not None: - header_parameters["timeout"] = _SERIALIZER.header("timeout", timeout, "int") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["timeout"] = _SERIALIZER.header("timeout", timeout, "int") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_paging_get_with_query_params_request(*, required_query_parameter: int, **kwargs: Any) -> HttpRequest: @@ -111,20 +111,20 @@ def build_paging_get_with_query_params_request(*, required_query_parameter: int, accept = "application/json" # Construct URL - url = "/paging/multiple/getWithQueryParams" + _url = "/paging/multiple/getWithQueryParams" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["requiredQueryParameter"] = _SERIALIZER.query( + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["requiredQueryParameter"] = _SERIALIZER.query( "required_query_parameter", required_query_parameter, "int" ) - query_parameters["queryConstant"] = _SERIALIZER.query("query_constant", query_constant, "bool") + _query_parameters["queryConstant"] = _SERIALIZER.query("query_constant", query_constant, "bool") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_paging_next_operation_with_query_params_request(**kwargs: Any) -> HttpRequest: @@ -132,17 +132,17 @@ def build_paging_next_operation_with_query_params_request(**kwargs: Any) -> Http accept = "application/json" # Construct URL - url = "/paging/multiple/nextOperationWithQueryParams" + _url = "/paging/multiple/nextOperationWithQueryParams" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["queryConstant"] = _SERIALIZER.query("query_constant", query_constant, "bool") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["queryConstant"] = _SERIALIZER.query("query_constant", query_constant, "bool") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_paging_get_odata_multiple_pages_request( @@ -154,19 +154,19 @@ def build_paging_get_odata_multiple_pages_request( ) -> HttpRequest: accept = "application/json" # Construct URL - url = "/paging/multiple/odata" + _url = "/paging/multiple/odata" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if client_request_id is not None: - header_parameters["client-request-id"] = _SERIALIZER.header("client_request_id", client_request_id, "str") + _header_parameters["client-request-id"] = _SERIALIZER.header("client_request_id", client_request_id, "str") if maxresults is not None: - header_parameters["maxresults"] = _SERIALIZER.header("maxresults", maxresults, "int") + _header_parameters["maxresults"] = _SERIALIZER.header("maxresults", maxresults, "int") if timeout is not None: - header_parameters["timeout"] = _SERIALIZER.header("timeout", timeout, "int") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["timeout"] = _SERIALIZER.header("timeout", timeout, "int") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_paging_get_multiple_pages_with_offset_request( @@ -179,84 +179,84 @@ def build_paging_get_multiple_pages_with_offset_request( ) -> HttpRequest: accept = "application/json" # Construct URL - url = "/paging/multiple/withpath/{offset}" + _url = "/paging/multiple/withpath/{offset}" path_format_arguments = { "offset": _SERIALIZER.url("offset", offset, "int"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if client_request_id is not None: - header_parameters["client-request-id"] = _SERIALIZER.header("client_request_id", client_request_id, "str") + _header_parameters["client-request-id"] = _SERIALIZER.header("client_request_id", client_request_id, "str") if maxresults is not None: - header_parameters["maxresults"] = _SERIALIZER.header("maxresults", maxresults, "int") + _header_parameters["maxresults"] = _SERIALIZER.header("maxresults", maxresults, "int") if timeout is not None: - header_parameters["timeout"] = _SERIALIZER.header("timeout", timeout, "int") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["timeout"] = _SERIALIZER.header("timeout", timeout, "int") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_paging_get_multiple_pages_retry_first_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/paging/multiple/retryfirst" + _url = "/paging/multiple/retryfirst" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_paging_get_multiple_pages_retry_second_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/paging/multiple/retrysecond" + _url = "/paging/multiple/retrysecond" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_paging_get_single_pages_failure_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/paging/single/failure" + _url = "/paging/single/failure" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_paging_get_multiple_pages_failure_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/paging/multiple/failure" + _url = "/paging/multiple/failure" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_paging_get_multiple_pages_failure_uri_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/paging/multiple/failureuri" + _url = "/paging/multiple/failureuri" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_paging_get_multiple_pages_fragment_next_link_request( @@ -264,22 +264,22 @@ def build_paging_get_multiple_pages_fragment_next_link_request( ) -> HttpRequest: accept = "application/json" # Construct URL - url = "/paging/multiple/fragment/{tenant}" + _url = "/paging/multiple/fragment/{tenant}" path_format_arguments = { "tenant": _SERIALIZER.url("tenant", tenant, "str"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["api_version"] = _SERIALIZER.query("api_version", api_version, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["api_version"] = _SERIALIZER.query("api_version", api_version, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_paging_get_multiple_pages_fragment_with_grouping_next_link_request( @@ -287,22 +287,22 @@ def build_paging_get_multiple_pages_fragment_with_grouping_next_link_request( ) -> HttpRequest: accept = "application/json" # Construct URL - url = "/paging/multiple/fragmentwithgrouping/{tenant}" + _url = "/paging/multiple/fragmentwithgrouping/{tenant}" path_format_arguments = { "tenant": _SERIALIZER.url("tenant", tenant, "str"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["api_version"] = _SERIALIZER.query("api_version", api_version, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["api_version"] = _SERIALIZER.query("api_version", api_version, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_paging_get_multiple_pages_lro_request_initial( @@ -314,41 +314,41 @@ def build_paging_get_multiple_pages_lro_request_initial( ) -> HttpRequest: accept = "application/json" # Construct URL - url = "/paging/multiple/lro" + _url = "/paging/multiple/lro" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if client_request_id is not None: - header_parameters["client-request-id"] = _SERIALIZER.header("client_request_id", client_request_id, "str") + _header_parameters["client-request-id"] = _SERIALIZER.header("client_request_id", client_request_id, "str") if maxresults is not None: - header_parameters["maxresults"] = _SERIALIZER.header("maxresults", maxresults, "int") + _header_parameters["maxresults"] = _SERIALIZER.header("maxresults", maxresults, "int") if timeout is not None: - header_parameters["timeout"] = _SERIALIZER.header("timeout", timeout, "int") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["timeout"] = _SERIALIZER.header("timeout", timeout, "int") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) def build_paging_next_fragment_request(tenant: str, next_link: str, *, api_version: str, **kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/paging/multiple/fragment/{tenant}/{nextLink}" + _url = "/paging/multiple/fragment/{tenant}/{nextLink}" path_format_arguments = { "tenant": _SERIALIZER.url("tenant", tenant, "str"), "nextLink": _SERIALIZER.url("next_link", next_link, "str", skip_quote=True), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["api_version"] = _SERIALIZER.query("api_version", api_version, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["api_version"] = _SERIALIZER.query("api_version", api_version, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_paging_next_fragment_with_grouping_request( @@ -356,35 +356,35 @@ def build_paging_next_fragment_with_grouping_request( ) -> HttpRequest: accept = "application/json" # Construct URL - url = "/paging/multiple/fragmentwithgrouping/{tenant}/{nextLink}" + _url = "/paging/multiple/fragmentwithgrouping/{tenant}/{nextLink}" path_format_arguments = { "tenant": _SERIALIZER.url("tenant", tenant, "str"), "nextLink": _SERIALIZER.url("next_link", next_link, "str", skip_quote=True), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["api_version"] = _SERIALIZER.query("api_version", api_version, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["api_version"] = _SERIALIZER.query("api_version", api_version, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_paging_get_paging_model_with_item_name_with_xms_client_name_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/paging/itemNameWithXMSClientName" + _url = "/paging/itemNameWithXMSClientName" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) class PagingOperations(object): diff --git a/test/azure/version-tolerant/Expected/AcceptanceTests/StorageManagementClientVersionTolerant/storageversiontolerant/operations/_operations.py b/test/azure/version-tolerant/Expected/AcceptanceTests/StorageManagementClientVersionTolerant/storageversiontolerant/operations/_operations.py index 10a31b09945..c6b28ec14ca 100644 --- a/test/azure/version-tolerant/Expected/AcceptanceTests/StorageManagementClientVersionTolerant/storageversiontolerant/operations/_operations.py +++ b/test/azure/version-tolerant/Expected/AcceptanceTests/StorageManagementClientVersionTolerant/storageversiontolerant/operations/_operations.py @@ -43,25 +43,31 @@ def build_storage_accounts_check_name_availability_request( accept = "application/json, text/json" # Construct URL - url = "/subscriptions/{subscriptionId}/providers/Microsoft.Storage/checkNameAvailability" + _url = "/subscriptions/{subscriptionId}/providers/Microsoft.Storage/checkNameAvailability" path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["api-version"] = _SERIALIZER.query("api_version", api_version, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") return HttpRequest( - method="POST", url=url, params=query_parameters, headers=header_parameters, json=json, content=content, **kwargs + method="POST", + url=_url, + params=_query_parameters, + headers=_header_parameters, + json=json, + content=content, + **kwargs ) @@ -79,27 +85,33 @@ def build_storage_accounts_create_request_initial( accept = "application/json, text/json" # Construct URL - url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}" # pylint: disable=line-too-long + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}" # pylint: disable=line-too-long path_format_arguments = { "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), "accountName": _SERIALIZER.url("account_name", account_name, "str"), "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["api-version"] = _SERIALIZER.query("api_version", api_version, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") return HttpRequest( - method="PUT", url=url, params=query_parameters, headers=header_parameters, json=json, content=content, **kwargs + method="PUT", + url=_url, + params=_query_parameters, + headers=_header_parameters, + json=json, + content=content, + **kwargs ) @@ -109,20 +121,20 @@ def build_storage_accounts_delete_request( api_version = kwargs.pop("api_version", "2015-05-01-preview") # type: str # Construct URL - url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}" # pylint: disable=line-too-long + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}" # pylint: disable=line-too-long path_format_arguments = { "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), "accountName": _SERIALIZER.url("account_name", account_name, "str"), "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - return HttpRequest(method="DELETE", url=url, params=query_parameters, **kwargs) + return HttpRequest(method="DELETE", url=_url, params=_query_parameters, **kwargs) def build_storage_accounts_get_properties_request( @@ -132,24 +144,24 @@ def build_storage_accounts_get_properties_request( accept = "application/json, text/json" # Construct URL - url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}" # pylint: disable=line-too-long + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}" # pylint: disable=line-too-long path_format_arguments = { "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), "accountName": _SERIALIZER.url("account_name", account_name, "str"), "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["api-version"] = _SERIALIZER.query("api_version", api_version, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_storage_accounts_update_request( @@ -166,30 +178,30 @@ def build_storage_accounts_update_request( accept = "application/json, text/json" # Construct URL - url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}" # pylint: disable=line-too-long + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}" # pylint: disable=line-too-long path_format_arguments = { "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), "accountName": _SERIALIZER.url("account_name", account_name, "str"), "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["api-version"] = _SERIALIZER.query("api_version", api_version, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") return HttpRequest( method="PATCH", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, json=json, content=content, **kwargs @@ -203,24 +215,24 @@ def build_storage_accounts_list_keys_request( accept = "application/json, text/json" # Construct URL - url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/listKeys" # pylint: disable=line-too-long + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/listKeys" # pylint: disable=line-too-long path_format_arguments = { "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), "accountName": _SERIALIZER.url("account_name", account_name, "str"), "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["api-version"] = _SERIALIZER.query("api_version", api_version, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_storage_accounts_list_request(subscription_id: str, **kwargs: Any) -> HttpRequest: @@ -228,22 +240,22 @@ def build_storage_accounts_list_request(subscription_id: str, **kwargs: Any) -> accept = "application/json, text/json" # Construct URL - url = "/subscriptions/{subscriptionId}/providers/Microsoft.Storage/storageAccounts" + _url = "/subscriptions/{subscriptionId}/providers/Microsoft.Storage/storageAccounts" path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["api-version"] = _SERIALIZER.query("api_version", api_version, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_storage_accounts_list_by_resource_group_request( @@ -253,7 +265,7 @@ def build_storage_accounts_list_by_resource_group_request( accept = "application/json, text/json" # Construct URL - url = ( + _url = ( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts" ) path_format_arguments = { @@ -261,17 +273,17 @@ def build_storage_accounts_list_by_resource_group_request( "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["api-version"] = _SERIALIZER.query("api_version", api_version, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_storage_accounts_regenerate_key_request( @@ -288,27 +300,33 @@ def build_storage_accounts_regenerate_key_request( accept = "application/json, text/json" # Construct URL - url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/regenerateKey" # pylint: disable=line-too-long + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/regenerateKey" # pylint: disable=line-too-long path_format_arguments = { "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), "accountName": _SERIALIZER.url("account_name", account_name, "str"), "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["api-version"] = _SERIALIZER.query("api_version", api_version, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") return HttpRequest( - method="POST", url=url, params=query_parameters, headers=header_parameters, json=json, content=content, **kwargs + method="POST", + url=_url, + params=_query_parameters, + headers=_header_parameters, + json=json, + content=content, + **kwargs ) @@ -317,22 +335,22 @@ def build_usage_list_request(subscription_id: str, **kwargs: Any) -> HttpRequest accept = "application/json, text/json" # Construct URL - url = "/subscriptions/{subscriptionId}/providers/Microsoft.Storage/usages" + _url = "/subscriptions/{subscriptionId}/providers/Microsoft.Storage/usages" path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["api-version"] = _SERIALIZER.query("api_version", api_version, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) class StorageAccountsOperations(object): diff --git a/test/azure/version-tolerant/Expected/AcceptanceTests/SubscriptionIdApiVersionVersionTolerant/subscriptionidapiversionversiontolerant/operations/_operations.py b/test/azure/version-tolerant/Expected/AcceptanceTests/SubscriptionIdApiVersionVersionTolerant/subscriptionidapiversionversiontolerant/operations/_operations.py index 16a20dd135f..38bd4412700 100644 --- a/test/azure/version-tolerant/Expected/AcceptanceTests/SubscriptionIdApiVersionVersionTolerant/subscriptionidapiversionversiontolerant/operations/_operations.py +++ b/test/azure/version-tolerant/Expected/AcceptanceTests/SubscriptionIdApiVersionVersionTolerant/subscriptionidapiversionversiontolerant/operations/_operations.py @@ -39,23 +39,23 @@ def build_group_get_sample_resource_group_request( accept = "application/json" # Construct URL - url = "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}" + _url = "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}" path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["api-version"] = _SERIALIZER.query("api_version", api_version, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) class GroupOperations(object): diff --git a/test/azure/version-tolerant/coverage/report-azure.json b/test/azure/version-tolerant/coverage/report-azure.json index df047fbdd88..c7f702ca8a4 100644 --- a/test/azure/version-tolerant/coverage/report-azure.json +++ b/test/azure/version-tolerant/coverage/report-azure.json @@ -13,6 +13,8 @@ "CustomHeaderPostSucceeded": 2, "LROPut200InlineCompleteNoState": 2, "LROPatchInlineCompleteIgnoreHeaders": 0, + "LROPatch201WithAsyncHeader": 2, + "LROPatch202WithAsyncAndLocationHeader": 2, "LROPut202Retry200": 2, "LROPutSucceededWithBody": 2, "LROPutSucceededNoBody": 2, diff --git a/test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenInitialLowLevel/llcservicedriveninitiallowlevel/rest/params/_request_builders.py b/test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenInitialLowLevel/llcservicedriveninitiallowlevel/rest/params/_request_builders.py index 91a98fd0e1a..1f6872685c6 100644 --- a/test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenInitialLowLevel/llcservicedriveninitiallowlevel/rest/params/_request_builders.py +++ b/test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenInitialLowLevel/llcservicedriveninitiallowlevel/rest/params/_request_builders.py @@ -39,16 +39,16 @@ def build_head_no_params_request( accept = "application/json" # Construct URL - url = "/serviceDriven/parameters" + _url = "/serviceDriven/parameters" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="HEAD", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -74,21 +74,21 @@ def build_get_required_request( accept = "application/json" # Construct URL - url = "/serviceDriven/parameters" + _url = "/serviceDriven/parameters" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['parameter'] = _SERIALIZER.query("parameter", parameter, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['parameter'] = _SERIALIZER.query("parameter", parameter, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -117,23 +117,23 @@ def build_put_required_optional_request( accept = "application/json" # Construct URL - url = "/serviceDriven/parameters" + _url = "/serviceDriven/parameters" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['requiredParam'] = _SERIALIZER.query("required_param", required_param, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['requiredParam'] = _SERIALIZER.query("required_param", required_param, 'str') if optional_param is not None: - query_parameters['optionalParam'] = _SERIALIZER.query("optional_param", optional_param, 'str') + _query_parameters['optionalParam'] = _SERIALIZER.query("optional_param", optional_param, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -173,18 +173,18 @@ def build_post_parameters_request( accept = "application/json" # Construct URL - url = "/serviceDriven/parameters" + _url = "/serviceDriven/parameters" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -210,21 +210,21 @@ def build_get_optional_request( accept = "application/json" # Construct URL - url = "/serviceDriven/moreParameters" + _url = "/serviceDriven/moreParameters" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if optional_param is not None: - query_parameters['optionalParam'] = _SERIALIZER.query("optional_param", optional_param, 'str') + _query_parameters['optionalParam'] = _SERIALIZER.query("optional_param", optional_param, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) diff --git a/test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenInitialLowLevel/llcservicedriveninitiallowlevel/rest/params/_request_builders_py3.py b/test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenInitialLowLevel/llcservicedriveninitiallowlevel/rest/params/_request_builders_py3.py index 384f89b494d..de42f079c52 100644 --- a/test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenInitialLowLevel/llcservicedriveninitiallowlevel/rest/params/_request_builders_py3.py +++ b/test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenInitialLowLevel/llcservicedriveninitiallowlevel/rest/params/_request_builders_py3.py @@ -31,13 +31,13 @@ def build_head_no_params_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/serviceDriven/parameters" + _url = "/serviceDriven/parameters" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="HEAD", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="HEAD", url=_url, headers=_header_parameters, **kwargs) def build_get_required_request(*, parameter: str, **kwargs: Any) -> HttpRequest: @@ -56,17 +56,17 @@ def build_get_required_request(*, parameter: str, **kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/serviceDriven/parameters" + _url = "/serviceDriven/parameters" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["parameter"] = _SERIALIZER.query("parameter", parameter, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["parameter"] = _SERIALIZER.query("parameter", parameter, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_put_required_optional_request( @@ -89,19 +89,19 @@ def build_put_required_optional_request( accept = "application/json" # Construct URL - url = "/serviceDriven/parameters" + _url = "/serviceDriven/parameters" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["requiredParam"] = _SERIALIZER.query("required_param", required_param, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["requiredParam"] = _SERIALIZER.query("required_param", required_param, "str") if optional_param is not None: - query_parameters["optionalParam"] = _SERIALIZER.query("optional_param", optional_param, "str") + _query_parameters["optionalParam"] = _SERIALIZER.query("optional_param", optional_param, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="PUT", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_post_parameters_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -136,15 +136,15 @@ def build_post_parameters_request(*, json: JSONType = None, content: Any = None, accept = "application/json" # Construct URL - url = "/serviceDriven/parameters" + _url = "/serviceDriven/parameters" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_optional_request(*, optional_param: Optional[str] = None, **kwargs: Any) -> HttpRequest: @@ -163,15 +163,15 @@ def build_get_optional_request(*, optional_param: Optional[str] = None, **kwargs accept = "application/json" # Construct URL - url = "/serviceDriven/moreParameters" + _url = "/serviceDriven/moreParameters" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if optional_param is not None: - query_parameters["optionalParam"] = _SERIALIZER.query("optional_param", optional_param, "str") + _query_parameters["optionalParam"] = _SERIALIZER.query("optional_param", optional_param, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) diff --git a/test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneLowLevel/llcservicedrivenupdateonelowlevel/rest/params/_request_builders.py b/test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneLowLevel/llcservicedrivenupdateonelowlevel/rest/params/_request_builders.py index 9b3193eb36e..872d80cd008 100644 --- a/test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneLowLevel/llcservicedrivenupdateonelowlevel/rest/params/_request_builders.py +++ b/test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneLowLevel/llcservicedrivenupdateonelowlevel/rest/params/_request_builders.py @@ -43,22 +43,22 @@ def build_head_no_params_request( accept = "application/json" # Construct URL - url = "/serviceDriven/parameters" + _url = "/serviceDriven/parameters" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if new_parameter is not None: - query_parameters['new_parameter'] = _SERIALIZER.query("new_parameter", new_parameter, 'str') + _query_parameters['new_parameter'] = _SERIALIZER.query("new_parameter", new_parameter, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="HEAD", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -87,23 +87,23 @@ def build_get_required_request( accept = "application/json" # Construct URL - url = "/serviceDriven/parameters" + _url = "/serviceDriven/parameters" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['parameter'] = _SERIALIZER.query("parameter", parameter, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['parameter'] = _SERIALIZER.query("parameter", parameter, 'str') if new_parameter is not None: - query_parameters['new_parameter'] = _SERIALIZER.query("new_parameter", new_parameter, 'str') + _query_parameters['new_parameter'] = _SERIALIZER.query("new_parameter", new_parameter, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -135,25 +135,25 @@ def build_put_required_optional_request( accept = "application/json" # Construct URL - url = "/serviceDriven/parameters" + _url = "/serviceDriven/parameters" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['requiredParam'] = _SERIALIZER.query("required_param", required_param, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['requiredParam'] = _SERIALIZER.query("required_param", required_param, 'str') if optional_param is not None: - query_parameters['optionalParam'] = _SERIALIZER.query("optional_param", optional_param, 'str') + _query_parameters['optionalParam'] = _SERIALIZER.query("optional_param", optional_param, 'str') if new_parameter is not None: - query_parameters['new_parameter'] = _SERIALIZER.query("new_parameter", new_parameter, 'str') + _query_parameters['new_parameter'] = _SERIALIZER.query("new_parameter", new_parameter, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -193,18 +193,18 @@ def build_post_parameters_request( accept = "application/json" # Construct URL - url = "/serviceDriven/parameters" + _url = "/serviceDriven/parameters" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -225,11 +225,11 @@ def build_delete_parameters_request( """ # Construct URL - url = "/serviceDriven/parameters" + _url = "/serviceDriven/parameters" return HttpRequest( method="DELETE", - url=url, + url=_url, **kwargs ) @@ -258,24 +258,24 @@ def build_get_optional_request( accept = "application/json" # Construct URL - url = "/serviceDriven/moreParameters" + _url = "/serviceDriven/moreParameters" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if optional_param is not None: - query_parameters['optionalParam'] = _SERIALIZER.query("optional_param", optional_param, 'str') + _query_parameters['optionalParam'] = _SERIALIZER.query("optional_param", optional_param, 'str') if new_parameter is not None: - query_parameters['new_parameter'] = _SERIALIZER.query("new_parameter", new_parameter, 'str') + _query_parameters['new_parameter'] = _SERIALIZER.query("new_parameter", new_parameter, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -297,15 +297,15 @@ def build_get_new_operation_request( accept = "application/json" # Construct URL - url = "/serviceDriven/newPath" + _url = "/serviceDriven/newPath" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneLowLevel/llcservicedrivenupdateonelowlevel/rest/params/_request_builders_py3.py b/test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneLowLevel/llcservicedrivenupdateonelowlevel/rest/params/_request_builders_py3.py index 4b6e6f57bfc..fdf52b3ad17 100644 --- a/test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneLowLevel/llcservicedrivenupdateonelowlevel/rest/params/_request_builders_py3.py +++ b/test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneLowLevel/llcservicedrivenupdateonelowlevel/rest/params/_request_builders_py3.py @@ -33,18 +33,18 @@ def build_head_no_params_request(*, new_parameter: Optional[str] = None, **kwarg accept = "application/json" # Construct URL - url = "/serviceDriven/parameters" + _url = "/serviceDriven/parameters" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if new_parameter is not None: - query_parameters["new_parameter"] = _SERIALIZER.query("new_parameter", new_parameter, "str") + _query_parameters["new_parameter"] = _SERIALIZER.query("new_parameter", new_parameter, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="HEAD", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="HEAD", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_get_required_request(*, parameter: str, new_parameter: Optional[str] = None, **kwargs: Any) -> HttpRequest: @@ -65,19 +65,19 @@ def build_get_required_request(*, parameter: str, new_parameter: Optional[str] = accept = "application/json" # Construct URL - url = "/serviceDriven/parameters" + _url = "/serviceDriven/parameters" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["parameter"] = _SERIALIZER.query("parameter", parameter, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["parameter"] = _SERIALIZER.query("parameter", parameter, "str") if new_parameter is not None: - query_parameters["new_parameter"] = _SERIALIZER.query("new_parameter", new_parameter, "str") + _query_parameters["new_parameter"] = _SERIALIZER.query("new_parameter", new_parameter, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_put_required_optional_request( @@ -102,21 +102,21 @@ def build_put_required_optional_request( accept = "application/json" # Construct URL - url = "/serviceDriven/parameters" + _url = "/serviceDriven/parameters" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["requiredParam"] = _SERIALIZER.query("required_param", required_param, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["requiredParam"] = _SERIALIZER.query("required_param", required_param, "str") if optional_param is not None: - query_parameters["optionalParam"] = _SERIALIZER.query("optional_param", optional_param, "str") + _query_parameters["optionalParam"] = _SERIALIZER.query("optional_param", optional_param, "str") if new_parameter is not None: - query_parameters["new_parameter"] = _SERIALIZER.query("new_parameter", new_parameter, "str") + _query_parameters["new_parameter"] = _SERIALIZER.query("new_parameter", new_parameter, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="PUT", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_post_parameters_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -151,15 +151,15 @@ def build_post_parameters_request(*, json: JSONType = None, content: Any = None, accept = "application/json" # Construct URL - url = "/serviceDriven/parameters" + _url = "/serviceDriven/parameters" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_delete_parameters_request(**kwargs: Any) -> HttpRequest: @@ -175,9 +175,9 @@ def build_delete_parameters_request(**kwargs: Any) -> HttpRequest: """ # Construct URL - url = "/serviceDriven/parameters" + _url = "/serviceDriven/parameters" - return HttpRequest(method="DELETE", url=url, **kwargs) + return HttpRequest(method="DELETE", url=_url, **kwargs) def build_get_optional_request( @@ -200,20 +200,20 @@ def build_get_optional_request( accept = "application/json" # Construct URL - url = "/serviceDriven/moreParameters" + _url = "/serviceDriven/moreParameters" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if optional_param is not None: - query_parameters["optionalParam"] = _SERIALIZER.query("optional_param", optional_param, "str") + _query_parameters["optionalParam"] = _SERIALIZER.query("optional_param", optional_param, "str") if new_parameter is not None: - query_parameters["new_parameter"] = _SERIALIZER.query("new_parameter", new_parameter, "str") + _query_parameters["new_parameter"] = _SERIALIZER.query("new_parameter", new_parameter, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_get_new_operation_request(**kwargs: Any) -> HttpRequest: @@ -230,10 +230,10 @@ def build_get_new_operation_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/serviceDriven/newPath" + _url = "/serviceDriven/newPath" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) diff --git a/test/llc/version-tolerant/Expected/AcceptanceTests/LLCServiceDrivenInitialVersionTolerant/llcservicedriveninitialversiontolerant/operations/_operations.py b/test/llc/version-tolerant/Expected/AcceptanceTests/LLCServiceDrivenInitialVersionTolerant/llcservicedriveninitialversiontolerant/operations/_operations.py index 9293ee0a822..ac9b0efd565 100644 --- a/test/llc/version-tolerant/Expected/AcceptanceTests/LLCServiceDrivenInitialVersionTolerant/llcservicedriveninitialversiontolerant/operations/_operations.py +++ b/test/llc/version-tolerant/Expected/AcceptanceTests/LLCServiceDrivenInitialVersionTolerant/llcservicedriveninitialversiontolerant/operations/_operations.py @@ -32,29 +32,29 @@ def build_params_head_no_params_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/serviceDriven/parameters" + _url = "/serviceDriven/parameters" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="HEAD", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="HEAD", url=_url, headers=_header_parameters, **kwargs) def build_params_get_required_request(*, parameter: str, **kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/serviceDriven/parameters" + _url = "/serviceDriven/parameters" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["parameter"] = _SERIALIZER.query("parameter", parameter, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["parameter"] = _SERIALIZER.query("parameter", parameter, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_params_put_required_optional_request( @@ -62,19 +62,19 @@ def build_params_put_required_optional_request( ) -> HttpRequest: accept = "application/json" # Construct URL - url = "/serviceDriven/parameters" + _url = "/serviceDriven/parameters" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["requiredParam"] = _SERIALIZER.query("required_param", required_param, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["requiredParam"] = _SERIALIZER.query("required_param", required_param, "str") if optional_param is not None: - query_parameters["optionalParam"] = _SERIALIZER.query("optional_param", optional_param, "str") + _query_parameters["optionalParam"] = _SERIALIZER.query("optional_param", optional_param, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="PUT", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_params_post_parameters_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -82,32 +82,32 @@ def build_params_post_parameters_request(*, json: JSONType = None, content: Any accept = "application/json" # Construct URL - url = "/serviceDriven/parameters" + _url = "/serviceDriven/parameters" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_params_get_optional_request(*, optional_param: Optional[str] = None, **kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/serviceDriven/moreParameters" + _url = "/serviceDriven/moreParameters" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if optional_param is not None: - query_parameters["optionalParam"] = _SERIALIZER.query("optional_param", optional_param, "str") + _query_parameters["optionalParam"] = _SERIALIZER.query("optional_param", optional_param, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) class ParamsOperations(object): diff --git a/test/llc/version-tolerant/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneVersionTolerant/llcservicedrivenupdateoneversiontolerant/operations/_operations.py b/test/llc/version-tolerant/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneVersionTolerant/llcservicedrivenupdateoneversiontolerant/operations/_operations.py index bcf94495309..0e2da2c03ce 100644 --- a/test/llc/version-tolerant/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneVersionTolerant/llcservicedrivenupdateoneversiontolerant/operations/_operations.py +++ b/test/llc/version-tolerant/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneVersionTolerant/llcservicedrivenupdateoneversiontolerant/operations/_operations.py @@ -32,18 +32,18 @@ def build_params_head_no_params_request(*, new_parameter: Optional[str] = None, **kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/serviceDriven/parameters" + _url = "/serviceDriven/parameters" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if new_parameter is not None: - query_parameters["new_parameter"] = _SERIALIZER.query("new_parameter", new_parameter, "str") + _query_parameters["new_parameter"] = _SERIALIZER.query("new_parameter", new_parameter, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="HEAD", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="HEAD", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_params_get_required_request( @@ -51,19 +51,19 @@ def build_params_get_required_request( ) -> HttpRequest: accept = "application/json" # Construct URL - url = "/serviceDriven/parameters" + _url = "/serviceDriven/parameters" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["parameter"] = _SERIALIZER.query("parameter", parameter, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["parameter"] = _SERIALIZER.query("parameter", parameter, "str") if new_parameter is not None: - query_parameters["new_parameter"] = _SERIALIZER.query("new_parameter", new_parameter, "str") + _query_parameters["new_parameter"] = _SERIALIZER.query("new_parameter", new_parameter, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_params_put_required_optional_request( @@ -71,21 +71,21 @@ def build_params_put_required_optional_request( ) -> HttpRequest: accept = "application/json" # Construct URL - url = "/serviceDriven/parameters" + _url = "/serviceDriven/parameters" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["requiredParam"] = _SERIALIZER.query("required_param", required_param, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["requiredParam"] = _SERIALIZER.query("required_param", required_param, "str") if optional_param is not None: - query_parameters["optionalParam"] = _SERIALIZER.query("optional_param", optional_param, "str") + _query_parameters["optionalParam"] = _SERIALIZER.query("optional_param", optional_param, "str") if new_parameter is not None: - query_parameters["new_parameter"] = _SERIALIZER.query("new_parameter", new_parameter, "str") + _query_parameters["new_parameter"] = _SERIALIZER.query("new_parameter", new_parameter, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="PUT", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_params_post_parameters_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -93,22 +93,22 @@ def build_params_post_parameters_request(*, json: JSONType = None, content: Any accept = "application/json" # Construct URL - url = "/serviceDriven/parameters" + _url = "/serviceDriven/parameters" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_params_delete_parameters_request(**kwargs: Any) -> HttpRequest: # Construct URL - url = "/serviceDriven/parameters" + _url = "/serviceDriven/parameters" - return HttpRequest(method="DELETE", url=url, **kwargs) + return HttpRequest(method="DELETE", url=_url, **kwargs) def build_params_get_optional_request( @@ -116,32 +116,32 @@ def build_params_get_optional_request( ) -> HttpRequest: accept = "application/json" # Construct URL - url = "/serviceDriven/moreParameters" + _url = "/serviceDriven/moreParameters" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if optional_param is not None: - query_parameters["optionalParam"] = _SERIALIZER.query("optional_param", optional_param, "str") + _query_parameters["optionalParam"] = _SERIALIZER.query("optional_param", optional_param, "str") if new_parameter is not None: - query_parameters["new_parameter"] = _SERIALIZER.query("new_parameter", new_parameter, "str") + _query_parameters["new_parameter"] = _SERIALIZER.query("new_parameter", new_parameter, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_params_get_new_operation_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/serviceDriven/newPath" + _url = "/serviceDriven/newPath" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) class ParamsOperations(object): diff --git a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v0/operations/_operation_group_one_operations.py b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v0/operations/_operation_group_one_operations.py index 6d0546223e7..b030c77ebef 100644 --- a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v0/operations/_operation_group_one_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v0/operations/_operation_group_one_operations.py @@ -37,21 +37,21 @@ def build_test_two_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/multiapi/one/testTwoEndpoint") + _url = kwargs.pop("template_url", "/multiapi/one/testTwoEndpoint") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) 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 9fc062d72f0..b081d56ff26 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 @@ -42,24 +42,24 @@ def build_test_one_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/multiapi/testOneEndpoint") + _url = kwargs.pop("template_url", "/multiapi/testOneEndpoint") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['id'] = _SERIALIZER.query("id", id, 'int') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['id'] = _SERIALIZER.query("id", id, 'int') if message is not None: - query_parameters['message'] = _SERIALIZER.query("message", message, 'str') - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters['message'] = _SERIALIZER.query("message", message, 'str') + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -72,18 +72,18 @@ def build_test_lro_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/multiapi/lro") + _url = kwargs.pop("template_url", "/multiapi/lro") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -98,22 +98,22 @@ def build_test_lro_and_paging_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/multiapi/lroAndPaging") + _url = kwargs.pop("template_url", "/multiapi/lroAndPaging") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if client_request_id is not None: - header_parameters['client-request-id'] = _SERIALIZER.header("client_request_id", client_request_id, 'str') + _header_parameters['client-request-id'] = _SERIALIZER.header("client_request_id", client_request_id, 'str') if maxresults is not None: - header_parameters['maxresults'] = _SERIALIZER.header("maxresults", maxresults, 'int') + _header_parameters['maxresults'] = _SERIALIZER.header("maxresults", maxresults, 'int') if timeout is not None: - header_parameters['timeout'] = _SERIALIZER.header("timeout", timeout, 'int') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['timeout'] = _SERIALIZER.header("timeout", timeout, 'int') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -127,22 +127,22 @@ def build_test_different_calls_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/multiapi/testDifferentCalls") + _url = kwargs.pop("template_url", "/multiapi/testDifferentCalls") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['greetingInEnglish'] = _SERIALIZER.header("greeting_in_english", greeting_in_english, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['greetingInEnglish'] = _SERIALIZER.header("greeting_in_english", greeting_in_english, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) 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 196930a3df6..a2125f21b6d 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 @@ -37,21 +37,21 @@ def build_test_two_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/multiapi/one/testTwoEndpoint") + _url = kwargs.pop("template_url", "/multiapi/one/testTwoEndpoint") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) 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 05d0d9d35f4..7ac8427ff53 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 @@ -39,24 +39,24 @@ def build_test_one_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/multiapi/testOneEndpoint") + _url = kwargs.pop("template_url", "/multiapi/testOneEndpoint") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['id'] = _SERIALIZER.query("id", id, 'int') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['id'] = _SERIALIZER.query("id", id, 'int') if message is not None: - query_parameters['message'] = _SERIALIZER.query("message", message, 'str') - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters['message'] = _SERIALIZER.query("message", message, 'str') + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -71,24 +71,24 @@ def build_test_different_calls_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/multiapi/testDifferentCalls") + _url = kwargs.pop("template_url", "/multiapi/testDifferentCalls") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['greetingInEnglish'] = _SERIALIZER.header("greeting_in_english", greeting_in_english, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['greetingInEnglish'] = _SERIALIZER.header("greeting_in_english", greeting_in_english, 'str') if greeting_in_chinese is not None: - header_parameters['greetingInChinese'] = _SERIALIZER.header("greeting_in_chinese", greeting_in_chinese, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['greetingInChinese'] = _SERIALIZER.header("greeting_in_chinese", greeting_in_chinese, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) 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 0a0da98b057..e8bf46f9781 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 @@ -38,23 +38,23 @@ def build_test_two_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/multiapi/one/testTwoEndpoint") + _url = kwargs.pop("template_url", "/multiapi/one/testTwoEndpoint") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -67,21 +67,21 @@ def build_test_three_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/multiapi/one/testThreeEndpoint") + _url = kwargs.pop("template_url", "/multiapi/one/testThreeEndpoint") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) 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 f87bc2b4cbc..4bad84f2d07 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 @@ -38,22 +38,22 @@ def build_test_four_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/multiapi/two/testFourEndpoint") + _url = kwargs.pop("template_url", "/multiapi/two/testFourEndpoint") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['parameterOne'] = _SERIALIZER.query("parameter_one", parameter_one, 'bool') - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['parameterOne'] = _SERIALIZER.query("parameter_one", parameter_one, 'bool') + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) 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 b0d185f88bd..aa9742b5bd6 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 @@ -36,16 +36,16 @@ def build_test_paging_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/multiapi/paging") + _url = kwargs.pop("template_url", "/multiapi/paging") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -61,26 +61,26 @@ def build_test_different_calls_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/multiapi/testDifferentCalls") + _url = kwargs.pop("template_url", "/multiapi/testDifferentCalls") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['greetingInEnglish'] = _SERIALIZER.header("greeting_in_english", greeting_in_english, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['greetingInEnglish'] = _SERIALIZER.header("greeting_in_english", greeting_in_english, 'str') if greeting_in_chinese is not None: - header_parameters['greetingInChinese'] = _SERIALIZER.header("greeting_in_chinese", greeting_in_chinese, 'str') + _header_parameters['greetingInChinese'] = _SERIALIZER.header("greeting_in_chinese", greeting_in_chinese, 'str') if greeting_in_french is not None: - header_parameters['greetingInFrench'] = _SERIALIZER.header("greeting_in_french", greeting_in_french, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['greetingInFrench'] = _SERIALIZER.header("greeting_in_french", greeting_in_french, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) 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 ce033ba00a8..baa6b0b8b48 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 @@ -38,23 +38,23 @@ def build_test_two_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/multiapi/one/testTwoEndpoint") + _url = kwargs.pop("template_url", "/multiapi/one/testTwoEndpoint") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) 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 8fb42a797db..629bd40607c 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 @@ -38,23 +38,23 @@ def build_test_four_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/multiapi/two/testFourEndpoint") + _url = kwargs.pop("template_url", "/multiapi/two/testFourEndpoint") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -67,21 +67,21 @@ def build_test_five_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/multiapi/two/testFiveEndpoint") + _url = kwargs.pop("template_url", "/multiapi/two/testFiveEndpoint") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v1/operations/_multiapi_service_client_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v1/operations/_multiapi_service_client_operations.py index 06701e66d5b..e2591a2a29a 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v1/operations/_multiapi_service_client_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v1/operations/_multiapi_service_client_operations.py @@ -42,24 +42,24 @@ def build_test_one_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/multiapi/testOneEndpoint") + _url = kwargs.pop("template_url", "/multiapi/testOneEndpoint") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['id'] = _SERIALIZER.query("id", id, 'int') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['id'] = _SERIALIZER.query("id", id, 'int') if message is not None: - query_parameters['message'] = _SERIALIZER.query("message", message, 'str') - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters['message'] = _SERIALIZER.query("message", message, 'str') + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -72,18 +72,18 @@ def build_test_lro_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/multiapi/lro") + _url = kwargs.pop("template_url", "/multiapi/lro") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -98,22 +98,22 @@ def build_test_lro_and_paging_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/multiapi/lroAndPaging") + _url = kwargs.pop("template_url", "/multiapi/lroAndPaging") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if client_request_id is not None: - header_parameters['client-request-id'] = _SERIALIZER.header("client_request_id", client_request_id, 'str') + _header_parameters['client-request-id'] = _SERIALIZER.header("client_request_id", client_request_id, 'str') if maxresults is not None: - header_parameters['maxresults'] = _SERIALIZER.header("maxresults", maxresults, 'int') + _header_parameters['maxresults'] = _SERIALIZER.header("maxresults", maxresults, 'int') if timeout is not None: - header_parameters['timeout'] = _SERIALIZER.header("timeout", timeout, 'int') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['timeout'] = _SERIALIZER.header("timeout", timeout, 'int') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -127,22 +127,22 @@ def build_test_different_calls_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/multiapi/testDifferentCalls") + _url = kwargs.pop("template_url", "/multiapi/testDifferentCalls") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['greetingInEnglish'] = _SERIALIZER.header("greeting_in_english", greeting_in_english, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['greetingInEnglish'] = _SERIALIZER.header("greeting_in_english", greeting_in_english, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v1/operations/_operation_group_one_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v1/operations/_operation_group_one_operations.py index 2914fea40e3..cbc01e0cd14 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v1/operations/_operation_group_one_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v1/operations/_operation_group_one_operations.py @@ -37,21 +37,21 @@ def build_test_two_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/multiapi/one/testTwoEndpoint") + _url = kwargs.pop("template_url", "/multiapi/one/testTwoEndpoint") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/operations/_multiapi_service_client_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/operations/_multiapi_service_client_operations.py index fef3a0ba9ef..b1d58239d09 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/operations/_multiapi_service_client_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/operations/_multiapi_service_client_operations.py @@ -39,24 +39,24 @@ def build_test_one_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/multiapi/testOneEndpoint") + _url = kwargs.pop("template_url", "/multiapi/testOneEndpoint") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['id'] = _SERIALIZER.query("id", id, 'int') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['id'] = _SERIALIZER.query("id", id, 'int') if message is not None: - query_parameters['message'] = _SERIALIZER.query("message", message, 'str') - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters['message'] = _SERIALIZER.query("message", message, 'str') + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -71,24 +71,24 @@ def build_test_different_calls_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/multiapi/testDifferentCalls") + _url = kwargs.pop("template_url", "/multiapi/testDifferentCalls") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['greetingInEnglish'] = _SERIALIZER.header("greeting_in_english", greeting_in_english, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['greetingInEnglish'] = _SERIALIZER.header("greeting_in_english", greeting_in_english, 'str') if greeting_in_chinese is not None: - header_parameters['greetingInChinese'] = _SERIALIZER.header("greeting_in_chinese", greeting_in_chinese, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['greetingInChinese'] = _SERIALIZER.header("greeting_in_chinese", greeting_in_chinese, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/operations/_operation_group_one_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/operations/_operation_group_one_operations.py index 4d8e8be338b..0e83b2e5638 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/operations/_operation_group_one_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/operations/_operation_group_one_operations.py @@ -38,23 +38,23 @@ def build_test_two_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/multiapi/one/testTwoEndpoint") + _url = kwargs.pop("template_url", "/multiapi/one/testTwoEndpoint") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -67,21 +67,21 @@ def build_test_three_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/multiapi/one/testThreeEndpoint") + _url = kwargs.pop("template_url", "/multiapi/one/testThreeEndpoint") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/operations/_operation_group_two_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/operations/_operation_group_two_operations.py index cb4e8259d1c..9174a5a192e 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/operations/_operation_group_two_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/operations/_operation_group_two_operations.py @@ -38,22 +38,22 @@ def build_test_four_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/multiapi/two/testFourEndpoint") + _url = kwargs.pop("template_url", "/multiapi/two/testFourEndpoint") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['parameterOne'] = _SERIALIZER.query("parameter_one", parameter_one, 'bool') - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['parameterOne'] = _SERIALIZER.query("parameter_one", parameter_one, 'bool') + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/operations/_multiapi_service_client_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/operations/_multiapi_service_client_operations.py index f171ac38d75..932caf1e307 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/operations/_multiapi_service_client_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/operations/_multiapi_service_client_operations.py @@ -36,16 +36,16 @@ def build_test_paging_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/multiapi/paging") + _url = kwargs.pop("template_url", "/multiapi/paging") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -61,26 +61,26 @@ def build_test_different_calls_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/multiapi/testDifferentCalls") + _url = kwargs.pop("template_url", "/multiapi/testDifferentCalls") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['greetingInEnglish'] = _SERIALIZER.header("greeting_in_english", greeting_in_english, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['greetingInEnglish'] = _SERIALIZER.header("greeting_in_english", greeting_in_english, 'str') if greeting_in_chinese is not None: - header_parameters['greetingInChinese'] = _SERIALIZER.header("greeting_in_chinese", greeting_in_chinese, 'str') + _header_parameters['greetingInChinese'] = _SERIALIZER.header("greeting_in_chinese", greeting_in_chinese, 'str') if greeting_in_french is not None: - header_parameters['greetingInFrench'] = _SERIALIZER.header("greeting_in_french", greeting_in_french, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['greetingInFrench'] = _SERIALIZER.header("greeting_in_french", greeting_in_french, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/operations/_operation_group_one_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/operations/_operation_group_one_operations.py index 176ebc85b37..a4fe1b28b7d 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/operations/_operation_group_one_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/operations/_operation_group_one_operations.py @@ -38,23 +38,23 @@ def build_test_two_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/multiapi/one/testTwoEndpoint") + _url = kwargs.pop("template_url", "/multiapi/one/testTwoEndpoint") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/operations/_operation_group_two_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/operations/_operation_group_two_operations.py index 459a3c7a00a..c8723f45650 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/operations/_operation_group_two_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/operations/_operation_group_two_operations.py @@ -38,23 +38,23 @@ def build_test_four_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/multiapi/two/testFourEndpoint") + _url = kwargs.pop("template_url", "/multiapi/two/testFourEndpoint") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -67,21 +67,21 @@ def build_test_five_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/multiapi/two/testFiveEndpoint") + _url = kwargs.pop("template_url", "/multiapi/two/testFiveEndpoint") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v1/operations/_multiapi_custom_base_url_service_client_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v1/operations/_multiapi_custom_base_url_service_client_operations.py index 933c156e7af..2c214239225 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v1/operations/_multiapi_custom_base_url_service_client_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v1/operations/_multiapi_custom_base_url_service_client_operations.py @@ -37,22 +37,22 @@ def build_test_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/test") + _url = kwargs.pop("template_url", "/test") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['id'] = _SERIALIZER.query("id", id, 'int') - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['id'] = _SERIALIZER.query("id", id, 'int') + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v2/operations/_multiapi_custom_base_url_service_client_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v2/operations/_multiapi_custom_base_url_service_client_operations.py index d15c3a9fef0..e9a665e5808 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v2/operations/_multiapi_custom_base_url_service_client_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v2/operations/_multiapi_custom_base_url_service_client_operations.py @@ -37,22 +37,22 @@ def build_test_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/test") + _url = kwargs.pop("template_url", "/test") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['id'] = _SERIALIZER.query("id", id, 'int') - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['id'] = _SERIALIZER.query("id", id, 'int') + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v1/operations/_multiapi_service_client_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v1/operations/_multiapi_service_client_operations.py index 0d27807abd6..216613e6efc 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v1/operations/_multiapi_service_client_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v1/operations/_multiapi_service_client_operations.py @@ -41,24 +41,24 @@ def build_test_one_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/multiapi/testOneEndpoint") + _url = kwargs.pop("template_url", "/multiapi/testOneEndpoint") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['id'] = _SERIALIZER.query("id", id, 'int') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['id'] = _SERIALIZER.query("id", id, 'int') if message is not None: - query_parameters['message'] = _SERIALIZER.query("message", message, 'str') - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters['message'] = _SERIALIZER.query("message", message, 'str') + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -71,18 +71,18 @@ def build_test_lro_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/multiapi/lro") + _url = kwargs.pop("template_url", "/multiapi/lro") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -97,22 +97,22 @@ def build_test_lro_and_paging_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/multiapi/lroAndPaging") + _url = kwargs.pop("template_url", "/multiapi/lroAndPaging") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if client_request_id is not None: - header_parameters['client-request-id'] = _SERIALIZER.header("client_request_id", client_request_id, 'str') + _header_parameters['client-request-id'] = _SERIALIZER.header("client_request_id", client_request_id, 'str') if maxresults is not None: - header_parameters['maxresults'] = _SERIALIZER.header("maxresults", maxresults, 'int') + _header_parameters['maxresults'] = _SERIALIZER.header("maxresults", maxresults, 'int') if timeout is not None: - header_parameters['timeout'] = _SERIALIZER.header("timeout", timeout, 'int') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['timeout'] = _SERIALIZER.header("timeout", timeout, 'int') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -126,22 +126,22 @@ def build_test_different_calls_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/multiapi/testDifferentCalls") + _url = kwargs.pop("template_url", "/multiapi/testDifferentCalls") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['greetingInEnglish'] = _SERIALIZER.header("greeting_in_english", greeting_in_english, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['greetingInEnglish'] = _SERIALIZER.header("greeting_in_english", greeting_in_english, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v1/operations/_operation_group_one_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v1/operations/_operation_group_one_operations.py index e5151e68a79..fe1b2087103 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v1/operations/_operation_group_one_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v1/operations/_operation_group_one_operations.py @@ -36,21 +36,21 @@ def build_test_two_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/multiapi/one/testTwoEndpoint") + _url = kwargs.pop("template_url", "/multiapi/one/testTwoEndpoint") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/operations/_multiapi_service_client_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/operations/_multiapi_service_client_operations.py index e4508fbda72..a5a95150741 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/operations/_multiapi_service_client_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/operations/_multiapi_service_client_operations.py @@ -38,24 +38,24 @@ def build_test_one_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/multiapi/testOneEndpoint") + _url = kwargs.pop("template_url", "/multiapi/testOneEndpoint") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['id'] = _SERIALIZER.query("id", id, 'int') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['id'] = _SERIALIZER.query("id", id, 'int') if message is not None: - query_parameters['message'] = _SERIALIZER.query("message", message, 'str') - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters['message'] = _SERIALIZER.query("message", message, 'str') + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -70,24 +70,24 @@ def build_test_different_calls_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/multiapi/testDifferentCalls") + _url = kwargs.pop("template_url", "/multiapi/testDifferentCalls") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['greetingInEnglish'] = _SERIALIZER.header("greeting_in_english", greeting_in_english, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['greetingInEnglish'] = _SERIALIZER.header("greeting_in_english", greeting_in_english, 'str') if greeting_in_chinese is not None: - header_parameters['greetingInChinese'] = _SERIALIZER.header("greeting_in_chinese", greeting_in_chinese, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['greetingInChinese'] = _SERIALIZER.header("greeting_in_chinese", greeting_in_chinese, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/operations/_operation_group_one_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/operations/_operation_group_one_operations.py index 24ff182c38f..b32e7178040 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/operations/_operation_group_one_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/operations/_operation_group_one_operations.py @@ -37,23 +37,23 @@ def build_test_two_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/multiapi/one/testTwoEndpoint") + _url = kwargs.pop("template_url", "/multiapi/one/testTwoEndpoint") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -66,21 +66,21 @@ def build_test_three_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/multiapi/one/testThreeEndpoint") + _url = kwargs.pop("template_url", "/multiapi/one/testThreeEndpoint") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/operations/_operation_group_two_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/operations/_operation_group_two_operations.py index 7d75339062b..9f3e089bb2f 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/operations/_operation_group_two_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/operations/_operation_group_two_operations.py @@ -37,22 +37,22 @@ def build_test_four_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/multiapi/two/testFourEndpoint") + _url = kwargs.pop("template_url", "/multiapi/two/testFourEndpoint") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['parameterOne'] = _SERIALIZER.query("parameter_one", parameter_one, 'bool') - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['parameterOne'] = _SERIALIZER.query("parameter_one", parameter_one, 'bool') + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/operations/_multiapi_service_client_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/operations/_multiapi_service_client_operations.py index 2487d3d9874..c9bd4792b4a 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/operations/_multiapi_service_client_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/operations/_multiapi_service_client_operations.py @@ -35,16 +35,16 @@ def build_test_paging_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/multiapi/paging") + _url = kwargs.pop("template_url", "/multiapi/paging") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -60,26 +60,26 @@ def build_test_different_calls_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/multiapi/testDifferentCalls") + _url = kwargs.pop("template_url", "/multiapi/testDifferentCalls") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['greetingInEnglish'] = _SERIALIZER.header("greeting_in_english", greeting_in_english, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['greetingInEnglish'] = _SERIALIZER.header("greeting_in_english", greeting_in_english, 'str') if greeting_in_chinese is not None: - header_parameters['greetingInChinese'] = _SERIALIZER.header("greeting_in_chinese", greeting_in_chinese, 'str') + _header_parameters['greetingInChinese'] = _SERIALIZER.header("greeting_in_chinese", greeting_in_chinese, 'str') if greeting_in_french is not None: - header_parameters['greetingInFrench'] = _SERIALIZER.header("greeting_in_french", greeting_in_french, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['greetingInFrench'] = _SERIALIZER.header("greeting_in_french", greeting_in_french, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/operations/_operation_group_one_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/operations/_operation_group_one_operations.py index fe18f9205de..a88790066de 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/operations/_operation_group_one_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/operations/_operation_group_one_operations.py @@ -37,23 +37,23 @@ def build_test_two_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/multiapi/one/testTwoEndpoint") + _url = kwargs.pop("template_url", "/multiapi/one/testTwoEndpoint") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/operations/_operation_group_two_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/operations/_operation_group_two_operations.py index 839ca6650cd..f5d121f16ed 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/operations/_operation_group_two_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/operations/_operation_group_two_operations.py @@ -37,23 +37,23 @@ def build_test_four_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/multiapi/two/testFourEndpoint") + _url = kwargs.pop("template_url", "/multiapi/two/testFourEndpoint") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -66,21 +66,21 @@ def build_test_five_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/multiapi/two/testFiveEndpoint") + _url = kwargs.pop("template_url", "/multiapi/two/testFiveEndpoint") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) 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 39362337b5f..0e1b08a5f1d 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 @@ -42,24 +42,24 @@ def build_test_one_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/multiapi/testOneEndpoint") + _url = kwargs.pop("template_url", "/multiapi/testOneEndpoint") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['id'] = _SERIALIZER.query("id", id, 'int') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['id'] = _SERIALIZER.query("id", id, 'int') if message is not None: - query_parameters['message'] = _SERIALIZER.query("message", message, 'str') - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters['message'] = _SERIALIZER.query("message", message, 'str') + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -72,18 +72,18 @@ def build_test_lro_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/multiapi/lro") + _url = kwargs.pop("template_url", "/multiapi/lro") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -98,22 +98,22 @@ def build_test_lro_and_paging_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/multiapi/lroAndPaging") + _url = kwargs.pop("template_url", "/multiapi/lroAndPaging") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if client_request_id is not None: - header_parameters['client-request-id'] = _SERIALIZER.header("client_request_id", client_request_id, 'str') + _header_parameters['client-request-id'] = _SERIALIZER.header("client_request_id", client_request_id, 'str') if maxresults is not None: - header_parameters['maxresults'] = _SERIALIZER.header("maxresults", maxresults, 'int') + _header_parameters['maxresults'] = _SERIALIZER.header("maxresults", maxresults, 'int') if timeout is not None: - header_parameters['timeout'] = _SERIALIZER.header("timeout", timeout, 'int') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['timeout'] = _SERIALIZER.header("timeout", timeout, 'int') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -127,22 +127,22 @@ def build_test_different_calls_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/multiapi/testDifferentCalls") + _url = kwargs.pop("template_url", "/multiapi/testDifferentCalls") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['greetingInEnglish'] = _SERIALIZER.header("greeting_in_english", greeting_in_english, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['greetingInEnglish'] = _SERIALIZER.header("greeting_in_english", greeting_in_english, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) 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 c97dca6dff8..871d0501dfe 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 @@ -37,21 +37,21 @@ def build_test_two_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/multiapi/one/testTwoEndpoint") + _url = kwargs.pop("template_url", "/multiapi/one/testTwoEndpoint") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) 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 6af9854a211..49376de1c62 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 @@ -39,24 +39,24 @@ def build_test_one_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/multiapi/testOneEndpoint") + _url = kwargs.pop("template_url", "/multiapi/testOneEndpoint") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['id'] = _SERIALIZER.query("id", id, 'int') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['id'] = _SERIALIZER.query("id", id, 'int') if message is not None: - query_parameters['message'] = _SERIALIZER.query("message", message, 'str') - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters['message'] = _SERIALIZER.query("message", message, 'str') + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -71,24 +71,24 @@ def build_test_different_calls_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/multiapi/testDifferentCalls") + _url = kwargs.pop("template_url", "/multiapi/testDifferentCalls") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['greetingInEnglish'] = _SERIALIZER.header("greeting_in_english", greeting_in_english, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['greetingInEnglish'] = _SERIALIZER.header("greeting_in_english", greeting_in_english, 'str') if greeting_in_chinese is not None: - header_parameters['greetingInChinese'] = _SERIALIZER.header("greeting_in_chinese", greeting_in_chinese, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['greetingInChinese'] = _SERIALIZER.header("greeting_in_chinese", greeting_in_chinese, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) 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 d8df233b1c6..8cf92a53c76 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 @@ -38,23 +38,23 @@ def build_test_two_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/multiapi/one/testTwoEndpoint") + _url = kwargs.pop("template_url", "/multiapi/one/testTwoEndpoint") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -67,21 +67,21 @@ def build_test_three_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/multiapi/one/testThreeEndpoint") + _url = kwargs.pop("template_url", "/multiapi/one/testThreeEndpoint") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) 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 5743852f994..934b94a2bd8 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 @@ -38,22 +38,22 @@ def build_test_four_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/multiapi/two/testFourEndpoint") + _url = kwargs.pop("template_url", "/multiapi/two/testFourEndpoint") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['parameterOne'] = _SERIALIZER.query("parameter_one", parameter_one, 'bool') - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['parameterOne'] = _SERIALIZER.query("parameter_one", parameter_one, 'bool') + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) 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 c150139c4fb..f7efe6a7c49 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 @@ -36,16 +36,16 @@ def build_test_paging_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/multiapi/paging") + _url = kwargs.pop("template_url", "/multiapi/paging") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -61,26 +61,26 @@ def build_test_different_calls_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/multiapi/testDifferentCalls") + _url = kwargs.pop("template_url", "/multiapi/testDifferentCalls") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['greetingInEnglish'] = _SERIALIZER.header("greeting_in_english", greeting_in_english, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['greetingInEnglish'] = _SERIALIZER.header("greeting_in_english", greeting_in_english, 'str') if greeting_in_chinese is not None: - header_parameters['greetingInChinese'] = _SERIALIZER.header("greeting_in_chinese", greeting_in_chinese, 'str') + _header_parameters['greetingInChinese'] = _SERIALIZER.header("greeting_in_chinese", greeting_in_chinese, 'str') if greeting_in_french is not None: - header_parameters['greetingInFrench'] = _SERIALIZER.header("greeting_in_french", greeting_in_french, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['greetingInFrench'] = _SERIALIZER.header("greeting_in_french", greeting_in_french, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) 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 fb15c6bf2a7..71edeb1837b 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 @@ -38,23 +38,23 @@ def build_test_two_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/multiapi/one/testTwoEndpoint") + _url = kwargs.pop("template_url", "/multiapi/one/testTwoEndpoint") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) 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 cc11f5f846d..bcbeaaf603a 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 @@ -38,23 +38,23 @@ def build_test_four_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/multiapi/two/testFourEndpoint") + _url = kwargs.pop("template_url", "/multiapi/two/testFourEndpoint") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -67,21 +67,21 @@ def build_test_five_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/multiapi/two/testFiveEndpoint") + _url = kwargs.pop("template_url", "/multiapi/two/testFiveEndpoint") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) 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 33119f42aaa..a67be671844 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 @@ -42,24 +42,24 @@ def build_test_one_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/multiapi/testOneEndpoint") + _url = kwargs.pop("template_url", "/multiapi/testOneEndpoint") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['id'] = _SERIALIZER.query("id", id, 'int') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['id'] = _SERIALIZER.query("id", id, 'int') if message is not None: - query_parameters['message'] = _SERIALIZER.query("message", message, 'str') - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters['message'] = _SERIALIZER.query("message", message, 'str') + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -72,18 +72,18 @@ def build_test_lro_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/multiapi/lro") + _url = kwargs.pop("template_url", "/multiapi/lro") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -98,22 +98,22 @@ def build_test_lro_and_paging_request_initial( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/multiapi/lroAndPaging") + _url = kwargs.pop("template_url", "/multiapi/lroAndPaging") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if client_request_id is not None: - header_parameters['client-request-id'] = _SERIALIZER.header("client_request_id", client_request_id, 'str') + _header_parameters['client-request-id'] = _SERIALIZER.header("client_request_id", client_request_id, 'str') if maxresults is not None: - header_parameters['maxresults'] = _SERIALIZER.header("maxresults", maxresults, 'int') + _header_parameters['maxresults'] = _SERIALIZER.header("maxresults", maxresults, 'int') if timeout is not None: - header_parameters['timeout'] = _SERIALIZER.header("timeout", timeout, 'int') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['timeout'] = _SERIALIZER.header("timeout", timeout, 'int') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -127,22 +127,22 @@ def build_test_different_calls_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/multiapi/testDifferentCalls") + _url = kwargs.pop("template_url", "/multiapi/testDifferentCalls") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['greetingInEnglish'] = _SERIALIZER.header("greeting_in_english", greeting_in_english, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['greetingInEnglish'] = _SERIALIZER.header("greeting_in_english", greeting_in_english, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) 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 1199bd2138f..bd9364ea20d 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 @@ -37,21 +37,21 @@ def build_test_two_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/multiapi/one/testTwoEndpoint") + _url = kwargs.pop("template_url", "/multiapi/one/testTwoEndpoint") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) 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 f8dd102093d..76aac3158fc 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 @@ -39,24 +39,24 @@ def build_test_one_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/multiapi/testOneEndpoint") + _url = kwargs.pop("template_url", "/multiapi/testOneEndpoint") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['id'] = _SERIALIZER.query("id", id, 'int') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['id'] = _SERIALIZER.query("id", id, 'int') if message is not None: - query_parameters['message'] = _SERIALIZER.query("message", message, 'str') - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters['message'] = _SERIALIZER.query("message", message, 'str') + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -71,24 +71,24 @@ def build_test_different_calls_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/multiapi/testDifferentCalls") + _url = kwargs.pop("template_url", "/multiapi/testDifferentCalls") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['greetingInEnglish'] = _SERIALIZER.header("greeting_in_english", greeting_in_english, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['greetingInEnglish'] = _SERIALIZER.header("greeting_in_english", greeting_in_english, 'str') if greeting_in_chinese is not None: - header_parameters['greetingInChinese'] = _SERIALIZER.header("greeting_in_chinese", greeting_in_chinese, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['greetingInChinese'] = _SERIALIZER.header("greeting_in_chinese", greeting_in_chinese, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) 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 ab84cd0eef5..863cb194bf3 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 @@ -38,23 +38,23 @@ def build_test_two_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/multiapi/one/testTwoEndpoint") + _url = kwargs.pop("template_url", "/multiapi/one/testTwoEndpoint") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -67,21 +67,21 @@ def build_test_three_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/multiapi/one/testThreeEndpoint") + _url = kwargs.pop("template_url", "/multiapi/one/testThreeEndpoint") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) 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 00e1593a7d8..4c5b4dde2c3 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 @@ -38,22 +38,22 @@ def build_test_four_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/multiapi/two/testFourEndpoint") + _url = kwargs.pop("template_url", "/multiapi/two/testFourEndpoint") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['parameterOne'] = _SERIALIZER.query("parameter_one", parameter_one, 'bool') - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['parameterOne'] = _SERIALIZER.query("parameter_one", parameter_one, 'bool') + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) 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 ea178b590c9..cdb4092e76f 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 @@ -36,16 +36,16 @@ def build_test_paging_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/multiapi/paging") + _url = kwargs.pop("template_url", "/multiapi/paging") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -61,26 +61,26 @@ def build_test_different_calls_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/multiapi/testDifferentCalls") + _url = kwargs.pop("template_url", "/multiapi/testDifferentCalls") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['greetingInEnglish'] = _SERIALIZER.header("greeting_in_english", greeting_in_english, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['greetingInEnglish'] = _SERIALIZER.header("greeting_in_english", greeting_in_english, 'str') if greeting_in_chinese is not None: - header_parameters['greetingInChinese'] = _SERIALIZER.header("greeting_in_chinese", greeting_in_chinese, 'str') + _header_parameters['greetingInChinese'] = _SERIALIZER.header("greeting_in_chinese", greeting_in_chinese, 'str') if greeting_in_french is not None: - header_parameters['greetingInFrench'] = _SERIALIZER.header("greeting_in_french", greeting_in_french, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['greetingInFrench'] = _SERIALIZER.header("greeting_in_french", greeting_in_french, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) 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 f7c85bb3389..2e639ec32db 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 @@ -38,23 +38,23 @@ def build_test_two_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/multiapi/one/testTwoEndpoint") + _url = kwargs.pop("template_url", "/multiapi/one/testTwoEndpoint") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) 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 ab8e8d58d22..cfb112d190d 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 @@ -38,23 +38,23 @@ def build_test_four_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/multiapi/two/testFourEndpoint") + _url = kwargs.pop("template_url", "/multiapi/two/testFourEndpoint") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -67,21 +67,21 @@ def build_test_five_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/multiapi/two/testFiveEndpoint") + _url = kwargs.pop("template_url", "/multiapi/two/testFiveEndpoint") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/AdditionalProperties/additionalproperties/operations/_pets_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/AdditionalProperties/additionalproperties/operations/_pets_operations.py index d6786c27561..864bf98c80a 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/AdditionalProperties/additionalproperties/operations/_pets_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/AdditionalProperties/additionalproperties/operations/_pets_operations.py @@ -43,18 +43,18 @@ def build_create_ap_true_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/additionalProperties/true") + _url = kwargs.pop("template_url", "/additionalProperties/true") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -67,18 +67,18 @@ def build_create_cat_ap_true_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/additionalProperties/true-subclass") + _url = kwargs.pop("template_url", "/additionalProperties/true-subclass") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -91,18 +91,18 @@ def build_create_ap_object_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/additionalProperties/type/object") + _url = kwargs.pop("template_url", "/additionalProperties/type/object") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -115,18 +115,18 @@ def build_create_ap_string_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/additionalProperties/type/string") + _url = kwargs.pop("template_url", "/additionalProperties/type/string") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -139,18 +139,18 @@ def build_create_ap_in_properties_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/additionalProperties/in/properties") + _url = kwargs.pop("template_url", "/additionalProperties/in/properties") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -163,18 +163,18 @@ def build_create_ap_in_properties_with_ap_string_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/additionalProperties/in/properties/with/additionalProperties/string") + _url = kwargs.pop("template_url", "/additionalProperties/in/properties/with/additionalProperties/string") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/Anything/anything/operations/_anything_client_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/Anything/anything/operations/_anything_client_operations.py index fc81e891ded..4709ce196ae 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/Anything/anything/operations/_anything_client_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/Anything/anything/operations/_anything_client_operations.py @@ -40,16 +40,16 @@ def build_get_object_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/anything/object") + _url = kwargs.pop("template_url", "/anything/object") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -61,17 +61,17 @@ def build_put_object_request( content_type = kwargs.pop('content_type', None) # type: Optional[str] # Construct URL - url = kwargs.pop("template_url", "/anything/object") + _url = kwargs.pop("template_url", "/anything/object") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -82,16 +82,16 @@ def build_get_string_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/anything/string") + _url = kwargs.pop("template_url", "/anything/string") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -103,17 +103,17 @@ def build_put_string_request( content_type = kwargs.pop('content_type', None) # type: Optional[str] # Construct URL - url = kwargs.pop("template_url", "/anything/string") + _url = kwargs.pop("template_url", "/anything/string") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -124,16 +124,16 @@ def build_get_array_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/anything/array") + _url = kwargs.pop("template_url", "/anything/array") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -145,17 +145,17 @@ def build_put_array_request( content_type = kwargs.pop('content_type', None) # type: Optional[str] # Construct URL - url = kwargs.pop("template_url", "/anything/array") + _url = kwargs.pop("template_url", "/anything/array") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyArray/bodyarray/operations/_array_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyArray/bodyarray/operations/_array_operations.py index 259d62f407f..329406c3862 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyArray/bodyarray/operations/_array_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyArray/bodyarray/operations/_array_operations.py @@ -42,16 +42,16 @@ def build_get_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/null") + _url = kwargs.pop("template_url", "/array/null") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -62,16 +62,16 @@ def build_get_invalid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/invalid") + _url = kwargs.pop("template_url", "/array/invalid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -82,16 +82,16 @@ def build_get_empty_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/empty") + _url = kwargs.pop("template_url", "/array/empty") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -104,18 +104,18 @@ def build_put_empty_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/empty") + _url = kwargs.pop("template_url", "/array/empty") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -126,16 +126,16 @@ def build_get_boolean_tfft_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/boolean/tfft") + _url = kwargs.pop("template_url", "/array/prim/boolean/tfft") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -148,18 +148,18 @@ def build_put_boolean_tfft_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/boolean/tfft") + _url = kwargs.pop("template_url", "/array/prim/boolean/tfft") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -170,16 +170,16 @@ def build_get_boolean_invalid_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/boolean/true.null.false") + _url = kwargs.pop("template_url", "/array/prim/boolean/true.null.false") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -190,16 +190,16 @@ def build_get_boolean_invalid_string_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/boolean/true.boolean.false") + _url = kwargs.pop("template_url", "/array/prim/boolean/true.boolean.false") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -210,16 +210,16 @@ def build_get_integer_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/integer/1.-1.3.300") + _url = kwargs.pop("template_url", "/array/prim/integer/1.-1.3.300") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -232,18 +232,18 @@ def build_put_integer_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/integer/1.-1.3.300") + _url = kwargs.pop("template_url", "/array/prim/integer/1.-1.3.300") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -254,16 +254,16 @@ def build_get_int_invalid_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/integer/1.null.zero") + _url = kwargs.pop("template_url", "/array/prim/integer/1.null.zero") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -274,16 +274,16 @@ def build_get_int_invalid_string_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/integer/1.integer.0") + _url = kwargs.pop("template_url", "/array/prim/integer/1.integer.0") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -294,16 +294,16 @@ def build_get_long_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/long/1.-1.3.300") + _url = kwargs.pop("template_url", "/array/prim/long/1.-1.3.300") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -316,18 +316,18 @@ def build_put_long_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/long/1.-1.3.300") + _url = kwargs.pop("template_url", "/array/prim/long/1.-1.3.300") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -338,16 +338,16 @@ def build_get_long_invalid_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/long/1.null.zero") + _url = kwargs.pop("template_url", "/array/prim/long/1.null.zero") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -358,16 +358,16 @@ def build_get_long_invalid_string_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/long/1.integer.0") + _url = kwargs.pop("template_url", "/array/prim/long/1.integer.0") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -378,16 +378,16 @@ def build_get_float_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/float/0--0.01-1.2e20") + _url = kwargs.pop("template_url", "/array/prim/float/0--0.01-1.2e20") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -400,18 +400,18 @@ def build_put_float_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/float/0--0.01-1.2e20") + _url = kwargs.pop("template_url", "/array/prim/float/0--0.01-1.2e20") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -422,16 +422,16 @@ def build_get_float_invalid_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/float/0.0-null-1.2e20") + _url = kwargs.pop("template_url", "/array/prim/float/0.0-null-1.2e20") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -442,16 +442,16 @@ def build_get_float_invalid_string_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/float/1.number.0") + _url = kwargs.pop("template_url", "/array/prim/float/1.number.0") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -462,16 +462,16 @@ def build_get_double_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/double/0--0.01-1.2e20") + _url = kwargs.pop("template_url", "/array/prim/double/0--0.01-1.2e20") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -484,18 +484,18 @@ def build_put_double_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/double/0--0.01-1.2e20") + _url = kwargs.pop("template_url", "/array/prim/double/0--0.01-1.2e20") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -506,16 +506,16 @@ def build_get_double_invalid_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/double/0.0-null-1.2e20") + _url = kwargs.pop("template_url", "/array/prim/double/0.0-null-1.2e20") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -526,16 +526,16 @@ def build_get_double_invalid_string_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/double/1.number.0") + _url = kwargs.pop("template_url", "/array/prim/double/1.number.0") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -546,16 +546,16 @@ def build_get_string_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/string/foo1.foo2.foo3") + _url = kwargs.pop("template_url", "/array/prim/string/foo1.foo2.foo3") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -568,18 +568,18 @@ def build_put_string_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/string/foo1.foo2.foo3") + _url = kwargs.pop("template_url", "/array/prim/string/foo1.foo2.foo3") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -590,16 +590,16 @@ def build_get_enum_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/enum/foo1.foo2.foo3") + _url = kwargs.pop("template_url", "/array/prim/enum/foo1.foo2.foo3") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -612,18 +612,18 @@ def build_put_enum_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/enum/foo1.foo2.foo3") + _url = kwargs.pop("template_url", "/array/prim/enum/foo1.foo2.foo3") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -634,16 +634,16 @@ def build_get_string_enum_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/string-enum/foo1.foo2.foo3") + _url = kwargs.pop("template_url", "/array/prim/string-enum/foo1.foo2.foo3") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -656,18 +656,18 @@ def build_put_string_enum_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/string-enum/foo1.foo2.foo3") + _url = kwargs.pop("template_url", "/array/prim/string-enum/foo1.foo2.foo3") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -678,16 +678,16 @@ def build_get_string_with_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/string/foo.null.foo2") + _url = kwargs.pop("template_url", "/array/prim/string/foo.null.foo2") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -698,16 +698,16 @@ def build_get_string_with_invalid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/string/foo.123.foo2") + _url = kwargs.pop("template_url", "/array/prim/string/foo.123.foo2") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -718,16 +718,16 @@ def build_get_uuid_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/uuid/valid") + _url = kwargs.pop("template_url", "/array/prim/uuid/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -740,18 +740,18 @@ def build_put_uuid_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/uuid/valid") + _url = kwargs.pop("template_url", "/array/prim/uuid/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -762,16 +762,16 @@ def build_get_uuid_invalid_chars_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/uuid/invalidchars") + _url = kwargs.pop("template_url", "/array/prim/uuid/invalidchars") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -782,16 +782,16 @@ def build_get_date_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/date/valid") + _url = kwargs.pop("template_url", "/array/prim/date/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -804,18 +804,18 @@ def build_put_date_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/date/valid") + _url = kwargs.pop("template_url", "/array/prim/date/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -826,16 +826,16 @@ def build_get_date_invalid_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/date/invalidnull") + _url = kwargs.pop("template_url", "/array/prim/date/invalidnull") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -846,16 +846,16 @@ def build_get_date_invalid_chars_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/date/invalidchars") + _url = kwargs.pop("template_url", "/array/prim/date/invalidchars") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -866,16 +866,16 @@ def build_get_date_time_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/date-time/valid") + _url = kwargs.pop("template_url", "/array/prim/date-time/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -888,18 +888,18 @@ def build_put_date_time_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/date-time/valid") + _url = kwargs.pop("template_url", "/array/prim/date-time/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -910,16 +910,16 @@ def build_get_date_time_invalid_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/date-time/invalidnull") + _url = kwargs.pop("template_url", "/array/prim/date-time/invalidnull") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -930,16 +930,16 @@ def build_get_date_time_invalid_chars_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/date-time/invalidchars") + _url = kwargs.pop("template_url", "/array/prim/date-time/invalidchars") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -950,16 +950,16 @@ def build_get_date_time_rfc1123_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/date-time-rfc1123/valid") + _url = kwargs.pop("template_url", "/array/prim/date-time-rfc1123/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -972,18 +972,18 @@ def build_put_date_time_rfc1123_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/date-time-rfc1123/valid") + _url = kwargs.pop("template_url", "/array/prim/date-time-rfc1123/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -994,16 +994,16 @@ def build_get_duration_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/duration/valid") + _url = kwargs.pop("template_url", "/array/prim/duration/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1016,18 +1016,18 @@ def build_put_duration_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/duration/valid") + _url = kwargs.pop("template_url", "/array/prim/duration/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1038,16 +1038,16 @@ def build_get_byte_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/byte/valid") + _url = kwargs.pop("template_url", "/array/prim/byte/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1060,18 +1060,18 @@ def build_put_byte_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/byte/valid") + _url = kwargs.pop("template_url", "/array/prim/byte/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1082,16 +1082,16 @@ def build_get_byte_invalid_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/byte/invalidnull") + _url = kwargs.pop("template_url", "/array/prim/byte/invalidnull") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1102,16 +1102,16 @@ def build_get_base64_url_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/base64url/valid") + _url = kwargs.pop("template_url", "/array/prim/base64url/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1122,16 +1122,16 @@ def build_get_complex_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/complex/null") + _url = kwargs.pop("template_url", "/array/complex/null") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1142,16 +1142,16 @@ def build_get_complex_empty_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/complex/empty") + _url = kwargs.pop("template_url", "/array/complex/empty") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1162,16 +1162,16 @@ def build_get_complex_item_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/complex/itemnull") + _url = kwargs.pop("template_url", "/array/complex/itemnull") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1182,16 +1182,16 @@ def build_get_complex_item_empty_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/complex/itemempty") + _url = kwargs.pop("template_url", "/array/complex/itemempty") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1202,16 +1202,16 @@ def build_get_complex_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/complex/valid") + _url = kwargs.pop("template_url", "/array/complex/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1224,18 +1224,18 @@ def build_put_complex_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/complex/valid") + _url = kwargs.pop("template_url", "/array/complex/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1246,16 +1246,16 @@ def build_get_array_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/array/null") + _url = kwargs.pop("template_url", "/array/array/null") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1266,16 +1266,16 @@ def build_get_array_empty_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/array/empty") + _url = kwargs.pop("template_url", "/array/array/empty") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1286,16 +1286,16 @@ def build_get_array_item_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/array/itemnull") + _url = kwargs.pop("template_url", "/array/array/itemnull") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1306,16 +1306,16 @@ def build_get_array_item_empty_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/array/itemempty") + _url = kwargs.pop("template_url", "/array/array/itemempty") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1326,16 +1326,16 @@ def build_get_array_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/array/valid") + _url = kwargs.pop("template_url", "/array/array/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1348,18 +1348,18 @@ def build_put_array_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/array/valid") + _url = kwargs.pop("template_url", "/array/array/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1370,16 +1370,16 @@ def build_get_dictionary_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/dictionary/null") + _url = kwargs.pop("template_url", "/array/dictionary/null") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1390,16 +1390,16 @@ def build_get_dictionary_empty_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/dictionary/empty") + _url = kwargs.pop("template_url", "/array/dictionary/empty") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1410,16 +1410,16 @@ def build_get_dictionary_item_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/dictionary/itemnull") + _url = kwargs.pop("template_url", "/array/dictionary/itemnull") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1430,16 +1430,16 @@ def build_get_dictionary_item_empty_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/dictionary/itemempty") + _url = kwargs.pop("template_url", "/array/dictionary/itemempty") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1450,16 +1450,16 @@ def build_get_dictionary_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/dictionary/valid") + _url = kwargs.pop("template_url", "/array/dictionary/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1472,18 +1472,18 @@ def build_put_dictionary_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/dictionary/valid") + _url = kwargs.pop("template_url", "/array/dictionary/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyArrayWithNamespaceFolders/vanilla/body/array/operations/_array_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyArrayWithNamespaceFolders/vanilla/body/array/operations/_array_operations.py index 3f3aa222545..df284d1e158 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyArrayWithNamespaceFolders/vanilla/body/array/operations/_array_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyArrayWithNamespaceFolders/vanilla/body/array/operations/_array_operations.py @@ -42,16 +42,16 @@ def build_get_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/null") + _url = kwargs.pop("template_url", "/array/null") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -62,16 +62,16 @@ def build_get_invalid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/invalid") + _url = kwargs.pop("template_url", "/array/invalid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -82,16 +82,16 @@ def build_get_empty_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/empty") + _url = kwargs.pop("template_url", "/array/empty") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -104,18 +104,18 @@ def build_put_empty_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/empty") + _url = kwargs.pop("template_url", "/array/empty") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -126,16 +126,16 @@ def build_get_boolean_tfft_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/boolean/tfft") + _url = kwargs.pop("template_url", "/array/prim/boolean/tfft") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -148,18 +148,18 @@ def build_put_boolean_tfft_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/boolean/tfft") + _url = kwargs.pop("template_url", "/array/prim/boolean/tfft") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -170,16 +170,16 @@ def build_get_boolean_invalid_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/boolean/true.null.false") + _url = kwargs.pop("template_url", "/array/prim/boolean/true.null.false") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -190,16 +190,16 @@ def build_get_boolean_invalid_string_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/boolean/true.boolean.false") + _url = kwargs.pop("template_url", "/array/prim/boolean/true.boolean.false") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -210,16 +210,16 @@ def build_get_integer_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/integer/1.-1.3.300") + _url = kwargs.pop("template_url", "/array/prim/integer/1.-1.3.300") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -232,18 +232,18 @@ def build_put_integer_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/integer/1.-1.3.300") + _url = kwargs.pop("template_url", "/array/prim/integer/1.-1.3.300") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -254,16 +254,16 @@ def build_get_int_invalid_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/integer/1.null.zero") + _url = kwargs.pop("template_url", "/array/prim/integer/1.null.zero") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -274,16 +274,16 @@ def build_get_int_invalid_string_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/integer/1.integer.0") + _url = kwargs.pop("template_url", "/array/prim/integer/1.integer.0") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -294,16 +294,16 @@ def build_get_long_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/long/1.-1.3.300") + _url = kwargs.pop("template_url", "/array/prim/long/1.-1.3.300") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -316,18 +316,18 @@ def build_put_long_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/long/1.-1.3.300") + _url = kwargs.pop("template_url", "/array/prim/long/1.-1.3.300") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -338,16 +338,16 @@ def build_get_long_invalid_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/long/1.null.zero") + _url = kwargs.pop("template_url", "/array/prim/long/1.null.zero") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -358,16 +358,16 @@ def build_get_long_invalid_string_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/long/1.integer.0") + _url = kwargs.pop("template_url", "/array/prim/long/1.integer.0") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -378,16 +378,16 @@ def build_get_float_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/float/0--0.01-1.2e20") + _url = kwargs.pop("template_url", "/array/prim/float/0--0.01-1.2e20") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -400,18 +400,18 @@ def build_put_float_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/float/0--0.01-1.2e20") + _url = kwargs.pop("template_url", "/array/prim/float/0--0.01-1.2e20") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -422,16 +422,16 @@ def build_get_float_invalid_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/float/0.0-null-1.2e20") + _url = kwargs.pop("template_url", "/array/prim/float/0.0-null-1.2e20") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -442,16 +442,16 @@ def build_get_float_invalid_string_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/float/1.number.0") + _url = kwargs.pop("template_url", "/array/prim/float/1.number.0") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -462,16 +462,16 @@ def build_get_double_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/double/0--0.01-1.2e20") + _url = kwargs.pop("template_url", "/array/prim/double/0--0.01-1.2e20") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -484,18 +484,18 @@ def build_put_double_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/double/0--0.01-1.2e20") + _url = kwargs.pop("template_url", "/array/prim/double/0--0.01-1.2e20") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -506,16 +506,16 @@ def build_get_double_invalid_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/double/0.0-null-1.2e20") + _url = kwargs.pop("template_url", "/array/prim/double/0.0-null-1.2e20") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -526,16 +526,16 @@ def build_get_double_invalid_string_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/double/1.number.0") + _url = kwargs.pop("template_url", "/array/prim/double/1.number.0") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -546,16 +546,16 @@ def build_get_string_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/string/foo1.foo2.foo3") + _url = kwargs.pop("template_url", "/array/prim/string/foo1.foo2.foo3") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -568,18 +568,18 @@ def build_put_string_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/string/foo1.foo2.foo3") + _url = kwargs.pop("template_url", "/array/prim/string/foo1.foo2.foo3") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -590,16 +590,16 @@ def build_get_enum_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/enum/foo1.foo2.foo3") + _url = kwargs.pop("template_url", "/array/prim/enum/foo1.foo2.foo3") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -612,18 +612,18 @@ def build_put_enum_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/enum/foo1.foo2.foo3") + _url = kwargs.pop("template_url", "/array/prim/enum/foo1.foo2.foo3") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -634,16 +634,16 @@ def build_get_string_enum_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/string-enum/foo1.foo2.foo3") + _url = kwargs.pop("template_url", "/array/prim/string-enum/foo1.foo2.foo3") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -656,18 +656,18 @@ def build_put_string_enum_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/string-enum/foo1.foo2.foo3") + _url = kwargs.pop("template_url", "/array/prim/string-enum/foo1.foo2.foo3") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -678,16 +678,16 @@ def build_get_string_with_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/string/foo.null.foo2") + _url = kwargs.pop("template_url", "/array/prim/string/foo.null.foo2") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -698,16 +698,16 @@ def build_get_string_with_invalid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/string/foo.123.foo2") + _url = kwargs.pop("template_url", "/array/prim/string/foo.123.foo2") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -718,16 +718,16 @@ def build_get_uuid_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/uuid/valid") + _url = kwargs.pop("template_url", "/array/prim/uuid/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -740,18 +740,18 @@ def build_put_uuid_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/uuid/valid") + _url = kwargs.pop("template_url", "/array/prim/uuid/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -762,16 +762,16 @@ def build_get_uuid_invalid_chars_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/uuid/invalidchars") + _url = kwargs.pop("template_url", "/array/prim/uuid/invalidchars") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -782,16 +782,16 @@ def build_get_date_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/date/valid") + _url = kwargs.pop("template_url", "/array/prim/date/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -804,18 +804,18 @@ def build_put_date_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/date/valid") + _url = kwargs.pop("template_url", "/array/prim/date/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -826,16 +826,16 @@ def build_get_date_invalid_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/date/invalidnull") + _url = kwargs.pop("template_url", "/array/prim/date/invalidnull") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -846,16 +846,16 @@ def build_get_date_invalid_chars_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/date/invalidchars") + _url = kwargs.pop("template_url", "/array/prim/date/invalidchars") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -866,16 +866,16 @@ def build_get_date_time_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/date-time/valid") + _url = kwargs.pop("template_url", "/array/prim/date-time/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -888,18 +888,18 @@ def build_put_date_time_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/date-time/valid") + _url = kwargs.pop("template_url", "/array/prim/date-time/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -910,16 +910,16 @@ def build_get_date_time_invalid_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/date-time/invalidnull") + _url = kwargs.pop("template_url", "/array/prim/date-time/invalidnull") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -930,16 +930,16 @@ def build_get_date_time_invalid_chars_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/date-time/invalidchars") + _url = kwargs.pop("template_url", "/array/prim/date-time/invalidchars") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -950,16 +950,16 @@ def build_get_date_time_rfc1123_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/date-time-rfc1123/valid") + _url = kwargs.pop("template_url", "/array/prim/date-time-rfc1123/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -972,18 +972,18 @@ def build_put_date_time_rfc1123_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/date-time-rfc1123/valid") + _url = kwargs.pop("template_url", "/array/prim/date-time-rfc1123/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -994,16 +994,16 @@ def build_get_duration_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/duration/valid") + _url = kwargs.pop("template_url", "/array/prim/duration/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1016,18 +1016,18 @@ def build_put_duration_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/duration/valid") + _url = kwargs.pop("template_url", "/array/prim/duration/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1038,16 +1038,16 @@ def build_get_byte_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/byte/valid") + _url = kwargs.pop("template_url", "/array/prim/byte/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1060,18 +1060,18 @@ def build_put_byte_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/byte/valid") + _url = kwargs.pop("template_url", "/array/prim/byte/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1082,16 +1082,16 @@ def build_get_byte_invalid_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/byte/invalidnull") + _url = kwargs.pop("template_url", "/array/prim/byte/invalidnull") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1102,16 +1102,16 @@ def build_get_base64_url_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/base64url/valid") + _url = kwargs.pop("template_url", "/array/prim/base64url/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1122,16 +1122,16 @@ def build_get_complex_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/complex/null") + _url = kwargs.pop("template_url", "/array/complex/null") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1142,16 +1142,16 @@ def build_get_complex_empty_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/complex/empty") + _url = kwargs.pop("template_url", "/array/complex/empty") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1162,16 +1162,16 @@ def build_get_complex_item_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/complex/itemnull") + _url = kwargs.pop("template_url", "/array/complex/itemnull") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1182,16 +1182,16 @@ def build_get_complex_item_empty_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/complex/itemempty") + _url = kwargs.pop("template_url", "/array/complex/itemempty") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1202,16 +1202,16 @@ def build_get_complex_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/complex/valid") + _url = kwargs.pop("template_url", "/array/complex/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1224,18 +1224,18 @@ def build_put_complex_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/complex/valid") + _url = kwargs.pop("template_url", "/array/complex/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1246,16 +1246,16 @@ def build_get_array_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/array/null") + _url = kwargs.pop("template_url", "/array/array/null") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1266,16 +1266,16 @@ def build_get_array_empty_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/array/empty") + _url = kwargs.pop("template_url", "/array/array/empty") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1286,16 +1286,16 @@ def build_get_array_item_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/array/itemnull") + _url = kwargs.pop("template_url", "/array/array/itemnull") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1306,16 +1306,16 @@ def build_get_array_item_empty_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/array/itemempty") + _url = kwargs.pop("template_url", "/array/array/itemempty") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1326,16 +1326,16 @@ def build_get_array_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/array/valid") + _url = kwargs.pop("template_url", "/array/array/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1348,18 +1348,18 @@ def build_put_array_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/array/valid") + _url = kwargs.pop("template_url", "/array/array/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1370,16 +1370,16 @@ def build_get_dictionary_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/dictionary/null") + _url = kwargs.pop("template_url", "/array/dictionary/null") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1390,16 +1390,16 @@ def build_get_dictionary_empty_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/dictionary/empty") + _url = kwargs.pop("template_url", "/array/dictionary/empty") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1410,16 +1410,16 @@ def build_get_dictionary_item_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/dictionary/itemnull") + _url = kwargs.pop("template_url", "/array/dictionary/itemnull") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1430,16 +1430,16 @@ def build_get_dictionary_item_empty_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/dictionary/itemempty") + _url = kwargs.pop("template_url", "/array/dictionary/itemempty") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1450,16 +1450,16 @@ def build_get_dictionary_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/dictionary/valid") + _url = kwargs.pop("template_url", "/array/dictionary/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1472,18 +1472,18 @@ def build_put_dictionary_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/dictionary/valid") + _url = kwargs.pop("template_url", "/array/dictionary/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyArrayWithPythonThreeOperationFiles/bodyarraywithpythonthreeoperationfiles/operations/_array_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyArrayWithPythonThreeOperationFiles/bodyarraywithpythonthreeoperationfiles/operations/_array_operations.py index 2a615fe12a0..1a3e895c136 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyArrayWithPythonThreeOperationFiles/bodyarraywithpythonthreeoperationfiles/operations/_array_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyArrayWithPythonThreeOperationFiles/bodyarraywithpythonthreeoperationfiles/operations/_array_operations.py @@ -43,16 +43,16 @@ def build_get_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/null") + _url = kwargs.pop("template_url", "/array/null") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -63,16 +63,16 @@ def build_get_invalid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/invalid") + _url = kwargs.pop("template_url", "/array/invalid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -83,16 +83,16 @@ def build_get_empty_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/empty") + _url = kwargs.pop("template_url", "/array/empty") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -105,18 +105,18 @@ def build_put_empty_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/empty") + _url = kwargs.pop("template_url", "/array/empty") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -127,16 +127,16 @@ def build_get_boolean_tfft_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/boolean/tfft") + _url = kwargs.pop("template_url", "/array/prim/boolean/tfft") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -149,18 +149,18 @@ def build_put_boolean_tfft_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/boolean/tfft") + _url = kwargs.pop("template_url", "/array/prim/boolean/tfft") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -171,16 +171,16 @@ def build_get_boolean_invalid_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/boolean/true.null.false") + _url = kwargs.pop("template_url", "/array/prim/boolean/true.null.false") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -191,16 +191,16 @@ def build_get_boolean_invalid_string_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/boolean/true.boolean.false") + _url = kwargs.pop("template_url", "/array/prim/boolean/true.boolean.false") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -211,16 +211,16 @@ def build_get_integer_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/integer/1.-1.3.300") + _url = kwargs.pop("template_url", "/array/prim/integer/1.-1.3.300") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -233,18 +233,18 @@ def build_put_integer_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/integer/1.-1.3.300") + _url = kwargs.pop("template_url", "/array/prim/integer/1.-1.3.300") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -255,16 +255,16 @@ def build_get_int_invalid_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/integer/1.null.zero") + _url = kwargs.pop("template_url", "/array/prim/integer/1.null.zero") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -275,16 +275,16 @@ def build_get_int_invalid_string_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/integer/1.integer.0") + _url = kwargs.pop("template_url", "/array/prim/integer/1.integer.0") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -295,16 +295,16 @@ def build_get_long_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/long/1.-1.3.300") + _url = kwargs.pop("template_url", "/array/prim/long/1.-1.3.300") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -317,18 +317,18 @@ def build_put_long_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/long/1.-1.3.300") + _url = kwargs.pop("template_url", "/array/prim/long/1.-1.3.300") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -339,16 +339,16 @@ def build_get_long_invalid_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/long/1.null.zero") + _url = kwargs.pop("template_url", "/array/prim/long/1.null.zero") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -359,16 +359,16 @@ def build_get_long_invalid_string_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/long/1.integer.0") + _url = kwargs.pop("template_url", "/array/prim/long/1.integer.0") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -379,16 +379,16 @@ def build_get_float_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/float/0--0.01-1.2e20") + _url = kwargs.pop("template_url", "/array/prim/float/0--0.01-1.2e20") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -401,18 +401,18 @@ def build_put_float_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/float/0--0.01-1.2e20") + _url = kwargs.pop("template_url", "/array/prim/float/0--0.01-1.2e20") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -423,16 +423,16 @@ def build_get_float_invalid_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/float/0.0-null-1.2e20") + _url = kwargs.pop("template_url", "/array/prim/float/0.0-null-1.2e20") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -443,16 +443,16 @@ def build_get_float_invalid_string_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/float/1.number.0") + _url = kwargs.pop("template_url", "/array/prim/float/1.number.0") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -463,16 +463,16 @@ def build_get_double_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/double/0--0.01-1.2e20") + _url = kwargs.pop("template_url", "/array/prim/double/0--0.01-1.2e20") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -485,18 +485,18 @@ def build_put_double_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/double/0--0.01-1.2e20") + _url = kwargs.pop("template_url", "/array/prim/double/0--0.01-1.2e20") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -507,16 +507,16 @@ def build_get_double_invalid_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/double/0.0-null-1.2e20") + _url = kwargs.pop("template_url", "/array/prim/double/0.0-null-1.2e20") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -527,16 +527,16 @@ def build_get_double_invalid_string_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/double/1.number.0") + _url = kwargs.pop("template_url", "/array/prim/double/1.number.0") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -547,16 +547,16 @@ def build_get_string_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/string/foo1.foo2.foo3") + _url = kwargs.pop("template_url", "/array/prim/string/foo1.foo2.foo3") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -569,18 +569,18 @@ def build_put_string_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/string/foo1.foo2.foo3") + _url = kwargs.pop("template_url", "/array/prim/string/foo1.foo2.foo3") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -591,16 +591,16 @@ def build_get_enum_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/enum/foo1.foo2.foo3") + _url = kwargs.pop("template_url", "/array/prim/enum/foo1.foo2.foo3") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -613,18 +613,18 @@ def build_put_enum_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/enum/foo1.foo2.foo3") + _url = kwargs.pop("template_url", "/array/prim/enum/foo1.foo2.foo3") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -635,16 +635,16 @@ def build_get_string_enum_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/string-enum/foo1.foo2.foo3") + _url = kwargs.pop("template_url", "/array/prim/string-enum/foo1.foo2.foo3") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -657,18 +657,18 @@ def build_put_string_enum_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/string-enum/foo1.foo2.foo3") + _url = kwargs.pop("template_url", "/array/prim/string-enum/foo1.foo2.foo3") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -679,16 +679,16 @@ def build_get_string_with_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/string/foo.null.foo2") + _url = kwargs.pop("template_url", "/array/prim/string/foo.null.foo2") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -699,16 +699,16 @@ def build_get_string_with_invalid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/string/foo.123.foo2") + _url = kwargs.pop("template_url", "/array/prim/string/foo.123.foo2") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -719,16 +719,16 @@ def build_get_uuid_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/uuid/valid") + _url = kwargs.pop("template_url", "/array/prim/uuid/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -741,18 +741,18 @@ def build_put_uuid_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/uuid/valid") + _url = kwargs.pop("template_url", "/array/prim/uuid/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -763,16 +763,16 @@ def build_get_uuid_invalid_chars_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/uuid/invalidchars") + _url = kwargs.pop("template_url", "/array/prim/uuid/invalidchars") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -783,16 +783,16 @@ def build_get_date_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/date/valid") + _url = kwargs.pop("template_url", "/array/prim/date/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -805,18 +805,18 @@ def build_put_date_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/date/valid") + _url = kwargs.pop("template_url", "/array/prim/date/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -827,16 +827,16 @@ def build_get_date_invalid_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/date/invalidnull") + _url = kwargs.pop("template_url", "/array/prim/date/invalidnull") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -847,16 +847,16 @@ def build_get_date_invalid_chars_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/date/invalidchars") + _url = kwargs.pop("template_url", "/array/prim/date/invalidchars") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -867,16 +867,16 @@ def build_get_date_time_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/date-time/valid") + _url = kwargs.pop("template_url", "/array/prim/date-time/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -889,18 +889,18 @@ def build_put_date_time_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/date-time/valid") + _url = kwargs.pop("template_url", "/array/prim/date-time/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -911,16 +911,16 @@ def build_get_date_time_invalid_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/date-time/invalidnull") + _url = kwargs.pop("template_url", "/array/prim/date-time/invalidnull") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -931,16 +931,16 @@ def build_get_date_time_invalid_chars_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/date-time/invalidchars") + _url = kwargs.pop("template_url", "/array/prim/date-time/invalidchars") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -951,16 +951,16 @@ def build_get_date_time_rfc1123_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/date-time-rfc1123/valid") + _url = kwargs.pop("template_url", "/array/prim/date-time-rfc1123/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -973,18 +973,18 @@ def build_put_date_time_rfc1123_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/date-time-rfc1123/valid") + _url = kwargs.pop("template_url", "/array/prim/date-time-rfc1123/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -995,16 +995,16 @@ def build_get_duration_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/duration/valid") + _url = kwargs.pop("template_url", "/array/prim/duration/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1017,18 +1017,18 @@ def build_put_duration_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/duration/valid") + _url = kwargs.pop("template_url", "/array/prim/duration/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1039,16 +1039,16 @@ def build_get_byte_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/byte/valid") + _url = kwargs.pop("template_url", "/array/prim/byte/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1061,18 +1061,18 @@ def build_put_byte_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/byte/valid") + _url = kwargs.pop("template_url", "/array/prim/byte/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1083,16 +1083,16 @@ def build_get_byte_invalid_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/byte/invalidnull") + _url = kwargs.pop("template_url", "/array/prim/byte/invalidnull") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1103,16 +1103,16 @@ def build_get_base64_url_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/base64url/valid") + _url = kwargs.pop("template_url", "/array/prim/base64url/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1123,16 +1123,16 @@ def build_get_complex_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/complex/null") + _url = kwargs.pop("template_url", "/array/complex/null") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1143,16 +1143,16 @@ def build_get_complex_empty_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/complex/empty") + _url = kwargs.pop("template_url", "/array/complex/empty") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1163,16 +1163,16 @@ def build_get_complex_item_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/complex/itemnull") + _url = kwargs.pop("template_url", "/array/complex/itemnull") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1183,16 +1183,16 @@ def build_get_complex_item_empty_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/complex/itemempty") + _url = kwargs.pop("template_url", "/array/complex/itemempty") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1203,16 +1203,16 @@ def build_get_complex_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/complex/valid") + _url = kwargs.pop("template_url", "/array/complex/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1225,18 +1225,18 @@ def build_put_complex_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/complex/valid") + _url = kwargs.pop("template_url", "/array/complex/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1247,16 +1247,16 @@ def build_get_array_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/array/null") + _url = kwargs.pop("template_url", "/array/array/null") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1267,16 +1267,16 @@ def build_get_array_empty_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/array/empty") + _url = kwargs.pop("template_url", "/array/array/empty") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1287,16 +1287,16 @@ def build_get_array_item_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/array/itemnull") + _url = kwargs.pop("template_url", "/array/array/itemnull") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1307,16 +1307,16 @@ def build_get_array_item_empty_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/array/itemempty") + _url = kwargs.pop("template_url", "/array/array/itemempty") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1327,16 +1327,16 @@ def build_get_array_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/array/valid") + _url = kwargs.pop("template_url", "/array/array/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1349,18 +1349,18 @@ def build_put_array_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/array/valid") + _url = kwargs.pop("template_url", "/array/array/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1371,16 +1371,16 @@ def build_get_dictionary_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/dictionary/null") + _url = kwargs.pop("template_url", "/array/dictionary/null") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1391,16 +1391,16 @@ def build_get_dictionary_empty_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/dictionary/empty") + _url = kwargs.pop("template_url", "/array/dictionary/empty") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1411,16 +1411,16 @@ def build_get_dictionary_item_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/dictionary/itemnull") + _url = kwargs.pop("template_url", "/array/dictionary/itemnull") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1431,16 +1431,16 @@ def build_get_dictionary_item_empty_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/dictionary/itemempty") + _url = kwargs.pop("template_url", "/array/dictionary/itemempty") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1451,16 +1451,16 @@ def build_get_dictionary_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/dictionary/valid") + _url = kwargs.pop("template_url", "/array/dictionary/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1473,18 +1473,18 @@ def build_put_dictionary_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/dictionary/valid") + _url = kwargs.pop("template_url", "/array/dictionary/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyArrayWithPythonThreeOperationFiles/bodyarraywithpythonthreeoperationfiles/operations/_array_operations_py3.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyArrayWithPythonThreeOperationFiles/bodyarraywithpythonthreeoperationfiles/operations/_array_operations_py3.py index 674a25cdf16..d422b526e6f 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyArrayWithPythonThreeOperationFiles/bodyarraywithpythonthreeoperationfiles/operations/_array_operations_py3.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyArrayWithPythonThreeOperationFiles/bodyarraywithpythonthreeoperationfiles/operations/_array_operations_py3.py @@ -36,37 +36,37 @@ def build_get_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/null") + _url = kwargs.pop("template_url", "/array/null") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_invalid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/invalid") + _url = kwargs.pop("template_url", "/array/invalid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_empty_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/empty") + _url = kwargs.pop("template_url", "/array/empty") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_empty_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -74,27 +74,27 @@ def build_put_empty_request(*, json: JSONType = None, content: Any = None, **kwa accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/empty") + _url = kwargs.pop("template_url", "/array/empty") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_boolean_tfft_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/boolean/tfft") + _url = kwargs.pop("template_url", "/array/prim/boolean/tfft") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_boolean_tfft_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -102,51 +102,51 @@ def build_put_boolean_tfft_request(*, json: JSONType = None, content: Any = None accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/boolean/tfft") + _url = kwargs.pop("template_url", "/array/prim/boolean/tfft") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_boolean_invalid_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/boolean/true.null.false") + _url = kwargs.pop("template_url", "/array/prim/boolean/true.null.false") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_boolean_invalid_string_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/boolean/true.boolean.false") + _url = kwargs.pop("template_url", "/array/prim/boolean/true.boolean.false") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_integer_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/integer/1.-1.3.300") + _url = kwargs.pop("template_url", "/array/prim/integer/1.-1.3.300") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_integer_valid_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -154,51 +154,51 @@ def build_put_integer_valid_request(*, json: JSONType = None, content: Any = Non accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/integer/1.-1.3.300") + _url = kwargs.pop("template_url", "/array/prim/integer/1.-1.3.300") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_int_invalid_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/integer/1.null.zero") + _url = kwargs.pop("template_url", "/array/prim/integer/1.null.zero") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_int_invalid_string_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/integer/1.integer.0") + _url = kwargs.pop("template_url", "/array/prim/integer/1.integer.0") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_long_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/long/1.-1.3.300") + _url = kwargs.pop("template_url", "/array/prim/long/1.-1.3.300") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_long_valid_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -206,51 +206,51 @@ def build_put_long_valid_request(*, json: JSONType = None, content: Any = None, accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/long/1.-1.3.300") + _url = kwargs.pop("template_url", "/array/prim/long/1.-1.3.300") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_long_invalid_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/long/1.null.zero") + _url = kwargs.pop("template_url", "/array/prim/long/1.null.zero") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_long_invalid_string_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/long/1.integer.0") + _url = kwargs.pop("template_url", "/array/prim/long/1.integer.0") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_float_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/float/0--0.01-1.2e20") + _url = kwargs.pop("template_url", "/array/prim/float/0--0.01-1.2e20") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_float_valid_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -258,51 +258,51 @@ def build_put_float_valid_request(*, json: JSONType = None, content: Any = None, accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/float/0--0.01-1.2e20") + _url = kwargs.pop("template_url", "/array/prim/float/0--0.01-1.2e20") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_float_invalid_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/float/0.0-null-1.2e20") + _url = kwargs.pop("template_url", "/array/prim/float/0.0-null-1.2e20") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_float_invalid_string_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/float/1.number.0") + _url = kwargs.pop("template_url", "/array/prim/float/1.number.0") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_double_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/double/0--0.01-1.2e20") + _url = kwargs.pop("template_url", "/array/prim/double/0--0.01-1.2e20") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_double_valid_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -310,51 +310,51 @@ def build_put_double_valid_request(*, json: JSONType = None, content: Any = None accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/double/0--0.01-1.2e20") + _url = kwargs.pop("template_url", "/array/prim/double/0--0.01-1.2e20") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_double_invalid_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/double/0.0-null-1.2e20") + _url = kwargs.pop("template_url", "/array/prim/double/0.0-null-1.2e20") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_double_invalid_string_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/double/1.number.0") + _url = kwargs.pop("template_url", "/array/prim/double/1.number.0") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_string_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/string/foo1.foo2.foo3") + _url = kwargs.pop("template_url", "/array/prim/string/foo1.foo2.foo3") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_string_valid_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -362,27 +362,27 @@ def build_put_string_valid_request(*, json: JSONType = None, content: Any = None accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/string/foo1.foo2.foo3") + _url = kwargs.pop("template_url", "/array/prim/string/foo1.foo2.foo3") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_enum_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/enum/foo1.foo2.foo3") + _url = kwargs.pop("template_url", "/array/prim/enum/foo1.foo2.foo3") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_enum_valid_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -390,27 +390,27 @@ def build_put_enum_valid_request(*, json: JSONType = None, content: Any = None, accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/enum/foo1.foo2.foo3") + _url = kwargs.pop("template_url", "/array/prim/enum/foo1.foo2.foo3") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_string_enum_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/string-enum/foo1.foo2.foo3") + _url = kwargs.pop("template_url", "/array/prim/string-enum/foo1.foo2.foo3") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_string_enum_valid_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -418,51 +418,51 @@ def build_put_string_enum_valid_request(*, json: JSONType = None, content: Any = accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/string-enum/foo1.foo2.foo3") + _url = kwargs.pop("template_url", "/array/prim/string-enum/foo1.foo2.foo3") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_string_with_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/string/foo.null.foo2") + _url = kwargs.pop("template_url", "/array/prim/string/foo.null.foo2") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_string_with_invalid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/string/foo.123.foo2") + _url = kwargs.pop("template_url", "/array/prim/string/foo.123.foo2") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_uuid_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/uuid/valid") + _url = kwargs.pop("template_url", "/array/prim/uuid/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_uuid_valid_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -470,39 +470,39 @@ def build_put_uuid_valid_request(*, json: JSONType = None, content: Any = None, accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/uuid/valid") + _url = kwargs.pop("template_url", "/array/prim/uuid/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_uuid_invalid_chars_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/uuid/invalidchars") + _url = kwargs.pop("template_url", "/array/prim/uuid/invalidchars") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_date_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/date/valid") + _url = kwargs.pop("template_url", "/array/prim/date/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_date_valid_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -510,51 +510,51 @@ def build_put_date_valid_request(*, json: JSONType = None, content: Any = None, accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/date/valid") + _url = kwargs.pop("template_url", "/array/prim/date/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_date_invalid_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/date/invalidnull") + _url = kwargs.pop("template_url", "/array/prim/date/invalidnull") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_date_invalid_chars_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/date/invalidchars") + _url = kwargs.pop("template_url", "/array/prim/date/invalidchars") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_date_time_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/date-time/valid") + _url = kwargs.pop("template_url", "/array/prim/date-time/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_date_time_valid_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -562,51 +562,51 @@ def build_put_date_time_valid_request(*, json: JSONType = None, content: Any = N accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/date-time/valid") + _url = kwargs.pop("template_url", "/array/prim/date-time/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_date_time_invalid_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/date-time/invalidnull") + _url = kwargs.pop("template_url", "/array/prim/date-time/invalidnull") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_date_time_invalid_chars_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/date-time/invalidchars") + _url = kwargs.pop("template_url", "/array/prim/date-time/invalidchars") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_date_time_rfc1123_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/date-time-rfc1123/valid") + _url = kwargs.pop("template_url", "/array/prim/date-time-rfc1123/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_date_time_rfc1123_valid_request( @@ -616,27 +616,27 @@ def build_put_date_time_rfc1123_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/date-time-rfc1123/valid") + _url = kwargs.pop("template_url", "/array/prim/date-time-rfc1123/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_duration_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/duration/valid") + _url = kwargs.pop("template_url", "/array/prim/duration/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_duration_valid_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -644,27 +644,27 @@ def build_put_duration_valid_request(*, json: JSONType = None, content: Any = No accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/duration/valid") + _url = kwargs.pop("template_url", "/array/prim/duration/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_byte_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/byte/valid") + _url = kwargs.pop("template_url", "/array/prim/byte/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_byte_valid_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -672,99 +672,99 @@ def build_put_byte_valid_request(*, json: JSONType = None, content: Any = None, accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/byte/valid") + _url = kwargs.pop("template_url", "/array/prim/byte/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_byte_invalid_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/byte/invalidnull") + _url = kwargs.pop("template_url", "/array/prim/byte/invalidnull") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_base64_url_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/prim/base64url/valid") + _url = kwargs.pop("template_url", "/array/prim/base64url/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_complex_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/complex/null") + _url = kwargs.pop("template_url", "/array/complex/null") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_complex_empty_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/complex/empty") + _url = kwargs.pop("template_url", "/array/complex/empty") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_complex_item_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/complex/itemnull") + _url = kwargs.pop("template_url", "/array/complex/itemnull") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_complex_item_empty_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/complex/itemempty") + _url = kwargs.pop("template_url", "/array/complex/itemempty") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_complex_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/complex/valid") + _url = kwargs.pop("template_url", "/array/complex/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_complex_valid_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -772,75 +772,75 @@ def build_put_complex_valid_request(*, json: JSONType = None, content: Any = Non accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/complex/valid") + _url = kwargs.pop("template_url", "/array/complex/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_array_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/array/null") + _url = kwargs.pop("template_url", "/array/array/null") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_array_empty_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/array/empty") + _url = kwargs.pop("template_url", "/array/array/empty") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_array_item_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/array/itemnull") + _url = kwargs.pop("template_url", "/array/array/itemnull") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_array_item_empty_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/array/itemempty") + _url = kwargs.pop("template_url", "/array/array/itemempty") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_array_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/array/valid") + _url = kwargs.pop("template_url", "/array/array/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_array_valid_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -848,75 +848,75 @@ def build_put_array_valid_request(*, json: JSONType = None, content: Any = None, accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/array/valid") + _url = kwargs.pop("template_url", "/array/array/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_dictionary_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/dictionary/null") + _url = kwargs.pop("template_url", "/array/dictionary/null") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_dictionary_empty_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/dictionary/empty") + _url = kwargs.pop("template_url", "/array/dictionary/empty") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_dictionary_item_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/dictionary/itemnull") + _url = kwargs.pop("template_url", "/array/dictionary/itemnull") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_dictionary_item_empty_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/dictionary/itemempty") + _url = kwargs.pop("template_url", "/array/dictionary/itemempty") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_dictionary_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/dictionary/valid") + _url = kwargs.pop("template_url", "/array/dictionary/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_dictionary_valid_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -924,15 +924,15 @@ def build_put_dictionary_valid_request(*, json: JSONType = None, content: Any = accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/array/dictionary/valid") + _url = kwargs.pop("template_url", "/array/dictionary/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) class ArrayOperations(object): # pylint: disable=too-many-public-methods diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyBinary/bodybinary/operations/_upload_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyBinary/bodybinary/operations/_upload_operations.py index 2af8ec8839f..ab469525902 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyBinary/bodybinary/operations/_upload_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyBinary/bodybinary/operations/_upload_operations.py @@ -41,17 +41,17 @@ def build_file_request( content_type = kwargs.pop('content_type', None) # type: Optional[str] # Construct URL - url = kwargs.pop("template_url", "/binary/file") + _url = kwargs.pop("template_url", "/binary/file") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -63,17 +63,17 @@ def build_binary_request( content_type = kwargs.pop('content_type', None) # type: Optional[str] # Construct URL - url = kwargs.pop("template_url", "/binary/octet") + _url = kwargs.pop("template_url", "/binary/octet") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyBoolean/bodyboolean/operations/_bool_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyBoolean/bodyboolean/operations/_bool_operations.py index 4d9cfff8a54..6c9aa407591 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyBoolean/bodyboolean/operations/_bool_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyBoolean/bodyboolean/operations/_bool_operations.py @@ -41,16 +41,16 @@ def build_get_true_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/bool/true") + _url = kwargs.pop("template_url", "/bool/true") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -64,18 +64,18 @@ def build_put_true_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/bool/true") + _url = kwargs.pop("template_url", "/bool/true") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, json=json, **kwargs ) @@ -87,16 +87,16 @@ def build_get_false_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/bool/false") + _url = kwargs.pop("template_url", "/bool/false") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -110,18 +110,18 @@ def build_put_false_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/bool/false") + _url = kwargs.pop("template_url", "/bool/false") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, json=json, **kwargs ) @@ -133,16 +133,16 @@ def build_get_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/bool/null") + _url = kwargs.pop("template_url", "/bool/null") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -153,16 +153,16 @@ def build_get_invalid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/bool/invalid") + _url = kwargs.pop("template_url", "/bool/invalid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyByte/bodybyte/operations/_byte_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyByte/bodybyte/operations/_byte_operations.py index 66fdbd05c8d..d4be0fab24c 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyByte/bodybyte/operations/_byte_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyByte/bodybyte/operations/_byte_operations.py @@ -41,16 +41,16 @@ def build_get_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/byte/null") + _url = kwargs.pop("template_url", "/byte/null") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -61,16 +61,16 @@ def build_get_empty_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/byte/empty") + _url = kwargs.pop("template_url", "/byte/empty") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -81,16 +81,16 @@ def build_get_non_ascii_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/byte/nonAscii") + _url = kwargs.pop("template_url", "/byte/nonAscii") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -103,18 +103,18 @@ def build_put_non_ascii_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/byte/nonAscii") + _url = kwargs.pop("template_url", "/byte/nonAscii") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -125,16 +125,16 @@ def build_get_invalid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/byte/invalid") + _url = kwargs.pop("template_url", "/byte/invalid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyByteWithPackageName/bodybytewithpackagename/operations/_byte_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyByteWithPackageName/bodybytewithpackagename/operations/_byte_operations.py index c18d6211c36..2033b136c57 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyByteWithPackageName/bodybytewithpackagename/operations/_byte_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyByteWithPackageName/bodybytewithpackagename/operations/_byte_operations.py @@ -41,16 +41,16 @@ def build_get_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/byte/null") + _url = kwargs.pop("template_url", "/byte/null") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -61,16 +61,16 @@ def build_get_empty_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/byte/empty") + _url = kwargs.pop("template_url", "/byte/empty") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -81,16 +81,16 @@ def build_get_non_ascii_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/byte/nonAscii") + _url = kwargs.pop("template_url", "/byte/nonAscii") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -103,18 +103,18 @@ def build_put_non_ascii_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/byte/nonAscii") + _url = kwargs.pop("template_url", "/byte/nonAscii") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -125,16 +125,16 @@ def build_get_invalid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/byte/invalid") + _url = kwargs.pop("template_url", "/byte/invalid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_array_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_array_operations.py index 902ab56da08..84473522595 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_array_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_array_operations.py @@ -40,16 +40,16 @@ def build_get_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/array/valid") + _url = kwargs.pop("template_url", "/complex/array/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -62,18 +62,18 @@ def build_put_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/array/valid") + _url = kwargs.pop("template_url", "/complex/array/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -84,16 +84,16 @@ def build_get_empty_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/array/empty") + _url = kwargs.pop("template_url", "/complex/array/empty") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -106,18 +106,18 @@ def build_put_empty_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/array/empty") + _url = kwargs.pop("template_url", "/complex/array/empty") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -128,16 +128,16 @@ def build_get_not_provided_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/array/notprovided") + _url = kwargs.pop("template_url", "/complex/array/notprovided") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_basic_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_basic_operations.py index 1cabdeafc38..57d4cc5fbb0 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_basic_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_basic_operations.py @@ -40,16 +40,16 @@ def build_get_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/basic/valid") + _url = kwargs.pop("template_url", "/complex/basic/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -63,23 +63,23 @@ def build_put_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/basic/valid") + _url = kwargs.pop("template_url", "/complex/basic/valid") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -90,16 +90,16 @@ def build_get_invalid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/basic/invalid") + _url = kwargs.pop("template_url", "/complex/basic/invalid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -110,16 +110,16 @@ def build_get_empty_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/basic/empty") + _url = kwargs.pop("template_url", "/complex/basic/empty") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -130,16 +130,16 @@ def build_get_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/basic/null") + _url = kwargs.pop("template_url", "/complex/basic/null") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -150,16 +150,16 @@ def build_get_not_provided_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/basic/notprovided") + _url = kwargs.pop("template_url", "/complex/basic/notprovided") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_dictionary_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_dictionary_operations.py index fc627eb0412..4e31fac7557 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_dictionary_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_dictionary_operations.py @@ -40,16 +40,16 @@ def build_get_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/dictionary/typed/valid") + _url = kwargs.pop("template_url", "/complex/dictionary/typed/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -62,18 +62,18 @@ def build_put_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/dictionary/typed/valid") + _url = kwargs.pop("template_url", "/complex/dictionary/typed/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -84,16 +84,16 @@ def build_get_empty_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/dictionary/typed/empty") + _url = kwargs.pop("template_url", "/complex/dictionary/typed/empty") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -106,18 +106,18 @@ def build_put_empty_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/dictionary/typed/empty") + _url = kwargs.pop("template_url", "/complex/dictionary/typed/empty") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -128,16 +128,16 @@ def build_get_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/dictionary/typed/null") + _url = kwargs.pop("template_url", "/complex/dictionary/typed/null") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -148,16 +148,16 @@ def build_get_not_provided_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/dictionary/typed/notprovided") + _url = kwargs.pop("template_url", "/complex/dictionary/typed/notprovided") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_flattencomplex_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_flattencomplex_operations.py index 003a40dfc95..2ad5696c5ab 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_flattencomplex_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_flattencomplex_operations.py @@ -40,16 +40,16 @@ def build_get_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/flatten/valid") + _url = kwargs.pop("template_url", "/complex/flatten/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_inheritance_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_inheritance_operations.py index 24796bd40b1..b098f7831ce 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_inheritance_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_inheritance_operations.py @@ -40,16 +40,16 @@ def build_get_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/inheritance/valid") + _url = kwargs.pop("template_url", "/complex/inheritance/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -62,18 +62,18 @@ def build_put_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/inheritance/valid") + _url = kwargs.pop("template_url", "/complex/inheritance/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_polymorphicrecursive_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_polymorphicrecursive_operations.py index c3475ec6055..72f3cea8183 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_polymorphicrecursive_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_polymorphicrecursive_operations.py @@ -40,16 +40,16 @@ def build_get_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/polymorphicrecursive/valid") + _url = kwargs.pop("template_url", "/complex/polymorphicrecursive/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -62,18 +62,18 @@ def build_put_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/polymorphicrecursive/valid") + _url = kwargs.pop("template_url", "/complex/polymorphicrecursive/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_polymorphism_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_polymorphism_operations.py index 2fa5b1435ab..68b66652f7e 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_polymorphism_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_polymorphism_operations.py @@ -40,16 +40,16 @@ def build_get_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/polymorphism/valid") + _url = kwargs.pop("template_url", "/complex/polymorphism/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -62,18 +62,18 @@ def build_put_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/polymorphism/valid") + _url = kwargs.pop("template_url", "/complex/polymorphism/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -84,16 +84,16 @@ def build_get_dot_syntax_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/polymorphism/dotsyntax") + _url = kwargs.pop("template_url", "/complex/polymorphism/dotsyntax") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -104,16 +104,16 @@ def build_get_composed_with_discriminator_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/polymorphism/composedWithDiscriminator") + _url = kwargs.pop("template_url", "/complex/polymorphism/composedWithDiscriminator") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -124,16 +124,16 @@ def build_get_composed_without_discriminator_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/polymorphism/composedWithoutDiscriminator") + _url = kwargs.pop("template_url", "/complex/polymorphism/composedWithoutDiscriminator") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -144,16 +144,16 @@ def build_get_complicated_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/polymorphism/complicated") + _url = kwargs.pop("template_url", "/complex/polymorphism/complicated") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -166,18 +166,18 @@ def build_put_complicated_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/polymorphism/complicated") + _url = kwargs.pop("template_url", "/complex/polymorphism/complicated") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -190,18 +190,18 @@ def build_put_missing_discriminator_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/polymorphism/missingdiscriminator") + _url = kwargs.pop("template_url", "/complex/polymorphism/missingdiscriminator") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -214,18 +214,18 @@ def build_put_valid_missing_required_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/polymorphism/missingrequired/invalid") + _url = kwargs.pop("template_url", "/complex/polymorphism/missingrequired/invalid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_primitive_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_primitive_operations.py index 0b90e149a67..fc41e233a07 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_primitive_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_primitive_operations.py @@ -41,16 +41,16 @@ def build_get_int_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/primitive/integer") + _url = kwargs.pop("template_url", "/complex/primitive/integer") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -63,18 +63,18 @@ def build_put_int_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/primitive/integer") + _url = kwargs.pop("template_url", "/complex/primitive/integer") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -85,16 +85,16 @@ def build_get_long_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/primitive/long") + _url = kwargs.pop("template_url", "/complex/primitive/long") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -107,18 +107,18 @@ def build_put_long_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/primitive/long") + _url = kwargs.pop("template_url", "/complex/primitive/long") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -129,16 +129,16 @@ def build_get_float_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/primitive/float") + _url = kwargs.pop("template_url", "/complex/primitive/float") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -151,18 +151,18 @@ def build_put_float_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/primitive/float") + _url = kwargs.pop("template_url", "/complex/primitive/float") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -173,16 +173,16 @@ def build_get_double_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/primitive/double") + _url = kwargs.pop("template_url", "/complex/primitive/double") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -195,18 +195,18 @@ def build_put_double_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/primitive/double") + _url = kwargs.pop("template_url", "/complex/primitive/double") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -217,16 +217,16 @@ def build_get_bool_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/primitive/bool") + _url = kwargs.pop("template_url", "/complex/primitive/bool") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -239,18 +239,18 @@ def build_put_bool_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/primitive/bool") + _url = kwargs.pop("template_url", "/complex/primitive/bool") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -261,16 +261,16 @@ def build_get_string_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/primitive/string") + _url = kwargs.pop("template_url", "/complex/primitive/string") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -283,18 +283,18 @@ def build_put_string_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/primitive/string") + _url = kwargs.pop("template_url", "/complex/primitive/string") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -305,16 +305,16 @@ def build_get_date_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/primitive/date") + _url = kwargs.pop("template_url", "/complex/primitive/date") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -327,18 +327,18 @@ def build_put_date_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/primitive/date") + _url = kwargs.pop("template_url", "/complex/primitive/date") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -349,16 +349,16 @@ def build_get_date_time_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/primitive/datetime") + _url = kwargs.pop("template_url", "/complex/primitive/datetime") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -371,18 +371,18 @@ def build_put_date_time_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/primitive/datetime") + _url = kwargs.pop("template_url", "/complex/primitive/datetime") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -393,16 +393,16 @@ def build_get_date_time_rfc1123_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/primitive/datetimerfc1123") + _url = kwargs.pop("template_url", "/complex/primitive/datetimerfc1123") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -415,18 +415,18 @@ def build_put_date_time_rfc1123_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/primitive/datetimerfc1123") + _url = kwargs.pop("template_url", "/complex/primitive/datetimerfc1123") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -437,16 +437,16 @@ def build_get_duration_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/primitive/duration") + _url = kwargs.pop("template_url", "/complex/primitive/duration") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -459,18 +459,18 @@ def build_put_duration_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/primitive/duration") + _url = kwargs.pop("template_url", "/complex/primitive/duration") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -481,16 +481,16 @@ def build_get_byte_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/primitive/byte") + _url = kwargs.pop("template_url", "/complex/primitive/byte") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -503,18 +503,18 @@ def build_put_byte_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/primitive/byte") + _url = kwargs.pop("template_url", "/complex/primitive/byte") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_readonlyproperty_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_readonlyproperty_operations.py index 84547281c6c..e87b5ce8dbe 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_readonlyproperty_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_readonlyproperty_operations.py @@ -40,16 +40,16 @@ def build_get_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/readonlyproperty/valid") + _url = kwargs.pop("template_url", "/complex/readonlyproperty/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -62,18 +62,18 @@ def build_put_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/readonlyproperty/valid") + _url = kwargs.pop("template_url", "/complex/readonlyproperty/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_array_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_array_operations.py index e554fa5f8db..603b348e424 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_array_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_array_operations.py @@ -35,13 +35,13 @@ def build_get_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/array/valid") + _url = kwargs.pop("template_url", "/complex/array/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_valid_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -49,27 +49,27 @@ def build_put_valid_request(*, json: JSONType = None, content: Any = None, **kwa accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/array/valid") + _url = kwargs.pop("template_url", "/complex/array/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_empty_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/array/empty") + _url = kwargs.pop("template_url", "/complex/array/empty") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_empty_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -77,27 +77,27 @@ def build_put_empty_request(*, json: JSONType = None, content: Any = None, **kwa accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/array/empty") + _url = kwargs.pop("template_url", "/complex/array/empty") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_not_provided_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/array/notprovided") + _url = kwargs.pop("template_url", "/complex/array/notprovided") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) class ArrayOperations(object): diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_basic_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_basic_operations.py index 8e5c2c6f67a..9a80053805f 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_basic_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_basic_operations.py @@ -35,13 +35,13 @@ def build_get_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/basic/valid") + _url = kwargs.pop("template_url", "/complex/basic/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_valid_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -50,69 +50,75 @@ def build_put_valid_request(*, json: JSONType = None, content: Any = None, **kwa accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/basic/valid") + _url = kwargs.pop("template_url", "/complex/basic/valid") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["api-version"] = _SERIALIZER.query("api_version", api_version, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") return HttpRequest( - method="PUT", url=url, params=query_parameters, headers=header_parameters, json=json, content=content, **kwargs + method="PUT", + url=_url, + params=_query_parameters, + headers=_header_parameters, + json=json, + content=content, + **kwargs ) def build_get_invalid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/basic/invalid") + _url = kwargs.pop("template_url", "/complex/basic/invalid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_empty_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/basic/empty") + _url = kwargs.pop("template_url", "/complex/basic/empty") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/basic/null") + _url = kwargs.pop("template_url", "/complex/basic/null") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_not_provided_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/basic/notprovided") + _url = kwargs.pop("template_url", "/complex/basic/notprovided") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) class BasicOperations(object): diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_dictionary_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_dictionary_operations.py index d652d2dd4a1..b7d2b94a20c 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_dictionary_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_dictionary_operations.py @@ -35,13 +35,13 @@ def build_get_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/dictionary/typed/valid") + _url = kwargs.pop("template_url", "/complex/dictionary/typed/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_valid_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -49,27 +49,27 @@ def build_put_valid_request(*, json: JSONType = None, content: Any = None, **kwa accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/dictionary/typed/valid") + _url = kwargs.pop("template_url", "/complex/dictionary/typed/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_empty_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/dictionary/typed/empty") + _url = kwargs.pop("template_url", "/complex/dictionary/typed/empty") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_empty_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -77,39 +77,39 @@ def build_put_empty_request(*, json: JSONType = None, content: Any = None, **kwa accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/dictionary/typed/empty") + _url = kwargs.pop("template_url", "/complex/dictionary/typed/empty") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/dictionary/typed/null") + _url = kwargs.pop("template_url", "/complex/dictionary/typed/null") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_not_provided_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/dictionary/typed/notprovided") + _url = kwargs.pop("template_url", "/complex/dictionary/typed/notprovided") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) class DictionaryOperations(object): diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_flattencomplex_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_flattencomplex_operations.py index 23d5eb2494f..265be58d709 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_flattencomplex_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_flattencomplex_operations.py @@ -34,13 +34,13 @@ def build_get_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/flatten/valid") + _url = kwargs.pop("template_url", "/complex/flatten/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) class FlattencomplexOperations(object): diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_inheritance_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_inheritance_operations.py index 283886357fb..615dfaa885e 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_inheritance_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_inheritance_operations.py @@ -35,13 +35,13 @@ def build_get_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/inheritance/valid") + _url = kwargs.pop("template_url", "/complex/inheritance/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_valid_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -49,15 +49,15 @@ def build_put_valid_request(*, json: JSONType = None, content: Any = None, **kwa accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/inheritance/valid") + _url = kwargs.pop("template_url", "/complex/inheritance/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) class InheritanceOperations(object): diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_polymorphicrecursive_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_polymorphicrecursive_operations.py index ea9c2c0efed..82689f13d13 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_polymorphicrecursive_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_polymorphicrecursive_operations.py @@ -35,13 +35,13 @@ def build_get_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/polymorphicrecursive/valid") + _url = kwargs.pop("template_url", "/complex/polymorphicrecursive/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_valid_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -49,15 +49,15 @@ def build_put_valid_request(*, json: JSONType = None, content: Any = None, **kwa accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/polymorphicrecursive/valid") + _url = kwargs.pop("template_url", "/complex/polymorphicrecursive/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) class PolymorphicrecursiveOperations(object): diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_polymorphism_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_polymorphism_operations.py index 80fd5801aca..af04f4112ab 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_polymorphism_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_polymorphism_operations.py @@ -35,13 +35,13 @@ def build_get_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/polymorphism/valid") + _url = kwargs.pop("template_url", "/complex/polymorphism/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_valid_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -49,63 +49,63 @@ def build_put_valid_request(*, json: JSONType = None, content: Any = None, **kwa accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/polymorphism/valid") + _url = kwargs.pop("template_url", "/complex/polymorphism/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_dot_syntax_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/polymorphism/dotsyntax") + _url = kwargs.pop("template_url", "/complex/polymorphism/dotsyntax") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_composed_with_discriminator_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/polymorphism/composedWithDiscriminator") + _url = kwargs.pop("template_url", "/complex/polymorphism/composedWithDiscriminator") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_composed_without_discriminator_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/polymorphism/composedWithoutDiscriminator") + _url = kwargs.pop("template_url", "/complex/polymorphism/composedWithoutDiscriminator") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_complicated_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/polymorphism/complicated") + _url = kwargs.pop("template_url", "/complex/polymorphism/complicated") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_complicated_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -113,15 +113,15 @@ def build_put_complicated_request(*, json: JSONType = None, content: Any = None, accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/polymorphism/complicated") + _url = kwargs.pop("template_url", "/complex/polymorphism/complicated") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_put_missing_discriminator_request( @@ -131,15 +131,15 @@ def build_put_missing_discriminator_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/polymorphism/missingdiscriminator") + _url = kwargs.pop("template_url", "/complex/polymorphism/missingdiscriminator") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_put_valid_missing_required_request( @@ -149,15 +149,15 @@ def build_put_valid_missing_required_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/polymorphism/missingrequired/invalid") + _url = kwargs.pop("template_url", "/complex/polymorphism/missingrequired/invalid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) class PolymorphismOperations(object): diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_primitive_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_primitive_operations.py index dfd210102f2..1a81b4f6b63 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_primitive_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_primitive_operations.py @@ -36,13 +36,13 @@ def build_get_int_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/primitive/integer") + _url = kwargs.pop("template_url", "/complex/primitive/integer") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_int_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -50,27 +50,27 @@ def build_put_int_request(*, json: JSONType = None, content: Any = None, **kwarg accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/primitive/integer") + _url = kwargs.pop("template_url", "/complex/primitive/integer") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_long_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/primitive/long") + _url = kwargs.pop("template_url", "/complex/primitive/long") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_long_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -78,27 +78,27 @@ def build_put_long_request(*, json: JSONType = None, content: Any = None, **kwar accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/primitive/long") + _url = kwargs.pop("template_url", "/complex/primitive/long") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_float_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/primitive/float") + _url = kwargs.pop("template_url", "/complex/primitive/float") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_float_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -106,27 +106,27 @@ def build_put_float_request(*, json: JSONType = None, content: Any = None, **kwa accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/primitive/float") + _url = kwargs.pop("template_url", "/complex/primitive/float") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_double_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/primitive/double") + _url = kwargs.pop("template_url", "/complex/primitive/double") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_double_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -134,27 +134,27 @@ def build_put_double_request(*, json: JSONType = None, content: Any = None, **kw accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/primitive/double") + _url = kwargs.pop("template_url", "/complex/primitive/double") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_bool_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/primitive/bool") + _url = kwargs.pop("template_url", "/complex/primitive/bool") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_bool_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -162,27 +162,27 @@ def build_put_bool_request(*, json: JSONType = None, content: Any = None, **kwar accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/primitive/bool") + _url = kwargs.pop("template_url", "/complex/primitive/bool") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_string_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/primitive/string") + _url = kwargs.pop("template_url", "/complex/primitive/string") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_string_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -190,27 +190,27 @@ def build_put_string_request(*, json: JSONType = None, content: Any = None, **kw accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/primitive/string") + _url = kwargs.pop("template_url", "/complex/primitive/string") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_date_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/primitive/date") + _url = kwargs.pop("template_url", "/complex/primitive/date") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_date_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -218,27 +218,27 @@ def build_put_date_request(*, json: JSONType = None, content: Any = None, **kwar accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/primitive/date") + _url = kwargs.pop("template_url", "/complex/primitive/date") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_date_time_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/primitive/datetime") + _url = kwargs.pop("template_url", "/complex/primitive/datetime") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_date_time_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -246,27 +246,27 @@ def build_put_date_time_request(*, json: JSONType = None, content: Any = None, * accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/primitive/datetime") + _url = kwargs.pop("template_url", "/complex/primitive/datetime") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_date_time_rfc1123_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/primitive/datetimerfc1123") + _url = kwargs.pop("template_url", "/complex/primitive/datetimerfc1123") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_date_time_rfc1123_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -274,27 +274,27 @@ def build_put_date_time_rfc1123_request(*, json: JSONType = None, content: Any = accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/primitive/datetimerfc1123") + _url = kwargs.pop("template_url", "/complex/primitive/datetimerfc1123") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_duration_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/primitive/duration") + _url = kwargs.pop("template_url", "/complex/primitive/duration") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_duration_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -302,27 +302,27 @@ def build_put_duration_request(*, json: JSONType = None, content: Any = None, ** accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/primitive/duration") + _url = kwargs.pop("template_url", "/complex/primitive/duration") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_byte_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/primitive/byte") + _url = kwargs.pop("template_url", "/complex/primitive/byte") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_byte_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -330,15 +330,15 @@ def build_put_byte_request(*, json: JSONType = None, content: Any = None, **kwar accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/primitive/byte") + _url = kwargs.pop("template_url", "/complex/primitive/byte") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) class PrimitiveOperations(object): # pylint: disable=too-many-public-methods diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_readonlyproperty_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_readonlyproperty_operations.py index 529ad2bd8a6..90a93609f8b 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_readonlyproperty_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_readonlyproperty_operations.py @@ -35,13 +35,13 @@ def build_get_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/readonlyproperty/valid") + _url = kwargs.pop("template_url", "/complex/readonlyproperty/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_valid_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -49,15 +49,15 @@ def build_put_valid_request(*, json: JSONType = None, content: Any = None, **kwa accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/complex/readonlyproperty/valid") + _url = kwargs.pop("template_url", "/complex/readonlyproperty/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) class ReadonlypropertyOperations(object): diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyDate/bodydate/operations/_date_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyDate/bodydate/operations/_date_operations.py index 4791f64737c..964e7d65a52 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyDate/bodydate/operations/_date_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyDate/bodydate/operations/_date_operations.py @@ -42,16 +42,16 @@ def build_get_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/date/null") + _url = kwargs.pop("template_url", "/date/null") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -62,16 +62,16 @@ def build_get_invalid_date_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/date/invaliddate") + _url = kwargs.pop("template_url", "/date/invaliddate") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -82,16 +82,16 @@ def build_get_overflow_date_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/date/overflowdate") + _url = kwargs.pop("template_url", "/date/overflowdate") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -102,16 +102,16 @@ def build_get_underflow_date_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/date/underflowdate") + _url = kwargs.pop("template_url", "/date/underflowdate") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -124,18 +124,18 @@ def build_put_max_date_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/date/max") + _url = kwargs.pop("template_url", "/date/max") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -146,16 +146,16 @@ def build_get_max_date_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/date/max") + _url = kwargs.pop("template_url", "/date/max") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -168,18 +168,18 @@ def build_put_min_date_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/date/min") + _url = kwargs.pop("template_url", "/date/min") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -190,16 +190,16 @@ def build_get_min_date_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/date/min") + _url = kwargs.pop("template_url", "/date/min") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyDateTime/bodydatetime/operations/_datetime_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyDateTime/bodydatetime/operations/_datetime_operations.py index 4cfd078d4a4..fd7462430f1 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyDateTime/bodydatetime/operations/_datetime_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyDateTime/bodydatetime/operations/_datetime_operations.py @@ -42,16 +42,16 @@ def build_get_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/datetime/null") + _url = kwargs.pop("template_url", "/datetime/null") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -62,16 +62,16 @@ def build_get_invalid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/datetime/invalid") + _url = kwargs.pop("template_url", "/datetime/invalid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -82,16 +82,16 @@ def build_get_overflow_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/datetime/overflow") + _url = kwargs.pop("template_url", "/datetime/overflow") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -102,16 +102,16 @@ def build_get_underflow_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/datetime/underflow") + _url = kwargs.pop("template_url", "/datetime/underflow") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -124,18 +124,18 @@ def build_put_utc_max_date_time_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/datetime/max/utc") + _url = kwargs.pop("template_url", "/datetime/max/utc") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -148,18 +148,18 @@ def build_put_utc_max_date_time7_digits_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/datetime/max/utc7ms") + _url = kwargs.pop("template_url", "/datetime/max/utc7ms") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -170,16 +170,16 @@ def build_get_utc_lowercase_max_date_time_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/datetime/max/utc/lowercase") + _url = kwargs.pop("template_url", "/datetime/max/utc/lowercase") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -190,16 +190,16 @@ def build_get_utc_uppercase_max_date_time_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/datetime/max/utc/uppercase") + _url = kwargs.pop("template_url", "/datetime/max/utc/uppercase") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -210,16 +210,16 @@ def build_get_utc_uppercase_max_date_time7_digits_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/datetime/max/utc7ms/uppercase") + _url = kwargs.pop("template_url", "/datetime/max/utc7ms/uppercase") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -232,18 +232,18 @@ def build_put_local_positive_offset_max_date_time_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/datetime/max/localpositiveoffset") + _url = kwargs.pop("template_url", "/datetime/max/localpositiveoffset") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -254,16 +254,16 @@ def build_get_local_positive_offset_lowercase_max_date_time_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/datetime/max/localpositiveoffset/lowercase") + _url = kwargs.pop("template_url", "/datetime/max/localpositiveoffset/lowercase") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -274,16 +274,16 @@ def build_get_local_positive_offset_uppercase_max_date_time_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/datetime/max/localpositiveoffset/uppercase") + _url = kwargs.pop("template_url", "/datetime/max/localpositiveoffset/uppercase") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -296,18 +296,18 @@ def build_put_local_negative_offset_max_date_time_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/datetime/max/localnegativeoffset") + _url = kwargs.pop("template_url", "/datetime/max/localnegativeoffset") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -318,16 +318,16 @@ def build_get_local_negative_offset_uppercase_max_date_time_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/datetime/max/localnegativeoffset/uppercase") + _url = kwargs.pop("template_url", "/datetime/max/localnegativeoffset/uppercase") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -338,16 +338,16 @@ def build_get_local_negative_offset_lowercase_max_date_time_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/datetime/max/localnegativeoffset/lowercase") + _url = kwargs.pop("template_url", "/datetime/max/localnegativeoffset/lowercase") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -360,18 +360,18 @@ def build_put_utc_min_date_time_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/datetime/min/utc") + _url = kwargs.pop("template_url", "/datetime/min/utc") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -382,16 +382,16 @@ def build_get_utc_min_date_time_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/datetime/min/utc") + _url = kwargs.pop("template_url", "/datetime/min/utc") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -404,18 +404,18 @@ def build_put_local_positive_offset_min_date_time_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/datetime/min/localpositiveoffset") + _url = kwargs.pop("template_url", "/datetime/min/localpositiveoffset") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -426,16 +426,16 @@ def build_get_local_positive_offset_min_date_time_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/datetime/min/localpositiveoffset") + _url = kwargs.pop("template_url", "/datetime/min/localpositiveoffset") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -448,18 +448,18 @@ def build_put_local_negative_offset_min_date_time_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/datetime/min/localnegativeoffset") + _url = kwargs.pop("template_url", "/datetime/min/localnegativeoffset") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -470,16 +470,16 @@ def build_get_local_negative_offset_min_date_time_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/datetime/min/localnegativeoffset") + _url = kwargs.pop("template_url", "/datetime/min/localnegativeoffset") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -490,16 +490,16 @@ def build_get_local_no_offset_min_date_time_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/datetime/min/localnooffset") + _url = kwargs.pop("template_url", "/datetime/min/localnooffset") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyDateTimeRfc1123/bodydatetimerfc1123/operations/_datetimerfc1123_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyDateTimeRfc1123/bodydatetimerfc1123/operations/_datetimerfc1123_operations.py index 937ad2e5698..0f14e5950d9 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyDateTimeRfc1123/bodydatetimerfc1123/operations/_datetimerfc1123_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyDateTimeRfc1123/bodydatetimerfc1123/operations/_datetimerfc1123_operations.py @@ -42,16 +42,16 @@ def build_get_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/datetimerfc1123/null") + _url = kwargs.pop("template_url", "/datetimerfc1123/null") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -62,16 +62,16 @@ def build_get_invalid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/datetimerfc1123/invalid") + _url = kwargs.pop("template_url", "/datetimerfc1123/invalid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -82,16 +82,16 @@ def build_get_overflow_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/datetimerfc1123/overflow") + _url = kwargs.pop("template_url", "/datetimerfc1123/overflow") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -102,16 +102,16 @@ def build_get_underflow_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/datetimerfc1123/underflow") + _url = kwargs.pop("template_url", "/datetimerfc1123/underflow") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -124,18 +124,18 @@ def build_put_utc_max_date_time_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/datetimerfc1123/max") + _url = kwargs.pop("template_url", "/datetimerfc1123/max") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -146,16 +146,16 @@ def build_get_utc_lowercase_max_date_time_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/datetimerfc1123/max/lowercase") + _url = kwargs.pop("template_url", "/datetimerfc1123/max/lowercase") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -166,16 +166,16 @@ def build_get_utc_uppercase_max_date_time_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/datetimerfc1123/max/uppercase") + _url = kwargs.pop("template_url", "/datetimerfc1123/max/uppercase") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -188,18 +188,18 @@ def build_put_utc_min_date_time_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/datetimerfc1123/min") + _url = kwargs.pop("template_url", "/datetimerfc1123/min") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -210,16 +210,16 @@ def build_get_utc_min_date_time_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/datetimerfc1123/min") + _url = kwargs.pop("template_url", "/datetimerfc1123/min") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyDictionary/bodydictionary/operations/_dictionary_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyDictionary/bodydictionary/operations/_dictionary_operations.py index d004f0889f8..4bc134047a2 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyDictionary/bodydictionary/operations/_dictionary_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyDictionary/bodydictionary/operations/_dictionary_operations.py @@ -42,16 +42,16 @@ def build_get_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/dictionary/null") + _url = kwargs.pop("template_url", "/dictionary/null") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -62,16 +62,16 @@ def build_get_empty_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/dictionary/empty") + _url = kwargs.pop("template_url", "/dictionary/empty") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -84,18 +84,18 @@ def build_put_empty_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/dictionary/empty") + _url = kwargs.pop("template_url", "/dictionary/empty") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -106,16 +106,16 @@ def build_get_null_value_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/dictionary/nullvalue") + _url = kwargs.pop("template_url", "/dictionary/nullvalue") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -126,16 +126,16 @@ def build_get_null_key_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/dictionary/nullkey") + _url = kwargs.pop("template_url", "/dictionary/nullkey") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -146,16 +146,16 @@ def build_get_empty_string_key_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/dictionary/keyemptystring") + _url = kwargs.pop("template_url", "/dictionary/keyemptystring") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -166,16 +166,16 @@ def build_get_invalid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/dictionary/invalid") + _url = kwargs.pop("template_url", "/dictionary/invalid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -186,16 +186,16 @@ def build_get_boolean_tfft_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/dictionary/prim/boolean/tfft") + _url = kwargs.pop("template_url", "/dictionary/prim/boolean/tfft") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -208,18 +208,18 @@ def build_put_boolean_tfft_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/dictionary/prim/boolean/tfft") + _url = kwargs.pop("template_url", "/dictionary/prim/boolean/tfft") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -230,16 +230,16 @@ def build_get_boolean_invalid_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/dictionary/prim/boolean/true.null.false") + _url = kwargs.pop("template_url", "/dictionary/prim/boolean/true.null.false") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -250,16 +250,16 @@ def build_get_boolean_invalid_string_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/dictionary/prim/boolean/true.boolean.false") + _url = kwargs.pop("template_url", "/dictionary/prim/boolean/true.boolean.false") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -270,16 +270,16 @@ def build_get_integer_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/dictionary/prim/integer/1.-1.3.300") + _url = kwargs.pop("template_url", "/dictionary/prim/integer/1.-1.3.300") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -292,18 +292,18 @@ def build_put_integer_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/dictionary/prim/integer/1.-1.3.300") + _url = kwargs.pop("template_url", "/dictionary/prim/integer/1.-1.3.300") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -314,16 +314,16 @@ def build_get_int_invalid_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/dictionary/prim/integer/1.null.zero") + _url = kwargs.pop("template_url", "/dictionary/prim/integer/1.null.zero") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -334,16 +334,16 @@ def build_get_int_invalid_string_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/dictionary/prim/integer/1.integer.0") + _url = kwargs.pop("template_url", "/dictionary/prim/integer/1.integer.0") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -354,16 +354,16 @@ def build_get_long_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/dictionary/prim/long/1.-1.3.300") + _url = kwargs.pop("template_url", "/dictionary/prim/long/1.-1.3.300") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -376,18 +376,18 @@ def build_put_long_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/dictionary/prim/long/1.-1.3.300") + _url = kwargs.pop("template_url", "/dictionary/prim/long/1.-1.3.300") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -398,16 +398,16 @@ def build_get_long_invalid_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/dictionary/prim/long/1.null.zero") + _url = kwargs.pop("template_url", "/dictionary/prim/long/1.null.zero") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -418,16 +418,16 @@ def build_get_long_invalid_string_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/dictionary/prim/long/1.integer.0") + _url = kwargs.pop("template_url", "/dictionary/prim/long/1.integer.0") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -438,16 +438,16 @@ def build_get_float_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/dictionary/prim/float/0--0.01-1.2e20") + _url = kwargs.pop("template_url", "/dictionary/prim/float/0--0.01-1.2e20") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -460,18 +460,18 @@ def build_put_float_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/dictionary/prim/float/0--0.01-1.2e20") + _url = kwargs.pop("template_url", "/dictionary/prim/float/0--0.01-1.2e20") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -482,16 +482,16 @@ def build_get_float_invalid_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/dictionary/prim/float/0.0-null-1.2e20") + _url = kwargs.pop("template_url", "/dictionary/prim/float/0.0-null-1.2e20") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -502,16 +502,16 @@ def build_get_float_invalid_string_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/dictionary/prim/float/1.number.0") + _url = kwargs.pop("template_url", "/dictionary/prim/float/1.number.0") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -522,16 +522,16 @@ def build_get_double_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/dictionary/prim/double/0--0.01-1.2e20") + _url = kwargs.pop("template_url", "/dictionary/prim/double/0--0.01-1.2e20") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -544,18 +544,18 @@ def build_put_double_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/dictionary/prim/double/0--0.01-1.2e20") + _url = kwargs.pop("template_url", "/dictionary/prim/double/0--0.01-1.2e20") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -566,16 +566,16 @@ def build_get_double_invalid_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/dictionary/prim/double/0.0-null-1.2e20") + _url = kwargs.pop("template_url", "/dictionary/prim/double/0.0-null-1.2e20") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -586,16 +586,16 @@ def build_get_double_invalid_string_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/dictionary/prim/double/1.number.0") + _url = kwargs.pop("template_url", "/dictionary/prim/double/1.number.0") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -606,16 +606,16 @@ def build_get_string_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/dictionary/prim/string/foo1.foo2.foo3") + _url = kwargs.pop("template_url", "/dictionary/prim/string/foo1.foo2.foo3") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -628,18 +628,18 @@ def build_put_string_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/dictionary/prim/string/foo1.foo2.foo3") + _url = kwargs.pop("template_url", "/dictionary/prim/string/foo1.foo2.foo3") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -650,16 +650,16 @@ def build_get_string_with_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/dictionary/prim/string/foo.null.foo2") + _url = kwargs.pop("template_url", "/dictionary/prim/string/foo.null.foo2") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -670,16 +670,16 @@ def build_get_string_with_invalid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/dictionary/prim/string/foo.123.foo2") + _url = kwargs.pop("template_url", "/dictionary/prim/string/foo.123.foo2") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -690,16 +690,16 @@ def build_get_date_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/dictionary/prim/date/valid") + _url = kwargs.pop("template_url", "/dictionary/prim/date/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -712,18 +712,18 @@ def build_put_date_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/dictionary/prim/date/valid") + _url = kwargs.pop("template_url", "/dictionary/prim/date/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -734,16 +734,16 @@ def build_get_date_invalid_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/dictionary/prim/date/invalidnull") + _url = kwargs.pop("template_url", "/dictionary/prim/date/invalidnull") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -754,16 +754,16 @@ def build_get_date_invalid_chars_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/dictionary/prim/date/invalidchars") + _url = kwargs.pop("template_url", "/dictionary/prim/date/invalidchars") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -774,16 +774,16 @@ def build_get_date_time_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/dictionary/prim/date-time/valid") + _url = kwargs.pop("template_url", "/dictionary/prim/date-time/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -796,18 +796,18 @@ def build_put_date_time_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/dictionary/prim/date-time/valid") + _url = kwargs.pop("template_url", "/dictionary/prim/date-time/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -818,16 +818,16 @@ def build_get_date_time_invalid_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/dictionary/prim/date-time/invalidnull") + _url = kwargs.pop("template_url", "/dictionary/prim/date-time/invalidnull") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -838,16 +838,16 @@ def build_get_date_time_invalid_chars_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/dictionary/prim/date-time/invalidchars") + _url = kwargs.pop("template_url", "/dictionary/prim/date-time/invalidchars") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -858,16 +858,16 @@ def build_get_date_time_rfc1123_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/dictionary/prim/date-time-rfc1123/valid") + _url = kwargs.pop("template_url", "/dictionary/prim/date-time-rfc1123/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -880,18 +880,18 @@ def build_put_date_time_rfc1123_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/dictionary/prim/date-time-rfc1123/valid") + _url = kwargs.pop("template_url", "/dictionary/prim/date-time-rfc1123/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -902,16 +902,16 @@ def build_get_duration_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/dictionary/prim/duration/valid") + _url = kwargs.pop("template_url", "/dictionary/prim/duration/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -924,18 +924,18 @@ def build_put_duration_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/dictionary/prim/duration/valid") + _url = kwargs.pop("template_url", "/dictionary/prim/duration/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -946,16 +946,16 @@ def build_get_byte_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/dictionary/prim/byte/valid") + _url = kwargs.pop("template_url", "/dictionary/prim/byte/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -968,18 +968,18 @@ def build_put_byte_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/dictionary/prim/byte/valid") + _url = kwargs.pop("template_url", "/dictionary/prim/byte/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -990,16 +990,16 @@ def build_get_byte_invalid_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/dictionary/prim/byte/invalidnull") + _url = kwargs.pop("template_url", "/dictionary/prim/byte/invalidnull") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1010,16 +1010,16 @@ def build_get_base64_url_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/dictionary/prim/base64url/valid") + _url = kwargs.pop("template_url", "/dictionary/prim/base64url/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1030,16 +1030,16 @@ def build_get_complex_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/dictionary/complex/null") + _url = kwargs.pop("template_url", "/dictionary/complex/null") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1050,16 +1050,16 @@ def build_get_complex_empty_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/dictionary/complex/empty") + _url = kwargs.pop("template_url", "/dictionary/complex/empty") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1070,16 +1070,16 @@ def build_get_complex_item_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/dictionary/complex/itemnull") + _url = kwargs.pop("template_url", "/dictionary/complex/itemnull") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1090,16 +1090,16 @@ def build_get_complex_item_empty_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/dictionary/complex/itemempty") + _url = kwargs.pop("template_url", "/dictionary/complex/itemempty") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1110,16 +1110,16 @@ def build_get_complex_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/dictionary/complex/valid") + _url = kwargs.pop("template_url", "/dictionary/complex/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1132,18 +1132,18 @@ def build_put_complex_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/dictionary/complex/valid") + _url = kwargs.pop("template_url", "/dictionary/complex/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1154,16 +1154,16 @@ def build_get_array_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/dictionary/array/null") + _url = kwargs.pop("template_url", "/dictionary/array/null") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1174,16 +1174,16 @@ def build_get_array_empty_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/dictionary/array/empty") + _url = kwargs.pop("template_url", "/dictionary/array/empty") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1194,16 +1194,16 @@ def build_get_array_item_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/dictionary/array/itemnull") + _url = kwargs.pop("template_url", "/dictionary/array/itemnull") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1214,16 +1214,16 @@ def build_get_array_item_empty_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/dictionary/array/itemempty") + _url = kwargs.pop("template_url", "/dictionary/array/itemempty") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1234,16 +1234,16 @@ def build_get_array_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/dictionary/array/valid") + _url = kwargs.pop("template_url", "/dictionary/array/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1256,18 +1256,18 @@ def build_put_array_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/dictionary/array/valid") + _url = kwargs.pop("template_url", "/dictionary/array/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1278,16 +1278,16 @@ def build_get_dictionary_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/dictionary/dictionary/null") + _url = kwargs.pop("template_url", "/dictionary/dictionary/null") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1298,16 +1298,16 @@ def build_get_dictionary_empty_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/dictionary/dictionary/empty") + _url = kwargs.pop("template_url", "/dictionary/dictionary/empty") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1318,16 +1318,16 @@ def build_get_dictionary_item_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/dictionary/dictionary/itemnull") + _url = kwargs.pop("template_url", "/dictionary/dictionary/itemnull") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1338,16 +1338,16 @@ def build_get_dictionary_item_empty_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/dictionary/dictionary/itemempty") + _url = kwargs.pop("template_url", "/dictionary/dictionary/itemempty") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1358,16 +1358,16 @@ def build_get_dictionary_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/dictionary/dictionary/valid") + _url = kwargs.pop("template_url", "/dictionary/dictionary/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1380,18 +1380,18 @@ def build_put_dictionary_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/dictionary/dictionary/valid") + _url = kwargs.pop("template_url", "/dictionary/dictionary/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyDuration/bodyduration/operations/_duration_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyDuration/bodyduration/operations/_duration_operations.py index 8c6bdd8385c..1b7f8c296e1 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyDuration/bodyduration/operations/_duration_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyDuration/bodyduration/operations/_duration_operations.py @@ -42,16 +42,16 @@ def build_get_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/duration/null") + _url = kwargs.pop("template_url", "/duration/null") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -64,18 +64,18 @@ def build_put_positive_duration_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/duration/positiveduration") + _url = kwargs.pop("template_url", "/duration/positiveduration") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -86,16 +86,16 @@ def build_get_positive_duration_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/duration/positiveduration") + _url = kwargs.pop("template_url", "/duration/positiveduration") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -106,16 +106,16 @@ def build_get_invalid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/duration/invalid") + _url = kwargs.pop("template_url", "/duration/invalid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyFile/bodyfile/operations/_files_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyFile/bodyfile/operations/_files_operations.py index f983b8945c9..cd5dfb3b067 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyFile/bodyfile/operations/_files_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyFile/bodyfile/operations/_files_operations.py @@ -41,16 +41,16 @@ def build_get_file_request( # type: (...) -> HttpRequest accept = "image/png, application/json" # Construct URL - url = kwargs.pop("template_url", "/files/stream/nonempty") + _url = kwargs.pop("template_url", "/files/stream/nonempty") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -61,16 +61,16 @@ def build_get_file_large_request( # type: (...) -> HttpRequest accept = "image/png, application/json" # Construct URL - url = kwargs.pop("template_url", "/files/stream/verylarge") + _url = kwargs.pop("template_url", "/files/stream/verylarge") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -81,16 +81,16 @@ def build_get_empty_file_request( # type: (...) -> HttpRequest accept = "image/png, application/json" # Construct URL - url = kwargs.pop("template_url", "/files/stream/empty") + _url = kwargs.pop("template_url", "/files/stream/empty") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyFormData/bodyformdata/operations/_formdata_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyFormData/bodyformdata/operations/_formdata_operations.py index 7f1f0db1695..470368f0ac5 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyFormData/bodyformdata/operations/_formdata_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyFormData/bodyformdata/operations/_formdata_operations.py @@ -43,18 +43,18 @@ def build_upload_file_request( accept = "application/octet-stream, application/json" # Construct URL - url = kwargs.pop("template_url", "/formdata/stream/uploadfile") + _url = kwargs.pop("template_url", "/formdata/stream/uploadfile") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -67,18 +67,18 @@ def build_upload_file_via_body_request( accept = "application/octet-stream, application/json" # Construct URL - url = kwargs.pop("template_url", "/formdata/stream/uploadfile") + _url = kwargs.pop("template_url", "/formdata/stream/uploadfile") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -91,18 +91,18 @@ def build_upload_files_request( accept = "application/octet-stream, application/json" # Construct URL - url = kwargs.pop("template_url", "/formdata/stream/uploadfiles") + _url = kwargs.pop("template_url", "/formdata/stream/uploadfiles") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyFormUrlEncodedData/bodyformurlencodeddata/operations/_formdataurlencoded_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyFormUrlEncodedData/bodyformurlencodeddata/operations/_formdataurlencoded_operations.py index 81432ab0f57..20a54adaf27 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyFormUrlEncodedData/bodyformurlencodeddata/operations/_formdataurlencoded_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyFormUrlEncodedData/bodyformurlencodeddata/operations/_formdataurlencoded_operations.py @@ -43,22 +43,22 @@ def build_update_pet_with_form_request( content_type = kwargs.pop('content_type', None) # type: Optional[str] # Construct URL - url = kwargs.pop("template_url", "/formsdataurlencoded/pet/add/{petId}") + _url = kwargs.pop("template_url", "/formsdataurlencoded/pet/add/{petId}") path_format_arguments = { "petId": _SERIALIZER.url("pet_id", pet_id, 'int'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -70,17 +70,17 @@ def build_partial_constant_body_request( content_type = kwargs.pop('content_type', None) # type: Optional[str] # Construct URL - url = kwargs.pop("template_url", "/formsdataurlencoded/partialConstantBody") + _url = kwargs.pop("template_url", "/formsdataurlencoded/partialConstantBody") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyInteger/bodyinteger/operations/_int_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyInteger/bodyinteger/operations/_int_operations.py index d68783c607d..9bb77c72464 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyInteger/bodyinteger/operations/_int_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyInteger/bodyinteger/operations/_int_operations.py @@ -42,16 +42,16 @@ def build_get_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/int/null") + _url = kwargs.pop("template_url", "/int/null") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -62,16 +62,16 @@ def build_get_invalid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/int/invalid") + _url = kwargs.pop("template_url", "/int/invalid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -82,16 +82,16 @@ def build_get_overflow_int32_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/int/overflowint32") + _url = kwargs.pop("template_url", "/int/overflowint32") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -102,16 +102,16 @@ def build_get_underflow_int32_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/int/underflowint32") + _url = kwargs.pop("template_url", "/int/underflowint32") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -122,16 +122,16 @@ def build_get_overflow_int64_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/int/overflowint64") + _url = kwargs.pop("template_url", "/int/overflowint64") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -142,16 +142,16 @@ def build_get_underflow_int64_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/int/underflowint64") + _url = kwargs.pop("template_url", "/int/underflowint64") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -164,18 +164,18 @@ def build_put_max32_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/int/max/32") + _url = kwargs.pop("template_url", "/int/max/32") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -188,18 +188,18 @@ def build_put_max64_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/int/max/64") + _url = kwargs.pop("template_url", "/int/max/64") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -212,18 +212,18 @@ def build_put_min32_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/int/min/32") + _url = kwargs.pop("template_url", "/int/min/32") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -236,18 +236,18 @@ def build_put_min64_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/int/min/64") + _url = kwargs.pop("template_url", "/int/min/64") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -258,16 +258,16 @@ def build_get_unix_time_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/int/unixtime") + _url = kwargs.pop("template_url", "/int/unixtime") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -280,18 +280,18 @@ def build_put_unix_time_date_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/int/unixtime") + _url = kwargs.pop("template_url", "/int/unixtime") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -302,16 +302,16 @@ def build_get_invalid_unix_time_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/int/invalidunixtime") + _url = kwargs.pop("template_url", "/int/invalidunixtime") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -322,16 +322,16 @@ def build_get_null_unix_time_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/int/nullunixtime") + _url = kwargs.pop("template_url", "/int/nullunixtime") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyNumber/bodynumber/operations/_number_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyNumber/bodynumber/operations/_number_operations.py index 4e01f2f03d0..289acf33fbe 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyNumber/bodynumber/operations/_number_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyNumber/bodynumber/operations/_number_operations.py @@ -41,16 +41,16 @@ def build_get_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/number/null") + _url = kwargs.pop("template_url", "/number/null") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -61,16 +61,16 @@ def build_get_invalid_float_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/number/invalidfloat") + _url = kwargs.pop("template_url", "/number/invalidfloat") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -81,16 +81,16 @@ def build_get_invalid_double_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/number/invaliddouble") + _url = kwargs.pop("template_url", "/number/invaliddouble") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -101,16 +101,16 @@ def build_get_invalid_decimal_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/number/invaliddecimal") + _url = kwargs.pop("template_url", "/number/invaliddecimal") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -123,18 +123,18 @@ def build_put_big_float_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/number/big/float/3.402823e+20") + _url = kwargs.pop("template_url", "/number/big/float/3.402823e+20") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -145,16 +145,16 @@ def build_get_big_float_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/number/big/float/3.402823e+20") + _url = kwargs.pop("template_url", "/number/big/float/3.402823e+20") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -167,18 +167,18 @@ def build_put_big_double_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/number/big/double/2.5976931e+101") + _url = kwargs.pop("template_url", "/number/big/double/2.5976931e+101") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -189,16 +189,16 @@ def build_get_big_double_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/number/big/double/2.5976931e+101") + _url = kwargs.pop("template_url", "/number/big/double/2.5976931e+101") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -212,18 +212,18 @@ def build_put_big_double_positive_decimal_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/number/big/double/99999999.99") + _url = kwargs.pop("template_url", "/number/big/double/99999999.99") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, json=json, **kwargs ) @@ -235,16 +235,16 @@ def build_get_big_double_positive_decimal_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/number/big/double/99999999.99") + _url = kwargs.pop("template_url", "/number/big/double/99999999.99") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -258,18 +258,18 @@ def build_put_big_double_negative_decimal_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/number/big/double/-99999999.99") + _url = kwargs.pop("template_url", "/number/big/double/-99999999.99") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, json=json, **kwargs ) @@ -281,16 +281,16 @@ def build_get_big_double_negative_decimal_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/number/big/double/-99999999.99") + _url = kwargs.pop("template_url", "/number/big/double/-99999999.99") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -303,18 +303,18 @@ def build_put_big_decimal_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/number/big/decimal/2.5976931e+101") + _url = kwargs.pop("template_url", "/number/big/decimal/2.5976931e+101") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -325,16 +325,16 @@ def build_get_big_decimal_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/number/big/decimal/2.5976931e+101") + _url = kwargs.pop("template_url", "/number/big/decimal/2.5976931e+101") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -348,18 +348,18 @@ def build_put_big_decimal_positive_decimal_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/number/big/decimal/99999999.99") + _url = kwargs.pop("template_url", "/number/big/decimal/99999999.99") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, json=json, **kwargs ) @@ -371,16 +371,16 @@ def build_get_big_decimal_positive_decimal_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/number/big/decimal/99999999.99") + _url = kwargs.pop("template_url", "/number/big/decimal/99999999.99") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -394,18 +394,18 @@ def build_put_big_decimal_negative_decimal_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/number/big/decimal/-99999999.99") + _url = kwargs.pop("template_url", "/number/big/decimal/-99999999.99") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, json=json, **kwargs ) @@ -417,16 +417,16 @@ def build_get_big_decimal_negative_decimal_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/number/big/decimal/-99999999.99") + _url = kwargs.pop("template_url", "/number/big/decimal/-99999999.99") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -439,18 +439,18 @@ def build_put_small_float_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/number/small/float/3.402823e-20") + _url = kwargs.pop("template_url", "/number/small/float/3.402823e-20") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -461,16 +461,16 @@ def build_get_small_float_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/number/small/float/3.402823e-20") + _url = kwargs.pop("template_url", "/number/small/float/3.402823e-20") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -483,18 +483,18 @@ def build_put_small_double_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/number/small/double/2.5976931e-101") + _url = kwargs.pop("template_url", "/number/small/double/2.5976931e-101") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -505,16 +505,16 @@ def build_get_small_double_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/number/small/double/2.5976931e-101") + _url = kwargs.pop("template_url", "/number/small/double/2.5976931e-101") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -527,18 +527,18 @@ def build_put_small_decimal_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/number/small/decimal/2.5976931e-101") + _url = kwargs.pop("template_url", "/number/small/decimal/2.5976931e-101") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -549,16 +549,16 @@ def build_get_small_decimal_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/number/small/decimal/2.5976931e-101") + _url = kwargs.pop("template_url", "/number/small/decimal/2.5976931e-101") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyString/bodystring/operations/_enum_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyString/bodystring/operations/_enum_operations.py index 8a31aef647b..40e51e4e1e9 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyString/bodystring/operations/_enum_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyString/bodystring/operations/_enum_operations.py @@ -41,16 +41,16 @@ def build_get_not_expandable_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/string/enum/notExpandable") + _url = kwargs.pop("template_url", "/string/enum/notExpandable") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -63,18 +63,18 @@ def build_put_not_expandable_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/string/enum/notExpandable") + _url = kwargs.pop("template_url", "/string/enum/notExpandable") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -85,16 +85,16 @@ def build_get_referenced_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/string/enum/Referenced") + _url = kwargs.pop("template_url", "/string/enum/Referenced") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -107,18 +107,18 @@ def build_put_referenced_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/string/enum/Referenced") + _url = kwargs.pop("template_url", "/string/enum/Referenced") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -129,16 +129,16 @@ def build_get_referenced_constant_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/string/enum/ReferencedConstant") + _url = kwargs.pop("template_url", "/string/enum/ReferencedConstant") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -151,18 +151,18 @@ def build_put_referenced_constant_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/string/enum/ReferencedConstant") + _url = kwargs.pop("template_url", "/string/enum/ReferencedConstant") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyString/bodystring/operations/_string_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyString/bodystring/operations/_string_operations.py index e217b777470..73acc7e35e0 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyString/bodystring/operations/_string_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyString/bodystring/operations/_string_operations.py @@ -41,16 +41,16 @@ def build_get_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/string/null") + _url = kwargs.pop("template_url", "/string/null") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -63,18 +63,18 @@ def build_put_null_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/string/null") + _url = kwargs.pop("template_url", "/string/null") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -85,16 +85,16 @@ def build_get_empty_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/string/empty") + _url = kwargs.pop("template_url", "/string/empty") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -108,18 +108,18 @@ def build_put_empty_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/string/empty") + _url = kwargs.pop("template_url", "/string/empty") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, json=json, **kwargs ) @@ -131,16 +131,16 @@ def build_get_mbcs_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/string/mbcs") + _url = kwargs.pop("template_url", "/string/mbcs") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -154,18 +154,18 @@ def build_put_mbcs_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/string/mbcs") + _url = kwargs.pop("template_url", "/string/mbcs") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, json=json, **kwargs ) @@ -177,16 +177,16 @@ def build_get_whitespace_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/string/whitespace") + _url = kwargs.pop("template_url", "/string/whitespace") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -200,18 +200,18 @@ def build_put_whitespace_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/string/whitespace") + _url = kwargs.pop("template_url", "/string/whitespace") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, json=json, **kwargs ) @@ -223,16 +223,16 @@ def build_get_not_provided_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/string/notProvided") + _url = kwargs.pop("template_url", "/string/notProvided") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -243,16 +243,16 @@ def build_get_base64_encoded_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/string/base64Encoding") + _url = kwargs.pop("template_url", "/string/base64Encoding") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -263,16 +263,16 @@ def build_get_base64_url_encoded_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/string/base64UrlEncoding") + _url = kwargs.pop("template_url", "/string/base64UrlEncoding") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -285,18 +285,18 @@ def build_put_base64_url_encoded_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/string/base64UrlEncoding") + _url = kwargs.pop("template_url", "/string/base64UrlEncoding") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -307,16 +307,16 @@ def build_get_null_base64_url_encoded_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/string/nullBase64UrlEncoding") + _url = kwargs.pop("template_url", "/string/nullBase64UrlEncoding") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyTime/bodytime/operations/_time_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyTime/bodytime/operations/_time_operations.py index bd9c2a5b6f3..4266862897f 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyTime/bodytime/operations/_time_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyTime/bodytime/operations/_time_operations.py @@ -42,16 +42,16 @@ def build_get_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/time/get") + _url = kwargs.pop("template_url", "/time/get") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -64,18 +64,18 @@ def build_put_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/time/put") + _url = kwargs.pop("template_url", "/time/put") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/Constants/constants/operations/_contants_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/Constants/constants/operations/_contants_operations.py index 24e8681cd6d..af39edd7085 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/Constants/constants/operations/_contants_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/Constants/constants/operations/_contants_operations.py @@ -42,17 +42,17 @@ def build_put_no_model_as_string_no_required_two_value_no_default_request( input = kwargs.pop('input', None) # type: Optional[Union[str, "_models.NoModelAsStringNoRequiredTwoValueNoDefaultOpEnum"]] # Construct URL - url = kwargs.pop("template_url", "/constants/putNoModelAsStringNoRequiredTwoValueNoDefault") + _url = kwargs.pop("template_url", "/constants/putNoModelAsStringNoRequiredTwoValueNoDefault") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if input is not None: - query_parameters['input'] = _SERIALIZER.query("input", input, 'str') + _query_parameters['input'] = _SERIALIZER.query("input", input, 'str') return HttpRequest( method="PUT", - url=url, - params=query_parameters, + url=_url, + params=_query_parameters, **kwargs ) @@ -64,17 +64,17 @@ def build_put_no_model_as_string_no_required_two_value_default_request( input = kwargs.pop('input', "value1") # type: Optional[Union[str, "_models.NoModelAsStringNoRequiredTwoValueDefaultOpEnum"]] # Construct URL - url = kwargs.pop("template_url", "/constants/putNoModelAsStringNoRequiredTwoValueDefault") + _url = kwargs.pop("template_url", "/constants/putNoModelAsStringNoRequiredTwoValueDefault") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if input is not None: - query_parameters['input'] = _SERIALIZER.query("input", input, 'str') + _query_parameters['input'] = _SERIALIZER.query("input", input, 'str') return HttpRequest( method="PUT", - url=url, - params=query_parameters, + url=_url, + params=_query_parameters, **kwargs ) @@ -86,17 +86,17 @@ def build_put_no_model_as_string_no_required_one_value_no_default_request( input = kwargs.pop('input', "value1") # type: Optional[str] # Construct URL - url = kwargs.pop("template_url", "/constants/putNoModelAsStringNoRequiredOneValueNoDefault") + _url = kwargs.pop("template_url", "/constants/putNoModelAsStringNoRequiredOneValueNoDefault") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if input is not None: - query_parameters['input'] = _SERIALIZER.query("input", input, 'str') + _query_parameters['input'] = _SERIALIZER.query("input", input, 'str') return HttpRequest( method="PUT", - url=url, - params=query_parameters, + url=_url, + params=_query_parameters, **kwargs ) @@ -108,17 +108,17 @@ def build_put_no_model_as_string_no_required_one_value_default_request( input = kwargs.pop('input', "value1") # type: Optional[str] # Construct URL - url = kwargs.pop("template_url", "/constants/putNoModelAsStringNoRequiredOneValueDefault") + _url = kwargs.pop("template_url", "/constants/putNoModelAsStringNoRequiredOneValueDefault") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if input is not None: - query_parameters['input'] = _SERIALIZER.query("input", input, 'str') + _query_parameters['input'] = _SERIALIZER.query("input", input, 'str') return HttpRequest( method="PUT", - url=url, - params=query_parameters, + url=_url, + params=_query_parameters, **kwargs ) @@ -130,16 +130,16 @@ def build_put_no_model_as_string_required_two_value_no_default_request( input = kwargs.pop('input') # type: Union[str, "_models.NoModelAsStringRequiredTwoValueNoDefaultOpEnum"] # Construct URL - url = kwargs.pop("template_url", "/constants/putNoModelAsStringRequiredTwoValueNoDefault") + _url = kwargs.pop("template_url", "/constants/putNoModelAsStringRequiredTwoValueNoDefault") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['input'] = _SERIALIZER.query("input", input, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['input'] = _SERIALIZER.query("input", input, 'str') return HttpRequest( method="PUT", - url=url, - params=query_parameters, + url=_url, + params=_query_parameters, **kwargs ) @@ -151,16 +151,16 @@ def build_put_no_model_as_string_required_two_value_default_request( input = kwargs.pop('input', "value1") # type: Union[str, "_models.NoModelAsStringRequiredTwoValueDefaultOpEnum"] # Construct URL - url = kwargs.pop("template_url", "/constants/putNoModelAsStringRequiredTwoValueDefault") + _url = kwargs.pop("template_url", "/constants/putNoModelAsStringRequiredTwoValueDefault") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['input'] = _SERIALIZER.query("input", input, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['input'] = _SERIALIZER.query("input", input, 'str') return HttpRequest( method="PUT", - url=url, - params=query_parameters, + url=_url, + params=_query_parameters, **kwargs ) @@ -172,16 +172,16 @@ def build_put_no_model_as_string_required_one_value_no_default_request( input = kwargs.pop('input', "value1") # type: str # Construct URL - url = kwargs.pop("template_url", "/constants/putNoModelAsStringRequiredOneValueNoDefault") + _url = kwargs.pop("template_url", "/constants/putNoModelAsStringRequiredOneValueNoDefault") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['input'] = _SERIALIZER.query("input", input, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['input'] = _SERIALIZER.query("input", input, 'str') return HttpRequest( method="PUT", - url=url, - params=query_parameters, + url=_url, + params=_query_parameters, **kwargs ) @@ -193,16 +193,16 @@ def build_put_no_model_as_string_required_one_value_default_request( input = kwargs.pop('input', "value1") # type: str # Construct URL - url = kwargs.pop("template_url", "/constants/putNoModelAsStringRequiredOneValueDefault") + _url = kwargs.pop("template_url", "/constants/putNoModelAsStringRequiredOneValueDefault") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['input'] = _SERIALIZER.query("input", input, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['input'] = _SERIALIZER.query("input", input, 'str') return HttpRequest( method="PUT", - url=url, - params=query_parameters, + url=_url, + params=_query_parameters, **kwargs ) @@ -214,17 +214,17 @@ def build_put_model_as_string_no_required_two_value_no_default_request( input = kwargs.pop('input', None) # type: Optional[Union[str, "_models.ModelAsStringNoRequiredTwoValueNoDefaultOpEnum"]] # Construct URL - url = kwargs.pop("template_url", "/constants/putModelAsStringNoRequiredTwoValueNoDefault") + _url = kwargs.pop("template_url", "/constants/putModelAsStringNoRequiredTwoValueNoDefault") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if input is not None: - query_parameters['input'] = _SERIALIZER.query("input", input, 'str') + _query_parameters['input'] = _SERIALIZER.query("input", input, 'str') return HttpRequest( method="PUT", - url=url, - params=query_parameters, + url=_url, + params=_query_parameters, **kwargs ) @@ -236,17 +236,17 @@ def build_put_model_as_string_no_required_two_value_default_request( input = kwargs.pop('input', "value1") # type: Optional[Union[str, "_models.ModelAsStringNoRequiredTwoValueDefaultOpEnum"]] # Construct URL - url = kwargs.pop("template_url", "/constants/putModelAsStringNoRequiredTwoValueDefault") + _url = kwargs.pop("template_url", "/constants/putModelAsStringNoRequiredTwoValueDefault") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if input is not None: - query_parameters['input'] = _SERIALIZER.query("input", input, 'str') + _query_parameters['input'] = _SERIALIZER.query("input", input, 'str') return HttpRequest( method="PUT", - url=url, - params=query_parameters, + url=_url, + params=_query_parameters, **kwargs ) @@ -258,17 +258,17 @@ def build_put_model_as_string_no_required_one_value_no_default_request( input = kwargs.pop('input', None) # type: Optional[Union[str, "_models.ModelAsStringNoRequiredOneValueNoDefaultOpEnum"]] # Construct URL - url = kwargs.pop("template_url", "/constants/putModelAsStringNoRequiredOneValueNoDefault") + _url = kwargs.pop("template_url", "/constants/putModelAsStringNoRequiredOneValueNoDefault") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if input is not None: - query_parameters['input'] = _SERIALIZER.query("input", input, 'str') + _query_parameters['input'] = _SERIALIZER.query("input", input, 'str') return HttpRequest( method="PUT", - url=url, - params=query_parameters, + url=_url, + params=_query_parameters, **kwargs ) @@ -280,17 +280,17 @@ def build_put_model_as_string_no_required_one_value_default_request( input = kwargs.pop('input', "value1") # type: Optional[Union[str, "_models.ModelAsStringNoRequiredOneValueDefaultOpEnum"]] # Construct URL - url = kwargs.pop("template_url", "/constants/putModelAsStringNoRequiredOneValueDefault") + _url = kwargs.pop("template_url", "/constants/putModelAsStringNoRequiredOneValueDefault") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if input is not None: - query_parameters['input'] = _SERIALIZER.query("input", input, 'str') + _query_parameters['input'] = _SERIALIZER.query("input", input, 'str') return HttpRequest( method="PUT", - url=url, - params=query_parameters, + url=_url, + params=_query_parameters, **kwargs ) @@ -302,16 +302,16 @@ def build_put_model_as_string_required_two_value_no_default_request( input = kwargs.pop('input') # type: Union[str, "_models.ModelAsStringRequiredTwoValueNoDefaultOpEnum"] # Construct URL - url = kwargs.pop("template_url", "/constants/putModelAsStringRequiredTwoValueNoDefault") + _url = kwargs.pop("template_url", "/constants/putModelAsStringRequiredTwoValueNoDefault") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['input'] = _SERIALIZER.query("input", input, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['input'] = _SERIALIZER.query("input", input, 'str') return HttpRequest( method="PUT", - url=url, - params=query_parameters, + url=_url, + params=_query_parameters, **kwargs ) @@ -323,16 +323,16 @@ def build_put_model_as_string_required_two_value_default_request( input = kwargs.pop('input', "value1") # type: Union[str, "_models.ModelAsStringRequiredTwoValueDefaultOpEnum"] # Construct URL - url = kwargs.pop("template_url", "/constants/putModelAsStringRequiredTwoValueDefault") + _url = kwargs.pop("template_url", "/constants/putModelAsStringRequiredTwoValueDefault") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['input'] = _SERIALIZER.query("input", input, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['input'] = _SERIALIZER.query("input", input, 'str') return HttpRequest( method="PUT", - url=url, - params=query_parameters, + url=_url, + params=_query_parameters, **kwargs ) @@ -344,16 +344,16 @@ def build_put_model_as_string_required_one_value_no_default_request( input = kwargs.pop('input') # type: Union[str, "_models.ModelAsStringRequiredOneValueNoDefaultOpEnum"] # Construct URL - url = kwargs.pop("template_url", "/constants/putModelAsStringRequiredOneValueNoDefault") + _url = kwargs.pop("template_url", "/constants/putModelAsStringRequiredOneValueNoDefault") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['input'] = _SERIALIZER.query("input", input, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['input'] = _SERIALIZER.query("input", input, 'str') return HttpRequest( method="PUT", - url=url, - params=query_parameters, + url=_url, + params=_query_parameters, **kwargs ) @@ -365,16 +365,16 @@ def build_put_model_as_string_required_one_value_default_request( input = kwargs.pop('input', "value1") # type: Union[str, "_models.ModelAsStringRequiredOneValueDefaultOpEnum"] # Construct URL - url = kwargs.pop("template_url", "/constants/putModelAsStringRequiredOneValueDefault") + _url = kwargs.pop("template_url", "/constants/putModelAsStringRequiredOneValueDefault") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['input'] = _SERIALIZER.query("input", input, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['input'] = _SERIALIZER.query("input", input, 'str') return HttpRequest( method="PUT", - url=url, - params=query_parameters, + url=_url, + params=_query_parameters, **kwargs ) @@ -388,26 +388,26 @@ def build_put_client_constants_request( path_constant = kwargs.pop('path_constant', "path") # type: str # Construct URL - url = kwargs.pop("template_url", "/constants/clientConstants/{path-constant}") + _url = kwargs.pop("template_url", "/constants/clientConstants/{path-constant}") path_format_arguments = { "path-constant": _SERIALIZER.url("path_constant", path_constant, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['query-constant'] = _SERIALIZER.query("query_constant", query_constant, 'int') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['query-constant'] = _SERIALIZER.query("query_constant", query_constant, 'int') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['header-constant'] = _SERIALIZER.header("header_constant", header_constant, 'bool') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['header-constant'] = _SERIALIZER.header("header_constant", header_constant, 'bool') return HttpRequest( method="PUT", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/operations/_paths_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/operations/_paths_operations.py index 5a6ef601186..24b7a0502d2 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/operations/_paths_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/operations/_paths_operations.py @@ -40,16 +40,16 @@ def build_get_empty_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/customuri") + _url = kwargs.pop("template_url", "/customuri") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/CustomBaseUriMoreOptions/custombaseurlmoreoptions/operations/_paths_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/CustomBaseUriMoreOptions/custombaseurlmoreoptions/operations/_paths_operations.py index 17a7aff9387..f053b6ad323 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/CustomBaseUriMoreOptions/custombaseurlmoreoptions/operations/_paths_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/CustomBaseUriMoreOptions/custombaseurlmoreoptions/operations/_paths_operations.py @@ -45,28 +45,28 @@ def build_get_empty_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/customuri/{subscriptionId}/{keyName}") + _url = kwargs.pop("template_url", "/customuri/{subscriptionId}/{keyName}") path_format_arguments = { "keyName": _SERIALIZER.url("key_name", key_name, 'str'), "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if key_version is not None: - query_parameters['keyVersion'] = _SERIALIZER.query("key_version", key_version, 'str') + _query_parameters['keyVersion'] = _SERIALIZER.query("key_version", key_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/ExtensibleEnums/extensibleenumsswagger/operations/_pet_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/ExtensibleEnums/extensibleenumsswagger/operations/_pet_operations.py index 48bf2e63aee..62603c601ce 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/ExtensibleEnums/extensibleenumsswagger/operations/_pet_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/ExtensibleEnums/extensibleenumsswagger/operations/_pet_operations.py @@ -42,21 +42,21 @@ def build_get_by_pet_id_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/extensibleenums/pet/{petId}") + _url = kwargs.pop("template_url", "/extensibleenums/pet/{petId}") path_format_arguments = { "petId": _SERIALIZER.url("pet_id", pet_id, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -69,18 +69,18 @@ def build_add_pet_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/extensibleenums/pet/addPet") + _url = kwargs.pop("template_url", "/extensibleenums/pet/addPet") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/Header/header/operations/_header_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/Header/header/operations/_header_operations.py index 5b40c049a95..ac107c1111e 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/Header/header/operations/_header_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/Header/header/operations/_header_operations.py @@ -44,17 +44,17 @@ def build_param_existing_key_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/header/param/existingkey") + _url = kwargs.pop("template_url", "/header/param/existingkey") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['User-Agent'] = _SERIALIZER.header("user_agent_parameter", user_agent_parameter, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['User-Agent'] = _SERIALIZER.header("user_agent_parameter", user_agent_parameter, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -65,16 +65,16 @@ def build_response_existing_key_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/header/response/existingkey") + _url = kwargs.pop("template_url", "/header/response/existingkey") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -87,17 +87,17 @@ def build_param_protected_key_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/header/param/protectedkey") + _url = kwargs.pop("template_url", "/header/param/protectedkey") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -108,16 +108,16 @@ def build_response_protected_key_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/header/response/protectedkey") + _url = kwargs.pop("template_url", "/header/response/protectedkey") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -131,18 +131,18 @@ def build_param_integer_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/header/param/prim/integer") + _url = kwargs.pop("template_url", "/header/param/prim/integer") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['scenario'] = _SERIALIZER.header("scenario", scenario, 'str') - header_parameters['value'] = _SERIALIZER.header("value", value, 'int') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['scenario'] = _SERIALIZER.header("scenario", scenario, 'str') + _header_parameters['value'] = _SERIALIZER.header("value", value, 'int') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -155,17 +155,17 @@ def build_response_integer_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/header/response/prim/integer") + _url = kwargs.pop("template_url", "/header/response/prim/integer") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['scenario'] = _SERIALIZER.header("scenario", scenario, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['scenario'] = _SERIALIZER.header("scenario", scenario, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -179,18 +179,18 @@ def build_param_long_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/header/param/prim/long") + _url = kwargs.pop("template_url", "/header/param/prim/long") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['scenario'] = _SERIALIZER.header("scenario", scenario, 'str') - header_parameters['value'] = _SERIALIZER.header("value", value, 'long') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['scenario'] = _SERIALIZER.header("scenario", scenario, 'str') + _header_parameters['value'] = _SERIALIZER.header("value", value, 'long') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -203,17 +203,17 @@ def build_response_long_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/header/response/prim/long") + _url = kwargs.pop("template_url", "/header/response/prim/long") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['scenario'] = _SERIALIZER.header("scenario", scenario, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['scenario'] = _SERIALIZER.header("scenario", scenario, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -227,18 +227,18 @@ def build_param_float_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/header/param/prim/float") + _url = kwargs.pop("template_url", "/header/param/prim/float") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['scenario'] = _SERIALIZER.header("scenario", scenario, 'str') - header_parameters['value'] = _SERIALIZER.header("value", value, 'float') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['scenario'] = _SERIALIZER.header("scenario", scenario, 'str') + _header_parameters['value'] = _SERIALIZER.header("value", value, 'float') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -251,17 +251,17 @@ def build_response_float_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/header/response/prim/float") + _url = kwargs.pop("template_url", "/header/response/prim/float") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['scenario'] = _SERIALIZER.header("scenario", scenario, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['scenario'] = _SERIALIZER.header("scenario", scenario, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -275,18 +275,18 @@ def build_param_double_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/header/param/prim/double") + _url = kwargs.pop("template_url", "/header/param/prim/double") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['scenario'] = _SERIALIZER.header("scenario", scenario, 'str') - header_parameters['value'] = _SERIALIZER.header("value", value, 'float') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['scenario'] = _SERIALIZER.header("scenario", scenario, 'str') + _header_parameters['value'] = _SERIALIZER.header("value", value, 'float') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -299,17 +299,17 @@ def build_response_double_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/header/response/prim/double") + _url = kwargs.pop("template_url", "/header/response/prim/double") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['scenario'] = _SERIALIZER.header("scenario", scenario, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['scenario'] = _SERIALIZER.header("scenario", scenario, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -323,18 +323,18 @@ def build_param_bool_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/header/param/prim/bool") + _url = kwargs.pop("template_url", "/header/param/prim/bool") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['scenario'] = _SERIALIZER.header("scenario", scenario, 'str') - header_parameters['value'] = _SERIALIZER.header("value", value, 'bool') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['scenario'] = _SERIALIZER.header("scenario", scenario, 'str') + _header_parameters['value'] = _SERIALIZER.header("value", value, 'bool') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -347,17 +347,17 @@ def build_response_bool_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/header/response/prim/bool") + _url = kwargs.pop("template_url", "/header/response/prim/bool") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['scenario'] = _SERIALIZER.header("scenario", scenario, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['scenario'] = _SERIALIZER.header("scenario", scenario, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -371,19 +371,19 @@ def build_param_string_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/header/param/prim/string") + _url = kwargs.pop("template_url", "/header/param/prim/string") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['scenario'] = _SERIALIZER.header("scenario", scenario, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['scenario'] = _SERIALIZER.header("scenario", scenario, 'str') if value is not None: - header_parameters['value'] = _SERIALIZER.header("value", value, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['value'] = _SERIALIZER.header("value", value, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -396,17 +396,17 @@ def build_response_string_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/header/response/prim/string") + _url = kwargs.pop("template_url", "/header/response/prim/string") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['scenario'] = _SERIALIZER.header("scenario", scenario, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['scenario'] = _SERIALIZER.header("scenario", scenario, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -420,18 +420,18 @@ def build_param_date_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/header/param/prim/date") + _url = kwargs.pop("template_url", "/header/param/prim/date") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['scenario'] = _SERIALIZER.header("scenario", scenario, 'str') - header_parameters['value'] = _SERIALIZER.header("value", value, 'date') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['scenario'] = _SERIALIZER.header("scenario", scenario, 'str') + _header_parameters['value'] = _SERIALIZER.header("value", value, 'date') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -444,17 +444,17 @@ def build_response_date_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/header/response/prim/date") + _url = kwargs.pop("template_url", "/header/response/prim/date") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['scenario'] = _SERIALIZER.header("scenario", scenario, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['scenario'] = _SERIALIZER.header("scenario", scenario, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -468,18 +468,18 @@ def build_param_datetime_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/header/param/prim/datetime") + _url = kwargs.pop("template_url", "/header/param/prim/datetime") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['scenario'] = _SERIALIZER.header("scenario", scenario, 'str') - header_parameters['value'] = _SERIALIZER.header("value", value, 'iso-8601') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['scenario'] = _SERIALIZER.header("scenario", scenario, 'str') + _header_parameters['value'] = _SERIALIZER.header("value", value, 'iso-8601') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -492,17 +492,17 @@ def build_response_datetime_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/header/response/prim/datetime") + _url = kwargs.pop("template_url", "/header/response/prim/datetime") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['scenario'] = _SERIALIZER.header("scenario", scenario, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['scenario'] = _SERIALIZER.header("scenario", scenario, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -516,19 +516,19 @@ def build_param_datetime_rfc1123_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/header/param/prim/datetimerfc1123") + _url = kwargs.pop("template_url", "/header/param/prim/datetimerfc1123") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['scenario'] = _SERIALIZER.header("scenario", scenario, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['scenario'] = _SERIALIZER.header("scenario", scenario, 'str') if value is not None: - header_parameters['value'] = _SERIALIZER.header("value", value, 'rfc-1123') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['value'] = _SERIALIZER.header("value", value, 'rfc-1123') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -541,17 +541,17 @@ def build_response_datetime_rfc1123_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/header/response/prim/datetimerfc1123") + _url = kwargs.pop("template_url", "/header/response/prim/datetimerfc1123") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['scenario'] = _SERIALIZER.header("scenario", scenario, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['scenario'] = _SERIALIZER.header("scenario", scenario, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -565,18 +565,18 @@ def build_param_duration_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/header/param/prim/duration") + _url = kwargs.pop("template_url", "/header/param/prim/duration") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['scenario'] = _SERIALIZER.header("scenario", scenario, 'str') - header_parameters['value'] = _SERIALIZER.header("value", value, 'duration') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['scenario'] = _SERIALIZER.header("scenario", scenario, 'str') + _header_parameters['value'] = _SERIALIZER.header("value", value, 'duration') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -589,17 +589,17 @@ def build_response_duration_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/header/response/prim/duration") + _url = kwargs.pop("template_url", "/header/response/prim/duration") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['scenario'] = _SERIALIZER.header("scenario", scenario, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['scenario'] = _SERIALIZER.header("scenario", scenario, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -613,18 +613,18 @@ def build_param_byte_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/header/param/prim/byte") + _url = kwargs.pop("template_url", "/header/param/prim/byte") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['scenario'] = _SERIALIZER.header("scenario", scenario, 'str') - header_parameters['value'] = _SERIALIZER.header("value", value, 'bytearray') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['scenario'] = _SERIALIZER.header("scenario", scenario, 'str') + _header_parameters['value'] = _SERIALIZER.header("value", value, 'bytearray') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -637,17 +637,17 @@ def build_response_byte_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/header/response/prim/byte") + _url = kwargs.pop("template_url", "/header/response/prim/byte") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['scenario'] = _SERIALIZER.header("scenario", scenario, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['scenario'] = _SERIALIZER.header("scenario", scenario, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -661,19 +661,19 @@ def build_param_enum_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/header/param/prim/enum") + _url = kwargs.pop("template_url", "/header/param/prim/enum") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['scenario'] = _SERIALIZER.header("scenario", scenario, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['scenario'] = _SERIALIZER.header("scenario", scenario, 'str') if value is not None: - header_parameters['value'] = _SERIALIZER.header("value", value, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['value'] = _SERIALIZER.header("value", value, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -686,17 +686,17 @@ def build_response_enum_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/header/response/prim/enum") + _url = kwargs.pop("template_url", "/header/response/prim/enum") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['scenario'] = _SERIALIZER.header("scenario", scenario, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['scenario'] = _SERIALIZER.header("scenario", scenario, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -707,16 +707,16 @@ def build_custom_request_id_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/header/custom/x-ms-client-request-id/9C4D50EE-2D56-4CD3-8152-34347DC9F2B0") + _url = kwargs.pop("template_url", "/header/custom/x-ms-client-request-id/9C4D50EE-2D56-4CD3-8152-34347DC9F2B0") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_client_failure_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_client_failure_operations.py index 9c62f2844a5..07e68cb3748 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_client_failure_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_client_failure_operations.py @@ -41,16 +41,16 @@ def build_head400_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/http/failure/client/400") + _url = kwargs.pop("template_url", "/http/failure/client/400") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="HEAD", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -61,16 +61,16 @@ def build_get400_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/http/failure/client/400") + _url = kwargs.pop("template_url", "/http/failure/client/400") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -81,16 +81,16 @@ def build_options400_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/http/failure/client/400") + _url = kwargs.pop("template_url", "/http/failure/client/400") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="OPTIONS", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -103,18 +103,18 @@ def build_put400_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/http/failure/client/400") + _url = kwargs.pop("template_url", "/http/failure/client/400") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -127,18 +127,18 @@ def build_patch400_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/http/failure/client/400") + _url = kwargs.pop("template_url", "/http/failure/client/400") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PATCH", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -151,18 +151,18 @@ def build_post400_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/http/failure/client/400") + _url = kwargs.pop("template_url", "/http/failure/client/400") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -175,18 +175,18 @@ def build_delete400_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/http/failure/client/400") + _url = kwargs.pop("template_url", "/http/failure/client/400") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="DELETE", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -197,16 +197,16 @@ def build_head401_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/http/failure/client/401") + _url = kwargs.pop("template_url", "/http/failure/client/401") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="HEAD", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -217,16 +217,16 @@ def build_get402_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/http/failure/client/402") + _url = kwargs.pop("template_url", "/http/failure/client/402") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -237,16 +237,16 @@ def build_options403_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/http/failure/client/403") + _url = kwargs.pop("template_url", "/http/failure/client/403") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="OPTIONS", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -257,16 +257,16 @@ def build_get403_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/http/failure/client/403") + _url = kwargs.pop("template_url", "/http/failure/client/403") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -279,18 +279,18 @@ def build_put404_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/http/failure/client/404") + _url = kwargs.pop("template_url", "/http/failure/client/404") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -303,18 +303,18 @@ def build_patch405_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/http/failure/client/405") + _url = kwargs.pop("template_url", "/http/failure/client/405") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PATCH", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -327,18 +327,18 @@ def build_post406_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/http/failure/client/406") + _url = kwargs.pop("template_url", "/http/failure/client/406") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -351,18 +351,18 @@ def build_delete407_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/http/failure/client/407") + _url = kwargs.pop("template_url", "/http/failure/client/407") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="DELETE", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -375,18 +375,18 @@ def build_put409_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/http/failure/client/409") + _url = kwargs.pop("template_url", "/http/failure/client/409") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -397,16 +397,16 @@ def build_head410_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/http/failure/client/410") + _url = kwargs.pop("template_url", "/http/failure/client/410") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="HEAD", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -417,16 +417,16 @@ def build_get411_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/http/failure/client/411") + _url = kwargs.pop("template_url", "/http/failure/client/411") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -437,16 +437,16 @@ def build_options412_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/http/failure/client/412") + _url = kwargs.pop("template_url", "/http/failure/client/412") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="OPTIONS", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -457,16 +457,16 @@ def build_get412_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/http/failure/client/412") + _url = kwargs.pop("template_url", "/http/failure/client/412") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -479,18 +479,18 @@ def build_put413_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/http/failure/client/413") + _url = kwargs.pop("template_url", "/http/failure/client/413") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -503,18 +503,18 @@ def build_patch414_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/http/failure/client/414") + _url = kwargs.pop("template_url", "/http/failure/client/414") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PATCH", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -527,18 +527,18 @@ def build_post415_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/http/failure/client/415") + _url = kwargs.pop("template_url", "/http/failure/client/415") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -549,16 +549,16 @@ def build_get416_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/http/failure/client/416") + _url = kwargs.pop("template_url", "/http/failure/client/416") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -571,18 +571,18 @@ def build_delete417_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/http/failure/client/417") + _url = kwargs.pop("template_url", "/http/failure/client/417") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="DELETE", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -593,16 +593,16 @@ def build_head429_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/http/failure/client/429") + _url = kwargs.pop("template_url", "/http/failure/client/429") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="HEAD", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_failure_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_failure_operations.py index 21532bc9218..f2a45dc9e5a 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_failure_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_failure_operations.py @@ -41,16 +41,16 @@ def build_get_empty_error_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/http/failure/emptybody/error") + _url = kwargs.pop("template_url", "/http/failure/emptybody/error") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -61,16 +61,16 @@ def build_get_no_model_error_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/http/failure/nomodel/error") + _url = kwargs.pop("template_url", "/http/failure/nomodel/error") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -81,16 +81,16 @@ def build_get_no_model_empty_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/http/failure/nomodel/empty") + _url = kwargs.pop("template_url", "/http/failure/nomodel/empty") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_redirects_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_redirects_operations.py index 30eebee78d6..587fa435f2d 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_redirects_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_redirects_operations.py @@ -41,16 +41,16 @@ def build_head300_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/http/redirect/300") + _url = kwargs.pop("template_url", "/http/redirect/300") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="HEAD", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -61,16 +61,16 @@ def build_get300_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/http/redirect/300") + _url = kwargs.pop("template_url", "/http/redirect/300") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -81,16 +81,16 @@ def build_head301_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/http/redirect/301") + _url = kwargs.pop("template_url", "/http/redirect/301") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="HEAD", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -101,16 +101,16 @@ def build_get301_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/http/redirect/301") + _url = kwargs.pop("template_url", "/http/redirect/301") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -123,18 +123,18 @@ def build_put301_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/http/redirect/301") + _url = kwargs.pop("template_url", "/http/redirect/301") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -145,16 +145,16 @@ def build_head302_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/http/redirect/302") + _url = kwargs.pop("template_url", "/http/redirect/302") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="HEAD", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -165,16 +165,16 @@ def build_get302_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/http/redirect/302") + _url = kwargs.pop("template_url", "/http/redirect/302") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -187,18 +187,18 @@ def build_patch302_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/http/redirect/302") + _url = kwargs.pop("template_url", "/http/redirect/302") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PATCH", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -211,18 +211,18 @@ def build_post303_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/http/redirect/303") + _url = kwargs.pop("template_url", "/http/redirect/303") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -233,16 +233,16 @@ def build_head307_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/http/redirect/307") + _url = kwargs.pop("template_url", "/http/redirect/307") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="HEAD", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -253,16 +253,16 @@ def build_get307_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/http/redirect/307") + _url = kwargs.pop("template_url", "/http/redirect/307") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -273,16 +273,16 @@ def build_options307_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/http/redirect/307") + _url = kwargs.pop("template_url", "/http/redirect/307") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="OPTIONS", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -295,18 +295,18 @@ def build_put307_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/http/redirect/307") + _url = kwargs.pop("template_url", "/http/redirect/307") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -319,18 +319,18 @@ def build_patch307_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/http/redirect/307") + _url = kwargs.pop("template_url", "/http/redirect/307") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PATCH", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -343,18 +343,18 @@ def build_post307_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/http/redirect/307") + _url = kwargs.pop("template_url", "/http/redirect/307") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -367,18 +367,18 @@ def build_delete307_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/http/redirect/307") + _url = kwargs.pop("template_url", "/http/redirect/307") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="DELETE", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_retry_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_retry_operations.py index f390e5c0341..0f784af9b91 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_retry_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_retry_operations.py @@ -41,16 +41,16 @@ def build_head408_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/http/retry/408") + _url = kwargs.pop("template_url", "/http/retry/408") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="HEAD", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -63,18 +63,18 @@ def build_put500_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/http/retry/500") + _url = kwargs.pop("template_url", "/http/retry/500") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -87,18 +87,18 @@ def build_patch500_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/http/retry/500") + _url = kwargs.pop("template_url", "/http/retry/500") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PATCH", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -109,16 +109,16 @@ def build_get502_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/http/retry/502") + _url = kwargs.pop("template_url", "/http/retry/502") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -129,16 +129,16 @@ def build_options502_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/http/retry/502") + _url = kwargs.pop("template_url", "/http/retry/502") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="OPTIONS", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -151,18 +151,18 @@ def build_post503_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/http/retry/503") + _url = kwargs.pop("template_url", "/http/retry/503") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -175,18 +175,18 @@ def build_delete503_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/http/retry/503") + _url = kwargs.pop("template_url", "/http/retry/503") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="DELETE", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -199,18 +199,18 @@ def build_put504_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/http/retry/504") + _url = kwargs.pop("template_url", "/http/retry/504") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -223,18 +223,18 @@ def build_patch504_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/http/retry/504") + _url = kwargs.pop("template_url", "/http/retry/504") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PATCH", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_server_failure_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_server_failure_operations.py index 24e9601a098..a0422c6526d 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_server_failure_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_server_failure_operations.py @@ -41,16 +41,16 @@ def build_head501_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/http/failure/server/501") + _url = kwargs.pop("template_url", "/http/failure/server/501") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="HEAD", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -61,16 +61,16 @@ def build_get501_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/http/failure/server/501") + _url = kwargs.pop("template_url", "/http/failure/server/501") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -83,18 +83,18 @@ def build_post505_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/http/failure/server/505") + _url = kwargs.pop("template_url", "/http/failure/server/505") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -107,18 +107,18 @@ def build_delete505_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/http/failure/server/505") + _url = kwargs.pop("template_url", "/http/failure/server/505") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="DELETE", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_success_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_success_operations.py index 09401cf2487..4f47f92b66b 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_success_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_success_operations.py @@ -41,16 +41,16 @@ def build_head200_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/http/success/200") + _url = kwargs.pop("template_url", "/http/success/200") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="HEAD", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -61,16 +61,16 @@ def build_get200_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/http/success/200") + _url = kwargs.pop("template_url", "/http/success/200") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -81,16 +81,16 @@ def build_options200_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/http/success/200") + _url = kwargs.pop("template_url", "/http/success/200") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="OPTIONS", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -103,18 +103,18 @@ def build_put200_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/http/success/200") + _url = kwargs.pop("template_url", "/http/success/200") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -127,18 +127,18 @@ def build_patch200_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/http/success/200") + _url = kwargs.pop("template_url", "/http/success/200") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PATCH", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -151,18 +151,18 @@ def build_post200_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/http/success/200") + _url = kwargs.pop("template_url", "/http/success/200") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -175,18 +175,18 @@ def build_delete200_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/http/success/200") + _url = kwargs.pop("template_url", "/http/success/200") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="DELETE", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -199,18 +199,18 @@ def build_put201_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/http/success/201") + _url = kwargs.pop("template_url", "/http/success/201") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -223,18 +223,18 @@ def build_post201_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/http/success/201") + _url = kwargs.pop("template_url", "/http/success/201") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -247,18 +247,18 @@ def build_put202_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/http/success/202") + _url = kwargs.pop("template_url", "/http/success/202") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -271,18 +271,18 @@ def build_patch202_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/http/success/202") + _url = kwargs.pop("template_url", "/http/success/202") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PATCH", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -295,18 +295,18 @@ def build_post202_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/http/success/202") + _url = kwargs.pop("template_url", "/http/success/202") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -319,18 +319,18 @@ def build_delete202_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/http/success/202") + _url = kwargs.pop("template_url", "/http/success/202") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="DELETE", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -341,16 +341,16 @@ def build_head204_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/http/success/204") + _url = kwargs.pop("template_url", "/http/success/204") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="HEAD", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -363,18 +363,18 @@ def build_put204_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/http/success/204") + _url = kwargs.pop("template_url", "/http/success/204") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -387,18 +387,18 @@ def build_patch204_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/http/success/204") + _url = kwargs.pop("template_url", "/http/success/204") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PATCH", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -411,18 +411,18 @@ def build_post204_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/http/success/204") + _url = kwargs.pop("template_url", "/http/success/204") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -435,18 +435,18 @@ def build_delete204_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/http/success/204") + _url = kwargs.pop("template_url", "/http/success/204") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="DELETE", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -457,16 +457,16 @@ def build_head404_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/http/success/404") + _url = kwargs.pop("template_url", "/http/success/404") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="HEAD", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_multiple_responses_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_multiple_responses_operations.py index 0ff6f4b7c6a..a490e103f57 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_multiple_responses_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_multiple_responses_operations.py @@ -41,16 +41,16 @@ def build_get200_model204_no_model_default_error200_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/http/payloads/200/A/204/none/default/Error/response/200/valid") + _url = kwargs.pop("template_url", "/http/payloads/200/A/204/none/default/Error/response/200/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -61,16 +61,16 @@ def build_get200_model204_no_model_default_error204_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/http/payloads/200/A/204/none/default/Error/response/204/none") + _url = kwargs.pop("template_url", "/http/payloads/200/A/204/none/default/Error/response/204/none") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -81,16 +81,16 @@ def build_get200_model204_no_model_default_error201_invalid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/http/payloads/200/A/204/none/default/Error/response/201/valid") + _url = kwargs.pop("template_url", "/http/payloads/200/A/204/none/default/Error/response/201/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -101,16 +101,16 @@ def build_get200_model204_no_model_default_error202_none_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/http/payloads/200/A/204/none/default/Error/response/202/none") + _url = kwargs.pop("template_url", "/http/payloads/200/A/204/none/default/Error/response/202/none") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -121,16 +121,16 @@ def build_get200_model204_no_model_default_error400_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/http/payloads/200/A/204/none/default/Error/response/400/valid") + _url = kwargs.pop("template_url", "/http/payloads/200/A/204/none/default/Error/response/400/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -141,16 +141,16 @@ def build_get200_model201_model_default_error200_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/http/payloads/200/A/201/B/default/Error/response/200/valid") + _url = kwargs.pop("template_url", "/http/payloads/200/A/201/B/default/Error/response/200/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -161,16 +161,16 @@ def build_get200_model201_model_default_error201_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/http/payloads/200/A/201/B/default/Error/response/201/valid") + _url = kwargs.pop("template_url", "/http/payloads/200/A/201/B/default/Error/response/201/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -181,16 +181,16 @@ def build_get200_model201_model_default_error400_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/http/payloads/200/A/201/B/default/Error/response/400/valid") + _url = kwargs.pop("template_url", "/http/payloads/200/A/201/B/default/Error/response/400/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -201,16 +201,16 @@ def build_get200_model_a201_model_c404_model_d_default_error200_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/http/payloads/200/A/201/C/404/D/default/Error/response/200/valid") + _url = kwargs.pop("template_url", "/http/payloads/200/A/201/C/404/D/default/Error/response/200/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -221,16 +221,16 @@ def build_get200_model_a201_model_c404_model_d_default_error201_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/http/payloads/200/A/201/C/404/D/default/Error/response/201/valid") + _url = kwargs.pop("template_url", "/http/payloads/200/A/201/C/404/D/default/Error/response/201/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -241,16 +241,16 @@ def build_get200_model_a201_model_c404_model_d_default_error404_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/http/payloads/200/A/201/C/404/D/default/Error/response/404/valid") + _url = kwargs.pop("template_url", "/http/payloads/200/A/201/C/404/D/default/Error/response/404/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -261,16 +261,16 @@ def build_get200_model_a201_model_c404_model_d_default_error400_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/http/payloads/200/A/201/C/404/D/default/Error/response/400/valid") + _url = kwargs.pop("template_url", "/http/payloads/200/A/201/C/404/D/default/Error/response/400/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -281,16 +281,16 @@ def build_get202_none204_none_default_error202_none_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/http/payloads/202/none/204/none/default/Error/response/202/none") + _url = kwargs.pop("template_url", "/http/payloads/202/none/204/none/default/Error/response/202/none") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -301,16 +301,16 @@ def build_get202_none204_none_default_error204_none_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/http/payloads/202/none/204/none/default/Error/response/204/none") + _url = kwargs.pop("template_url", "/http/payloads/202/none/204/none/default/Error/response/204/none") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -321,16 +321,16 @@ def build_get202_none204_none_default_error400_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/http/payloads/202/none/204/none/default/Error/response/400/valid") + _url = kwargs.pop("template_url", "/http/payloads/202/none/204/none/default/Error/response/400/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -340,11 +340,11 @@ def build_get202_none204_none_default_none202_invalid_request( ): # type: (...) -> HttpRequest # Construct URL - url = kwargs.pop("template_url", "/http/payloads/202/none/204/none/default/none/response/202/invalid") + _url = kwargs.pop("template_url", "/http/payloads/202/none/204/none/default/none/response/202/invalid") return HttpRequest( method="GET", - url=url, + url=_url, **kwargs ) @@ -354,11 +354,11 @@ def build_get202_none204_none_default_none204_none_request( ): # type: (...) -> HttpRequest # Construct URL - url = kwargs.pop("template_url", "/http/payloads/202/none/204/none/default/none/response/204/none") + _url = kwargs.pop("template_url", "/http/payloads/202/none/204/none/default/none/response/204/none") return HttpRequest( method="GET", - url=url, + url=_url, **kwargs ) @@ -368,11 +368,11 @@ def build_get202_none204_none_default_none400_none_request( ): # type: (...) -> HttpRequest # Construct URL - url = kwargs.pop("template_url", "/http/payloads/202/none/204/none/default/none/response/400/none") + _url = kwargs.pop("template_url", "/http/payloads/202/none/204/none/default/none/response/400/none") return HttpRequest( method="GET", - url=url, + url=_url, **kwargs ) @@ -382,11 +382,11 @@ def build_get202_none204_none_default_none400_invalid_request( ): # type: (...) -> HttpRequest # Construct URL - url = kwargs.pop("template_url", "/http/payloads/202/none/204/none/default/none/response/400/invalid") + _url = kwargs.pop("template_url", "/http/payloads/202/none/204/none/default/none/response/400/invalid") return HttpRequest( method="GET", - url=url, + url=_url, **kwargs ) @@ -397,16 +397,16 @@ def build_get_default_model_a200_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/http/payloads/default/A/response/200/valid") + _url = kwargs.pop("template_url", "/http/payloads/default/A/response/200/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -417,16 +417,16 @@ def build_get_default_model_a200_none_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/http/payloads/default/A/response/200/none") + _url = kwargs.pop("template_url", "/http/payloads/default/A/response/200/none") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -437,16 +437,16 @@ def build_get_default_model_a400_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/http/payloads/default/A/response/400/valid") + _url = kwargs.pop("template_url", "/http/payloads/default/A/response/400/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -457,16 +457,16 @@ def build_get_default_model_a400_none_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/http/payloads/default/A/response/400/none") + _url = kwargs.pop("template_url", "/http/payloads/default/A/response/400/none") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -476,11 +476,11 @@ def build_get_default_none200_invalid_request( ): # type: (...) -> HttpRequest # Construct URL - url = kwargs.pop("template_url", "/http/payloads/default/none/response/200/invalid") + _url = kwargs.pop("template_url", "/http/payloads/default/none/response/200/invalid") return HttpRequest( method="GET", - url=url, + url=_url, **kwargs ) @@ -490,11 +490,11 @@ def build_get_default_none200_none_request( ): # type: (...) -> HttpRequest # Construct URL - url = kwargs.pop("template_url", "/http/payloads/default/none/response/200/none") + _url = kwargs.pop("template_url", "/http/payloads/default/none/response/200/none") return HttpRequest( method="GET", - url=url, + url=_url, **kwargs ) @@ -504,11 +504,11 @@ def build_get_default_none400_invalid_request( ): # type: (...) -> HttpRequest # Construct URL - url = kwargs.pop("template_url", "/http/payloads/default/none/response/400/invalid") + _url = kwargs.pop("template_url", "/http/payloads/default/none/response/400/invalid") return HttpRequest( method="GET", - url=url, + url=_url, **kwargs ) @@ -518,11 +518,11 @@ def build_get_default_none400_none_request( ): # type: (...) -> HttpRequest # Construct URL - url = kwargs.pop("template_url", "/http/payloads/default/none/response/400/none") + _url = kwargs.pop("template_url", "/http/payloads/default/none/response/400/none") return HttpRequest( method="GET", - url=url, + url=_url, **kwargs ) @@ -533,16 +533,16 @@ def build_get200_model_a200_none_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/http/payloads/200/A/response/200/none") + _url = kwargs.pop("template_url", "/http/payloads/200/A/response/200/none") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -553,16 +553,16 @@ def build_get200_model_a200_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/http/payloads/200/A/response/200/valid") + _url = kwargs.pop("template_url", "/http/payloads/200/A/response/200/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -573,16 +573,16 @@ def build_get200_model_a200_invalid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/http/payloads/200/A/response/200/invalid") + _url = kwargs.pop("template_url", "/http/payloads/200/A/response/200/invalid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -593,16 +593,16 @@ def build_get200_model_a400_none_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/http/payloads/200/A/response/400/none") + _url = kwargs.pop("template_url", "/http/payloads/200/A/response/400/none") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -613,16 +613,16 @@ def build_get200_model_a400_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/http/payloads/200/A/response/400/valid") + _url = kwargs.pop("template_url", "/http/payloads/200/A/response/400/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -633,16 +633,16 @@ def build_get200_model_a400_invalid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/http/payloads/200/A/response/400/invalid") + _url = kwargs.pop("template_url", "/http/payloads/200/A/response/400/invalid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -653,16 +653,16 @@ def build_get200_model_a202_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/http/payloads/200/A/response/202/valid") + _url = kwargs.pop("template_url", "/http/payloads/200/A/response/202/valid") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/IncorrectErrorResponse/incorrecterrorresponse/operations/_incorrect_returned_error_model_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/IncorrectErrorResponse/incorrecterrorresponse/operations/_incorrect_returned_error_model_operations.py index 48b7c50288d..f9cbbfb5654 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/IncorrectErrorResponse/incorrecterrorresponse/operations/_incorrect_returned_error_model_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/IncorrectErrorResponse/incorrecterrorresponse/operations/_incorrect_returned_error_model_operations.py @@ -40,11 +40,11 @@ def build_get_incorrect_error_from_server_request( ): # type: (...) -> HttpRequest # Construct URL - url = kwargs.pop("template_url", "/incorrectError") + _url = kwargs.pop("template_url", "/incorrectError") return HttpRequest( method="GET", - url=url, + url=_url, **kwargs ) diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/MediaTypes/mediatypes/operations/_media_types_client_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/MediaTypes/mediatypes/operations/_media_types_client_operations.py index 05063b95651..59a3b665f79 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/MediaTypes/mediatypes/operations/_media_types_client_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/MediaTypes/mediatypes/operations/_media_types_client_operations.py @@ -43,18 +43,18 @@ def build_analyze_body_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/mediatypes/analyze") + _url = kwargs.pop("template_url", "/mediatypes/analyze") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -66,17 +66,17 @@ def build_analyze_body_no_accept_header_request( content_type = kwargs.pop('content_type', None) # type: Optional[Union[str, "_models.ContentType"]] # Construct URL - url = kwargs.pop("template_url", "/mediatypes/analyzeNoAccept") + _url = kwargs.pop("template_url", "/mediatypes/analyzeNoAccept") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -89,18 +89,18 @@ def build_content_type_with_encoding_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/mediatypes/contentTypeWithEncoding") + _url = kwargs.pop("template_url", "/mediatypes/contentTypeWithEncoding") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -113,18 +113,18 @@ def build_binary_body_with_two_content_types_request( accept = "text/plain" # Construct URL - url = kwargs.pop("template_url", "/mediatypes/binaryBodyTwoContentTypes") + _url = kwargs.pop("template_url", "/mediatypes/binaryBodyTwoContentTypes") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -137,18 +137,18 @@ def build_binary_body_with_three_content_types_request( accept = "text/plain" # Construct URL - url = kwargs.pop("template_url", "/mediatypes/binaryBodyThreeContentTypes") + _url = kwargs.pop("template_url", "/mediatypes/binaryBodyThreeContentTypes") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -161,18 +161,18 @@ def build_put_text_and_json_body_request( accept = "text/plain" # Construct URL - url = kwargs.pop("template_url", "/mediatypes/textAndJson") + _url = kwargs.pop("template_url", "/mediatypes/textAndJson") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/MergePatchJson/mergepatchjson/operations/_merge_patch_json_client_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/MergePatchJson/mergepatchjson/operations/_merge_patch_json_client_operations.py index 804cdf976a6..3629e782d53 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/MergePatchJson/mergepatchjson/operations/_merge_patch_json_client_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/MergePatchJson/mergepatchjson/operations/_merge_patch_json_client_operations.py @@ -42,18 +42,18 @@ def build_patch_single_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/mergePatchJson/single") + _url = kwargs.pop("template_url", "/mergePatchJson/single") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PATCH", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/ModelFlattening/modelflattening/operations/_auto_rest_resource_flattening_test_service_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/ModelFlattening/modelflattening/operations/_auto_rest_resource_flattening_test_service_operations.py index 82507c8309f..c25a89027a2 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/ModelFlattening/modelflattening/operations/_auto_rest_resource_flattening_test_service_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/ModelFlattening/modelflattening/operations/_auto_rest_resource_flattening_test_service_operations.py @@ -43,18 +43,18 @@ def build_put_array_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/model-flatten/array") + _url = kwargs.pop("template_url", "/model-flatten/array") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -65,16 +65,16 @@ def build_get_array_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/model-flatten/array") + _url = kwargs.pop("template_url", "/model-flatten/array") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -87,18 +87,18 @@ def build_put_wrapped_array_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/model-flatten/wrappedarray") + _url = kwargs.pop("template_url", "/model-flatten/wrappedarray") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -109,16 +109,16 @@ def build_get_wrapped_array_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/model-flatten/wrappedarray") + _url = kwargs.pop("template_url", "/model-flatten/wrappedarray") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -131,18 +131,18 @@ def build_put_dictionary_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/model-flatten/dictionary") + _url = kwargs.pop("template_url", "/model-flatten/dictionary") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -153,16 +153,16 @@ def build_get_dictionary_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/model-flatten/dictionary") + _url = kwargs.pop("template_url", "/model-flatten/dictionary") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -175,18 +175,18 @@ def build_put_resource_collection_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/model-flatten/resourcecollection") + _url = kwargs.pop("template_url", "/model-flatten/resourcecollection") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -197,16 +197,16 @@ def build_get_resource_collection_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/model-flatten/resourcecollection") + _url = kwargs.pop("template_url", "/model-flatten/resourcecollection") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -219,18 +219,18 @@ def build_put_simple_product_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/model-flatten/customFlattening") + _url = kwargs.pop("template_url", "/model-flatten/customFlattening") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -243,18 +243,18 @@ def build_post_flattened_simple_product_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/model-flatten/customFlattening") + _url = kwargs.pop("template_url", "/model-flatten/customFlattening") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -268,23 +268,23 @@ def build_put_simple_product_with_grouping_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/model-flatten/customFlattening/parametergrouping/{name}/") + _url = kwargs.pop("template_url", "/model-flatten/customFlattening/parametergrouping/{name}/") path_format_arguments = { "name": _SERIALIZER.url("name", name, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/operations/_multiple_inheritance_service_client_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/operations/_multiple_inheritance_service_client_operations.py index 705d2b41a2d..1f1abdffbc5 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/operations/_multiple_inheritance_service_client_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/operations/_multiple_inheritance_service_client_operations.py @@ -41,16 +41,16 @@ def build_get_horse_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/multipleInheritance/horse") + _url = kwargs.pop("template_url", "/multipleInheritance/horse") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -63,18 +63,18 @@ def build_put_horse_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/multipleInheritance/horse") + _url = kwargs.pop("template_url", "/multipleInheritance/horse") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -85,16 +85,16 @@ def build_get_pet_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/multipleInheritance/pet") + _url = kwargs.pop("template_url", "/multipleInheritance/pet") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -107,18 +107,18 @@ def build_put_pet_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/multipleInheritance/pet") + _url = kwargs.pop("template_url", "/multipleInheritance/pet") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -129,16 +129,16 @@ def build_get_feline_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/multipleInheritance/feline") + _url = kwargs.pop("template_url", "/multipleInheritance/feline") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -151,18 +151,18 @@ def build_put_feline_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/multipleInheritance/feline") + _url = kwargs.pop("template_url", "/multipleInheritance/feline") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -173,16 +173,16 @@ def build_get_cat_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/multipleInheritance/cat") + _url = kwargs.pop("template_url", "/multipleInheritance/cat") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -195,18 +195,18 @@ def build_put_cat_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/multipleInheritance/cat") + _url = kwargs.pop("template_url", "/multipleInheritance/cat") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -217,16 +217,16 @@ def build_get_kitten_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/multipleInheritance/kitten") + _url = kwargs.pop("template_url", "/multipleInheritance/kitten") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -239,18 +239,18 @@ def build_put_kitten_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/multipleInheritance/kitten") + _url = kwargs.pop("template_url", "/multipleInheritance/kitten") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/NonStringEnums/nonstringenums/operations/_float_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/NonStringEnums/nonstringenums/operations/_float_operations.py index 5a11a9780e6..76b9bf392a6 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/NonStringEnums/nonstringenums/operations/_float_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/NonStringEnums/nonstringenums/operations/_float_operations.py @@ -43,18 +43,18 @@ def build_put_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/nonStringEnums/float/put") + _url = kwargs.pop("template_url", "/nonStringEnums/float/put") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -65,16 +65,16 @@ def build_get_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/nonStringEnums/float/get") + _url = kwargs.pop("template_url", "/nonStringEnums/float/get") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/NonStringEnums/nonstringenums/operations/_int_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/NonStringEnums/nonstringenums/operations/_int_operations.py index 41c7e08719e..a6063f62424 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/NonStringEnums/nonstringenums/operations/_int_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/NonStringEnums/nonstringenums/operations/_int_operations.py @@ -43,18 +43,18 @@ def build_put_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/nonStringEnums/int/put") + _url = kwargs.pop("template_url", "/nonStringEnums/int/put") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -65,16 +65,16 @@ def build_get_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/nonStringEnums/int/get") + _url = kwargs.pop("template_url", "/nonStringEnums/int/get") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/ObjectType/objecttype/operations/_object_type_client_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/ObjectType/objecttype/operations/_object_type_client_operations.py index 29504925a97..084300a750e 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/ObjectType/objecttype/operations/_object_type_client_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/ObjectType/objecttype/operations/_object_type_client_operations.py @@ -40,16 +40,16 @@ def build_get_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/objectType/get") + _url = kwargs.pop("template_url", "/objectType/get") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -62,18 +62,18 @@ def build_put_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/objectType/put") + _url = kwargs.pop("template_url", "/objectType/put") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/ParameterFlattening/parameterflattening/operations/_availability_sets_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/ParameterFlattening/parameterflattening/operations/_availability_sets_operations.py index c24932c5dcf..017844df3fb 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/ParameterFlattening/parameterflattening/operations/_availability_sets_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/ParameterFlattening/parameterflattening/operations/_availability_sets_operations.py @@ -44,23 +44,23 @@ def build_update_request( content_type = kwargs.pop('content_type', None) # type: Optional[str] # Construct URL - url = kwargs.pop("template_url", "/parameterFlattening/{resourceGroupName}/{availabilitySetName}") + _url = kwargs.pop("template_url", "/parameterFlattening/{resourceGroupName}/{availabilitySetName}") path_format_arguments = { "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str'), "availabilitySetName": _SERIALIZER.url("avset", avset, 'str', max_length=80, min_length=0), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') return HttpRequest( method="PATCH", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/ParameterizedEndpoint/parameterizedendpoint/operations/_parmaterized_endpoint_client_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/ParameterizedEndpoint/parameterizedendpoint/operations/_parmaterized_endpoint_client_operations.py index 503101351ed..4c4bc4c0d63 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/ParameterizedEndpoint/parameterizedendpoint/operations/_parmaterized_endpoint_client_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/ParameterizedEndpoint/parameterizedendpoint/operations/_parmaterized_endpoint_client_operations.py @@ -39,11 +39,11 @@ def build_get_request( ): # type: (...) -> HttpRequest # Construct URL - url = kwargs.pop("template_url", "/parameterizedEndpoint/get") + _url = kwargs.pop("template_url", "/parameterizedEndpoint/get") return HttpRequest( method="GET", - url=url, + url=_url, **kwargs ) diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/Report/report/operations/_auto_rest_report_service_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/Report/report/operations/_auto_rest_report_service_operations.py index c479230370e..4b79c555a37 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/Report/report/operations/_auto_rest_report_service_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/Report/report/operations/_auto_rest_report_service_operations.py @@ -43,22 +43,22 @@ def build_get_report_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/report") + _url = kwargs.pop("template_url", "/report") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if qualifier is not None: - query_parameters['qualifier'] = _SERIALIZER.query("qualifier", qualifier, 'str') + _query_parameters['qualifier'] = _SERIALIZER.query("qualifier", qualifier, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -71,22 +71,22 @@ def build_get_optional_report_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/report/optional") + _url = kwargs.pop("template_url", "/report/optional") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if qualifier is not None: - query_parameters['qualifier'] = _SERIALIZER.query("qualifier", qualifier, 'str') + _query_parameters['qualifier'] = _SERIALIZER.query("qualifier", qualifier, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/RequiredOptional/requiredoptional/operations/_explicit_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/RequiredOptional/requiredoptional/operations/_explicit_operations.py index adfcab6cad2..f6db2bdf408 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/RequiredOptional/requiredoptional/operations/_explicit_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/RequiredOptional/requiredoptional/operations/_explicit_operations.py @@ -42,18 +42,18 @@ def build_put_optional_binary_body_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/reqopt/explicit/optional/binary-body") + _url = kwargs.pop("template_url", "/reqopt/explicit/optional/binary-body") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -66,18 +66,18 @@ def build_put_required_binary_body_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/reqopt/explicit/required/binary-body") + _url = kwargs.pop("template_url", "/reqopt/explicit/required/binary-body") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -90,18 +90,18 @@ def build_post_required_integer_parameter_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/reqopt/requied/integer/parameter") + _url = kwargs.pop("template_url", "/reqopt/requied/integer/parameter") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -114,18 +114,18 @@ def build_post_optional_integer_parameter_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/reqopt/optional/integer/parameter") + _url = kwargs.pop("template_url", "/reqopt/optional/integer/parameter") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -138,18 +138,18 @@ def build_post_required_integer_property_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/reqopt/requied/integer/property") + _url = kwargs.pop("template_url", "/reqopt/requied/integer/property") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -162,18 +162,18 @@ def build_post_optional_integer_property_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/reqopt/optional/integer/property") + _url = kwargs.pop("template_url", "/reqopt/optional/integer/property") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -186,17 +186,17 @@ def build_post_required_integer_header_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/reqopt/requied/integer/header") + _url = kwargs.pop("template_url", "/reqopt/requied/integer/header") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['headerParameter'] = _SERIALIZER.header("header_parameter", header_parameter, 'int') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['headerParameter'] = _SERIALIZER.header("header_parameter", header_parameter, 'int') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -209,18 +209,18 @@ def build_post_optional_integer_header_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/reqopt/optional/integer/header") + _url = kwargs.pop("template_url", "/reqopt/optional/integer/header") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if header_parameter is not None: - header_parameters['headerParameter'] = _SERIALIZER.header("header_parameter", header_parameter, 'int') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['headerParameter'] = _SERIALIZER.header("header_parameter", header_parameter, 'int') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -233,18 +233,18 @@ def build_post_required_string_parameter_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/reqopt/requied/string/parameter") + _url = kwargs.pop("template_url", "/reqopt/requied/string/parameter") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -257,18 +257,18 @@ def build_post_optional_string_parameter_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/reqopt/optional/string/parameter") + _url = kwargs.pop("template_url", "/reqopt/optional/string/parameter") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -281,18 +281,18 @@ def build_post_required_string_property_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/reqopt/requied/string/property") + _url = kwargs.pop("template_url", "/reqopt/requied/string/property") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -305,18 +305,18 @@ def build_post_optional_string_property_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/reqopt/optional/string/property") + _url = kwargs.pop("template_url", "/reqopt/optional/string/property") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -329,17 +329,17 @@ def build_post_required_string_header_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/reqopt/requied/string/header") + _url = kwargs.pop("template_url", "/reqopt/requied/string/header") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['headerParameter'] = _SERIALIZER.header("header_parameter", header_parameter, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['headerParameter'] = _SERIALIZER.header("header_parameter", header_parameter, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -352,18 +352,18 @@ def build_post_optional_string_header_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/reqopt/optional/string/header") + _url = kwargs.pop("template_url", "/reqopt/optional/string/header") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if body_parameter is not None: - header_parameters['bodyParameter'] = _SERIALIZER.header("body_parameter", body_parameter, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['bodyParameter'] = _SERIALIZER.header("body_parameter", body_parameter, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -376,18 +376,18 @@ def build_post_required_class_parameter_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/reqopt/requied/class/parameter") + _url = kwargs.pop("template_url", "/reqopt/requied/class/parameter") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -400,18 +400,18 @@ def build_post_optional_class_parameter_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/reqopt/optional/class/parameter") + _url = kwargs.pop("template_url", "/reqopt/optional/class/parameter") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -424,18 +424,18 @@ def build_post_required_class_property_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/reqopt/requied/class/property") + _url = kwargs.pop("template_url", "/reqopt/requied/class/property") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -448,18 +448,18 @@ def build_post_optional_class_property_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/reqopt/optional/class/property") + _url = kwargs.pop("template_url", "/reqopt/optional/class/property") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -472,18 +472,18 @@ def build_post_required_array_parameter_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/reqopt/requied/array/parameter") + _url = kwargs.pop("template_url", "/reqopt/requied/array/parameter") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -496,18 +496,18 @@ def build_post_optional_array_parameter_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/reqopt/optional/array/parameter") + _url = kwargs.pop("template_url", "/reqopt/optional/array/parameter") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -520,18 +520,18 @@ def build_post_required_array_property_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/reqopt/requied/array/property") + _url = kwargs.pop("template_url", "/reqopt/requied/array/property") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -544,18 +544,18 @@ def build_post_optional_array_property_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/reqopt/optional/array/property") + _url = kwargs.pop("template_url", "/reqopt/optional/array/property") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -568,17 +568,17 @@ def build_post_required_array_header_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/reqopt/requied/array/header") + _url = kwargs.pop("template_url", "/reqopt/requied/array/header") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['headerParameter'] = _SERIALIZER.header("header_parameter", header_parameter, '[str]', div=',') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['headerParameter'] = _SERIALIZER.header("header_parameter", header_parameter, '[str]', div=',') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -591,18 +591,18 @@ def build_post_optional_array_header_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/reqopt/optional/array/header") + _url = kwargs.pop("template_url", "/reqopt/optional/array/header") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if header_parameter is not None: - header_parameters['headerParameter'] = _SERIALIZER.header("header_parameter", header_parameter, '[str]', div=',') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['headerParameter'] = _SERIALIZER.header("header_parameter", header_parameter, '[str]', div=',') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/RequiredOptional/requiredoptional/operations/_implicit_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/RequiredOptional/requiredoptional/operations/_implicit_operations.py index 9ac32f8c5e9..8eeaf5051cc 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/RequiredOptional/requiredoptional/operations/_implicit_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/RequiredOptional/requiredoptional/operations/_implicit_operations.py @@ -41,21 +41,21 @@ def build_get_required_path_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/reqopt/implicit/required/path/{pathParameter}") + _url = kwargs.pop("template_url", "/reqopt/implicit/required/path/{pathParameter}") path_format_arguments = { "pathParameter": _SERIALIZER.url("path_parameter", path_parameter, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -68,22 +68,22 @@ def build_put_optional_query_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/reqopt/implicit/optional/query") + _url = kwargs.pop("template_url", "/reqopt/implicit/optional/query") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if query_parameter is not None: - query_parameters['queryParameter'] = _SERIALIZER.query("query_parameter", query_parameter, 'str') + _query_parameters['queryParameter'] = _SERIALIZER.query("query_parameter", query_parameter, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -96,18 +96,18 @@ def build_put_optional_header_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/reqopt/implicit/optional/header") + _url = kwargs.pop("template_url", "/reqopt/implicit/optional/header") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if query_parameter is not None: - header_parameters['queryParameter'] = _SERIALIZER.header("query_parameter", query_parameter, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['queryParameter'] = _SERIALIZER.header("query_parameter", query_parameter, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -120,18 +120,18 @@ def build_put_optional_body_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/reqopt/implicit/optional/body") + _url = kwargs.pop("template_url", "/reqopt/implicit/optional/body") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -144,18 +144,18 @@ def build_put_optional_binary_body_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/reqopt/implicit/optional/binary-body") + _url = kwargs.pop("template_url", "/reqopt/implicit/optional/binary-body") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -167,21 +167,21 @@ def build_get_required_global_path_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/reqopt/global/required/path/{required-global-path}") + _url = kwargs.pop("template_url", "/reqopt/global/required/path/{required-global-path}") path_format_arguments = { "required-global-path": _SERIALIZER.url("required_global_path", required_global_path, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -194,21 +194,21 @@ def build_get_required_global_query_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/reqopt/global/required/query") + _url = kwargs.pop("template_url", "/reqopt/global/required/query") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['required-global-query'] = _SERIALIZER.query("required_global_query", required_global_query, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['required-global-query'] = _SERIALIZER.query("required_global_query", required_global_query, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -221,22 +221,22 @@ def build_get_optional_global_query_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/reqopt/global/optional/query") + _url = kwargs.pop("template_url", "/reqopt/global/optional/query") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if optional_global_query is not None: - query_parameters['optional-global-query'] = _SERIALIZER.query("optional_global_query", optional_global_query, 'int') + _query_parameters['optional-global-query'] = _SERIALIZER.query("optional_global_query", optional_global_query, 'int') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/ReservedWords/reservedwords/operations/_import_operations_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/ReservedWords/reservedwords/operations/_import_operations_operations.py index 550bfe98c5a..25b521db1e1 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/ReservedWords/reservedwords/operations/_import_operations_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/ReservedWords/reservedwords/operations/_import_operations_operations.py @@ -43,21 +43,21 @@ def build_operation_one_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/reservedWords/operationGroup/import") + _url = kwargs.pop("template_url", "/reservedWords/operationGroup/import") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['parameter1'] = _SERIALIZER.query("parameter1", parameter1, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['parameter1'] = _SERIALIZER.query("parameter1", parameter1, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/ReservedWords/reservedwords/operations/_reserved_words_client_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/ReservedWords/reservedwords/operations/_reserved_words_client_operations.py index 71a560b3ee7..a36598d29b7 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/ReservedWords/reservedwords/operations/_reserved_words_client_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/ReservedWords/reservedwords/operations/_reserved_words_client_operations.py @@ -43,18 +43,18 @@ def build_operation_with_content_param_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/reservedWords/operation/content") + _url = kwargs.pop("template_url", "/reservedWords/operation/content") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -67,18 +67,18 @@ def build_operation_with_json_param_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/reservedWords/operation/json") + _url = kwargs.pop("template_url", "/reservedWords/operation/json") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -91,18 +91,18 @@ def build_operation_with_data_param_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/reservedWords/operation/data") + _url = kwargs.pop("template_url", "/reservedWords/operation/data") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -115,18 +115,18 @@ def build_operation_with_files_param_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/reservedWords/operation/files") + _url = kwargs.pop("template_url", "/reservedWords/operation/files") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/Url/url/operations/_path_items_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/Url/url/operations/_path_items_operations.py index 2e1bb4f2dba..4361e6033db 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/Url/url/operations/_path_items_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/Url/url/operations/_path_items_operations.py @@ -47,33 +47,33 @@ def build_get_all_with_values_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/pathitem/nullable/globalStringPath/{globalStringPath}/pathItemStringPath/{pathItemStringPath}/localStringPath/{localStringPath}/globalStringQuery/pathItemStringQuery/localStringQuery") # pylint: disable=line-too-long + _url = kwargs.pop("template_url", "/pathitem/nullable/globalStringPath/{globalStringPath}/pathItemStringPath/{pathItemStringPath}/localStringPath/{localStringPath}/globalStringQuery/pathItemStringQuery/localStringQuery") # pylint: disable=line-too-long path_format_arguments = { "pathItemStringPath": _SERIALIZER.url("path_item_string_path", path_item_string_path, 'str'), "globalStringPath": _SERIALIZER.url("global_string_path", global_string_path, 'str'), "localStringPath": _SERIALIZER.url("local_string_path", local_string_path, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if path_item_string_query is not None: - query_parameters['pathItemStringQuery'] = _SERIALIZER.query("path_item_string_query", path_item_string_query, 'str') + _query_parameters['pathItemStringQuery'] = _SERIALIZER.query("path_item_string_query", path_item_string_query, 'str') if global_string_query is not None: - query_parameters['globalStringQuery'] = _SERIALIZER.query("global_string_query", global_string_query, 'str') + _query_parameters['globalStringQuery'] = _SERIALIZER.query("global_string_query", global_string_query, 'str') if local_string_query is not None: - query_parameters['localStringQuery'] = _SERIALIZER.query("local_string_query", local_string_query, 'str') + _query_parameters['localStringQuery'] = _SERIALIZER.query("local_string_query", local_string_query, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -91,33 +91,33 @@ def build_get_global_query_null_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/pathitem/nullable/globalStringPath/{globalStringPath}/pathItemStringPath/{pathItemStringPath}/localStringPath/{localStringPath}/null/pathItemStringQuery/localStringQuery") # pylint: disable=line-too-long + _url = kwargs.pop("template_url", "/pathitem/nullable/globalStringPath/{globalStringPath}/pathItemStringPath/{pathItemStringPath}/localStringPath/{localStringPath}/null/pathItemStringQuery/localStringQuery") # pylint: disable=line-too-long path_format_arguments = { "pathItemStringPath": _SERIALIZER.url("path_item_string_path", path_item_string_path, 'str'), "globalStringPath": _SERIALIZER.url("global_string_path", global_string_path, 'str'), "localStringPath": _SERIALIZER.url("local_string_path", local_string_path, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if path_item_string_query is not None: - query_parameters['pathItemStringQuery'] = _SERIALIZER.query("path_item_string_query", path_item_string_query, 'str') + _query_parameters['pathItemStringQuery'] = _SERIALIZER.query("path_item_string_query", path_item_string_query, 'str') if global_string_query is not None: - query_parameters['globalStringQuery'] = _SERIALIZER.query("global_string_query", global_string_query, 'str') + _query_parameters['globalStringQuery'] = _SERIALIZER.query("global_string_query", global_string_query, 'str') if local_string_query is not None: - query_parameters['localStringQuery'] = _SERIALIZER.query("local_string_query", local_string_query, 'str') + _query_parameters['localStringQuery'] = _SERIALIZER.query("local_string_query", local_string_query, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -135,33 +135,33 @@ def build_get_global_and_local_query_null_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/pathitem/nullable/globalStringPath/{globalStringPath}/pathItemStringPath/{pathItemStringPath}/localStringPath/{localStringPath}/null/pathItemStringQuery/null") # pylint: disable=line-too-long + _url = kwargs.pop("template_url", "/pathitem/nullable/globalStringPath/{globalStringPath}/pathItemStringPath/{pathItemStringPath}/localStringPath/{localStringPath}/null/pathItemStringQuery/null") # pylint: disable=line-too-long path_format_arguments = { "pathItemStringPath": _SERIALIZER.url("path_item_string_path", path_item_string_path, 'str'), "globalStringPath": _SERIALIZER.url("global_string_path", global_string_path, 'str'), "localStringPath": _SERIALIZER.url("local_string_path", local_string_path, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if path_item_string_query is not None: - query_parameters['pathItemStringQuery'] = _SERIALIZER.query("path_item_string_query", path_item_string_query, 'str') + _query_parameters['pathItemStringQuery'] = _SERIALIZER.query("path_item_string_query", path_item_string_query, 'str') if global_string_query is not None: - query_parameters['globalStringQuery'] = _SERIALIZER.query("global_string_query", global_string_query, 'str') + _query_parameters['globalStringQuery'] = _SERIALIZER.query("global_string_query", global_string_query, 'str') if local_string_query is not None: - query_parameters['localStringQuery'] = _SERIALIZER.query("local_string_query", local_string_query, 'str') + _query_parameters['localStringQuery'] = _SERIALIZER.query("local_string_query", local_string_query, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -179,33 +179,33 @@ def build_get_local_path_item_query_null_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/pathitem/nullable/globalStringPath/{globalStringPath}/pathItemStringPath/{pathItemStringPath}/localStringPath/{localStringPath}/globalStringQuery/null/null") # pylint: disable=line-too-long + _url = kwargs.pop("template_url", "/pathitem/nullable/globalStringPath/{globalStringPath}/pathItemStringPath/{pathItemStringPath}/localStringPath/{localStringPath}/globalStringQuery/null/null") # pylint: disable=line-too-long path_format_arguments = { "pathItemStringPath": _SERIALIZER.url("path_item_string_path", path_item_string_path, 'str'), "globalStringPath": _SERIALIZER.url("global_string_path", global_string_path, 'str'), "localStringPath": _SERIALIZER.url("local_string_path", local_string_path, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if path_item_string_query is not None: - query_parameters['pathItemStringQuery'] = _SERIALIZER.query("path_item_string_query", path_item_string_query, 'str') + _query_parameters['pathItemStringQuery'] = _SERIALIZER.query("path_item_string_query", path_item_string_query, 'str') if global_string_query is not None: - query_parameters['globalStringQuery'] = _SERIALIZER.query("global_string_query", global_string_query, 'str') + _query_parameters['globalStringQuery'] = _SERIALIZER.query("global_string_query", global_string_query, 'str') if local_string_query is not None: - query_parameters['localStringQuery'] = _SERIALIZER.query("local_string_query", local_string_query, 'str') + _query_parameters['localStringQuery'] = _SERIALIZER.query("local_string_query", local_string_query, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/Url/url/operations/_paths_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/Url/url/operations/_paths_operations.py index 8d9a18c5ddb..17db559cabe 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/Url/url/operations/_paths_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/Url/url/operations/_paths_operations.py @@ -43,21 +43,21 @@ def build_get_boolean_true_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/paths/bool/true/{boolPath}") + _url = kwargs.pop("template_url", "/paths/bool/true/{boolPath}") path_format_arguments = { "boolPath": _SERIALIZER.url("bool_path", bool_path, 'bool'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -70,21 +70,21 @@ def build_get_boolean_false_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/paths/bool/false/{boolPath}") + _url = kwargs.pop("template_url", "/paths/bool/false/{boolPath}") path_format_arguments = { "boolPath": _SERIALIZER.url("bool_path", bool_path, 'bool'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -97,21 +97,21 @@ def build_get_int_one_million_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/paths/int/1000000/{intPath}") + _url = kwargs.pop("template_url", "/paths/int/1000000/{intPath}") path_format_arguments = { "intPath": _SERIALIZER.url("int_path", int_path, 'int'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -124,21 +124,21 @@ def build_get_int_negative_one_million_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/paths/int/-1000000/{intPath}") + _url = kwargs.pop("template_url", "/paths/int/-1000000/{intPath}") path_format_arguments = { "intPath": _SERIALIZER.url("int_path", int_path, 'int'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -151,21 +151,21 @@ def build_get_ten_billion_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/paths/long/10000000000/{longPath}") + _url = kwargs.pop("template_url", "/paths/long/10000000000/{longPath}") path_format_arguments = { "longPath": _SERIALIZER.url("long_path", long_path, 'long'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -178,21 +178,21 @@ def build_get_negative_ten_billion_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/paths/long/-10000000000/{longPath}") + _url = kwargs.pop("template_url", "/paths/long/-10000000000/{longPath}") path_format_arguments = { "longPath": _SERIALIZER.url("long_path", long_path, 'long'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -205,21 +205,21 @@ def build_float_scientific_positive_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/paths/float/1.034E+20/{floatPath}") + _url = kwargs.pop("template_url", "/paths/float/1.034E+20/{floatPath}") path_format_arguments = { "floatPath": _SERIALIZER.url("float_path", float_path, 'float'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -232,21 +232,21 @@ def build_float_scientific_negative_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/paths/float/-1.034E-20/{floatPath}") + _url = kwargs.pop("template_url", "/paths/float/-1.034E-20/{floatPath}") path_format_arguments = { "floatPath": _SERIALIZER.url("float_path", float_path, 'float'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -259,21 +259,21 @@ def build_double_decimal_positive_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/paths/double/9999999.999/{doublePath}") + _url = kwargs.pop("template_url", "/paths/double/9999999.999/{doublePath}") path_format_arguments = { "doublePath": _SERIALIZER.url("double_path", double_path, 'float'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -286,21 +286,21 @@ def build_double_decimal_negative_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/paths/double/-9999999.999/{doublePath}") + _url = kwargs.pop("template_url", "/paths/double/-9999999.999/{doublePath}") path_format_arguments = { "doublePath": _SERIALIZER.url("double_path", double_path, 'float'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -313,21 +313,21 @@ def build_string_unicode_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/paths/string/unicode/{stringPath}") + _url = kwargs.pop("template_url", "/paths/string/unicode/{stringPath}") path_format_arguments = { "stringPath": _SERIALIZER.url("string_path", string_path, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -340,21 +340,21 @@ def build_string_url_encoded_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/paths/string/begin%21%2A%27%28%29%3B%3A%40%20%26%3D%2B%24%2C%2F%3F%23%5B%5Dend/{stringPath}") # pylint: disable=line-too-long + _url = kwargs.pop("template_url", "/paths/string/begin%21%2A%27%28%29%3B%3A%40%20%26%3D%2B%24%2C%2F%3F%23%5B%5Dend/{stringPath}") # pylint: disable=line-too-long path_format_arguments = { "stringPath": _SERIALIZER.url("string_path", string_path, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -367,21 +367,21 @@ def build_string_url_non_encoded_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/paths/string/begin!*\'();:@&=+$,end/{stringPath}") + _url = kwargs.pop("template_url", "/paths/string/begin!*\'();:@&=+$,end/{stringPath}") path_format_arguments = { "stringPath": _SERIALIZER.url("string_path", string_path, 'str', skip_quote=True), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -394,21 +394,21 @@ def build_string_empty_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/paths/string/empty/{stringPath}") + _url = kwargs.pop("template_url", "/paths/string/empty/{stringPath}") path_format_arguments = { "stringPath": _SERIALIZER.url("string_path", string_path, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -420,21 +420,21 @@ def build_string_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/paths/string/null/{stringPath}") + _url = kwargs.pop("template_url", "/paths/string/null/{stringPath}") path_format_arguments = { "stringPath": _SERIALIZER.url("string_path", string_path, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -446,21 +446,21 @@ def build_enum_valid_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/paths/enum/green%20color/{enumPath}") + _url = kwargs.pop("template_url", "/paths/enum/green%20color/{enumPath}") path_format_arguments = { "enumPath": _SERIALIZER.url("enum_path", enum_path, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -472,21 +472,21 @@ def build_enum_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/paths/string/null/{enumPath}") + _url = kwargs.pop("template_url", "/paths/string/null/{enumPath}") path_format_arguments = { "enumPath": _SERIALIZER.url("enum_path", enum_path, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -498,21 +498,21 @@ def build_byte_multi_byte_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/paths/byte/multibyte/{bytePath}") + _url = kwargs.pop("template_url", "/paths/byte/multibyte/{bytePath}") path_format_arguments = { "bytePath": _SERIALIZER.url("byte_path", byte_path, 'bytearray'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -525,21 +525,21 @@ def build_byte_empty_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/paths/byte/empty/{bytePath}") + _url = kwargs.pop("template_url", "/paths/byte/empty/{bytePath}") path_format_arguments = { "bytePath": _SERIALIZER.url("byte_path", byte_path, 'bytearray'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -551,21 +551,21 @@ def build_byte_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/paths/byte/null/{bytePath}") + _url = kwargs.pop("template_url", "/paths/byte/null/{bytePath}") path_format_arguments = { "bytePath": _SERIALIZER.url("byte_path", byte_path, 'bytearray'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -578,21 +578,21 @@ def build_date_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/paths/date/2012-01-01/{datePath}") + _url = kwargs.pop("template_url", "/paths/date/2012-01-01/{datePath}") path_format_arguments = { "datePath": _SERIALIZER.url("date_path", date_path, 'date'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -604,21 +604,21 @@ def build_date_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/paths/date/null/{datePath}") + _url = kwargs.pop("template_url", "/paths/date/null/{datePath}") path_format_arguments = { "datePath": _SERIALIZER.url("date_path", date_path, 'date'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -631,21 +631,21 @@ def build_date_time_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/paths/datetime/2012-01-01T01%3A01%3A01Z/{dateTimePath}") + _url = kwargs.pop("template_url", "/paths/datetime/2012-01-01T01%3A01%3A01Z/{dateTimePath}") path_format_arguments = { "dateTimePath": _SERIALIZER.url("date_time_path", date_time_path, 'iso-8601'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -657,21 +657,21 @@ def build_date_time_null_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/paths/datetime/null/{dateTimePath}") + _url = kwargs.pop("template_url", "/paths/datetime/null/{dateTimePath}") path_format_arguments = { "dateTimePath": _SERIALIZER.url("date_time_path", date_time_path, 'iso-8601'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -683,21 +683,21 @@ def build_base64_url_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/paths/string/bG9yZW0/{base64UrlPath}") + _url = kwargs.pop("template_url", "/paths/string/bG9yZW0/{base64UrlPath}") path_format_arguments = { "base64UrlPath": _SERIALIZER.url("base64_url_path", base64_url_path, 'base64'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -709,21 +709,21 @@ def build_array_csv_in_path_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/paths/array/ArrayPath1%2cbegin%21%2A%27%28%29%3B%3A%40%20%26%3D%2B%24%2C%2F%3F%23%5B%5Dend%2c%2c/{arrayPath}") # pylint: disable=line-too-long + _url = kwargs.pop("template_url", "/paths/array/ArrayPath1%2cbegin%21%2A%27%28%29%3B%3A%40%20%26%3D%2B%24%2C%2F%3F%23%5B%5Dend%2c%2c/{arrayPath}") # pylint: disable=line-too-long path_format_arguments = { "arrayPath": _SERIALIZER.url("array_path", array_path, '[str]', div=','), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -735,21 +735,21 @@ def build_unix_time_url_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/paths/int/1460505600/{unixTimeUrlPath}") + _url = kwargs.pop("template_url", "/paths/int/1460505600/{unixTimeUrlPath}") path_format_arguments = { "unixTimeUrlPath": _SERIALIZER.url("unix_time_url_path", unix_time_url_path, 'unix-time'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/Url/url/operations/_queries_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/Url/url/operations/_queries_operations.py index 4289f4a9944..30de5153f1f 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/Url/url/operations/_queries_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/Url/url/operations/_queries_operations.py @@ -43,21 +43,21 @@ def build_get_boolean_true_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/queries/bool/true") + _url = kwargs.pop("template_url", "/queries/bool/true") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['boolQuery'] = _SERIALIZER.query("bool_query", bool_query, 'bool') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['boolQuery'] = _SERIALIZER.query("bool_query", bool_query, 'bool') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -70,21 +70,21 @@ def build_get_boolean_false_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/queries/bool/false") + _url = kwargs.pop("template_url", "/queries/bool/false") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['boolQuery'] = _SERIALIZER.query("bool_query", bool_query, 'bool') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['boolQuery'] = _SERIALIZER.query("bool_query", bool_query, 'bool') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -97,22 +97,22 @@ def build_get_boolean_null_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/queries/bool/null") + _url = kwargs.pop("template_url", "/queries/bool/null") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if bool_query is not None: - query_parameters['boolQuery'] = _SERIALIZER.query("bool_query", bool_query, 'bool') + _query_parameters['boolQuery'] = _SERIALIZER.query("bool_query", bool_query, 'bool') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -125,21 +125,21 @@ def build_get_int_one_million_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/queries/int/1000000") + _url = kwargs.pop("template_url", "/queries/int/1000000") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['intQuery'] = _SERIALIZER.query("int_query", int_query, 'int') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['intQuery'] = _SERIALIZER.query("int_query", int_query, 'int') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -152,21 +152,21 @@ def build_get_int_negative_one_million_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/queries/int/-1000000") + _url = kwargs.pop("template_url", "/queries/int/-1000000") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['intQuery'] = _SERIALIZER.query("int_query", int_query, 'int') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['intQuery'] = _SERIALIZER.query("int_query", int_query, 'int') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -179,22 +179,22 @@ def build_get_int_null_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/queries/int/null") + _url = kwargs.pop("template_url", "/queries/int/null") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if int_query is not None: - query_parameters['intQuery'] = _SERIALIZER.query("int_query", int_query, 'int') + _query_parameters['intQuery'] = _SERIALIZER.query("int_query", int_query, 'int') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -207,21 +207,21 @@ def build_get_ten_billion_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/queries/long/10000000000") + _url = kwargs.pop("template_url", "/queries/long/10000000000") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['longQuery'] = _SERIALIZER.query("long_query", long_query, 'long') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['longQuery'] = _SERIALIZER.query("long_query", long_query, 'long') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -234,21 +234,21 @@ def build_get_negative_ten_billion_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/queries/long/-10000000000") + _url = kwargs.pop("template_url", "/queries/long/-10000000000") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['longQuery'] = _SERIALIZER.query("long_query", long_query, 'long') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['longQuery'] = _SERIALIZER.query("long_query", long_query, 'long') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -261,22 +261,22 @@ def build_get_long_null_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/queries/long/null") + _url = kwargs.pop("template_url", "/queries/long/null") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if long_query is not None: - query_parameters['longQuery'] = _SERIALIZER.query("long_query", long_query, 'long') + _query_parameters['longQuery'] = _SERIALIZER.query("long_query", long_query, 'long') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -289,21 +289,21 @@ def build_float_scientific_positive_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/queries/float/1.034E+20") + _url = kwargs.pop("template_url", "/queries/float/1.034E+20") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['floatQuery'] = _SERIALIZER.query("float_query", float_query, 'float') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['floatQuery'] = _SERIALIZER.query("float_query", float_query, 'float') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -316,21 +316,21 @@ def build_float_scientific_negative_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/queries/float/-1.034E-20") + _url = kwargs.pop("template_url", "/queries/float/-1.034E-20") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['floatQuery'] = _SERIALIZER.query("float_query", float_query, 'float') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['floatQuery'] = _SERIALIZER.query("float_query", float_query, 'float') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -343,22 +343,22 @@ def build_float_null_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/queries/float/null") + _url = kwargs.pop("template_url", "/queries/float/null") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if float_query is not None: - query_parameters['floatQuery'] = _SERIALIZER.query("float_query", float_query, 'float') + _query_parameters['floatQuery'] = _SERIALIZER.query("float_query", float_query, 'float') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -371,21 +371,21 @@ def build_double_decimal_positive_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/queries/double/9999999.999") + _url = kwargs.pop("template_url", "/queries/double/9999999.999") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['doubleQuery'] = _SERIALIZER.query("double_query", double_query, 'float') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['doubleQuery'] = _SERIALIZER.query("double_query", double_query, 'float') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -398,21 +398,21 @@ def build_double_decimal_negative_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/queries/double/-9999999.999") + _url = kwargs.pop("template_url", "/queries/double/-9999999.999") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['doubleQuery'] = _SERIALIZER.query("double_query", double_query, 'float') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['doubleQuery'] = _SERIALIZER.query("double_query", double_query, 'float') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -425,22 +425,22 @@ def build_double_null_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/queries/double/null") + _url = kwargs.pop("template_url", "/queries/double/null") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if double_query is not None: - query_parameters['doubleQuery'] = _SERIALIZER.query("double_query", double_query, 'float') + _query_parameters['doubleQuery'] = _SERIALIZER.query("double_query", double_query, 'float') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -453,21 +453,21 @@ def build_string_unicode_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/queries/string/unicode/") + _url = kwargs.pop("template_url", "/queries/string/unicode/") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['stringQuery'] = _SERIALIZER.query("string_query", string_query, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['stringQuery'] = _SERIALIZER.query("string_query", string_query, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -480,21 +480,21 @@ def build_string_url_encoded_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/queries/string/begin%21%2A%27%28%29%3B%3A%40%20%26%3D%2B%24%2C%2F%3F%23%5B%5Dend") + _url = kwargs.pop("template_url", "/queries/string/begin%21%2A%27%28%29%3B%3A%40%20%26%3D%2B%24%2C%2F%3F%23%5B%5Dend") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['stringQuery'] = _SERIALIZER.query("string_query", string_query, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['stringQuery'] = _SERIALIZER.query("string_query", string_query, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -507,21 +507,21 @@ def build_string_empty_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/queries/string/empty") + _url = kwargs.pop("template_url", "/queries/string/empty") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['stringQuery'] = _SERIALIZER.query("string_query", string_query, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['stringQuery'] = _SERIALIZER.query("string_query", string_query, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -534,22 +534,22 @@ def build_string_null_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/queries/string/null") + _url = kwargs.pop("template_url", "/queries/string/null") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if string_query is not None: - query_parameters['stringQuery'] = _SERIALIZER.query("string_query", string_query, 'str') + _query_parameters['stringQuery'] = _SERIALIZER.query("string_query", string_query, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -562,22 +562,22 @@ def build_enum_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/queries/enum/green%20color") + _url = kwargs.pop("template_url", "/queries/enum/green%20color") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if enum_query is not None: - query_parameters['enumQuery'] = _SERIALIZER.query("enum_query", enum_query, 'str') + _query_parameters['enumQuery'] = _SERIALIZER.query("enum_query", enum_query, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -590,22 +590,22 @@ def build_enum_null_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/queries/enum/null") + _url = kwargs.pop("template_url", "/queries/enum/null") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if enum_query is not None: - query_parameters['enumQuery'] = _SERIALIZER.query("enum_query", enum_query, 'str') + _query_parameters['enumQuery'] = _SERIALIZER.query("enum_query", enum_query, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -618,22 +618,22 @@ def build_byte_multi_byte_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/queries/byte/multibyte") + _url = kwargs.pop("template_url", "/queries/byte/multibyte") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if byte_query is not None: - query_parameters['byteQuery'] = _SERIALIZER.query("byte_query", byte_query, 'bytearray') + _query_parameters['byteQuery'] = _SERIALIZER.query("byte_query", byte_query, 'bytearray') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -646,21 +646,21 @@ def build_byte_empty_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/queries/byte/empty") + _url = kwargs.pop("template_url", "/queries/byte/empty") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['byteQuery'] = _SERIALIZER.query("byte_query", byte_query, 'bytearray') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['byteQuery'] = _SERIALIZER.query("byte_query", byte_query, 'bytearray') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -673,22 +673,22 @@ def build_byte_null_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/queries/byte/null") + _url = kwargs.pop("template_url", "/queries/byte/null") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if byte_query is not None: - query_parameters['byteQuery'] = _SERIALIZER.query("byte_query", byte_query, 'bytearray') + _query_parameters['byteQuery'] = _SERIALIZER.query("byte_query", byte_query, 'bytearray') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -701,21 +701,21 @@ def build_date_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/queries/date/2012-01-01") + _url = kwargs.pop("template_url", "/queries/date/2012-01-01") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['dateQuery'] = _SERIALIZER.query("date_query", date_query, 'date') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['dateQuery'] = _SERIALIZER.query("date_query", date_query, 'date') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -728,22 +728,22 @@ def build_date_null_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/queries/date/null") + _url = kwargs.pop("template_url", "/queries/date/null") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if date_query is not None: - query_parameters['dateQuery'] = _SERIALIZER.query("date_query", date_query, 'date') + _query_parameters['dateQuery'] = _SERIALIZER.query("date_query", date_query, 'date') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -756,21 +756,21 @@ def build_date_time_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/queries/datetime/2012-01-01T01%3A01%3A01Z") + _url = kwargs.pop("template_url", "/queries/datetime/2012-01-01T01%3A01%3A01Z") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['dateTimeQuery'] = _SERIALIZER.query("date_time_query", date_time_query, 'iso-8601') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['dateTimeQuery'] = _SERIALIZER.query("date_time_query", date_time_query, 'iso-8601') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -783,22 +783,22 @@ def build_date_time_null_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/queries/datetime/null") + _url = kwargs.pop("template_url", "/queries/datetime/null") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if date_time_query is not None: - query_parameters['dateTimeQuery'] = _SERIALIZER.query("date_time_query", date_time_query, 'iso-8601') + _query_parameters['dateTimeQuery'] = _SERIALIZER.query("date_time_query", date_time_query, 'iso-8601') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -811,22 +811,22 @@ def build_array_string_csv_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/queries/array/csv/string/valid") + _url = kwargs.pop("template_url", "/queries/array/csv/string/valid") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if array_query is not None: - query_parameters['arrayQuery'] = _SERIALIZER.query("array_query", array_query, '[str]', div=',') + _query_parameters['arrayQuery'] = _SERIALIZER.query("array_query", array_query, '[str]', div=',') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -839,22 +839,22 @@ def build_array_string_csv_null_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/queries/array/csv/string/null") + _url = kwargs.pop("template_url", "/queries/array/csv/string/null") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if array_query is not None: - query_parameters['arrayQuery'] = _SERIALIZER.query("array_query", array_query, '[str]', div=',') + _query_parameters['arrayQuery'] = _SERIALIZER.query("array_query", array_query, '[str]', div=',') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -867,22 +867,22 @@ def build_array_string_csv_empty_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/queries/array/csv/string/empty") + _url = kwargs.pop("template_url", "/queries/array/csv/string/empty") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if array_query is not None: - query_parameters['arrayQuery'] = _SERIALIZER.query("array_query", array_query, '[str]', div=',') + _query_parameters['arrayQuery'] = _SERIALIZER.query("array_query", array_query, '[str]', div=',') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -895,22 +895,22 @@ def build_array_string_no_collection_format_empty_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/queries/array/none/string/empty") + _url = kwargs.pop("template_url", "/queries/array/none/string/empty") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if array_query is not None: - query_parameters['arrayQuery'] = _SERIALIZER.query("array_query", array_query, '[str]', div=',') + _query_parameters['arrayQuery'] = _SERIALIZER.query("array_query", array_query, '[str]', div=',') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -923,22 +923,22 @@ def build_array_string_ssv_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/queries/array/ssv/string/valid") + _url = kwargs.pop("template_url", "/queries/array/ssv/string/valid") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if array_query is not None: - query_parameters['arrayQuery'] = _SERIALIZER.query("array_query", array_query, '[str]', div=' ') + _query_parameters['arrayQuery'] = _SERIALIZER.query("array_query", array_query, '[str]', div=' ') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -951,22 +951,22 @@ def build_array_string_tsv_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/queries/array/tsv/string/valid") + _url = kwargs.pop("template_url", "/queries/array/tsv/string/valid") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if array_query is not None: - query_parameters['arrayQuery'] = _SERIALIZER.query("array_query", array_query, '[str]', div=' ') + _query_parameters['arrayQuery'] = _SERIALIZER.query("array_query", array_query, '[str]', div=' ') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -979,22 +979,22 @@ def build_array_string_pipes_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/queries/array/pipes/string/valid") + _url = kwargs.pop("template_url", "/queries/array/pipes/string/valid") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if array_query is not None: - query_parameters['arrayQuery'] = _SERIALIZER.query("array_query", array_query, '[str]', div='|') + _query_parameters['arrayQuery'] = _SERIALIZER.query("array_query", array_query, '[str]', div='|') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/UrlMultiCollectionFormat/urlmulticollectionformat/operations/_queries_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/UrlMultiCollectionFormat/urlmulticollectionformat/operations/_queries_operations.py index 0019c32a4c0..8e1fea92077 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/UrlMultiCollectionFormat/urlmulticollectionformat/operations/_queries_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/UrlMultiCollectionFormat/urlmulticollectionformat/operations/_queries_operations.py @@ -43,22 +43,22 @@ def build_array_string_multi_null_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/queries/array/multi/string/null") + _url = kwargs.pop("template_url", "/queries/array/multi/string/null") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if array_query is not None: - query_parameters['arrayQuery'] = [_SERIALIZER.query("array_query", q, 'str') if q is not None else '' for q in array_query] + _query_parameters['arrayQuery'] = [_SERIALIZER.query("array_query", q, 'str') if q is not None else '' for q in array_query] # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -71,22 +71,22 @@ def build_array_string_multi_empty_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/queries/array/multi/string/empty") + _url = kwargs.pop("template_url", "/queries/array/multi/string/empty") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if array_query is not None: - query_parameters['arrayQuery'] = [_SERIALIZER.query("array_query", q, 'str') if q is not None else '' for q in array_query] + _query_parameters['arrayQuery'] = [_SERIALIZER.query("array_query", q, 'str') if q is not None else '' for q in array_query] # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -99,22 +99,22 @@ def build_array_string_multi_valid_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/queries/array/multi/string/valid") + _url = kwargs.pop("template_url", "/queries/array/multi/string/valid") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if array_query is not None: - query_parameters['arrayQuery'] = [_SERIALIZER.query("array_query", q, 'str') if q is not None else '' for q in array_query] + _query_parameters['arrayQuery'] = [_SERIALIZER.query("array_query", q, 'str') if q is not None else '' for q in array_query] # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/Validation/validation/operations/_auto_rest_validation_test_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/Validation/validation/operations/_auto_rest_validation_test_operations.py index 9c6c161d158..7cd3e86658d 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/Validation/validation/operations/_auto_rest_validation_test_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/Validation/validation/operations/_auto_rest_validation_test_operations.py @@ -45,28 +45,28 @@ def build_validation_of_method_parameters_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/fakepath/{subscriptionId}/{resourceGroupName}/{id}") + _url = kwargs.pop("template_url", "/fakepath/{subscriptionId}/{resourceGroupName}/{id}") path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str', max_length=10, min_length=3, pattern=r'[a-zA-Z0-9\']+'), "id": _SERIALIZER.url("id", id, 'int', maximum=1000, minimum=100, multiple=10), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['apiVersion'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['apiVersion'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -83,30 +83,30 @@ def build_validation_of_body_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/fakepath/{subscriptionId}/{resourceGroupName}/{id}") + _url = kwargs.pop("template_url", "/fakepath/{subscriptionId}/{resourceGroupName}/{id}") path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str', max_length=10, min_length=3, pattern=r'[a-zA-Z0-9]+'), "id": _SERIALIZER.url("id", id, 'int', maximum=1000, minimum=100, multiple=10), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['apiVersion'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['apiVersion'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -118,16 +118,16 @@ def build_get_with_constant_in_path_request( constant_param = kwargs.pop('constant_param', "constant") # type: str # Construct URL - url = kwargs.pop("template_url", "/validation/constantsInPath/{constantParam}/value") + _url = kwargs.pop("template_url", "/validation/constantsInPath/{constantParam}/value") path_format_arguments = { "constantParam": _SERIALIZER.url("constant_param", constant_param, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) return HttpRequest( method="GET", - url=url, + url=_url, **kwargs ) @@ -141,23 +141,23 @@ def build_post_with_constant_in_body_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/validation/constantsInPath/{constantParam}/value") + _url = kwargs.pop("template_url", "/validation/constantsInPath/{constantParam}/value") path_format_arguments = { "constantParam": _SERIALIZER.url("constant_param", constant_param, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/Xml/xmlservice/operations/_xml_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/Xml/xmlservice/operations/_xml_operations.py index 49a3ead1d8c..2f5c139d84e 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/Xml/xmlservice/operations/_xml_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/Xml/xmlservice/operations/_xml_operations.py @@ -41,16 +41,16 @@ def build_get_complex_type_ref_no_meta_request( # type: (...) -> HttpRequest accept = "application/xml" # Construct URL - url = kwargs.pop("template_url", "/xml/complex-type-ref-no-meta") + _url = kwargs.pop("template_url", "/xml/complex-type-ref-no-meta") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -62,17 +62,17 @@ def build_put_complex_type_ref_no_meta_request( content_type = kwargs.pop('content_type', None) # type: Optional[str] # Construct URL - url = kwargs.pop("template_url", "/xml/complex-type-ref-no-meta") + _url = kwargs.pop("template_url", "/xml/complex-type-ref-no-meta") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -83,16 +83,16 @@ def build_get_complex_type_ref_with_meta_request( # type: (...) -> HttpRequest accept = "application/xml" # Construct URL - url = kwargs.pop("template_url", "/xml/complex-type-ref-with-meta") + _url = kwargs.pop("template_url", "/xml/complex-type-ref-with-meta") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -104,17 +104,17 @@ def build_put_complex_type_ref_with_meta_request( content_type = kwargs.pop('content_type', None) # type: Optional[str] # Construct URL - url = kwargs.pop("template_url", "/xml/complex-type-ref-with-meta") + _url = kwargs.pop("template_url", "/xml/complex-type-ref-with-meta") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -125,16 +125,16 @@ def build_get_simple_request( # type: (...) -> HttpRequest accept = "application/xml" # Construct URL - url = kwargs.pop("template_url", "/xml/simple") + _url = kwargs.pop("template_url", "/xml/simple") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -147,18 +147,18 @@ def build_put_simple_request( accept = "application/xml" # Construct URL - url = kwargs.pop("template_url", "/xml/simple") + _url = kwargs.pop("template_url", "/xml/simple") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -169,16 +169,16 @@ def build_get_wrapped_lists_request( # type: (...) -> HttpRequest accept = "application/xml" # Construct URL - url = kwargs.pop("template_url", "/xml/wrapped-lists") + _url = kwargs.pop("template_url", "/xml/wrapped-lists") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -191,18 +191,18 @@ def build_put_wrapped_lists_request( accept = "application/xml" # Construct URL - url = kwargs.pop("template_url", "/xml/wrapped-lists") + _url = kwargs.pop("template_url", "/xml/wrapped-lists") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -212,11 +212,11 @@ def build_get_headers_request( ): # type: (...) -> HttpRequest # Construct URL - url = kwargs.pop("template_url", "/xml/headers") + _url = kwargs.pop("template_url", "/xml/headers") return HttpRequest( method="GET", - url=url, + url=_url, **kwargs ) @@ -227,16 +227,16 @@ def build_get_empty_list_request( # type: (...) -> HttpRequest accept = "application/xml" # Construct URL - url = kwargs.pop("template_url", "/xml/empty-list") + _url = kwargs.pop("template_url", "/xml/empty-list") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -248,17 +248,17 @@ def build_put_empty_list_request( content_type = kwargs.pop('content_type', None) # type: Optional[str] # Construct URL - url = kwargs.pop("template_url", "/xml/empty-list") + _url = kwargs.pop("template_url", "/xml/empty-list") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -269,16 +269,16 @@ def build_get_empty_wrapped_lists_request( # type: (...) -> HttpRequest accept = "application/xml" # Construct URL - url = kwargs.pop("template_url", "/xml/empty-wrapped-lists") + _url = kwargs.pop("template_url", "/xml/empty-wrapped-lists") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -290,17 +290,17 @@ def build_put_empty_wrapped_lists_request( content_type = kwargs.pop('content_type', None) # type: Optional[str] # Construct URL - url = kwargs.pop("template_url", "/xml/empty-wrapped-lists") + _url = kwargs.pop("template_url", "/xml/empty-wrapped-lists") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -311,16 +311,16 @@ def build_get_root_list_request( # type: (...) -> HttpRequest accept = "application/xml" # Construct URL - url = kwargs.pop("template_url", "/xml/root-list") + _url = kwargs.pop("template_url", "/xml/root-list") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -332,17 +332,17 @@ def build_put_root_list_request( content_type = kwargs.pop('content_type', None) # type: Optional[str] # Construct URL - url = kwargs.pop("template_url", "/xml/root-list") + _url = kwargs.pop("template_url", "/xml/root-list") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -353,16 +353,16 @@ def build_get_root_list_single_item_request( # type: (...) -> HttpRequest accept = "application/xml" # Construct URL - url = kwargs.pop("template_url", "/xml/root-list-single-item") + _url = kwargs.pop("template_url", "/xml/root-list-single-item") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -374,17 +374,17 @@ def build_put_root_list_single_item_request( content_type = kwargs.pop('content_type', None) # type: Optional[str] # Construct URL - url = kwargs.pop("template_url", "/xml/root-list-single-item") + _url = kwargs.pop("template_url", "/xml/root-list-single-item") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -395,16 +395,16 @@ def build_get_empty_root_list_request( # type: (...) -> HttpRequest accept = "application/xml" # Construct URL - url = kwargs.pop("template_url", "/xml/empty-root-list") + _url = kwargs.pop("template_url", "/xml/empty-root-list") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -416,17 +416,17 @@ def build_put_empty_root_list_request( content_type = kwargs.pop('content_type', None) # type: Optional[str] # Construct URL - url = kwargs.pop("template_url", "/xml/empty-root-list") + _url = kwargs.pop("template_url", "/xml/empty-root-list") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -437,16 +437,16 @@ def build_get_empty_child_element_request( # type: (...) -> HttpRequest accept = "application/xml" # Construct URL - url = kwargs.pop("template_url", "/xml/empty-child-element") + _url = kwargs.pop("template_url", "/xml/empty-child-element") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -458,17 +458,17 @@ def build_put_empty_child_element_request( content_type = kwargs.pop('content_type', None) # type: Optional[str] # Construct URL - url = kwargs.pop("template_url", "/xml/empty-child-element") + _url = kwargs.pop("template_url", "/xml/empty-child-element") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -481,21 +481,21 @@ def build_list_containers_request( accept = "application/xml" # Construct URL - url = kwargs.pop("template_url", "/xml/") + _url = kwargs.pop("template_url", "/xml/") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['comp'] = _SERIALIZER.query("comp", comp, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['comp'] = _SERIALIZER.query("comp", comp, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -509,22 +509,22 @@ def build_get_service_properties_request( accept = "application/xml" # Construct URL - url = kwargs.pop("template_url", "/xml/") + _url = kwargs.pop("template_url", "/xml/") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['comp'] = _SERIALIZER.query("comp", comp, 'str') - query_parameters['restype'] = _SERIALIZER.query("restype", restype, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['comp'] = _SERIALIZER.query("comp", comp, 'str') + _query_parameters['restype'] = _SERIALIZER.query("restype", restype, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -538,23 +538,23 @@ def build_put_service_properties_request( content_type = kwargs.pop('content_type', None) # type: Optional[str] # Construct URL - url = kwargs.pop("template_url", "/xml/") + _url = kwargs.pop("template_url", "/xml/") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['comp'] = _SERIALIZER.query("comp", comp, 'str') - query_parameters['restype'] = _SERIALIZER.query("restype", restype, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['comp'] = _SERIALIZER.query("comp", comp, 'str') + _query_parameters['restype'] = _SERIALIZER.query("restype", restype, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') return HttpRequest( method="PUT", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -568,22 +568,22 @@ def build_get_acls_request( accept = "application/xml" # Construct URL - url = kwargs.pop("template_url", "/xml/mycontainer") + _url = kwargs.pop("template_url", "/xml/mycontainer") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['comp'] = _SERIALIZER.query("comp", comp, 'str') - query_parameters['restype'] = _SERIALIZER.query("restype", restype, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['comp'] = _SERIALIZER.query("comp", comp, 'str') + _query_parameters['restype'] = _SERIALIZER.query("restype", restype, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -597,23 +597,23 @@ def build_put_acls_request( content_type = kwargs.pop('content_type', None) # type: Optional[str] # Construct URL - url = kwargs.pop("template_url", "/xml/mycontainer") + _url = kwargs.pop("template_url", "/xml/mycontainer") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['comp'] = _SERIALIZER.query("comp", comp, 'str') - query_parameters['restype'] = _SERIALIZER.query("restype", restype, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['comp'] = _SERIALIZER.query("comp", comp, 'str') + _query_parameters['restype'] = _SERIALIZER.query("restype", restype, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') return HttpRequest( method="PUT", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -627,22 +627,22 @@ def build_list_blobs_request( accept = "application/xml" # Construct URL - url = kwargs.pop("template_url", "/xml/mycontainer") + _url = kwargs.pop("template_url", "/xml/mycontainer") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['comp'] = _SERIALIZER.query("comp", comp, 'str') - query_parameters['restype'] = _SERIALIZER.query("restype", restype, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['comp'] = _SERIALIZER.query("comp", comp, 'str') + _query_parameters['restype'] = _SERIALIZER.query("restype", restype, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -654,17 +654,17 @@ def build_json_input_request( content_type = kwargs.pop('content_type', None) # type: Optional[str] # Construct URL - url = kwargs.pop("template_url", "/xml/jsoninput") + _url = kwargs.pop("template_url", "/xml/jsoninput") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -675,16 +675,16 @@ def build_json_output_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/xml/jsonoutput") + _url = kwargs.pop("template_url", "/xml/jsonoutput") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -695,16 +695,16 @@ def build_get_xms_text_request( # type: (...) -> HttpRequest accept = "application/xml" # Construct URL - url = kwargs.pop("template_url", "/xml/x-ms-text") + _url = kwargs.pop("template_url", "/xml/x-ms-text") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -715,16 +715,16 @@ def build_get_bytes_request( # type: (...) -> HttpRequest accept = "application/xml" # Construct URL - url = kwargs.pop("template_url", "/xml/bytes") + _url = kwargs.pop("template_url", "/xml/bytes") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -737,18 +737,18 @@ def build_put_binary_request( accept = "application/xml" # Construct URL - url = kwargs.pop("template_url", "/xml/bytes") + _url = kwargs.pop("template_url", "/xml/bytes") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -759,16 +759,16 @@ def build_get_uri_request( # type: (...) -> HttpRequest accept = "application/xml" # Construct URL - url = kwargs.pop("template_url", "/xml/url") + _url = kwargs.pop("template_url", "/xml/url") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -781,18 +781,18 @@ def build_put_uri_request( accept = "application/xml" # Construct URL - url = kwargs.pop("template_url", "/xml/url") + _url = kwargs.pop("template_url", "/xml/url") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/XmsErrorResponse/xmserrorresponse/operations/_pet_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/XmsErrorResponse/xmserrorresponse/operations/_pet_operations.py index 0bc0608b8f7..6eeddb25a24 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/XmsErrorResponse/xmserrorresponse/operations/_pet_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/XmsErrorResponse/xmserrorresponse/operations/_pet_operations.py @@ -42,21 +42,21 @@ def build_get_pet_by_id_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/errorStatusCodes/Pets/{petId}/GetPet") + _url = kwargs.pop("template_url", "/errorStatusCodes/Pets/{petId}/GetPet") path_format_arguments = { "petId": _SERIALIZER.url("pet_id", pet_id, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -68,21 +68,21 @@ def build_do_something_request( # type: (...) -> HttpRequest accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/errorStatusCodes/Pets/doSomething/{whatAction}") + _url = kwargs.pop("template_url", "/errorStatusCodes/Pets/doSomething/{whatAction}") path_format_arguments = { "whatAction": _SERIALIZER.url("what_action", what_action, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -95,22 +95,22 @@ def build_has_models_param_request( accept = "application/json" # Construct URL - url = kwargs.pop("template_url", "/errorStatusCodes/Pets/hasModelsParam") + _url = kwargs.pop("template_url", "/errorStatusCodes/Pets/hasModelsParam") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if models is not None: - query_parameters['models'] = _SERIALIZER.query("models", models, 'str') + _query_parameters['models'] = _SERIALIZER.query("models", models, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/AdditionalPropertiesLowLevel/additionalpropertieslowlevel/rest/pets/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/AdditionalPropertiesLowLevel/additionalpropertieslowlevel/rest/pets/_request_builders.py index ae4a2b212a6..813d83597db 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/AdditionalPropertiesLowLevel/additionalpropertieslowlevel/rest/pets/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/AdditionalPropertiesLowLevel/additionalpropertieslowlevel/rest/pets/_request_builders.py @@ -64,18 +64,18 @@ def build_create_ap_true_request( accept = "application/json" # Construct URL - url = "/additionalProperties/true" + _url = "/additionalProperties/true" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -124,18 +124,18 @@ def build_create_cat_ap_true_request( accept = "application/json" # Construct URL - url = "/additionalProperties/true-subclass" + _url = "/additionalProperties/true-subclass" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -182,18 +182,18 @@ def build_create_ap_object_request( accept = "application/json" # Construct URL - url = "/additionalProperties/type/object" + _url = "/additionalProperties/type/object" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -240,18 +240,18 @@ def build_create_ap_string_request( accept = "application/json" # Construct URL - url = "/additionalProperties/type/string" + _url = "/additionalProperties/type/string" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -298,18 +298,18 @@ def build_create_ap_in_properties_request( accept = "application/json" # Construct URL - url = "/additionalProperties/in/properties" + _url = "/additionalProperties/in/properties" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -364,17 +364,17 @@ def build_create_ap_in_properties_with_ap_string_request( accept = "application/json" # Construct URL - url = "/additionalProperties/in/properties/with/additionalProperties/string" + _url = "/additionalProperties/in/properties/with/additionalProperties/string" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/AdditionalPropertiesLowLevel/additionalpropertieslowlevel/rest/pets/_request_builders_py3.py b/test/vanilla/low-level/Expected/AcceptanceTests/AdditionalPropertiesLowLevel/additionalpropertieslowlevel/rest/pets/_request_builders_py3.py index 8cbf6555022..9e583c6b9ed 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/AdditionalPropertiesLowLevel/additionalpropertieslowlevel/rest/pets/_request_builders_py3.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/AdditionalPropertiesLowLevel/additionalpropertieslowlevel/rest/pets/_request_builders_py3.py @@ -56,15 +56,15 @@ def build_create_ap_true_request(*, json: JSONType = None, content: Any = None, accept = "application/json" # Construct URL - url = "/additionalProperties/true" + _url = "/additionalProperties/true" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_create_cat_ap_true_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -108,15 +108,15 @@ def build_create_cat_ap_true_request(*, json: JSONType = None, content: Any = No accept = "application/json" # Construct URL - url = "/additionalProperties/true-subclass" + _url = "/additionalProperties/true-subclass" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_create_ap_object_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -158,15 +158,15 @@ def build_create_ap_object_request(*, json: JSONType = None, content: Any = None accept = "application/json" # Construct URL - url = "/additionalProperties/type/object" + _url = "/additionalProperties/type/object" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_create_ap_string_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -208,15 +208,15 @@ def build_create_ap_string_request(*, json: JSONType = None, content: Any = None accept = "application/json" # Construct URL - url = "/additionalProperties/type/string" + _url = "/additionalProperties/type/string" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_create_ap_in_properties_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -258,15 +258,15 @@ def build_create_ap_in_properties_request(*, json: JSONType = None, content: Any accept = "application/json" # Construct URL - url = "/additionalProperties/in/properties" + _url = "/additionalProperties/in/properties" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_create_ap_in_properties_with_ap_string_request( @@ -318,12 +318,12 @@ def build_create_ap_in_properties_with_ap_string_request( accept = "application/json" # Construct URL - url = "/additionalProperties/in/properties/with/additionalProperties/string" + _url = "/additionalProperties/in/properties/with/additionalProperties/string" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/AnythingLowLevel/anythinglowlevel/rest/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/AnythingLowLevel/anythinglowlevel/rest/_request_builders.py index 796e9f788df..46f6d22443e 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/AnythingLowLevel/anythinglowlevel/rest/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/AnythingLowLevel/anythinglowlevel/rest/_request_builders.py @@ -40,16 +40,16 @@ def build_get_object_request( accept = "application/json" # Construct URL - url = "/anything/object" + _url = "/anything/object" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -87,17 +87,17 @@ def build_put_object_request( content_type = kwargs.pop('content_type', None) # type: Optional[str] # Construct URL - url = "/anything/object" + _url = "/anything/object" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -119,16 +119,16 @@ def build_get_string_request( accept = "application/json" # Construct URL - url = "/anything/string" + _url = "/anything/string" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -166,17 +166,17 @@ def build_put_string_request( content_type = kwargs.pop('content_type', None) # type: Optional[str] # Construct URL - url = "/anything/string" + _url = "/anything/string" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -198,16 +198,16 @@ def build_get_array_request( accept = "application/json" # Construct URL - url = "/anything/array" + _url = "/anything/array" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -245,16 +245,16 @@ def build_put_array_request( content_type = kwargs.pop('content_type', None) # type: Optional[str] # Construct URL - url = "/anything/array" + _url = "/anything/array" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/AnythingLowLevel/anythinglowlevel/rest/_request_builders_py3.py b/test/vanilla/low-level/Expected/AcceptanceTests/AnythingLowLevel/anythinglowlevel/rest/_request_builders_py3.py index cf8f859f4b3..32483c67304 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/AnythingLowLevel/anythinglowlevel/rest/_request_builders_py3.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/AnythingLowLevel/anythinglowlevel/rest/_request_builders_py3.py @@ -32,13 +32,13 @@ def build_get_object_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/anything/object" + _url = "/anything/object" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_object_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -71,14 +71,14 @@ def build_put_object_request(*, json: JSONType = None, content: Any = None, **kw content_type = kwargs.pop("content_type", None) # type: Optional[str] # Construct URL - url = "/anything/object" + _url = "/anything/object" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_string_request(**kwargs: Any) -> HttpRequest: @@ -95,13 +95,13 @@ def build_get_string_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/anything/string" + _url = "/anything/string" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_string_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -134,14 +134,14 @@ def build_put_string_request(*, json: JSONType = None, content: Any = None, **kw content_type = kwargs.pop("content_type", None) # type: Optional[str] # Construct URL - url = "/anything/string" + _url = "/anything/string" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_array_request(**kwargs: Any) -> HttpRequest: @@ -158,13 +158,13 @@ def build_get_array_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/anything/array" + _url = "/anything/array" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_array_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -197,11 +197,11 @@ def build_put_array_request(*, json: JSONType = None, content: Any = None, **kwa content_type = kwargs.pop("content_type", None) # type: Optional[str] # Construct URL - url = "/anything/array" + _url = "/anything/array" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyArrayLowLevel/bodyarraylowlevel/rest/array/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyArrayLowLevel/bodyarraylowlevel/rest/array/_request_builders.py index 3dce6a3a67d..2d2550d9930 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyArrayLowLevel/bodyarraylowlevel/rest/array/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyArrayLowLevel/bodyarraylowlevel/rest/array/_request_builders.py @@ -47,16 +47,16 @@ def build_get_null_request( accept = "application/json" # Construct URL - url = "/array/null" + _url = "/array/null" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -86,16 +86,16 @@ def build_get_invalid_request( accept = "application/json" # Construct URL - url = "/array/invalid" + _url = "/array/invalid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -125,16 +125,16 @@ def build_get_empty_request( accept = "application/json" # Construct URL - url = "/array/empty" + _url = "/array/empty" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -172,18 +172,18 @@ def build_put_empty_request( accept = "application/json" # Construct URL - url = "/array/empty" + _url = "/array/empty" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -213,16 +213,16 @@ def build_get_boolean_tfft_request( accept = "application/json" # Construct URL - url = "/array/prim/boolean/tfft" + _url = "/array/prim/boolean/tfft" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -260,18 +260,18 @@ def build_put_boolean_tfft_request( accept = "application/json" # Construct URL - url = "/array/prim/boolean/tfft" + _url = "/array/prim/boolean/tfft" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -301,16 +301,16 @@ def build_get_boolean_invalid_null_request( accept = "application/json" # Construct URL - url = "/array/prim/boolean/true.null.false" + _url = "/array/prim/boolean/true.null.false" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -340,16 +340,16 @@ def build_get_boolean_invalid_string_request( accept = "application/json" # Construct URL - url = "/array/prim/boolean/true.boolean.false" + _url = "/array/prim/boolean/true.boolean.false" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -379,16 +379,16 @@ def build_get_integer_valid_request( accept = "application/json" # Construct URL - url = "/array/prim/integer/1.-1.3.300" + _url = "/array/prim/integer/1.-1.3.300" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -426,18 +426,18 @@ def build_put_integer_valid_request( accept = "application/json" # Construct URL - url = "/array/prim/integer/1.-1.3.300" + _url = "/array/prim/integer/1.-1.3.300" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -467,16 +467,16 @@ def build_get_int_invalid_null_request( accept = "application/json" # Construct URL - url = "/array/prim/integer/1.null.zero" + _url = "/array/prim/integer/1.null.zero" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -506,16 +506,16 @@ def build_get_int_invalid_string_request( accept = "application/json" # Construct URL - url = "/array/prim/integer/1.integer.0" + _url = "/array/prim/integer/1.integer.0" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -545,16 +545,16 @@ def build_get_long_valid_request( accept = "application/json" # Construct URL - url = "/array/prim/long/1.-1.3.300" + _url = "/array/prim/long/1.-1.3.300" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -592,18 +592,18 @@ def build_put_long_valid_request( accept = "application/json" # Construct URL - url = "/array/prim/long/1.-1.3.300" + _url = "/array/prim/long/1.-1.3.300" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -633,16 +633,16 @@ def build_get_long_invalid_null_request( accept = "application/json" # Construct URL - url = "/array/prim/long/1.null.zero" + _url = "/array/prim/long/1.null.zero" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -672,16 +672,16 @@ def build_get_long_invalid_string_request( accept = "application/json" # Construct URL - url = "/array/prim/long/1.integer.0" + _url = "/array/prim/long/1.integer.0" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -711,16 +711,16 @@ def build_get_float_valid_request( accept = "application/json" # Construct URL - url = "/array/prim/float/0--0.01-1.2e20" + _url = "/array/prim/float/0--0.01-1.2e20" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -758,18 +758,18 @@ def build_put_float_valid_request( accept = "application/json" # Construct URL - url = "/array/prim/float/0--0.01-1.2e20" + _url = "/array/prim/float/0--0.01-1.2e20" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -799,16 +799,16 @@ def build_get_float_invalid_null_request( accept = "application/json" # Construct URL - url = "/array/prim/float/0.0-null-1.2e20" + _url = "/array/prim/float/0.0-null-1.2e20" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -838,16 +838,16 @@ def build_get_float_invalid_string_request( accept = "application/json" # Construct URL - url = "/array/prim/float/1.number.0" + _url = "/array/prim/float/1.number.0" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -877,16 +877,16 @@ def build_get_double_valid_request( accept = "application/json" # Construct URL - url = "/array/prim/double/0--0.01-1.2e20" + _url = "/array/prim/double/0--0.01-1.2e20" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -924,18 +924,18 @@ def build_put_double_valid_request( accept = "application/json" # Construct URL - url = "/array/prim/double/0--0.01-1.2e20" + _url = "/array/prim/double/0--0.01-1.2e20" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -965,16 +965,16 @@ def build_get_double_invalid_null_request( accept = "application/json" # Construct URL - url = "/array/prim/double/0.0-null-1.2e20" + _url = "/array/prim/double/0.0-null-1.2e20" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1004,16 +1004,16 @@ def build_get_double_invalid_string_request( accept = "application/json" # Construct URL - url = "/array/prim/double/1.number.0" + _url = "/array/prim/double/1.number.0" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1043,16 +1043,16 @@ def build_get_string_valid_request( accept = "application/json" # Construct URL - url = "/array/prim/string/foo1.foo2.foo3" + _url = "/array/prim/string/foo1.foo2.foo3" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1090,18 +1090,18 @@ def build_put_string_valid_request( accept = "application/json" # Construct URL - url = "/array/prim/string/foo1.foo2.foo3" + _url = "/array/prim/string/foo1.foo2.foo3" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1131,16 +1131,16 @@ def build_get_enum_valid_request( accept = "application/json" # Construct URL - url = "/array/prim/enum/foo1.foo2.foo3" + _url = "/array/prim/enum/foo1.foo2.foo3" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1178,18 +1178,18 @@ def build_put_enum_valid_request( accept = "application/json" # Construct URL - url = "/array/prim/enum/foo1.foo2.foo3" + _url = "/array/prim/enum/foo1.foo2.foo3" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1219,16 +1219,16 @@ def build_get_string_enum_valid_request( accept = "application/json" # Construct URL - url = "/array/prim/string-enum/foo1.foo2.foo3" + _url = "/array/prim/string-enum/foo1.foo2.foo3" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1266,18 +1266,18 @@ def build_put_string_enum_valid_request( accept = "application/json" # Construct URL - url = "/array/prim/string-enum/foo1.foo2.foo3" + _url = "/array/prim/string-enum/foo1.foo2.foo3" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1307,16 +1307,16 @@ def build_get_string_with_null_request( accept = "application/json" # Construct URL - url = "/array/prim/string/foo.null.foo2" + _url = "/array/prim/string/foo.null.foo2" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1346,16 +1346,16 @@ def build_get_string_with_invalid_request( accept = "application/json" # Construct URL - url = "/array/prim/string/foo.123.foo2" + _url = "/array/prim/string/foo.123.foo2" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1386,16 +1386,16 @@ def build_get_uuid_valid_request( accept = "application/json" # Construct URL - url = "/array/prim/uuid/valid" + _url = "/array/prim/uuid/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1434,18 +1434,18 @@ def build_put_uuid_valid_request( accept = "application/json" # Construct URL - url = "/array/prim/uuid/valid" + _url = "/array/prim/uuid/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1475,16 +1475,16 @@ def build_get_uuid_invalid_chars_request( accept = "application/json" # Construct URL - url = "/array/prim/uuid/invalidchars" + _url = "/array/prim/uuid/invalidchars" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1514,16 +1514,16 @@ def build_get_date_valid_request( accept = "application/json" # Construct URL - url = "/array/prim/date/valid" + _url = "/array/prim/date/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1561,18 +1561,18 @@ def build_put_date_valid_request( accept = "application/json" # Construct URL - url = "/array/prim/date/valid" + _url = "/array/prim/date/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1602,16 +1602,16 @@ def build_get_date_invalid_null_request( accept = "application/json" # Construct URL - url = "/array/prim/date/invalidnull" + _url = "/array/prim/date/invalidnull" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1641,16 +1641,16 @@ def build_get_date_invalid_chars_request( accept = "application/json" # Construct URL - url = "/array/prim/date/invalidchars" + _url = "/array/prim/date/invalidchars" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1681,16 +1681,16 @@ def build_get_date_time_valid_request( accept = "application/json" # Construct URL - url = "/array/prim/date-time/valid" + _url = "/array/prim/date-time/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1729,18 +1729,18 @@ def build_put_date_time_valid_request( accept = "application/json" # Construct URL - url = "/array/prim/date-time/valid" + _url = "/array/prim/date-time/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1770,16 +1770,16 @@ def build_get_date_time_invalid_null_request( accept = "application/json" # Construct URL - url = "/array/prim/date-time/invalidnull" + _url = "/array/prim/date-time/invalidnull" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1809,16 +1809,16 @@ def build_get_date_time_invalid_chars_request( accept = "application/json" # Construct URL - url = "/array/prim/date-time/invalidchars" + _url = "/array/prim/date-time/invalidchars" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1849,16 +1849,16 @@ def build_get_date_time_rfc1123_valid_request( accept = "application/json" # Construct URL - url = "/array/prim/date-time-rfc1123/valid" + _url = "/array/prim/date-time-rfc1123/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1897,18 +1897,18 @@ def build_put_date_time_rfc1123_valid_request( accept = "application/json" # Construct URL - url = "/array/prim/date-time-rfc1123/valid" + _url = "/array/prim/date-time-rfc1123/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1938,16 +1938,16 @@ def build_get_duration_valid_request( accept = "application/json" # Construct URL - url = "/array/prim/duration/valid" + _url = "/array/prim/duration/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1985,18 +1985,18 @@ def build_put_duration_valid_request( accept = "application/json" # Construct URL - url = "/array/prim/duration/valid" + _url = "/array/prim/duration/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -2027,16 +2027,16 @@ def build_get_byte_valid_request( accept = "application/json" # Construct URL - url = "/array/prim/byte/valid" + _url = "/array/prim/byte/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -2075,18 +2075,18 @@ def build_put_byte_valid_request( accept = "application/json" # Construct URL - url = "/array/prim/byte/valid" + _url = "/array/prim/byte/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -2116,16 +2116,16 @@ def build_get_byte_invalid_null_request( accept = "application/json" # Construct URL - url = "/array/prim/byte/invalidnull" + _url = "/array/prim/byte/invalidnull" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -2156,16 +2156,16 @@ def build_get_base64_url_request( accept = "application/json" # Construct URL - url = "/array/prim/base64url/valid" + _url = "/array/prim/base64url/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -2198,16 +2198,16 @@ def build_get_complex_null_request( accept = "application/json" # Construct URL - url = "/array/complex/null" + _url = "/array/complex/null" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -2240,16 +2240,16 @@ def build_get_complex_empty_request( accept = "application/json" # Construct URL - url = "/array/complex/empty" + _url = "/array/complex/empty" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -2283,16 +2283,16 @@ def build_get_complex_item_null_request( accept = "application/json" # Construct URL - url = "/array/complex/itemnull" + _url = "/array/complex/itemnull" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -2326,16 +2326,16 @@ def build_get_complex_item_empty_request( accept = "application/json" # Construct URL - url = "/array/complex/itemempty" + _url = "/array/complex/itemempty" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -2369,16 +2369,16 @@ def build_get_complex_valid_request( accept = "application/json" # Construct URL - url = "/array/complex/valid" + _url = "/array/complex/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -2420,18 +2420,18 @@ def build_put_complex_valid_request( accept = "application/json" # Construct URL - url = "/array/complex/valid" + _url = "/array/complex/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -2463,16 +2463,16 @@ def build_get_array_null_request( accept = "application/json" # Construct URL - url = "/array/array/null" + _url = "/array/array/null" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -2504,16 +2504,16 @@ def build_get_array_empty_request( accept = "application/json" # Construct URL - url = "/array/array/empty" + _url = "/array/array/empty" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -2545,16 +2545,16 @@ def build_get_array_item_null_request( accept = "application/json" # Construct URL - url = "/array/array/itemnull" + _url = "/array/array/itemnull" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -2586,16 +2586,16 @@ def build_get_array_item_empty_request( accept = "application/json" # Construct URL - url = "/array/array/itemempty" + _url = "/array/array/itemempty" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -2627,16 +2627,16 @@ def build_get_array_valid_request( accept = "application/json" # Construct URL - url = "/array/array/valid" + _url = "/array/array/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -2676,18 +2676,18 @@ def build_put_array_valid_request( accept = "application/json" # Construct URL - url = "/array/array/valid" + _url = "/array/array/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -2719,16 +2719,16 @@ def build_get_dictionary_null_request( accept = "application/json" # Construct URL - url = "/array/dictionary/null" + _url = "/array/dictionary/null" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -2760,16 +2760,16 @@ def build_get_dictionary_empty_request( accept = "application/json" # Construct URL - url = "/array/dictionary/empty" + _url = "/array/dictionary/empty" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -2802,16 +2802,16 @@ def build_get_dictionary_item_null_request( accept = "application/json" # Construct URL - url = "/array/dictionary/itemnull" + _url = "/array/dictionary/itemnull" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -2844,16 +2844,16 @@ def build_get_dictionary_item_empty_request( accept = "application/json" # Construct URL - url = "/array/dictionary/itemempty" + _url = "/array/dictionary/itemempty" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -2886,16 +2886,16 @@ def build_get_dictionary_valid_request( accept = "application/json" # Construct URL - url = "/array/dictionary/valid" + _url = "/array/dictionary/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -2936,17 +2936,17 @@ def build_put_dictionary_valid_request( accept = "application/json" # Construct URL - url = "/array/dictionary/valid" + _url = "/array/dictionary/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyArrayLowLevel/bodyarraylowlevel/rest/array/_request_builders_py3.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyArrayLowLevel/bodyarraylowlevel/rest/array/_request_builders_py3.py index 06adf2a9540..f2c30ada7e0 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyArrayLowLevel/bodyarraylowlevel/rest/array/_request_builders_py3.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyArrayLowLevel/bodyarraylowlevel/rest/array/_request_builders_py3.py @@ -39,13 +39,13 @@ def build_get_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/array/null" + _url = "/array/null" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_invalid_request(**kwargs: Any) -> HttpRequest: @@ -70,13 +70,13 @@ def build_get_invalid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/array/invalid" + _url = "/array/invalid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_empty_request(**kwargs: Any) -> HttpRequest: @@ -101,13 +101,13 @@ def build_get_empty_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/array/empty" + _url = "/array/empty" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_empty_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -140,15 +140,15 @@ def build_put_empty_request(*, json: JSONType = None, content: Any = None, **kwa accept = "application/json" # Construct URL - url = "/array/empty" + _url = "/array/empty" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_boolean_tfft_request(**kwargs: Any) -> HttpRequest: @@ -173,13 +173,13 @@ def build_get_boolean_tfft_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/array/prim/boolean/tfft" + _url = "/array/prim/boolean/tfft" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_boolean_tfft_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -212,15 +212,15 @@ def build_put_boolean_tfft_request(*, json: JSONType = None, content: Any = None accept = "application/json" # Construct URL - url = "/array/prim/boolean/tfft" + _url = "/array/prim/boolean/tfft" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_boolean_invalid_null_request(**kwargs: Any) -> HttpRequest: @@ -245,13 +245,13 @@ def build_get_boolean_invalid_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/array/prim/boolean/true.null.false" + _url = "/array/prim/boolean/true.null.false" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_boolean_invalid_string_request(**kwargs: Any) -> HttpRequest: @@ -276,13 +276,13 @@ def build_get_boolean_invalid_string_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/array/prim/boolean/true.boolean.false" + _url = "/array/prim/boolean/true.boolean.false" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_integer_valid_request(**kwargs: Any) -> HttpRequest: @@ -307,13 +307,13 @@ def build_get_integer_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/array/prim/integer/1.-1.3.300" + _url = "/array/prim/integer/1.-1.3.300" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_integer_valid_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -346,15 +346,15 @@ def build_put_integer_valid_request(*, json: JSONType = None, content: Any = Non accept = "application/json" # Construct URL - url = "/array/prim/integer/1.-1.3.300" + _url = "/array/prim/integer/1.-1.3.300" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_int_invalid_null_request(**kwargs: Any) -> HttpRequest: @@ -379,13 +379,13 @@ def build_get_int_invalid_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/array/prim/integer/1.null.zero" + _url = "/array/prim/integer/1.null.zero" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_int_invalid_string_request(**kwargs: Any) -> HttpRequest: @@ -410,13 +410,13 @@ def build_get_int_invalid_string_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/array/prim/integer/1.integer.0" + _url = "/array/prim/integer/1.integer.0" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_long_valid_request(**kwargs: Any) -> HttpRequest: @@ -441,13 +441,13 @@ def build_get_long_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/array/prim/long/1.-1.3.300" + _url = "/array/prim/long/1.-1.3.300" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_long_valid_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -480,15 +480,15 @@ def build_put_long_valid_request(*, json: JSONType = None, content: Any = None, accept = "application/json" # Construct URL - url = "/array/prim/long/1.-1.3.300" + _url = "/array/prim/long/1.-1.3.300" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_long_invalid_null_request(**kwargs: Any) -> HttpRequest: @@ -513,13 +513,13 @@ def build_get_long_invalid_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/array/prim/long/1.null.zero" + _url = "/array/prim/long/1.null.zero" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_long_invalid_string_request(**kwargs: Any) -> HttpRequest: @@ -544,13 +544,13 @@ def build_get_long_invalid_string_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/array/prim/long/1.integer.0" + _url = "/array/prim/long/1.integer.0" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_float_valid_request(**kwargs: Any) -> HttpRequest: @@ -575,13 +575,13 @@ def build_get_float_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/array/prim/float/0--0.01-1.2e20" + _url = "/array/prim/float/0--0.01-1.2e20" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_float_valid_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -614,15 +614,15 @@ def build_put_float_valid_request(*, json: JSONType = None, content: Any = None, accept = "application/json" # Construct URL - url = "/array/prim/float/0--0.01-1.2e20" + _url = "/array/prim/float/0--0.01-1.2e20" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_float_invalid_null_request(**kwargs: Any) -> HttpRequest: @@ -647,13 +647,13 @@ def build_get_float_invalid_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/array/prim/float/0.0-null-1.2e20" + _url = "/array/prim/float/0.0-null-1.2e20" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_float_invalid_string_request(**kwargs: Any) -> HttpRequest: @@ -678,13 +678,13 @@ def build_get_float_invalid_string_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/array/prim/float/1.number.0" + _url = "/array/prim/float/1.number.0" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_double_valid_request(**kwargs: Any) -> HttpRequest: @@ -709,13 +709,13 @@ def build_get_double_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/array/prim/double/0--0.01-1.2e20" + _url = "/array/prim/double/0--0.01-1.2e20" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_double_valid_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -748,15 +748,15 @@ def build_put_double_valid_request(*, json: JSONType = None, content: Any = None accept = "application/json" # Construct URL - url = "/array/prim/double/0--0.01-1.2e20" + _url = "/array/prim/double/0--0.01-1.2e20" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_double_invalid_null_request(**kwargs: Any) -> HttpRequest: @@ -781,13 +781,13 @@ def build_get_double_invalid_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/array/prim/double/0.0-null-1.2e20" + _url = "/array/prim/double/0.0-null-1.2e20" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_double_invalid_string_request(**kwargs: Any) -> HttpRequest: @@ -812,13 +812,13 @@ def build_get_double_invalid_string_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/array/prim/double/1.number.0" + _url = "/array/prim/double/1.number.0" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_string_valid_request(**kwargs: Any) -> HttpRequest: @@ -843,13 +843,13 @@ def build_get_string_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/array/prim/string/foo1.foo2.foo3" + _url = "/array/prim/string/foo1.foo2.foo3" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_string_valid_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -882,15 +882,15 @@ def build_put_string_valid_request(*, json: JSONType = None, content: Any = None accept = "application/json" # Construct URL - url = "/array/prim/string/foo1.foo2.foo3" + _url = "/array/prim/string/foo1.foo2.foo3" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_enum_valid_request(**kwargs: Any) -> HttpRequest: @@ -915,13 +915,13 @@ def build_get_enum_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/array/prim/enum/foo1.foo2.foo3" + _url = "/array/prim/enum/foo1.foo2.foo3" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_enum_valid_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -954,15 +954,15 @@ def build_put_enum_valid_request(*, json: JSONType = None, content: Any = None, accept = "application/json" # Construct URL - url = "/array/prim/enum/foo1.foo2.foo3" + _url = "/array/prim/enum/foo1.foo2.foo3" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_string_enum_valid_request(**kwargs: Any) -> HttpRequest: @@ -987,13 +987,13 @@ def build_get_string_enum_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/array/prim/string-enum/foo1.foo2.foo3" + _url = "/array/prim/string-enum/foo1.foo2.foo3" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_string_enum_valid_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -1026,15 +1026,15 @@ def build_put_string_enum_valid_request(*, json: JSONType = None, content: Any = accept = "application/json" # Construct URL - url = "/array/prim/string-enum/foo1.foo2.foo3" + _url = "/array/prim/string-enum/foo1.foo2.foo3" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_string_with_null_request(**kwargs: Any) -> HttpRequest: @@ -1059,13 +1059,13 @@ def build_get_string_with_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/array/prim/string/foo.null.foo2" + _url = "/array/prim/string/foo.null.foo2" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_string_with_invalid_request(**kwargs: Any) -> HttpRequest: @@ -1090,13 +1090,13 @@ def build_get_string_with_invalid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/array/prim/string/foo.123.foo2" + _url = "/array/prim/string/foo.123.foo2" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_uuid_valid_request(**kwargs: Any) -> HttpRequest: @@ -1122,13 +1122,13 @@ def build_get_uuid_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/array/prim/uuid/valid" + _url = "/array/prim/uuid/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_uuid_valid_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -1162,15 +1162,15 @@ def build_put_uuid_valid_request(*, json: JSONType = None, content: Any = None, accept = "application/json" # Construct URL - url = "/array/prim/uuid/valid" + _url = "/array/prim/uuid/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_uuid_invalid_chars_request(**kwargs: Any) -> HttpRequest: @@ -1195,13 +1195,13 @@ def build_get_uuid_invalid_chars_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/array/prim/uuid/invalidchars" + _url = "/array/prim/uuid/invalidchars" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_date_valid_request(**kwargs: Any) -> HttpRequest: @@ -1226,13 +1226,13 @@ def build_get_date_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/array/prim/date/valid" + _url = "/array/prim/date/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_date_valid_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -1265,15 +1265,15 @@ def build_put_date_valid_request(*, json: JSONType = None, content: Any = None, accept = "application/json" # Construct URL - url = "/array/prim/date/valid" + _url = "/array/prim/date/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_date_invalid_null_request(**kwargs: Any) -> HttpRequest: @@ -1298,13 +1298,13 @@ def build_get_date_invalid_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/array/prim/date/invalidnull" + _url = "/array/prim/date/invalidnull" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_date_invalid_chars_request(**kwargs: Any) -> HttpRequest: @@ -1329,13 +1329,13 @@ def build_get_date_invalid_chars_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/array/prim/date/invalidchars" + _url = "/array/prim/date/invalidchars" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_date_time_valid_request(**kwargs: Any) -> HttpRequest: @@ -1361,13 +1361,13 @@ def build_get_date_time_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/array/prim/date-time/valid" + _url = "/array/prim/date-time/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_date_time_valid_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -1401,15 +1401,15 @@ def build_put_date_time_valid_request(*, json: JSONType = None, content: Any = N accept = "application/json" # Construct URL - url = "/array/prim/date-time/valid" + _url = "/array/prim/date-time/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_date_time_invalid_null_request(**kwargs: Any) -> HttpRequest: @@ -1434,13 +1434,13 @@ def build_get_date_time_invalid_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/array/prim/date-time/invalidnull" + _url = "/array/prim/date-time/invalidnull" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_date_time_invalid_chars_request(**kwargs: Any) -> HttpRequest: @@ -1465,13 +1465,13 @@ def build_get_date_time_invalid_chars_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/array/prim/date-time/invalidchars" + _url = "/array/prim/date-time/invalidchars" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_date_time_rfc1123_valid_request(**kwargs: Any) -> HttpRequest: @@ -1497,13 +1497,13 @@ def build_get_date_time_rfc1123_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/array/prim/date-time-rfc1123/valid" + _url = "/array/prim/date-time-rfc1123/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_date_time_rfc1123_valid_request( @@ -1539,15 +1539,15 @@ def build_put_date_time_rfc1123_valid_request( accept = "application/json" # Construct URL - url = "/array/prim/date-time-rfc1123/valid" + _url = "/array/prim/date-time-rfc1123/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_duration_valid_request(**kwargs: Any) -> HttpRequest: @@ -1572,13 +1572,13 @@ def build_get_duration_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/array/prim/duration/valid" + _url = "/array/prim/duration/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_duration_valid_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -1611,15 +1611,15 @@ def build_put_duration_valid_request(*, json: JSONType = None, content: Any = No accept = "application/json" # Construct URL - url = "/array/prim/duration/valid" + _url = "/array/prim/duration/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_byte_valid_request(**kwargs: Any) -> HttpRequest: @@ -1645,13 +1645,13 @@ def build_get_byte_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/array/prim/byte/valid" + _url = "/array/prim/byte/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_byte_valid_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -1685,15 +1685,15 @@ def build_put_byte_valid_request(*, json: JSONType = None, content: Any = None, accept = "application/json" # Construct URL - url = "/array/prim/byte/valid" + _url = "/array/prim/byte/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_byte_invalid_null_request(**kwargs: Any) -> HttpRequest: @@ -1718,13 +1718,13 @@ def build_get_byte_invalid_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/array/prim/byte/invalidnull" + _url = "/array/prim/byte/invalidnull" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_base64_url_request(**kwargs: Any) -> HttpRequest: @@ -1750,13 +1750,13 @@ def build_get_base64_url_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/array/prim/base64url/valid" + _url = "/array/prim/base64url/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_complex_null_request(**kwargs: Any) -> HttpRequest: @@ -1784,13 +1784,13 @@ def build_get_complex_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/array/complex/null" + _url = "/array/complex/null" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_complex_empty_request(**kwargs: Any) -> HttpRequest: @@ -1818,13 +1818,13 @@ def build_get_complex_empty_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/array/complex/empty" + _url = "/array/complex/empty" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_complex_item_null_request(**kwargs: Any) -> HttpRequest: @@ -1853,13 +1853,13 @@ def build_get_complex_item_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/array/complex/itemnull" + _url = "/array/complex/itemnull" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_complex_item_empty_request(**kwargs: Any) -> HttpRequest: @@ -1888,13 +1888,13 @@ def build_get_complex_item_empty_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/array/complex/itemempty" + _url = "/array/complex/itemempty" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_complex_valid_request(**kwargs: Any) -> HttpRequest: @@ -1923,13 +1923,13 @@ def build_get_complex_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/array/complex/valid" + _url = "/array/complex/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_complex_valid_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -1966,15 +1966,15 @@ def build_put_complex_valid_request(*, json: JSONType = None, content: Any = Non accept = "application/json" # Construct URL - url = "/array/complex/valid" + _url = "/array/complex/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_array_null_request(**kwargs: Any) -> HttpRequest: @@ -2001,13 +2001,13 @@ def build_get_array_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/array/array/null" + _url = "/array/array/null" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_array_empty_request(**kwargs: Any) -> HttpRequest: @@ -2034,13 +2034,13 @@ def build_get_array_empty_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/array/array/empty" + _url = "/array/array/empty" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_array_item_null_request(**kwargs: Any) -> HttpRequest: @@ -2067,13 +2067,13 @@ def build_get_array_item_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/array/array/itemnull" + _url = "/array/array/itemnull" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_array_item_empty_request(**kwargs: Any) -> HttpRequest: @@ -2100,13 +2100,13 @@ def build_get_array_item_empty_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/array/array/itemempty" + _url = "/array/array/itemempty" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_array_valid_request(**kwargs: Any) -> HttpRequest: @@ -2133,13 +2133,13 @@ def build_get_array_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/array/array/valid" + _url = "/array/array/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_array_valid_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -2174,15 +2174,15 @@ def build_put_array_valid_request(*, json: JSONType = None, content: Any = None, accept = "application/json" # Construct URL - url = "/array/array/valid" + _url = "/array/array/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_dictionary_null_request(**kwargs: Any) -> HttpRequest: @@ -2209,13 +2209,13 @@ def build_get_dictionary_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/array/dictionary/null" + _url = "/array/dictionary/null" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_dictionary_empty_request(**kwargs: Any) -> HttpRequest: @@ -2242,13 +2242,13 @@ def build_get_dictionary_empty_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/array/dictionary/empty" + _url = "/array/dictionary/empty" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_dictionary_item_null_request(**kwargs: Any) -> HttpRequest: @@ -2276,13 +2276,13 @@ def build_get_dictionary_item_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/array/dictionary/itemnull" + _url = "/array/dictionary/itemnull" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_dictionary_item_empty_request(**kwargs: Any) -> HttpRequest: @@ -2310,13 +2310,13 @@ def build_get_dictionary_item_empty_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/array/dictionary/itemempty" + _url = "/array/dictionary/itemempty" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_dictionary_valid_request(**kwargs: Any) -> HttpRequest: @@ -2344,13 +2344,13 @@ def build_get_dictionary_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/array/dictionary/valid" + _url = "/array/dictionary/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_dictionary_valid_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -2386,12 +2386,12 @@ def build_put_dictionary_valid_request(*, json: JSONType = None, content: Any = accept = "application/json" # Construct URL - url = "/array/dictionary/valid" + _url = "/array/dictionary/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyBinaryLowLevel/bodybinarylowlevel/rest/upload/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyBinaryLowLevel/bodybinarylowlevel/rest/upload/_request_builders.py index 1ed1d0b55b2..78b5ff819bb 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyBinaryLowLevel/bodybinarylowlevel/rest/upload/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyBinaryLowLevel/bodybinarylowlevel/rest/upload/_request_builders.py @@ -52,17 +52,17 @@ def build_file_request( content_type = kwargs.pop('content_type', None) # type: Optional[str] # Construct URL - url = "/binary/file" + _url = "/binary/file" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -88,16 +88,16 @@ def build_binary_request( content_type = kwargs.pop('content_type', None) # type: Optional[str] # Construct URL - url = "/binary/octet" + _url = "/binary/octet" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyBinaryLowLevel/bodybinarylowlevel/rest/upload/_request_builders_py3.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyBinaryLowLevel/bodybinarylowlevel/rest/upload/_request_builders_py3.py index 6d87cbe4dd9..1af04100dd3 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyBinaryLowLevel/bodybinarylowlevel/rest/upload/_request_builders_py3.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyBinaryLowLevel/bodybinarylowlevel/rest/upload/_request_builders_py3.py @@ -44,14 +44,14 @@ def build_file_request(*, json: JSONType = None, content: Any = None, **kwargs: content_type = kwargs.pop("content_type", None) # type: Optional[str] # Construct URL - url = "/binary/file" + _url = "/binary/file" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_binary_request(*, content: Any, **kwargs: Any) -> HttpRequest: @@ -72,11 +72,11 @@ def build_binary_request(*, content: Any, **kwargs: Any) -> HttpRequest: content_type = kwargs.pop("content_type", None) # type: Optional[str] # Construct URL - url = "/binary/octet" + _url = "/binary/octet" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, content=content, **kwargs) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyBooleanLowLevel/bodybooleanlowlevel/rest/bool/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyBooleanLowLevel/bodybooleanlowlevel/rest/bool/_request_builders.py index b57532e4637..e15076f6b29 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyBooleanLowLevel/bodybooleanlowlevel/rest/bool/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyBooleanLowLevel/bodybooleanlowlevel/rest/bool/_request_builders.py @@ -39,16 +39,16 @@ def build_get_true_request( accept = "application/json" # Construct URL - url = "/bool/true" + _url = "/bool/true" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -76,18 +76,18 @@ def build_put_true_request( accept = "application/json" # Construct URL - url = "/bool/true" + _url = "/bool/true" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, json=json, **kwargs ) @@ -110,16 +110,16 @@ def build_get_false_request( accept = "application/json" # Construct URL - url = "/bool/false" + _url = "/bool/false" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -147,18 +147,18 @@ def build_put_false_request( accept = "application/json" # Construct URL - url = "/bool/false" + _url = "/bool/false" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, json=json, **kwargs ) @@ -181,16 +181,16 @@ def build_get_null_request( accept = "application/json" # Construct URL - url = "/bool/null" + _url = "/bool/null" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -212,15 +212,15 @@ def build_get_invalid_request( accept = "application/json" # Construct URL - url = "/bool/invalid" + _url = "/bool/invalid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyBooleanLowLevel/bodybooleanlowlevel/rest/bool/_request_builders_py3.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyBooleanLowLevel/bodybooleanlowlevel/rest/bool/_request_builders_py3.py index dacb9503f08..1c0e79dc619 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyBooleanLowLevel/bodybooleanlowlevel/rest/bool/_request_builders_py3.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyBooleanLowLevel/bodybooleanlowlevel/rest/bool/_request_builders_py3.py @@ -31,13 +31,13 @@ def build_get_true_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/bool/true" + _url = "/bool/true" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_true_request(**kwargs: Any) -> HttpRequest: @@ -60,15 +60,15 @@ def build_put_true_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/bool/true" + _url = "/bool/true" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, **kwargs) def build_get_false_request(**kwargs: Any) -> HttpRequest: @@ -85,13 +85,13 @@ def build_get_false_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/bool/false" + _url = "/bool/false" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_false_request(**kwargs: Any) -> HttpRequest: @@ -114,15 +114,15 @@ def build_put_false_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/bool/false" + _url = "/bool/false" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, **kwargs) def build_get_null_request(**kwargs: Any) -> HttpRequest: @@ -139,13 +139,13 @@ def build_get_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/bool/null" + _url = "/bool/null" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_invalid_request(**kwargs: Any) -> HttpRequest: @@ -162,10 +162,10 @@ def build_get_invalid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/bool/invalid" + _url = "/bool/invalid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyByteLowLevel/bodybytelowlevel/rest/byte/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyByteLowLevel/bodybytelowlevel/rest/byte/_request_builders.py index 2584dc88240..2dd7eb3b893 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyByteLowLevel/bodybytelowlevel/rest/byte/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyByteLowLevel/bodybytelowlevel/rest/byte/_request_builders.py @@ -39,16 +39,16 @@ def build_get_null_request( accept = "application/json" # Construct URL - url = "/byte/null" + _url = "/byte/null" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -70,16 +70,16 @@ def build_get_empty_request( accept = "application/json" # Construct URL - url = "/byte/empty" + _url = "/byte/empty" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -101,16 +101,16 @@ def build_get_non_ascii_request( accept = "application/json" # Construct URL - url = "/byte/nonAscii" + _url = "/byte/nonAscii" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -148,18 +148,18 @@ def build_put_non_ascii_request( accept = "application/json" # Construct URL - url = "/byte/nonAscii" + _url = "/byte/nonAscii" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -181,15 +181,15 @@ def build_get_invalid_request( accept = "application/json" # Construct URL - url = "/byte/invalid" + _url = "/byte/invalid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyByteLowLevel/bodybytelowlevel/rest/byte/_request_builders_py3.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyByteLowLevel/bodybytelowlevel/rest/byte/_request_builders_py3.py index da9e9f2dbf8..17bfa468b36 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyByteLowLevel/bodybytelowlevel/rest/byte/_request_builders_py3.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyByteLowLevel/bodybytelowlevel/rest/byte/_request_builders_py3.py @@ -31,13 +31,13 @@ def build_get_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/byte/null" + _url = "/byte/null" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_empty_request(**kwargs: Any) -> HttpRequest: @@ -54,13 +54,13 @@ def build_get_empty_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/byte/empty" + _url = "/byte/empty" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_non_ascii_request(**kwargs: Any) -> HttpRequest: @@ -77,13 +77,13 @@ def build_get_non_ascii_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/byte/nonAscii" + _url = "/byte/nonAscii" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_non_ascii_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -116,15 +116,15 @@ def build_put_non_ascii_request(*, json: JSONType = None, content: Any = None, * accept = "application/json" # Construct URL - url = "/byte/nonAscii" + _url = "/byte/nonAscii" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_invalid_request(**kwargs: Any) -> HttpRequest: @@ -141,10 +141,10 @@ def build_get_invalid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/byte/invalid" + _url = "/byte/invalid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/array/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/array/_request_builders.py index 920dfff8d64..ce68ba6dee2 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/array/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/array/_request_builders.py @@ -48,16 +48,16 @@ def build_get_valid_request( accept = "application/json" # Construct URL - url = "/complex/array/valid" + _url = "/complex/array/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -99,18 +99,18 @@ def build_put_valid_request( accept = "application/json" # Construct URL - url = "/complex/array/valid" + _url = "/complex/array/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -142,16 +142,16 @@ def build_get_empty_request( accept = "application/json" # Construct URL - url = "/complex/array/empty" + _url = "/complex/array/empty" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -191,18 +191,18 @@ def build_put_empty_request( accept = "application/json" # Construct URL - url = "/complex/array/empty" + _url = "/complex/array/empty" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -234,15 +234,15 @@ def build_get_not_provided_request( accept = "application/json" # Construct URL - url = "/complex/array/notprovided" + _url = "/complex/array/notprovided" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/array/_request_builders_py3.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/array/_request_builders_py3.py index 356504ea41d..e9ee54e6dcb 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/array/_request_builders_py3.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/array/_request_builders_py3.py @@ -40,13 +40,13 @@ def build_get_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/complex/array/valid" + _url = "/complex/array/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_valid_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -83,15 +83,15 @@ def build_put_valid_request(*, json: JSONType = None, content: Any = None, **kwa accept = "application/json" # Construct URL - url = "/complex/array/valid" + _url = "/complex/array/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_empty_request(**kwargs: Any) -> HttpRequest: @@ -118,13 +118,13 @@ def build_get_empty_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/complex/array/empty" + _url = "/complex/array/empty" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_empty_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -159,15 +159,15 @@ def build_put_empty_request(*, json: JSONType = None, content: Any = None, **kwa accept = "application/json" # Construct URL - url = "/complex/array/empty" + _url = "/complex/array/empty" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_not_provided_request(**kwargs: Any) -> HttpRequest: @@ -194,10 +194,10 @@ def build_get_not_provided_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/complex/array/notprovided" + _url = "/complex/array/notprovided" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/basic/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/basic/_request_builders.py index 1637e066cd2..6667349b70f 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/basic/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/basic/_request_builders.py @@ -50,16 +50,16 @@ def build_get_valid_request( accept = "application/json" # Construct URL - url = "/complex/basic/valid" + _url = "/complex/basic/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -102,23 +102,23 @@ def build_put_valid_request( accept = "application/json" # Construct URL - url = "/complex/basic/valid" + _url = "/complex/basic/valid" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -152,16 +152,16 @@ def build_get_invalid_request( accept = "application/json" # Construct URL - url = "/complex/basic/invalid" + _url = "/complex/basic/invalid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -195,16 +195,16 @@ def build_get_empty_request( accept = "application/json" # Construct URL - url = "/complex/basic/empty" + _url = "/complex/basic/empty" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -238,16 +238,16 @@ def build_get_null_request( accept = "application/json" # Construct URL - url = "/complex/basic/null" + _url = "/complex/basic/null" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -281,15 +281,15 @@ def build_get_not_provided_request( accept = "application/json" # Construct URL - url = "/complex/basic/notprovided" + _url = "/complex/basic/notprovided" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/basic/_request_builders_py3.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/basic/_request_builders_py3.py index 424e6ae4cc2..1f08b3a8be4 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/basic/_request_builders_py3.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/basic/_request_builders_py3.py @@ -42,13 +42,13 @@ def build_get_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/complex/basic/valid" + _url = "/complex/basic/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_valid_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -86,20 +86,26 @@ def build_put_valid_request(*, json: JSONType = None, content: Any = None, **kwa accept = "application/json" # Construct URL - url = "/complex/basic/valid" + _url = "/complex/basic/valid" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["api-version"] = _SERIALIZER.query("api_version", api_version, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") return HttpRequest( - method="PUT", url=url, params=query_parameters, headers=header_parameters, json=json, content=content, **kwargs + method="PUT", + url=_url, + params=_query_parameters, + headers=_header_parameters, + json=json, + content=content, + **kwargs ) @@ -129,13 +135,13 @@ def build_get_invalid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/complex/basic/invalid" + _url = "/complex/basic/invalid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_empty_request(**kwargs: Any) -> HttpRequest: @@ -164,13 +170,13 @@ def build_get_empty_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/complex/basic/empty" + _url = "/complex/basic/empty" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_null_request(**kwargs: Any) -> HttpRequest: @@ -199,13 +205,13 @@ def build_get_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/complex/basic/null" + _url = "/complex/basic/null" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_not_provided_request(**kwargs: Any) -> HttpRequest: @@ -234,10 +240,10 @@ def build_get_not_provided_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/complex/basic/notprovided" + _url = "/complex/basic/notprovided" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/dictionary/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/dictionary/_request_builders.py index a840af8b28f..84382d5c5ed 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/dictionary/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/dictionary/_request_builders.py @@ -48,16 +48,16 @@ def build_get_valid_request( accept = "application/json" # Construct URL - url = "/complex/dictionary/typed/valid" + _url = "/complex/dictionary/typed/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -99,18 +99,18 @@ def build_put_valid_request( accept = "application/json" # Construct URL - url = "/complex/dictionary/typed/valid" + _url = "/complex/dictionary/typed/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -142,16 +142,16 @@ def build_get_empty_request( accept = "application/json" # Construct URL - url = "/complex/dictionary/typed/empty" + _url = "/complex/dictionary/typed/empty" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -191,18 +191,18 @@ def build_put_empty_request( accept = "application/json" # Construct URL - url = "/complex/dictionary/typed/empty" + _url = "/complex/dictionary/typed/empty" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -234,16 +234,16 @@ def build_get_null_request( accept = "application/json" # Construct URL - url = "/complex/dictionary/typed/null" + _url = "/complex/dictionary/typed/null" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -275,15 +275,15 @@ def build_get_not_provided_request( accept = "application/json" # Construct URL - url = "/complex/dictionary/typed/notprovided" + _url = "/complex/dictionary/typed/notprovided" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/dictionary/_request_builders_py3.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/dictionary/_request_builders_py3.py index a30ee93c17c..8481806670e 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/dictionary/_request_builders_py3.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/dictionary/_request_builders_py3.py @@ -40,13 +40,13 @@ def build_get_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/complex/dictionary/typed/valid" + _url = "/complex/dictionary/typed/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_valid_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -83,15 +83,15 @@ def build_put_valid_request(*, json: JSONType = None, content: Any = None, **kwa accept = "application/json" # Construct URL - url = "/complex/dictionary/typed/valid" + _url = "/complex/dictionary/typed/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_empty_request(**kwargs: Any) -> HttpRequest: @@ -118,13 +118,13 @@ def build_get_empty_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/complex/dictionary/typed/empty" + _url = "/complex/dictionary/typed/empty" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_empty_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -159,15 +159,15 @@ def build_put_empty_request(*, json: JSONType = None, content: Any = None, **kwa accept = "application/json" # Construct URL - url = "/complex/dictionary/typed/empty" + _url = "/complex/dictionary/typed/empty" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_null_request(**kwargs: Any) -> HttpRequest: @@ -194,13 +194,13 @@ def build_get_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/complex/dictionary/typed/null" + _url = "/complex/dictionary/typed/null" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_not_provided_request(**kwargs: Any) -> HttpRequest: @@ -227,10 +227,10 @@ def build_get_not_provided_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/complex/dictionary/typed/notprovided" + _url = "/complex/dictionary/typed/notprovided" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/flattencomplex/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/flattencomplex/_request_builders.py index c2032a09a3c..7c0bd8f58f9 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/flattencomplex/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/flattencomplex/_request_builders.py @@ -47,15 +47,15 @@ def build_get_valid_request( accept = "application/json" # Construct URL - url = "/complex/flatten/valid" + _url = "/complex/flatten/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/flattencomplex/_request_builders_py3.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/flattencomplex/_request_builders_py3.py index 9df858aff94..d4754a174b7 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/flattencomplex/_request_builders_py3.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/flattencomplex/_request_builders_py3.py @@ -39,10 +39,10 @@ def build_get_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/complex/flatten/valid" + _url = "/complex/flatten/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/inheritance/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/inheritance/_request_builders.py index e689da79acf..050e20ebbcc 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/inheritance/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/inheritance/_request_builders.py @@ -56,16 +56,16 @@ def build_get_valid_request( accept = "application/json" # Construct URL - url = "/complex/inheritance/valid" + _url = "/complex/inheritance/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -117,17 +117,17 @@ def build_put_valid_request( accept = "application/json" # Construct URL - url = "/complex/inheritance/valid" + _url = "/complex/inheritance/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/inheritance/_request_builders_py3.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/inheritance/_request_builders_py3.py index 4359de8f650..ce33d27169c 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/inheritance/_request_builders_py3.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/inheritance/_request_builders_py3.py @@ -48,13 +48,13 @@ def build_get_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/complex/inheritance/valid" + _url = "/complex/inheritance/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_valid_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -101,12 +101,12 @@ def build_put_valid_request(*, json: JSONType = None, content: Any = None, **kwa accept = "application/json" # Construct URL - url = "/complex/inheritance/valid" + _url = "/complex/inheritance/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/polymorphicrecursive/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/polymorphicrecursive/_request_builders.py index 0e07e0a00d1..49ac474c316 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/polymorphicrecursive/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/polymorphicrecursive/_request_builders.py @@ -51,16 +51,16 @@ def build_get_valid_request( accept = "application/json" # Construct URL - url = "/complex/polymorphicrecursive/valid" + _url = "/complex/polymorphicrecursive/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -209,17 +209,17 @@ def build_put_valid_request( accept = "application/json" # Construct URL - url = "/complex/polymorphicrecursive/valid" + _url = "/complex/polymorphicrecursive/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/polymorphicrecursive/_request_builders_py3.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/polymorphicrecursive/_request_builders_py3.py index 2f82f035d1f..5b41e10e02f 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/polymorphicrecursive/_request_builders_py3.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/polymorphicrecursive/_request_builders_py3.py @@ -43,13 +43,13 @@ def build_get_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/complex/polymorphicrecursive/valid" + _url = "/complex/polymorphicrecursive/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_valid_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -193,12 +193,12 @@ def build_put_valid_request(*, json: JSONType = None, content: Any = None, **kwa accept = "application/json" # Construct URL - url = "/complex/polymorphicrecursive/valid" + _url = "/complex/polymorphicrecursive/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/polymorphism/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/polymorphism/_request_builders.py index 0b66bfb2e46..fdd7134b919 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/polymorphism/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/polymorphism/_request_builders.py @@ -51,16 +51,16 @@ def build_get_valid_request( accept = "application/json" # Construct URL - url = "/complex/polymorphism/valid" + _url = "/complex/polymorphism/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -169,18 +169,18 @@ def build_put_valid_request( accept = "application/json" # Construct URL - url = "/complex/polymorphism/valid" + _url = "/complex/polymorphism/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -211,16 +211,16 @@ def build_get_dot_syntax_request( accept = "application/json" # Construct URL - url = "/complex/polymorphism/dotsyntax" + _url = "/complex/polymorphism/dotsyntax" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -275,16 +275,16 @@ def build_get_composed_with_discriminator_request( accept = "application/json" # Construct URL - url = "/complex/polymorphism/composedWithDiscriminator" + _url = "/complex/polymorphism/composedWithDiscriminator" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -339,16 +339,16 @@ def build_get_composed_without_discriminator_request( accept = "application/json" # Construct URL - url = "/complex/polymorphism/composedWithoutDiscriminator" + _url = "/complex/polymorphism/composedWithoutDiscriminator" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -393,16 +393,16 @@ def build_get_complicated_request( accept = "application/json" # Construct URL - url = "/complex/polymorphism/complicated" + _url = "/complex/polymorphism/complicated" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -457,18 +457,18 @@ def build_put_complicated_request( accept = "application/json" # Construct URL - url = "/complex/polymorphism/complicated" + _url = "/complex/polymorphism/complicated" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -541,18 +541,18 @@ def build_put_missing_discriminator_request( accept = "application/json" # Construct URL - url = "/complex/polymorphism/missingdiscriminator" + _url = "/complex/polymorphism/missingdiscriminator" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -650,17 +650,17 @@ def build_put_valid_missing_required_request( accept = "application/json" # Construct URL - url = "/complex/polymorphism/missingrequired/invalid" + _url = "/complex/polymorphism/missingrequired/invalid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/polymorphism/_request_builders_py3.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/polymorphism/_request_builders_py3.py index a6a553f8657..4abe6638f97 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/polymorphism/_request_builders_py3.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/polymorphism/_request_builders_py3.py @@ -43,13 +43,13 @@ def build_get_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/complex/polymorphism/valid" + _url = "/complex/polymorphism/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_valid_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -153,15 +153,15 @@ def build_put_valid_request(*, json: JSONType = None, content: Any = None, **kwa accept = "application/json" # Construct URL - url = "/complex/polymorphism/valid" + _url = "/complex/polymorphism/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_dot_syntax_request(**kwargs: Any) -> HttpRequest: @@ -187,13 +187,13 @@ def build_get_dot_syntax_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/complex/polymorphism/dotsyntax" + _url = "/complex/polymorphism/dotsyntax" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_composed_with_discriminator_request(**kwargs: Any) -> HttpRequest: @@ -243,13 +243,13 @@ def build_get_composed_with_discriminator_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/complex/polymorphism/composedWithDiscriminator" + _url = "/complex/polymorphism/composedWithDiscriminator" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_composed_without_discriminator_request(**kwargs: Any) -> HttpRequest: @@ -299,13 +299,13 @@ def build_get_composed_without_discriminator_request(**kwargs: Any) -> HttpReque accept = "application/json" # Construct URL - url = "/complex/polymorphism/composedWithoutDiscriminator" + _url = "/complex/polymorphism/composedWithoutDiscriminator" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_complicated_request(**kwargs: Any) -> HttpRequest: @@ -345,13 +345,13 @@ def build_get_complicated_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/complex/polymorphism/complicated" + _url = "/complex/polymorphism/complicated" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_complicated_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -401,15 +401,15 @@ def build_put_complicated_request(*, json: JSONType = None, content: Any = None, accept = "application/json" # Construct URL - url = "/complex/polymorphism/complicated" + _url = "/complex/polymorphism/complicated" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_put_missing_discriminator_request( @@ -479,15 +479,15 @@ def build_put_missing_discriminator_request( accept = "application/json" # Construct URL - url = "/complex/polymorphism/missingdiscriminator" + _url = "/complex/polymorphism/missingdiscriminator" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_put_valid_missing_required_request( @@ -582,12 +582,12 @@ def build_put_valid_missing_required_request( accept = "application/json" # Construct URL - url = "/complex/polymorphism/missingrequired/invalid" + _url = "/complex/polymorphism/missingrequired/invalid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/primitive/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/primitive/_request_builders.py index e52ac7c131a..d3e6addefc1 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/primitive/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/primitive/_request_builders.py @@ -47,16 +47,16 @@ def build_get_int_request( accept = "application/json" # Construct URL - url = "/complex/primitive/integer" + _url = "/complex/primitive/integer" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -95,18 +95,18 @@ def build_put_int_request( accept = "application/json" # Construct URL - url = "/complex/primitive/integer" + _url = "/complex/primitive/integer" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -137,16 +137,16 @@ def build_get_long_request( accept = "application/json" # Construct URL - url = "/complex/primitive/long" + _url = "/complex/primitive/long" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -185,18 +185,18 @@ def build_put_long_request( accept = "application/json" # Construct URL - url = "/complex/primitive/long" + _url = "/complex/primitive/long" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -227,16 +227,16 @@ def build_get_float_request( accept = "application/json" # Construct URL - url = "/complex/primitive/float" + _url = "/complex/primitive/float" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -275,18 +275,18 @@ def build_put_float_request( accept = "application/json" # Construct URL - url = "/complex/primitive/float" + _url = "/complex/primitive/float" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -318,16 +318,16 @@ def build_get_double_request( accept = "application/json" # Construct URL - url = "/complex/primitive/double" + _url = "/complex/primitive/double" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -369,18 +369,18 @@ def build_put_double_request( accept = "application/json" # Construct URL - url = "/complex/primitive/double" + _url = "/complex/primitive/double" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -411,16 +411,16 @@ def build_get_bool_request( accept = "application/json" # Construct URL - url = "/complex/primitive/bool" + _url = "/complex/primitive/bool" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -459,18 +459,18 @@ def build_put_bool_request( accept = "application/json" # Construct URL - url = "/complex/primitive/bool" + _url = "/complex/primitive/bool" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -502,16 +502,16 @@ def build_get_string_request( accept = "application/json" # Construct URL - url = "/complex/primitive/string" + _url = "/complex/primitive/string" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -551,18 +551,18 @@ def build_put_string_request( accept = "application/json" # Construct URL - url = "/complex/primitive/string" + _url = "/complex/primitive/string" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -593,16 +593,16 @@ def build_get_date_request( accept = "application/json" # Construct URL - url = "/complex/primitive/date" + _url = "/complex/primitive/date" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -641,18 +641,18 @@ def build_put_date_request( accept = "application/json" # Construct URL - url = "/complex/primitive/date" + _url = "/complex/primitive/date" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -683,16 +683,16 @@ def build_get_date_time_request( accept = "application/json" # Construct URL - url = "/complex/primitive/datetime" + _url = "/complex/primitive/datetime" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -733,18 +733,18 @@ def build_put_date_time_request( accept = "application/json" # Construct URL - url = "/complex/primitive/datetime" + _url = "/complex/primitive/datetime" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -775,16 +775,16 @@ def build_get_date_time_rfc1123_request( accept = "application/json" # Construct URL - url = "/complex/primitive/datetimerfc1123" + _url = "/complex/primitive/datetimerfc1123" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -825,18 +825,18 @@ def build_put_date_time_rfc1123_request( accept = "application/json" # Construct URL - url = "/complex/primitive/datetimerfc1123" + _url = "/complex/primitive/datetimerfc1123" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -866,16 +866,16 @@ def build_get_duration_request( accept = "application/json" # Construct URL - url = "/complex/primitive/duration" + _url = "/complex/primitive/duration" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -913,18 +913,18 @@ def build_put_duration_request( accept = "application/json" # Construct URL - url = "/complex/primitive/duration" + _url = "/complex/primitive/duration" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -954,16 +954,16 @@ def build_get_byte_request( accept = "application/json" # Construct URL - url = "/complex/primitive/byte" + _url = "/complex/primitive/byte" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1003,17 +1003,17 @@ def build_put_byte_request( accept = "application/json" # Construct URL - url = "/complex/primitive/byte" + _url = "/complex/primitive/byte" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/primitive/_request_builders_py3.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/primitive/_request_builders_py3.py index 0bfacc5d388..877d20dbc7e 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/primitive/_request_builders_py3.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/primitive/_request_builders_py3.py @@ -39,13 +39,13 @@ def build_get_int_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/complex/primitive/integer" + _url = "/complex/primitive/integer" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_int_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -79,15 +79,15 @@ def build_put_int_request(*, json: JSONType = None, content: Any = None, **kwarg accept = "application/json" # Construct URL - url = "/complex/primitive/integer" + _url = "/complex/primitive/integer" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_long_request(**kwargs: Any) -> HttpRequest: @@ -113,13 +113,13 @@ def build_get_long_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/complex/primitive/long" + _url = "/complex/primitive/long" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_long_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -153,15 +153,15 @@ def build_put_long_request(*, json: JSONType = None, content: Any = None, **kwar accept = "application/json" # Construct URL - url = "/complex/primitive/long" + _url = "/complex/primitive/long" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_float_request(**kwargs: Any) -> HttpRequest: @@ -187,13 +187,13 @@ def build_get_float_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/complex/primitive/float" + _url = "/complex/primitive/float" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_float_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -227,15 +227,15 @@ def build_put_float_request(*, json: JSONType = None, content: Any = None, **kwa accept = "application/json" # Construct URL - url = "/complex/primitive/float" + _url = "/complex/primitive/float" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_double_request(**kwargs: Any) -> HttpRequest: @@ -262,13 +262,13 @@ def build_get_double_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/complex/primitive/double" + _url = "/complex/primitive/double" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_double_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -305,15 +305,15 @@ def build_put_double_request(*, json: JSONType = None, content: Any = None, **kw accept = "application/json" # Construct URL - url = "/complex/primitive/double" + _url = "/complex/primitive/double" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_bool_request(**kwargs: Any) -> HttpRequest: @@ -339,13 +339,13 @@ def build_get_bool_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/complex/primitive/bool" + _url = "/complex/primitive/bool" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_bool_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -379,15 +379,15 @@ def build_put_bool_request(*, json: JSONType = None, content: Any = None, **kwar accept = "application/json" # Construct URL - url = "/complex/primitive/bool" + _url = "/complex/primitive/bool" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_string_request(**kwargs: Any) -> HttpRequest: @@ -414,13 +414,13 @@ def build_get_string_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/complex/primitive/string" + _url = "/complex/primitive/string" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_string_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -455,15 +455,15 @@ def build_put_string_request(*, json: JSONType = None, content: Any = None, **kw accept = "application/json" # Construct URL - url = "/complex/primitive/string" + _url = "/complex/primitive/string" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_date_request(**kwargs: Any) -> HttpRequest: @@ -489,13 +489,13 @@ def build_get_date_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/complex/primitive/date" + _url = "/complex/primitive/date" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_date_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -529,15 +529,15 @@ def build_put_date_request(*, json: JSONType = None, content: Any = None, **kwar accept = "application/json" # Construct URL - url = "/complex/primitive/date" + _url = "/complex/primitive/date" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_date_time_request(**kwargs: Any) -> HttpRequest: @@ -563,13 +563,13 @@ def build_get_date_time_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/complex/primitive/datetime" + _url = "/complex/primitive/datetime" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_date_time_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -605,15 +605,15 @@ def build_put_date_time_request(*, json: JSONType = None, content: Any = None, * accept = "application/json" # Construct URL - url = "/complex/primitive/datetime" + _url = "/complex/primitive/datetime" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_date_time_rfc1123_request(**kwargs: Any) -> HttpRequest: @@ -639,13 +639,13 @@ def build_get_date_time_rfc1123_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/complex/primitive/datetimerfc1123" + _url = "/complex/primitive/datetimerfc1123" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_date_time_rfc1123_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -681,15 +681,15 @@ def build_put_date_time_rfc1123_request(*, json: JSONType = None, content: Any = accept = "application/json" # Construct URL - url = "/complex/primitive/datetimerfc1123" + _url = "/complex/primitive/datetimerfc1123" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_duration_request(**kwargs: Any) -> HttpRequest: @@ -714,13 +714,13 @@ def build_get_duration_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/complex/primitive/duration" + _url = "/complex/primitive/duration" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_duration_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -753,15 +753,15 @@ def build_put_duration_request(*, json: JSONType = None, content: Any = None, ** accept = "application/json" # Construct URL - url = "/complex/primitive/duration" + _url = "/complex/primitive/duration" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_byte_request(**kwargs: Any) -> HttpRequest: @@ -786,13 +786,13 @@ def build_get_byte_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/complex/primitive/byte" + _url = "/complex/primitive/byte" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_byte_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -827,12 +827,12 @@ def build_put_byte_request(*, json: JSONType = None, content: Any = None, **kwar accept = "application/json" # Construct URL - url = "/complex/primitive/byte" + _url = "/complex/primitive/byte" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/readonlyproperty/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/readonlyproperty/_request_builders.py index 26b923160e7..db5b7ecbc30 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/readonlyproperty/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/readonlyproperty/_request_builders.py @@ -47,16 +47,16 @@ def build_get_valid_request( accept = "application/json" # Construct URL - url = "/complex/readonlyproperty/valid" + _url = "/complex/readonlyproperty/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -95,17 +95,17 @@ def build_put_valid_request( accept = "application/json" # Construct URL - url = "/complex/readonlyproperty/valid" + _url = "/complex/readonlyproperty/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/readonlyproperty/_request_builders_py3.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/readonlyproperty/_request_builders_py3.py index 2d8032c65f1..75532d68237 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/readonlyproperty/_request_builders_py3.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/rest/readonlyproperty/_request_builders_py3.py @@ -39,13 +39,13 @@ def build_get_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/complex/readonlyproperty/valid" + _url = "/complex/readonlyproperty/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_valid_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -79,12 +79,12 @@ def build_put_valid_request(*, json: JSONType = None, content: Any = None, **kwa accept = "application/json" # Construct URL - url = "/complex/readonlyproperty/valid" + _url = "/complex/readonlyproperty/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateLowLevel/bodydatelowlevel/rest/date/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateLowLevel/bodydatelowlevel/rest/date/_request_builders.py index 2954f49955a..7c62ac9b8e2 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateLowLevel/bodydatelowlevel/rest/date/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateLowLevel/bodydatelowlevel/rest/date/_request_builders.py @@ -39,16 +39,16 @@ def build_get_null_request( accept = "application/json" # Construct URL - url = "/date/null" + _url = "/date/null" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -70,16 +70,16 @@ def build_get_invalid_date_request( accept = "application/json" # Construct URL - url = "/date/invaliddate" + _url = "/date/invaliddate" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -101,16 +101,16 @@ def build_get_overflow_date_request( accept = "application/json" # Construct URL - url = "/date/overflowdate" + _url = "/date/overflowdate" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -132,16 +132,16 @@ def build_get_underflow_date_request( accept = "application/json" # Construct URL - url = "/date/underflowdate" + _url = "/date/underflowdate" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -177,18 +177,18 @@ def build_put_max_date_request( accept = "application/json" # Construct URL - url = "/date/max" + _url = "/date/max" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -210,16 +210,16 @@ def build_get_max_date_request( accept = "application/json" # Construct URL - url = "/date/max" + _url = "/date/max" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -255,18 +255,18 @@ def build_put_min_date_request( accept = "application/json" # Construct URL - url = "/date/min" + _url = "/date/min" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -288,15 +288,15 @@ def build_get_min_date_request( accept = "application/json" # Construct URL - url = "/date/min" + _url = "/date/min" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateLowLevel/bodydatelowlevel/rest/date/_request_builders_py3.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateLowLevel/bodydatelowlevel/rest/date/_request_builders_py3.py index 8b92d98501a..130433dbaec 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateLowLevel/bodydatelowlevel/rest/date/_request_builders_py3.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateLowLevel/bodydatelowlevel/rest/date/_request_builders_py3.py @@ -31,13 +31,13 @@ def build_get_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/date/null" + _url = "/date/null" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_invalid_date_request(**kwargs: Any) -> HttpRequest: @@ -54,13 +54,13 @@ def build_get_invalid_date_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/date/invaliddate" + _url = "/date/invaliddate" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_overflow_date_request(**kwargs: Any) -> HttpRequest: @@ -77,13 +77,13 @@ def build_get_overflow_date_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/date/overflowdate" + _url = "/date/overflowdate" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_underflow_date_request(**kwargs: Any) -> HttpRequest: @@ -100,13 +100,13 @@ def build_get_underflow_date_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/date/underflowdate" + _url = "/date/underflowdate" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_max_date_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -137,15 +137,15 @@ def build_put_max_date_request(*, json: JSONType = None, content: Any = None, ** accept = "application/json" # Construct URL - url = "/date/max" + _url = "/date/max" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_max_date_request(**kwargs: Any) -> HttpRequest: @@ -162,13 +162,13 @@ def build_get_max_date_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/date/max" + _url = "/date/max" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_min_date_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -199,15 +199,15 @@ def build_put_min_date_request(*, json: JSONType = None, content: Any = None, ** accept = "application/json" # Construct URL - url = "/date/min" + _url = "/date/min" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_min_date_request(**kwargs: Any) -> HttpRequest: @@ -224,10 +224,10 @@ def build_get_min_date_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/date/min" + _url = "/date/min" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateTimeLowLevel/bodydatetimelowlevel/rest/datetime/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateTimeLowLevel/bodydatetimelowlevel/rest/datetime/_request_builders.py index 646ad8b7447..b3748ed46ec 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateTimeLowLevel/bodydatetimelowlevel/rest/datetime/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateTimeLowLevel/bodydatetimelowlevel/rest/datetime/_request_builders.py @@ -39,16 +39,16 @@ def build_get_null_request( accept = "application/json" # Construct URL - url = "/datetime/null" + _url = "/datetime/null" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -70,16 +70,16 @@ def build_get_invalid_request( accept = "application/json" # Construct URL - url = "/datetime/invalid" + _url = "/datetime/invalid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -101,16 +101,16 @@ def build_get_overflow_request( accept = "application/json" # Construct URL - url = "/datetime/overflow" + _url = "/datetime/overflow" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -132,16 +132,16 @@ def build_get_underflow_request( accept = "application/json" # Construct URL - url = "/datetime/underflow" + _url = "/datetime/underflow" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -177,18 +177,18 @@ def build_put_utc_max_date_time_request( accept = "application/json" # Construct URL - url = "/datetime/max/utc" + _url = "/datetime/max/utc" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -227,18 +227,18 @@ def build_put_utc_max_date_time7_digits_request( accept = "application/json" # Construct URL - url = "/datetime/max/utc7ms" + _url = "/datetime/max/utc7ms" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -260,16 +260,16 @@ def build_get_utc_lowercase_max_date_time_request( accept = "application/json" # Construct URL - url = "/datetime/max/utc/lowercase" + _url = "/datetime/max/utc/lowercase" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -291,16 +291,16 @@ def build_get_utc_uppercase_max_date_time_request( accept = "application/json" # Construct URL - url = "/datetime/max/utc/uppercase" + _url = "/datetime/max/utc/uppercase" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -325,16 +325,16 @@ def build_get_utc_uppercase_max_date_time7_digits_request( accept = "application/json" # Construct URL - url = "/datetime/max/utc7ms/uppercase" + _url = "/datetime/max/utc7ms/uppercase" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -370,18 +370,18 @@ def build_put_local_positive_offset_max_date_time_request( accept = "application/json" # Construct URL - url = "/datetime/max/localpositiveoffset" + _url = "/datetime/max/localpositiveoffset" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -403,16 +403,16 @@ def build_get_local_positive_offset_lowercase_max_date_time_request( accept = "application/json" # Construct URL - url = "/datetime/max/localpositiveoffset/lowercase" + _url = "/datetime/max/localpositiveoffset/lowercase" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -434,16 +434,16 @@ def build_get_local_positive_offset_uppercase_max_date_time_request( accept = "application/json" # Construct URL - url = "/datetime/max/localpositiveoffset/uppercase" + _url = "/datetime/max/localpositiveoffset/uppercase" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -479,18 +479,18 @@ def build_put_local_negative_offset_max_date_time_request( accept = "application/json" # Construct URL - url = "/datetime/max/localnegativeoffset" + _url = "/datetime/max/localnegativeoffset" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -512,16 +512,16 @@ def build_get_local_negative_offset_uppercase_max_date_time_request( accept = "application/json" # Construct URL - url = "/datetime/max/localnegativeoffset/uppercase" + _url = "/datetime/max/localnegativeoffset/uppercase" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -543,16 +543,16 @@ def build_get_local_negative_offset_lowercase_max_date_time_request( accept = "application/json" # Construct URL - url = "/datetime/max/localnegativeoffset/lowercase" + _url = "/datetime/max/localnegativeoffset/lowercase" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -588,18 +588,18 @@ def build_put_utc_min_date_time_request( accept = "application/json" # Construct URL - url = "/datetime/min/utc" + _url = "/datetime/min/utc" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -621,16 +621,16 @@ def build_get_utc_min_date_time_request( accept = "application/json" # Construct URL - url = "/datetime/min/utc" + _url = "/datetime/min/utc" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -666,18 +666,18 @@ def build_put_local_positive_offset_min_date_time_request( accept = "application/json" # Construct URL - url = "/datetime/min/localpositiveoffset" + _url = "/datetime/min/localpositiveoffset" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -699,16 +699,16 @@ def build_get_local_positive_offset_min_date_time_request( accept = "application/json" # Construct URL - url = "/datetime/min/localpositiveoffset" + _url = "/datetime/min/localpositiveoffset" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -744,18 +744,18 @@ def build_put_local_negative_offset_min_date_time_request( accept = "application/json" # Construct URL - url = "/datetime/min/localnegativeoffset" + _url = "/datetime/min/localnegativeoffset" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -777,16 +777,16 @@ def build_get_local_negative_offset_min_date_time_request( accept = "application/json" # Construct URL - url = "/datetime/min/localnegativeoffset" + _url = "/datetime/min/localnegativeoffset" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -808,15 +808,15 @@ def build_get_local_no_offset_min_date_time_request( accept = "application/json" # Construct URL - url = "/datetime/min/localnooffset" + _url = "/datetime/min/localnooffset" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateTimeLowLevel/bodydatetimelowlevel/rest/datetime/_request_builders_py3.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateTimeLowLevel/bodydatetimelowlevel/rest/datetime/_request_builders_py3.py index da7dc26d333..a41d460b940 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateTimeLowLevel/bodydatetimelowlevel/rest/datetime/_request_builders_py3.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateTimeLowLevel/bodydatetimelowlevel/rest/datetime/_request_builders_py3.py @@ -31,13 +31,13 @@ def build_get_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/datetime/null" + _url = "/datetime/null" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_invalid_request(**kwargs: Any) -> HttpRequest: @@ -54,13 +54,13 @@ def build_get_invalid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/datetime/invalid" + _url = "/datetime/invalid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_overflow_request(**kwargs: Any) -> HttpRequest: @@ -77,13 +77,13 @@ def build_get_overflow_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/datetime/overflow" + _url = "/datetime/overflow" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_underflow_request(**kwargs: Any) -> HttpRequest: @@ -100,13 +100,13 @@ def build_get_underflow_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/datetime/underflow" + _url = "/datetime/underflow" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_utc_max_date_time_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -137,15 +137,15 @@ def build_put_utc_max_date_time_request(*, json: JSONType = None, content: Any = accept = "application/json" # Construct URL - url = "/datetime/max/utc" + _url = "/datetime/max/utc" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_put_utc_max_date_time7_digits_request( @@ -181,15 +181,15 @@ def build_put_utc_max_date_time7_digits_request( accept = "application/json" # Construct URL - url = "/datetime/max/utc7ms" + _url = "/datetime/max/utc7ms" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_utc_lowercase_max_date_time_request(**kwargs: Any) -> HttpRequest: @@ -206,13 +206,13 @@ def build_get_utc_lowercase_max_date_time_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/datetime/max/utc/lowercase" + _url = "/datetime/max/utc/lowercase" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_utc_uppercase_max_date_time_request(**kwargs: Any) -> HttpRequest: @@ -229,13 +229,13 @@ def build_get_utc_uppercase_max_date_time_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/datetime/max/utc/uppercase" + _url = "/datetime/max/utc/uppercase" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_utc_uppercase_max_date_time7_digits_request(**kwargs: Any) -> HttpRequest: @@ -255,13 +255,13 @@ def build_get_utc_uppercase_max_date_time7_digits_request(**kwargs: Any) -> Http accept = "application/json" # Construct URL - url = "/datetime/max/utc7ms/uppercase" + _url = "/datetime/max/utc7ms/uppercase" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_local_positive_offset_max_date_time_request( @@ -294,15 +294,15 @@ def build_put_local_positive_offset_max_date_time_request( accept = "application/json" # Construct URL - url = "/datetime/max/localpositiveoffset" + _url = "/datetime/max/localpositiveoffset" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_local_positive_offset_lowercase_max_date_time_request(**kwargs: Any) -> HttpRequest: @@ -319,13 +319,13 @@ def build_get_local_positive_offset_lowercase_max_date_time_request(**kwargs: An accept = "application/json" # Construct URL - url = "/datetime/max/localpositiveoffset/lowercase" + _url = "/datetime/max/localpositiveoffset/lowercase" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_local_positive_offset_uppercase_max_date_time_request(**kwargs: Any) -> HttpRequest: @@ -342,13 +342,13 @@ def build_get_local_positive_offset_uppercase_max_date_time_request(**kwargs: An accept = "application/json" # Construct URL - url = "/datetime/max/localpositiveoffset/uppercase" + _url = "/datetime/max/localpositiveoffset/uppercase" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_local_negative_offset_max_date_time_request( @@ -381,15 +381,15 @@ def build_put_local_negative_offset_max_date_time_request( accept = "application/json" # Construct URL - url = "/datetime/max/localnegativeoffset" + _url = "/datetime/max/localnegativeoffset" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_local_negative_offset_uppercase_max_date_time_request(**kwargs: Any) -> HttpRequest: @@ -406,13 +406,13 @@ def build_get_local_negative_offset_uppercase_max_date_time_request(**kwargs: An accept = "application/json" # Construct URL - url = "/datetime/max/localnegativeoffset/uppercase" + _url = "/datetime/max/localnegativeoffset/uppercase" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_local_negative_offset_lowercase_max_date_time_request(**kwargs: Any) -> HttpRequest: @@ -429,13 +429,13 @@ def build_get_local_negative_offset_lowercase_max_date_time_request(**kwargs: An accept = "application/json" # Construct URL - url = "/datetime/max/localnegativeoffset/lowercase" + _url = "/datetime/max/localnegativeoffset/lowercase" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_utc_min_date_time_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -466,15 +466,15 @@ def build_put_utc_min_date_time_request(*, json: JSONType = None, content: Any = accept = "application/json" # Construct URL - url = "/datetime/min/utc" + _url = "/datetime/min/utc" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_utc_min_date_time_request(**kwargs: Any) -> HttpRequest: @@ -491,13 +491,13 @@ def build_get_utc_min_date_time_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/datetime/min/utc" + _url = "/datetime/min/utc" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_local_positive_offset_min_date_time_request( @@ -530,15 +530,15 @@ def build_put_local_positive_offset_min_date_time_request( accept = "application/json" # Construct URL - url = "/datetime/min/localpositiveoffset" + _url = "/datetime/min/localpositiveoffset" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_local_positive_offset_min_date_time_request(**kwargs: Any) -> HttpRequest: @@ -555,13 +555,13 @@ def build_get_local_positive_offset_min_date_time_request(**kwargs: Any) -> Http accept = "application/json" # Construct URL - url = "/datetime/min/localpositiveoffset" + _url = "/datetime/min/localpositiveoffset" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_local_negative_offset_min_date_time_request( @@ -594,15 +594,15 @@ def build_put_local_negative_offset_min_date_time_request( accept = "application/json" # Construct URL - url = "/datetime/min/localnegativeoffset" + _url = "/datetime/min/localnegativeoffset" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_local_negative_offset_min_date_time_request(**kwargs: Any) -> HttpRequest: @@ -619,13 +619,13 @@ def build_get_local_negative_offset_min_date_time_request(**kwargs: Any) -> Http accept = "application/json" # Construct URL - url = "/datetime/min/localnegativeoffset" + _url = "/datetime/min/localnegativeoffset" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_local_no_offset_min_date_time_request(**kwargs: Any) -> HttpRequest: @@ -642,10 +642,10 @@ def build_get_local_no_offset_min_date_time_request(**kwargs: Any) -> HttpReques accept = "application/json" # Construct URL - url = "/datetime/min/localnooffset" + _url = "/datetime/min/localnooffset" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateTimeRfc1123LowLevel/bodydatetimerfc1123lowlevel/rest/datetimerfc1123/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateTimeRfc1123LowLevel/bodydatetimerfc1123lowlevel/rest/datetimerfc1123/_request_builders.py index 8b960add8a7..d9760b43e89 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateTimeRfc1123LowLevel/bodydatetimerfc1123lowlevel/rest/datetimerfc1123/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateTimeRfc1123LowLevel/bodydatetimerfc1123lowlevel/rest/datetimerfc1123/_request_builders.py @@ -39,16 +39,16 @@ def build_get_null_request( accept = "application/json" # Construct URL - url = "/datetimerfc1123/null" + _url = "/datetimerfc1123/null" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -70,16 +70,16 @@ def build_get_invalid_request( accept = "application/json" # Construct URL - url = "/datetimerfc1123/invalid" + _url = "/datetimerfc1123/invalid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -101,16 +101,16 @@ def build_get_overflow_request( accept = "application/json" # Construct URL - url = "/datetimerfc1123/overflow" + _url = "/datetimerfc1123/overflow" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -132,16 +132,16 @@ def build_get_underflow_request( accept = "application/json" # Construct URL - url = "/datetimerfc1123/underflow" + _url = "/datetimerfc1123/underflow" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -177,18 +177,18 @@ def build_put_utc_max_date_time_request( accept = "application/json" # Construct URL - url = "/datetimerfc1123/max" + _url = "/datetimerfc1123/max" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -210,16 +210,16 @@ def build_get_utc_lowercase_max_date_time_request( accept = "application/json" # Construct URL - url = "/datetimerfc1123/max/lowercase" + _url = "/datetimerfc1123/max/lowercase" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -241,16 +241,16 @@ def build_get_utc_uppercase_max_date_time_request( accept = "application/json" # Construct URL - url = "/datetimerfc1123/max/uppercase" + _url = "/datetimerfc1123/max/uppercase" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -286,18 +286,18 @@ def build_put_utc_min_date_time_request( accept = "application/json" # Construct URL - url = "/datetimerfc1123/min" + _url = "/datetimerfc1123/min" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -319,15 +319,15 @@ def build_get_utc_min_date_time_request( accept = "application/json" # Construct URL - url = "/datetimerfc1123/min" + _url = "/datetimerfc1123/min" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateTimeRfc1123LowLevel/bodydatetimerfc1123lowlevel/rest/datetimerfc1123/_request_builders_py3.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateTimeRfc1123LowLevel/bodydatetimerfc1123lowlevel/rest/datetimerfc1123/_request_builders_py3.py index 162f4530606..e5301388b8d 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateTimeRfc1123LowLevel/bodydatetimerfc1123lowlevel/rest/datetimerfc1123/_request_builders_py3.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateTimeRfc1123LowLevel/bodydatetimerfc1123lowlevel/rest/datetimerfc1123/_request_builders_py3.py @@ -31,13 +31,13 @@ def build_get_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/datetimerfc1123/null" + _url = "/datetimerfc1123/null" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_invalid_request(**kwargs: Any) -> HttpRequest: @@ -54,13 +54,13 @@ def build_get_invalid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/datetimerfc1123/invalid" + _url = "/datetimerfc1123/invalid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_overflow_request(**kwargs: Any) -> HttpRequest: @@ -77,13 +77,13 @@ def build_get_overflow_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/datetimerfc1123/overflow" + _url = "/datetimerfc1123/overflow" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_underflow_request(**kwargs: Any) -> HttpRequest: @@ -100,13 +100,13 @@ def build_get_underflow_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/datetimerfc1123/underflow" + _url = "/datetimerfc1123/underflow" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_utc_max_date_time_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -137,15 +137,15 @@ def build_put_utc_max_date_time_request(*, json: JSONType = None, content: Any = accept = "application/json" # Construct URL - url = "/datetimerfc1123/max" + _url = "/datetimerfc1123/max" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_utc_lowercase_max_date_time_request(**kwargs: Any) -> HttpRequest: @@ -162,13 +162,13 @@ def build_get_utc_lowercase_max_date_time_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/datetimerfc1123/max/lowercase" + _url = "/datetimerfc1123/max/lowercase" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_utc_uppercase_max_date_time_request(**kwargs: Any) -> HttpRequest: @@ -185,13 +185,13 @@ def build_get_utc_uppercase_max_date_time_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/datetimerfc1123/max/uppercase" + _url = "/datetimerfc1123/max/uppercase" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_utc_min_date_time_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -222,15 +222,15 @@ def build_put_utc_min_date_time_request(*, json: JSONType = None, content: Any = accept = "application/json" # Construct URL - url = "/datetimerfc1123/min" + _url = "/datetimerfc1123/min" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_utc_min_date_time_request(**kwargs: Any) -> HttpRequest: @@ -247,10 +247,10 @@ def build_get_utc_min_date_time_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/datetimerfc1123/min" + _url = "/datetimerfc1123/min" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyDictionaryLowLevel/bodydictionarylowlevel/rest/dictionary/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyDictionaryLowLevel/bodydictionarylowlevel/rest/dictionary/_request_builders.py index 4cb1d8acfd1..d41009624e5 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyDictionaryLowLevel/bodydictionarylowlevel/rest/dictionary/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyDictionaryLowLevel/bodydictionarylowlevel/rest/dictionary/_request_builders.py @@ -47,16 +47,16 @@ def build_get_null_request( accept = "application/json" # Construct URL - url = "/dictionary/null" + _url = "/dictionary/null" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -86,16 +86,16 @@ def build_get_empty_request( accept = "application/json" # Construct URL - url = "/dictionary/empty" + _url = "/dictionary/empty" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -133,18 +133,18 @@ def build_put_empty_request( accept = "application/json" # Construct URL - url = "/dictionary/empty" + _url = "/dictionary/empty" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -174,16 +174,16 @@ def build_get_null_value_request( accept = "application/json" # Construct URL - url = "/dictionary/nullvalue" + _url = "/dictionary/nullvalue" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -213,16 +213,16 @@ def build_get_null_key_request( accept = "application/json" # Construct URL - url = "/dictionary/nullkey" + _url = "/dictionary/nullkey" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -252,16 +252,16 @@ def build_get_empty_string_key_request( accept = "application/json" # Construct URL - url = "/dictionary/keyemptystring" + _url = "/dictionary/keyemptystring" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -291,16 +291,16 @@ def build_get_invalid_request( accept = "application/json" # Construct URL - url = "/dictionary/invalid" + _url = "/dictionary/invalid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -330,16 +330,16 @@ def build_get_boolean_tfft_request( accept = "application/json" # Construct URL - url = "/dictionary/prim/boolean/tfft" + _url = "/dictionary/prim/boolean/tfft" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -377,18 +377,18 @@ def build_put_boolean_tfft_request( accept = "application/json" # Construct URL - url = "/dictionary/prim/boolean/tfft" + _url = "/dictionary/prim/boolean/tfft" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -418,16 +418,16 @@ def build_get_boolean_invalid_null_request( accept = "application/json" # Construct URL - url = "/dictionary/prim/boolean/true.null.false" + _url = "/dictionary/prim/boolean/true.null.false" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -457,16 +457,16 @@ def build_get_boolean_invalid_string_request( accept = "application/json" # Construct URL - url = "/dictionary/prim/boolean/true.boolean.false" + _url = "/dictionary/prim/boolean/true.boolean.false" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -496,16 +496,16 @@ def build_get_integer_valid_request( accept = "application/json" # Construct URL - url = "/dictionary/prim/integer/1.-1.3.300" + _url = "/dictionary/prim/integer/1.-1.3.300" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -543,18 +543,18 @@ def build_put_integer_valid_request( accept = "application/json" # Construct URL - url = "/dictionary/prim/integer/1.-1.3.300" + _url = "/dictionary/prim/integer/1.-1.3.300" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -584,16 +584,16 @@ def build_get_int_invalid_null_request( accept = "application/json" # Construct URL - url = "/dictionary/prim/integer/1.null.zero" + _url = "/dictionary/prim/integer/1.null.zero" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -623,16 +623,16 @@ def build_get_int_invalid_string_request( accept = "application/json" # Construct URL - url = "/dictionary/prim/integer/1.integer.0" + _url = "/dictionary/prim/integer/1.integer.0" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -662,16 +662,16 @@ def build_get_long_valid_request( accept = "application/json" # Construct URL - url = "/dictionary/prim/long/1.-1.3.300" + _url = "/dictionary/prim/long/1.-1.3.300" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -709,18 +709,18 @@ def build_put_long_valid_request( accept = "application/json" # Construct URL - url = "/dictionary/prim/long/1.-1.3.300" + _url = "/dictionary/prim/long/1.-1.3.300" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -750,16 +750,16 @@ def build_get_long_invalid_null_request( accept = "application/json" # Construct URL - url = "/dictionary/prim/long/1.null.zero" + _url = "/dictionary/prim/long/1.null.zero" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -789,16 +789,16 @@ def build_get_long_invalid_string_request( accept = "application/json" # Construct URL - url = "/dictionary/prim/long/1.integer.0" + _url = "/dictionary/prim/long/1.integer.0" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -828,16 +828,16 @@ def build_get_float_valid_request( accept = "application/json" # Construct URL - url = "/dictionary/prim/float/0--0.01-1.2e20" + _url = "/dictionary/prim/float/0--0.01-1.2e20" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -875,18 +875,18 @@ def build_put_float_valid_request( accept = "application/json" # Construct URL - url = "/dictionary/prim/float/0--0.01-1.2e20" + _url = "/dictionary/prim/float/0--0.01-1.2e20" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -916,16 +916,16 @@ def build_get_float_invalid_null_request( accept = "application/json" # Construct URL - url = "/dictionary/prim/float/0.0-null-1.2e20" + _url = "/dictionary/prim/float/0.0-null-1.2e20" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -955,16 +955,16 @@ def build_get_float_invalid_string_request( accept = "application/json" # Construct URL - url = "/dictionary/prim/float/1.number.0" + _url = "/dictionary/prim/float/1.number.0" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -994,16 +994,16 @@ def build_get_double_valid_request( accept = "application/json" # Construct URL - url = "/dictionary/prim/double/0--0.01-1.2e20" + _url = "/dictionary/prim/double/0--0.01-1.2e20" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1041,18 +1041,18 @@ def build_put_double_valid_request( accept = "application/json" # Construct URL - url = "/dictionary/prim/double/0--0.01-1.2e20" + _url = "/dictionary/prim/double/0--0.01-1.2e20" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1082,16 +1082,16 @@ def build_get_double_invalid_null_request( accept = "application/json" # Construct URL - url = "/dictionary/prim/double/0.0-null-1.2e20" + _url = "/dictionary/prim/double/0.0-null-1.2e20" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1121,16 +1121,16 @@ def build_get_double_invalid_string_request( accept = "application/json" # Construct URL - url = "/dictionary/prim/double/1.number.0" + _url = "/dictionary/prim/double/1.number.0" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1160,16 +1160,16 @@ def build_get_string_valid_request( accept = "application/json" # Construct URL - url = "/dictionary/prim/string/foo1.foo2.foo3" + _url = "/dictionary/prim/string/foo1.foo2.foo3" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1207,18 +1207,18 @@ def build_put_string_valid_request( accept = "application/json" # Construct URL - url = "/dictionary/prim/string/foo1.foo2.foo3" + _url = "/dictionary/prim/string/foo1.foo2.foo3" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1248,16 +1248,16 @@ def build_get_string_with_null_request( accept = "application/json" # Construct URL - url = "/dictionary/prim/string/foo.null.foo2" + _url = "/dictionary/prim/string/foo.null.foo2" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1287,16 +1287,16 @@ def build_get_string_with_invalid_request( accept = "application/json" # Construct URL - url = "/dictionary/prim/string/foo.123.foo2" + _url = "/dictionary/prim/string/foo.123.foo2" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1326,16 +1326,16 @@ def build_get_date_valid_request( accept = "application/json" # Construct URL - url = "/dictionary/prim/date/valid" + _url = "/dictionary/prim/date/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1373,18 +1373,18 @@ def build_put_date_valid_request( accept = "application/json" # Construct URL - url = "/dictionary/prim/date/valid" + _url = "/dictionary/prim/date/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1414,16 +1414,16 @@ def build_get_date_invalid_null_request( accept = "application/json" # Construct URL - url = "/dictionary/prim/date/invalidnull" + _url = "/dictionary/prim/date/invalidnull" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1453,16 +1453,16 @@ def build_get_date_invalid_chars_request( accept = "application/json" # Construct URL - url = "/dictionary/prim/date/invalidchars" + _url = "/dictionary/prim/date/invalidchars" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1493,16 +1493,16 @@ def build_get_date_time_valid_request( accept = "application/json" # Construct URL - url = "/dictionary/prim/date-time/valid" + _url = "/dictionary/prim/date-time/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1541,18 +1541,18 @@ def build_put_date_time_valid_request( accept = "application/json" # Construct URL - url = "/dictionary/prim/date-time/valid" + _url = "/dictionary/prim/date-time/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1582,16 +1582,16 @@ def build_get_date_time_invalid_null_request( accept = "application/json" # Construct URL - url = "/dictionary/prim/date-time/invalidnull" + _url = "/dictionary/prim/date-time/invalidnull" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1621,16 +1621,16 @@ def build_get_date_time_invalid_chars_request( accept = "application/json" # Construct URL - url = "/dictionary/prim/date-time/invalidchars" + _url = "/dictionary/prim/date-time/invalidchars" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1661,16 +1661,16 @@ def build_get_date_time_rfc1123_valid_request( accept = "application/json" # Construct URL - url = "/dictionary/prim/date-time-rfc1123/valid" + _url = "/dictionary/prim/date-time-rfc1123/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1709,18 +1709,18 @@ def build_put_date_time_rfc1123_valid_request( accept = "application/json" # Construct URL - url = "/dictionary/prim/date-time-rfc1123/valid" + _url = "/dictionary/prim/date-time-rfc1123/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1750,16 +1750,16 @@ def build_get_duration_valid_request( accept = "application/json" # Construct URL - url = "/dictionary/prim/duration/valid" + _url = "/dictionary/prim/duration/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1797,18 +1797,18 @@ def build_put_duration_valid_request( accept = "application/json" # Construct URL - url = "/dictionary/prim/duration/valid" + _url = "/dictionary/prim/duration/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1839,16 +1839,16 @@ def build_get_byte_valid_request( accept = "application/json" # Construct URL - url = "/dictionary/prim/byte/valid" + _url = "/dictionary/prim/byte/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1887,18 +1887,18 @@ def build_put_byte_valid_request( accept = "application/json" # Construct URL - url = "/dictionary/prim/byte/valid" + _url = "/dictionary/prim/byte/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1929,16 +1929,16 @@ def build_get_byte_invalid_null_request( accept = "application/json" # Construct URL - url = "/dictionary/prim/byte/invalidnull" + _url = "/dictionary/prim/byte/invalidnull" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1969,16 +1969,16 @@ def build_get_base64_url_request( accept = "application/json" # Construct URL - url = "/dictionary/prim/base64url/valid" + _url = "/dictionary/prim/base64url/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -2011,16 +2011,16 @@ def build_get_complex_null_request( accept = "application/json" # Construct URL - url = "/dictionary/complex/null" + _url = "/dictionary/complex/null" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -2053,16 +2053,16 @@ def build_get_complex_empty_request( accept = "application/json" # Construct URL - url = "/dictionary/complex/empty" + _url = "/dictionary/complex/empty" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -2096,16 +2096,16 @@ def build_get_complex_item_null_request( accept = "application/json" # Construct URL - url = "/dictionary/complex/itemnull" + _url = "/dictionary/complex/itemnull" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -2139,16 +2139,16 @@ def build_get_complex_item_empty_request( accept = "application/json" # Construct URL - url = "/dictionary/complex/itemempty" + _url = "/dictionary/complex/itemempty" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -2182,16 +2182,16 @@ def build_get_complex_valid_request( accept = "application/json" # Construct URL - url = "/dictionary/complex/valid" + _url = "/dictionary/complex/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -2233,18 +2233,18 @@ def build_put_complex_valid_request( accept = "application/json" # Construct URL - url = "/dictionary/complex/valid" + _url = "/dictionary/complex/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -2276,16 +2276,16 @@ def build_get_array_null_request( accept = "application/json" # Construct URL - url = "/dictionary/array/null" + _url = "/dictionary/array/null" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -2317,16 +2317,16 @@ def build_get_array_empty_request( accept = "application/json" # Construct URL - url = "/dictionary/array/empty" + _url = "/dictionary/array/empty" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -2358,16 +2358,16 @@ def build_get_array_item_null_request( accept = "application/json" # Construct URL - url = "/dictionary/array/itemnull" + _url = "/dictionary/array/itemnull" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -2399,16 +2399,16 @@ def build_get_array_item_empty_request( accept = "application/json" # Construct URL - url = "/dictionary/array/itemempty" + _url = "/dictionary/array/itemempty" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -2441,16 +2441,16 @@ def build_get_array_valid_request( accept = "application/json" # Construct URL - url = "/dictionary/array/valid" + _url = "/dictionary/array/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -2491,18 +2491,18 @@ def build_put_array_valid_request( accept = "application/json" # Construct URL - url = "/dictionary/array/valid" + _url = "/dictionary/array/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -2534,16 +2534,16 @@ def build_get_dictionary_null_request( accept = "application/json" # Construct URL - url = "/dictionary/dictionary/null" + _url = "/dictionary/dictionary/null" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -2575,16 +2575,16 @@ def build_get_dictionary_empty_request( accept = "application/json" # Construct URL - url = "/dictionary/dictionary/empty" + _url = "/dictionary/dictionary/empty" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -2617,16 +2617,16 @@ def build_get_dictionary_item_null_request( accept = "application/json" # Construct URL - url = "/dictionary/dictionary/itemnull" + _url = "/dictionary/dictionary/itemnull" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -2659,16 +2659,16 @@ def build_get_dictionary_item_empty_request( accept = "application/json" # Construct URL - url = "/dictionary/dictionary/itemempty" + _url = "/dictionary/dictionary/itemempty" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -2702,16 +2702,16 @@ def build_get_dictionary_valid_request( accept = "application/json" # Construct URL - url = "/dictionary/dictionary/valid" + _url = "/dictionary/dictionary/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -2753,17 +2753,17 @@ def build_put_dictionary_valid_request( accept = "application/json" # Construct URL - url = "/dictionary/dictionary/valid" + _url = "/dictionary/dictionary/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyDictionaryLowLevel/bodydictionarylowlevel/rest/dictionary/_request_builders_py3.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyDictionaryLowLevel/bodydictionarylowlevel/rest/dictionary/_request_builders_py3.py index 6cc9a70b30c..99c61cbe13b 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyDictionaryLowLevel/bodydictionarylowlevel/rest/dictionary/_request_builders_py3.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyDictionaryLowLevel/bodydictionarylowlevel/rest/dictionary/_request_builders_py3.py @@ -39,13 +39,13 @@ def build_get_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/dictionary/null" + _url = "/dictionary/null" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_empty_request(**kwargs: Any) -> HttpRequest: @@ -70,13 +70,13 @@ def build_get_empty_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/dictionary/empty" + _url = "/dictionary/empty" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_empty_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -109,15 +109,15 @@ def build_put_empty_request(*, json: JSONType = None, content: Any = None, **kwa accept = "application/json" # Construct URL - url = "/dictionary/empty" + _url = "/dictionary/empty" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_null_value_request(**kwargs: Any) -> HttpRequest: @@ -142,13 +142,13 @@ def build_get_null_value_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/dictionary/nullvalue" + _url = "/dictionary/nullvalue" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_null_key_request(**kwargs: Any) -> HttpRequest: @@ -173,13 +173,13 @@ def build_get_null_key_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/dictionary/nullkey" + _url = "/dictionary/nullkey" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_empty_string_key_request(**kwargs: Any) -> HttpRequest: @@ -204,13 +204,13 @@ def build_get_empty_string_key_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/dictionary/keyemptystring" + _url = "/dictionary/keyemptystring" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_invalid_request(**kwargs: Any) -> HttpRequest: @@ -235,13 +235,13 @@ def build_get_invalid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/dictionary/invalid" + _url = "/dictionary/invalid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_boolean_tfft_request(**kwargs: Any) -> HttpRequest: @@ -266,13 +266,13 @@ def build_get_boolean_tfft_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/dictionary/prim/boolean/tfft" + _url = "/dictionary/prim/boolean/tfft" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_boolean_tfft_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -305,15 +305,15 @@ def build_put_boolean_tfft_request(*, json: JSONType = None, content: Any = None accept = "application/json" # Construct URL - url = "/dictionary/prim/boolean/tfft" + _url = "/dictionary/prim/boolean/tfft" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_boolean_invalid_null_request(**kwargs: Any) -> HttpRequest: @@ -338,13 +338,13 @@ def build_get_boolean_invalid_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/dictionary/prim/boolean/true.null.false" + _url = "/dictionary/prim/boolean/true.null.false" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_boolean_invalid_string_request(**kwargs: Any) -> HttpRequest: @@ -369,13 +369,13 @@ def build_get_boolean_invalid_string_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/dictionary/prim/boolean/true.boolean.false" + _url = "/dictionary/prim/boolean/true.boolean.false" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_integer_valid_request(**kwargs: Any) -> HttpRequest: @@ -400,13 +400,13 @@ def build_get_integer_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/dictionary/prim/integer/1.-1.3.300" + _url = "/dictionary/prim/integer/1.-1.3.300" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_integer_valid_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -439,15 +439,15 @@ def build_put_integer_valid_request(*, json: JSONType = None, content: Any = Non accept = "application/json" # Construct URL - url = "/dictionary/prim/integer/1.-1.3.300" + _url = "/dictionary/prim/integer/1.-1.3.300" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_int_invalid_null_request(**kwargs: Any) -> HttpRequest: @@ -472,13 +472,13 @@ def build_get_int_invalid_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/dictionary/prim/integer/1.null.zero" + _url = "/dictionary/prim/integer/1.null.zero" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_int_invalid_string_request(**kwargs: Any) -> HttpRequest: @@ -503,13 +503,13 @@ def build_get_int_invalid_string_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/dictionary/prim/integer/1.integer.0" + _url = "/dictionary/prim/integer/1.integer.0" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_long_valid_request(**kwargs: Any) -> HttpRequest: @@ -534,13 +534,13 @@ def build_get_long_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/dictionary/prim/long/1.-1.3.300" + _url = "/dictionary/prim/long/1.-1.3.300" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_long_valid_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -573,15 +573,15 @@ def build_put_long_valid_request(*, json: JSONType = None, content: Any = None, accept = "application/json" # Construct URL - url = "/dictionary/prim/long/1.-1.3.300" + _url = "/dictionary/prim/long/1.-1.3.300" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_long_invalid_null_request(**kwargs: Any) -> HttpRequest: @@ -606,13 +606,13 @@ def build_get_long_invalid_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/dictionary/prim/long/1.null.zero" + _url = "/dictionary/prim/long/1.null.zero" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_long_invalid_string_request(**kwargs: Any) -> HttpRequest: @@ -637,13 +637,13 @@ def build_get_long_invalid_string_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/dictionary/prim/long/1.integer.0" + _url = "/dictionary/prim/long/1.integer.0" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_float_valid_request(**kwargs: Any) -> HttpRequest: @@ -668,13 +668,13 @@ def build_get_float_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/dictionary/prim/float/0--0.01-1.2e20" + _url = "/dictionary/prim/float/0--0.01-1.2e20" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_float_valid_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -707,15 +707,15 @@ def build_put_float_valid_request(*, json: JSONType = None, content: Any = None, accept = "application/json" # Construct URL - url = "/dictionary/prim/float/0--0.01-1.2e20" + _url = "/dictionary/prim/float/0--0.01-1.2e20" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_float_invalid_null_request(**kwargs: Any) -> HttpRequest: @@ -740,13 +740,13 @@ def build_get_float_invalid_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/dictionary/prim/float/0.0-null-1.2e20" + _url = "/dictionary/prim/float/0.0-null-1.2e20" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_float_invalid_string_request(**kwargs: Any) -> HttpRequest: @@ -771,13 +771,13 @@ def build_get_float_invalid_string_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/dictionary/prim/float/1.number.0" + _url = "/dictionary/prim/float/1.number.0" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_double_valid_request(**kwargs: Any) -> HttpRequest: @@ -802,13 +802,13 @@ def build_get_double_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/dictionary/prim/double/0--0.01-1.2e20" + _url = "/dictionary/prim/double/0--0.01-1.2e20" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_double_valid_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -841,15 +841,15 @@ def build_put_double_valid_request(*, json: JSONType = None, content: Any = None accept = "application/json" # Construct URL - url = "/dictionary/prim/double/0--0.01-1.2e20" + _url = "/dictionary/prim/double/0--0.01-1.2e20" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_double_invalid_null_request(**kwargs: Any) -> HttpRequest: @@ -874,13 +874,13 @@ def build_get_double_invalid_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/dictionary/prim/double/0.0-null-1.2e20" + _url = "/dictionary/prim/double/0.0-null-1.2e20" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_double_invalid_string_request(**kwargs: Any) -> HttpRequest: @@ -905,13 +905,13 @@ def build_get_double_invalid_string_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/dictionary/prim/double/1.number.0" + _url = "/dictionary/prim/double/1.number.0" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_string_valid_request(**kwargs: Any) -> HttpRequest: @@ -936,13 +936,13 @@ def build_get_string_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/dictionary/prim/string/foo1.foo2.foo3" + _url = "/dictionary/prim/string/foo1.foo2.foo3" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_string_valid_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -975,15 +975,15 @@ def build_put_string_valid_request(*, json: JSONType = None, content: Any = None accept = "application/json" # Construct URL - url = "/dictionary/prim/string/foo1.foo2.foo3" + _url = "/dictionary/prim/string/foo1.foo2.foo3" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_string_with_null_request(**kwargs: Any) -> HttpRequest: @@ -1008,13 +1008,13 @@ def build_get_string_with_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/dictionary/prim/string/foo.null.foo2" + _url = "/dictionary/prim/string/foo.null.foo2" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_string_with_invalid_request(**kwargs: Any) -> HttpRequest: @@ -1039,13 +1039,13 @@ def build_get_string_with_invalid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/dictionary/prim/string/foo.123.foo2" + _url = "/dictionary/prim/string/foo.123.foo2" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_date_valid_request(**kwargs: Any) -> HttpRequest: @@ -1070,13 +1070,13 @@ def build_get_date_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/dictionary/prim/date/valid" + _url = "/dictionary/prim/date/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_date_valid_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -1109,15 +1109,15 @@ def build_put_date_valid_request(*, json: JSONType = None, content: Any = None, accept = "application/json" # Construct URL - url = "/dictionary/prim/date/valid" + _url = "/dictionary/prim/date/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_date_invalid_null_request(**kwargs: Any) -> HttpRequest: @@ -1142,13 +1142,13 @@ def build_get_date_invalid_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/dictionary/prim/date/invalidnull" + _url = "/dictionary/prim/date/invalidnull" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_date_invalid_chars_request(**kwargs: Any) -> HttpRequest: @@ -1173,13 +1173,13 @@ def build_get_date_invalid_chars_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/dictionary/prim/date/invalidchars" + _url = "/dictionary/prim/date/invalidchars" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_date_time_valid_request(**kwargs: Any) -> HttpRequest: @@ -1205,13 +1205,13 @@ def build_get_date_time_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/dictionary/prim/date-time/valid" + _url = "/dictionary/prim/date-time/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_date_time_valid_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -1245,15 +1245,15 @@ def build_put_date_time_valid_request(*, json: JSONType = None, content: Any = N accept = "application/json" # Construct URL - url = "/dictionary/prim/date-time/valid" + _url = "/dictionary/prim/date-time/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_date_time_invalid_null_request(**kwargs: Any) -> HttpRequest: @@ -1278,13 +1278,13 @@ def build_get_date_time_invalid_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/dictionary/prim/date-time/invalidnull" + _url = "/dictionary/prim/date-time/invalidnull" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_date_time_invalid_chars_request(**kwargs: Any) -> HttpRequest: @@ -1309,13 +1309,13 @@ def build_get_date_time_invalid_chars_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/dictionary/prim/date-time/invalidchars" + _url = "/dictionary/prim/date-time/invalidchars" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_date_time_rfc1123_valid_request(**kwargs: Any) -> HttpRequest: @@ -1341,13 +1341,13 @@ def build_get_date_time_rfc1123_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/dictionary/prim/date-time-rfc1123/valid" + _url = "/dictionary/prim/date-time-rfc1123/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_date_time_rfc1123_valid_request( @@ -1383,15 +1383,15 @@ def build_put_date_time_rfc1123_valid_request( accept = "application/json" # Construct URL - url = "/dictionary/prim/date-time-rfc1123/valid" + _url = "/dictionary/prim/date-time-rfc1123/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_duration_valid_request(**kwargs: Any) -> HttpRequest: @@ -1416,13 +1416,13 @@ def build_get_duration_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/dictionary/prim/duration/valid" + _url = "/dictionary/prim/duration/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_duration_valid_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -1455,15 +1455,15 @@ def build_put_duration_valid_request(*, json: JSONType = None, content: Any = No accept = "application/json" # Construct URL - url = "/dictionary/prim/duration/valid" + _url = "/dictionary/prim/duration/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_byte_valid_request(**kwargs: Any) -> HttpRequest: @@ -1489,13 +1489,13 @@ def build_get_byte_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/dictionary/prim/byte/valid" + _url = "/dictionary/prim/byte/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_byte_valid_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -1529,15 +1529,15 @@ def build_put_byte_valid_request(*, json: JSONType = None, content: Any = None, accept = "application/json" # Construct URL - url = "/dictionary/prim/byte/valid" + _url = "/dictionary/prim/byte/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_byte_invalid_null_request(**kwargs: Any) -> HttpRequest: @@ -1563,13 +1563,13 @@ def build_get_byte_invalid_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/dictionary/prim/byte/invalidnull" + _url = "/dictionary/prim/byte/invalidnull" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_base64_url_request(**kwargs: Any) -> HttpRequest: @@ -1595,13 +1595,13 @@ def build_get_base64_url_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/dictionary/prim/base64url/valid" + _url = "/dictionary/prim/base64url/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_complex_null_request(**kwargs: Any) -> HttpRequest: @@ -1629,13 +1629,13 @@ def build_get_complex_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/dictionary/complex/null" + _url = "/dictionary/complex/null" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_complex_empty_request(**kwargs: Any) -> HttpRequest: @@ -1663,13 +1663,13 @@ def build_get_complex_empty_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/dictionary/complex/empty" + _url = "/dictionary/complex/empty" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_complex_item_null_request(**kwargs: Any) -> HttpRequest: @@ -1698,13 +1698,13 @@ def build_get_complex_item_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/dictionary/complex/itemnull" + _url = "/dictionary/complex/itemnull" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_complex_item_empty_request(**kwargs: Any) -> HttpRequest: @@ -1733,13 +1733,13 @@ def build_get_complex_item_empty_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/dictionary/complex/itemempty" + _url = "/dictionary/complex/itemempty" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_complex_valid_request(**kwargs: Any) -> HttpRequest: @@ -1768,13 +1768,13 @@ def build_get_complex_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/dictionary/complex/valid" + _url = "/dictionary/complex/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_complex_valid_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -1811,15 +1811,15 @@ def build_put_complex_valid_request(*, json: JSONType = None, content: Any = Non accept = "application/json" # Construct URL - url = "/dictionary/complex/valid" + _url = "/dictionary/complex/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_array_null_request(**kwargs: Any) -> HttpRequest: @@ -1846,13 +1846,13 @@ def build_get_array_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/dictionary/array/null" + _url = "/dictionary/array/null" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_array_empty_request(**kwargs: Any) -> HttpRequest: @@ -1879,13 +1879,13 @@ def build_get_array_empty_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/dictionary/array/empty" + _url = "/dictionary/array/empty" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_array_item_null_request(**kwargs: Any) -> HttpRequest: @@ -1912,13 +1912,13 @@ def build_get_array_item_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/dictionary/array/itemnull" + _url = "/dictionary/array/itemnull" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_array_item_empty_request(**kwargs: Any) -> HttpRequest: @@ -1945,13 +1945,13 @@ def build_get_array_item_empty_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/dictionary/array/itemempty" + _url = "/dictionary/array/itemempty" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_array_valid_request(**kwargs: Any) -> HttpRequest: @@ -1979,13 +1979,13 @@ def build_get_array_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/dictionary/array/valid" + _url = "/dictionary/array/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_array_valid_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -2021,15 +2021,15 @@ def build_put_array_valid_request(*, json: JSONType = None, content: Any = None, accept = "application/json" # Construct URL - url = "/dictionary/array/valid" + _url = "/dictionary/array/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_dictionary_null_request(**kwargs: Any) -> HttpRequest: @@ -2056,13 +2056,13 @@ def build_get_dictionary_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/dictionary/dictionary/null" + _url = "/dictionary/dictionary/null" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_dictionary_empty_request(**kwargs: Any) -> HttpRequest: @@ -2089,13 +2089,13 @@ def build_get_dictionary_empty_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/dictionary/dictionary/empty" + _url = "/dictionary/dictionary/empty" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_dictionary_item_null_request(**kwargs: Any) -> HttpRequest: @@ -2123,13 +2123,13 @@ def build_get_dictionary_item_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/dictionary/dictionary/itemnull" + _url = "/dictionary/dictionary/itemnull" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_dictionary_item_empty_request(**kwargs: Any) -> HttpRequest: @@ -2157,13 +2157,13 @@ def build_get_dictionary_item_empty_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/dictionary/dictionary/itemempty" + _url = "/dictionary/dictionary/itemempty" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_dictionary_valid_request(**kwargs: Any) -> HttpRequest: @@ -2192,13 +2192,13 @@ def build_get_dictionary_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/dictionary/dictionary/valid" + _url = "/dictionary/dictionary/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_dictionary_valid_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -2235,12 +2235,12 @@ def build_put_dictionary_valid_request(*, json: JSONType = None, content: Any = accept = "application/json" # Construct URL - url = "/dictionary/dictionary/valid" + _url = "/dictionary/dictionary/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyDurationLowLevel/bodydurationlowlevel/rest/duration/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyDurationLowLevel/bodydurationlowlevel/rest/duration/_request_builders.py index 66f8d460b1e..cd739045169 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyDurationLowLevel/bodydurationlowlevel/rest/duration/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyDurationLowLevel/bodydurationlowlevel/rest/duration/_request_builders.py @@ -39,16 +39,16 @@ def build_get_null_request( accept = "application/json" # Construct URL - url = "/duration/null" + _url = "/duration/null" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -84,18 +84,18 @@ def build_put_positive_duration_request( accept = "application/json" # Construct URL - url = "/duration/positiveduration" + _url = "/duration/positiveduration" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -117,16 +117,16 @@ def build_get_positive_duration_request( accept = "application/json" # Construct URL - url = "/duration/positiveduration" + _url = "/duration/positiveduration" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -148,15 +148,15 @@ def build_get_invalid_request( accept = "application/json" # Construct URL - url = "/duration/invalid" + _url = "/duration/invalid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyDurationLowLevel/bodydurationlowlevel/rest/duration/_request_builders_py3.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyDurationLowLevel/bodydurationlowlevel/rest/duration/_request_builders_py3.py index 83a739a799c..a698dbe16bf 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyDurationLowLevel/bodydurationlowlevel/rest/duration/_request_builders_py3.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyDurationLowLevel/bodydurationlowlevel/rest/duration/_request_builders_py3.py @@ -31,13 +31,13 @@ def build_get_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/duration/null" + _url = "/duration/null" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_positive_duration_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -68,15 +68,15 @@ def build_put_positive_duration_request(*, json: JSONType = None, content: Any = accept = "application/json" # Construct URL - url = "/duration/positiveduration" + _url = "/duration/positiveduration" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_positive_duration_request(**kwargs: Any) -> HttpRequest: @@ -93,13 +93,13 @@ def build_get_positive_duration_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/duration/positiveduration" + _url = "/duration/positiveduration" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_invalid_request(**kwargs: Any) -> HttpRequest: @@ -116,10 +116,10 @@ def build_get_invalid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/duration/invalid" + _url = "/duration/invalid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyFileLowLevel/bodyfilelowlevel/rest/files/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyFileLowLevel/bodyfilelowlevel/rest/files/_request_builders.py index 8294eebc4bb..b64da3e27f8 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyFileLowLevel/bodyfilelowlevel/rest/files/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyFileLowLevel/bodyfilelowlevel/rest/files/_request_builders.py @@ -36,16 +36,16 @@ def build_get_file_request( accept = "image/png, application/json" # Construct URL - url = "/files/stream/nonempty" + _url = "/files/stream/nonempty" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -67,16 +67,16 @@ def build_get_file_large_request( accept = "image/png, application/json" # Construct URL - url = "/files/stream/verylarge" + _url = "/files/stream/verylarge" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -98,15 +98,15 @@ def build_get_empty_file_request( accept = "image/png, application/json" # Construct URL - url = "/files/stream/empty" + _url = "/files/stream/empty" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyFileLowLevel/bodyfilelowlevel/rest/files/_request_builders_py3.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyFileLowLevel/bodyfilelowlevel/rest/files/_request_builders_py3.py index e30764e7525..96df9553ed3 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyFileLowLevel/bodyfilelowlevel/rest/files/_request_builders_py3.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyFileLowLevel/bodyfilelowlevel/rest/files/_request_builders_py3.py @@ -28,13 +28,13 @@ def build_get_file_request(**kwargs: Any) -> HttpRequest: accept = "image/png, application/json" # Construct URL - url = "/files/stream/nonempty" + _url = "/files/stream/nonempty" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_file_large_request(**kwargs: Any) -> HttpRequest: @@ -51,13 +51,13 @@ def build_get_file_large_request(**kwargs: Any) -> HttpRequest: accept = "image/png, application/json" # Construct URL - url = "/files/stream/verylarge" + _url = "/files/stream/verylarge" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_empty_file_request(**kwargs: Any) -> HttpRequest: @@ -74,10 +74,10 @@ def build_get_empty_file_request(**kwargs: Any) -> HttpRequest: accept = "image/png, application/json" # Construct URL - url = "/files/stream/empty" + _url = "/files/stream/empty" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyFormDataLowLevel/bodyformdatalowlevel/rest/formdata/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyFormDataLowLevel/bodyformdatalowlevel/rest/formdata/_request_builders.py index 65e19ef1b8d..977dae5ae33 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyFormDataLowLevel/bodyformdatalowlevel/rest/formdata/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyFormDataLowLevel/bodyformdatalowlevel/rest/formdata/_request_builders.py @@ -57,18 +57,18 @@ def build_upload_file_request( accept = "application/octet-stream, application/json" # Construct URL - url = "/formdata/stream/uploadfile" + _url = "/formdata/stream/uploadfile" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -95,18 +95,18 @@ def build_upload_file_via_body_request( accept = "application/octet-stream, application/json" # Construct URL - url = "/formdata/stream/uploadfile" + _url = "/formdata/stream/uploadfile" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -146,17 +146,17 @@ def build_upload_files_request( accept = "application/octet-stream, application/json" # Construct URL - url = "/formdata/stream/uploadfiles" + _url = "/formdata/stream/uploadfiles" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyFormDataLowLevel/bodyformdatalowlevel/rest/formdata/_request_builders_py3.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyFormDataLowLevel/bodyformdatalowlevel/rest/formdata/_request_builders_py3.py index 3e4cd860926..27712ac68e7 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyFormDataLowLevel/bodyformdatalowlevel/rest/formdata/_request_builders_py3.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyFormDataLowLevel/bodyformdatalowlevel/rest/formdata/_request_builders_py3.py @@ -51,15 +51,15 @@ def build_upload_file_request( accept = "application/octet-stream, application/json" # Construct URL - url = "/formdata/stream/uploadfile" + _url = "/formdata/stream/uploadfile" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, files=files, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, files=files, content=content, **kwargs) def build_upload_file_via_body_request(*, content: Any, **kwargs: Any) -> HttpRequest: @@ -81,15 +81,15 @@ def build_upload_file_via_body_request(*, content: Any, **kwargs: Any) -> HttpRe accept = "application/octet-stream, application/json" # Construct URL - url = "/formdata/stream/uploadfile" + _url = "/formdata/stream/uploadfile" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, content=content, **kwargs) def build_upload_files_request( @@ -126,12 +126,12 @@ def build_upload_files_request( accept = "application/octet-stream, application/json" # Construct URL - url = "/formdata/stream/uploadfiles" + _url = "/formdata/stream/uploadfiles" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, files=files, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, files=files, content=content, **kwargs) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyFormUrlEncodedDataLowLevel/bodyformurlencodeddatalowlevel/rest/formdataurlencoded/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyFormUrlEncodedDataLowLevel/bodyformurlencodeddatalowlevel/rest/formdataurlencoded/_request_builders.py index 677330ee979..f906e86ea12 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyFormUrlEncodedDataLowLevel/bodyformurlencodeddatalowlevel/rest/formdataurlencoded/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyFormUrlEncodedDataLowLevel/bodyformurlencodeddatalowlevel/rest/formdataurlencoded/_request_builders.py @@ -67,22 +67,22 @@ def build_update_pet_with_form_request( content_type = kwargs.pop('content_type', None) # type: Optional[str] # Construct URL - url = "/formsdataurlencoded/pet/add/{petId}" + _url = "/formsdataurlencoded/pet/add/{petId}" path_format_arguments = { "petId": _SERIALIZER.url("pet_id", pet_id, 'int'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -125,16 +125,16 @@ def build_partial_constant_body_request( content_type = kwargs.pop('content_type', None) # type: Optional[str] # Construct URL - url = "/formsdataurlencoded/partialConstantBody" + _url = "/formsdataurlencoded/partialConstantBody" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyFormUrlEncodedDataLowLevel/bodyformurlencodeddatalowlevel/rest/formdataurlencoded/_request_builders_py3.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyFormUrlEncodedDataLowLevel/bodyformurlencodeddatalowlevel/rest/formdataurlencoded/_request_builders_py3.py index c3b1691f45f..1f33b53d7b7 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyFormUrlEncodedDataLowLevel/bodyformurlencodeddatalowlevel/rest/formdataurlencoded/_request_builders_py3.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyFormUrlEncodedDataLowLevel/bodyformurlencodeddatalowlevel/rest/formdataurlencoded/_request_builders_py3.py @@ -60,19 +60,19 @@ def build_update_pet_with_form_request( content_type = kwargs.pop("content_type", None) # type: Optional[str] # Construct URL - url = "/formsdataurlencoded/pet/add/{petId}" + _url = "/formsdataurlencoded/pet/add/{petId}" path_format_arguments = { "petId": _SERIALIZER.url("pet_id", pet_id, "int"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, data=data, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, data=data, content=content, **kwargs) def build_partial_constant_body_request( @@ -112,11 +112,11 @@ def build_partial_constant_body_request( content_type = kwargs.pop("content_type", None) # type: Optional[str] # Construct URL - url = "/formsdataurlencoded/partialConstantBody" + _url = "/formsdataurlencoded/partialConstantBody" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, data=data, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, data=data, content=content, **kwargs) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyIntegerLowLevel/bodyintegerlowlevel/rest/int/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyIntegerLowLevel/bodyintegerlowlevel/rest/int/_request_builders.py index 748ab63af83..5c6e409b67b 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyIntegerLowLevel/bodyintegerlowlevel/rest/int/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyIntegerLowLevel/bodyintegerlowlevel/rest/int/_request_builders.py @@ -39,16 +39,16 @@ def build_get_null_request( accept = "application/json" # Construct URL - url = "/int/null" + _url = "/int/null" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -70,16 +70,16 @@ def build_get_invalid_request( accept = "application/json" # Construct URL - url = "/int/invalid" + _url = "/int/invalid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -101,16 +101,16 @@ def build_get_overflow_int32_request( accept = "application/json" # Construct URL - url = "/int/overflowint32" + _url = "/int/overflowint32" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -132,16 +132,16 @@ def build_get_underflow_int32_request( accept = "application/json" # Construct URL - url = "/int/underflowint32" + _url = "/int/underflowint32" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -163,16 +163,16 @@ def build_get_overflow_int64_request( accept = "application/json" # Construct URL - url = "/int/overflowint64" + _url = "/int/overflowint64" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -194,16 +194,16 @@ def build_get_underflow_int64_request( accept = "application/json" # Construct URL - url = "/int/underflowint64" + _url = "/int/underflowint64" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -239,18 +239,18 @@ def build_put_max32_request( accept = "application/json" # Construct URL - url = "/int/max/32" + _url = "/int/max/32" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -286,18 +286,18 @@ def build_put_max64_request( accept = "application/json" # Construct URL - url = "/int/max/64" + _url = "/int/max/64" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -333,18 +333,18 @@ def build_put_min32_request( accept = "application/json" # Construct URL - url = "/int/min/32" + _url = "/int/min/32" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -380,18 +380,18 @@ def build_put_min64_request( accept = "application/json" # Construct URL - url = "/int/min/64" + _url = "/int/min/64" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -413,16 +413,16 @@ def build_get_unix_time_request( accept = "application/json" # Construct URL - url = "/int/unixtime" + _url = "/int/unixtime" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -458,18 +458,18 @@ def build_put_unix_time_date_request( accept = "application/json" # Construct URL - url = "/int/unixtime" + _url = "/int/unixtime" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -491,16 +491,16 @@ def build_get_invalid_unix_time_request( accept = "application/json" # Construct URL - url = "/int/invalidunixtime" + _url = "/int/invalidunixtime" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -522,15 +522,15 @@ def build_get_null_unix_time_request( accept = "application/json" # Construct URL - url = "/int/nullunixtime" + _url = "/int/nullunixtime" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyIntegerLowLevel/bodyintegerlowlevel/rest/int/_request_builders_py3.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyIntegerLowLevel/bodyintegerlowlevel/rest/int/_request_builders_py3.py index 6f2288dbf27..c2dbf5009c7 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyIntegerLowLevel/bodyintegerlowlevel/rest/int/_request_builders_py3.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyIntegerLowLevel/bodyintegerlowlevel/rest/int/_request_builders_py3.py @@ -31,13 +31,13 @@ def build_get_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/int/null" + _url = "/int/null" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_invalid_request(**kwargs: Any) -> HttpRequest: @@ -54,13 +54,13 @@ def build_get_invalid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/int/invalid" + _url = "/int/invalid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_overflow_int32_request(**kwargs: Any) -> HttpRequest: @@ -77,13 +77,13 @@ def build_get_overflow_int32_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/int/overflowint32" + _url = "/int/overflowint32" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_underflow_int32_request(**kwargs: Any) -> HttpRequest: @@ -100,13 +100,13 @@ def build_get_underflow_int32_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/int/underflowint32" + _url = "/int/underflowint32" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_overflow_int64_request(**kwargs: Any) -> HttpRequest: @@ -123,13 +123,13 @@ def build_get_overflow_int64_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/int/overflowint64" + _url = "/int/overflowint64" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_underflow_int64_request(**kwargs: Any) -> HttpRequest: @@ -146,13 +146,13 @@ def build_get_underflow_int64_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/int/underflowint64" + _url = "/int/underflowint64" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_max32_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -183,15 +183,15 @@ def build_put_max32_request(*, json: JSONType = None, content: Any = None, **kwa accept = "application/json" # Construct URL - url = "/int/max/32" + _url = "/int/max/32" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_put_max64_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -222,15 +222,15 @@ def build_put_max64_request(*, json: JSONType = None, content: Any = None, **kwa accept = "application/json" # Construct URL - url = "/int/max/64" + _url = "/int/max/64" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_put_min32_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -261,15 +261,15 @@ def build_put_min32_request(*, json: JSONType = None, content: Any = None, **kwa accept = "application/json" # Construct URL - url = "/int/min/32" + _url = "/int/min/32" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_put_min64_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -300,15 +300,15 @@ def build_put_min64_request(*, json: JSONType = None, content: Any = None, **kwa accept = "application/json" # Construct URL - url = "/int/min/64" + _url = "/int/min/64" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_unix_time_request(**kwargs: Any) -> HttpRequest: @@ -325,13 +325,13 @@ def build_get_unix_time_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/int/unixtime" + _url = "/int/unixtime" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_unix_time_date_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -362,15 +362,15 @@ def build_put_unix_time_date_request(*, json: JSONType = None, content: Any = No accept = "application/json" # Construct URL - url = "/int/unixtime" + _url = "/int/unixtime" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_invalid_unix_time_request(**kwargs: Any) -> HttpRequest: @@ -387,13 +387,13 @@ def build_get_invalid_unix_time_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/int/invalidunixtime" + _url = "/int/invalidunixtime" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_null_unix_time_request(**kwargs: Any) -> HttpRequest: @@ -410,10 +410,10 @@ def build_get_null_unix_time_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/int/nullunixtime" + _url = "/int/nullunixtime" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyNumberLowLevel/bodynumberlowlevel/rest/number/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyNumberLowLevel/bodynumberlowlevel/rest/number/_request_builders.py index 97e016019fa..d073febd9c1 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyNumberLowLevel/bodynumberlowlevel/rest/number/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyNumberLowLevel/bodynumberlowlevel/rest/number/_request_builders.py @@ -39,16 +39,16 @@ def build_get_null_request( accept = "application/json" # Construct URL - url = "/number/null" + _url = "/number/null" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -70,16 +70,16 @@ def build_get_invalid_float_request( accept = "application/json" # Construct URL - url = "/number/invalidfloat" + _url = "/number/invalidfloat" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -101,16 +101,16 @@ def build_get_invalid_double_request( accept = "application/json" # Construct URL - url = "/number/invaliddouble" + _url = "/number/invaliddouble" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -132,16 +132,16 @@ def build_get_invalid_decimal_request( accept = "application/json" # Construct URL - url = "/number/invaliddecimal" + _url = "/number/invaliddecimal" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -177,18 +177,18 @@ def build_put_big_float_request( accept = "application/json" # Construct URL - url = "/number/big/float/3.402823e+20" + _url = "/number/big/float/3.402823e+20" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -210,16 +210,16 @@ def build_get_big_float_request( accept = "application/json" # Construct URL - url = "/number/big/float/3.402823e+20" + _url = "/number/big/float/3.402823e+20" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -255,18 +255,18 @@ def build_put_big_double_request( accept = "application/json" # Construct URL - url = "/number/big/double/2.5976931e+101" + _url = "/number/big/double/2.5976931e+101" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -288,16 +288,16 @@ def build_get_big_double_request( accept = "application/json" # Construct URL - url = "/number/big/double/2.5976931e+101" + _url = "/number/big/double/2.5976931e+101" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -325,18 +325,18 @@ def build_put_big_double_positive_decimal_request( accept = "application/json" # Construct URL - url = "/number/big/double/99999999.99" + _url = "/number/big/double/99999999.99" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, json=json, **kwargs ) @@ -359,16 +359,16 @@ def build_get_big_double_positive_decimal_request( accept = "application/json" # Construct URL - url = "/number/big/double/99999999.99" + _url = "/number/big/double/99999999.99" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -396,18 +396,18 @@ def build_put_big_double_negative_decimal_request( accept = "application/json" # Construct URL - url = "/number/big/double/-99999999.99" + _url = "/number/big/double/-99999999.99" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, json=json, **kwargs ) @@ -430,16 +430,16 @@ def build_get_big_double_negative_decimal_request( accept = "application/json" # Construct URL - url = "/number/big/double/-99999999.99" + _url = "/number/big/double/-99999999.99" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -475,18 +475,18 @@ def build_put_big_decimal_request( accept = "application/json" # Construct URL - url = "/number/big/decimal/2.5976931e+101" + _url = "/number/big/decimal/2.5976931e+101" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -508,16 +508,16 @@ def build_get_big_decimal_request( accept = "application/json" # Construct URL - url = "/number/big/decimal/2.5976931e+101" + _url = "/number/big/decimal/2.5976931e+101" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -545,18 +545,18 @@ def build_put_big_decimal_positive_decimal_request( accept = "application/json" # Construct URL - url = "/number/big/decimal/99999999.99" + _url = "/number/big/decimal/99999999.99" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, json=json, **kwargs ) @@ -579,16 +579,16 @@ def build_get_big_decimal_positive_decimal_request( accept = "application/json" # Construct URL - url = "/number/big/decimal/99999999.99" + _url = "/number/big/decimal/99999999.99" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -616,18 +616,18 @@ def build_put_big_decimal_negative_decimal_request( accept = "application/json" # Construct URL - url = "/number/big/decimal/-99999999.99" + _url = "/number/big/decimal/-99999999.99" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, json=json, **kwargs ) @@ -650,16 +650,16 @@ def build_get_big_decimal_negative_decimal_request( accept = "application/json" # Construct URL - url = "/number/big/decimal/-99999999.99" + _url = "/number/big/decimal/-99999999.99" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -695,18 +695,18 @@ def build_put_small_float_request( accept = "application/json" # Construct URL - url = "/number/small/float/3.402823e-20" + _url = "/number/small/float/3.402823e-20" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -728,16 +728,16 @@ def build_get_small_float_request( accept = "application/json" # Construct URL - url = "/number/small/float/3.402823e-20" + _url = "/number/small/float/3.402823e-20" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -773,18 +773,18 @@ def build_put_small_double_request( accept = "application/json" # Construct URL - url = "/number/small/double/2.5976931e-101" + _url = "/number/small/double/2.5976931e-101" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -806,16 +806,16 @@ def build_get_small_double_request( accept = "application/json" # Construct URL - url = "/number/small/double/2.5976931e-101" + _url = "/number/small/double/2.5976931e-101" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -851,18 +851,18 @@ def build_put_small_decimal_request( accept = "application/json" # Construct URL - url = "/number/small/decimal/2.5976931e-101" + _url = "/number/small/decimal/2.5976931e-101" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -884,15 +884,15 @@ def build_get_small_decimal_request( accept = "application/json" # Construct URL - url = "/number/small/decimal/2.5976931e-101" + _url = "/number/small/decimal/2.5976931e-101" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyNumberLowLevel/bodynumberlowlevel/rest/number/_request_builders_py3.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyNumberLowLevel/bodynumberlowlevel/rest/number/_request_builders_py3.py index 48b5b35fa9a..a7a3f6e21f7 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyNumberLowLevel/bodynumberlowlevel/rest/number/_request_builders_py3.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyNumberLowLevel/bodynumberlowlevel/rest/number/_request_builders_py3.py @@ -31,13 +31,13 @@ def build_get_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/number/null" + _url = "/number/null" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_invalid_float_request(**kwargs: Any) -> HttpRequest: @@ -54,13 +54,13 @@ def build_get_invalid_float_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/number/invalidfloat" + _url = "/number/invalidfloat" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_invalid_double_request(**kwargs: Any) -> HttpRequest: @@ -77,13 +77,13 @@ def build_get_invalid_double_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/number/invaliddouble" + _url = "/number/invaliddouble" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_invalid_decimal_request(**kwargs: Any) -> HttpRequest: @@ -100,13 +100,13 @@ def build_get_invalid_decimal_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/number/invaliddecimal" + _url = "/number/invaliddecimal" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_big_float_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -137,15 +137,15 @@ def build_put_big_float_request(*, json: JSONType = None, content: Any = None, * accept = "application/json" # Construct URL - url = "/number/big/float/3.402823e+20" + _url = "/number/big/float/3.402823e+20" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_big_float_request(**kwargs: Any) -> HttpRequest: @@ -162,13 +162,13 @@ def build_get_big_float_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/number/big/float/3.402823e+20" + _url = "/number/big/float/3.402823e+20" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_big_double_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -199,15 +199,15 @@ def build_put_big_double_request(*, json: JSONType = None, content: Any = None, accept = "application/json" # Construct URL - url = "/number/big/double/2.5976931e+101" + _url = "/number/big/double/2.5976931e+101" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_big_double_request(**kwargs: Any) -> HttpRequest: @@ -224,13 +224,13 @@ def build_get_big_double_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/number/big/double/2.5976931e+101" + _url = "/number/big/double/2.5976931e+101" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_big_double_positive_decimal_request(**kwargs: Any) -> HttpRequest: @@ -253,15 +253,15 @@ def build_put_big_double_positive_decimal_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/number/big/double/99999999.99" + _url = "/number/big/double/99999999.99" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, **kwargs) def build_get_big_double_positive_decimal_request(**kwargs: Any) -> HttpRequest: @@ -278,13 +278,13 @@ def build_get_big_double_positive_decimal_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/number/big/double/99999999.99" + _url = "/number/big/double/99999999.99" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_big_double_negative_decimal_request(**kwargs: Any) -> HttpRequest: @@ -307,15 +307,15 @@ def build_put_big_double_negative_decimal_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/number/big/double/-99999999.99" + _url = "/number/big/double/-99999999.99" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, **kwargs) def build_get_big_double_negative_decimal_request(**kwargs: Any) -> HttpRequest: @@ -332,13 +332,13 @@ def build_get_big_double_negative_decimal_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/number/big/double/-99999999.99" + _url = "/number/big/double/-99999999.99" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_big_decimal_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -369,15 +369,15 @@ def build_put_big_decimal_request(*, json: JSONType = None, content: Any = None, accept = "application/json" # Construct URL - url = "/number/big/decimal/2.5976931e+101" + _url = "/number/big/decimal/2.5976931e+101" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_big_decimal_request(**kwargs: Any) -> HttpRequest: @@ -394,13 +394,13 @@ def build_get_big_decimal_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/number/big/decimal/2.5976931e+101" + _url = "/number/big/decimal/2.5976931e+101" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_big_decimal_positive_decimal_request(**kwargs: Any) -> HttpRequest: @@ -423,15 +423,15 @@ def build_put_big_decimal_positive_decimal_request(**kwargs: Any) -> HttpRequest accept = "application/json" # Construct URL - url = "/number/big/decimal/99999999.99" + _url = "/number/big/decimal/99999999.99" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, **kwargs) def build_get_big_decimal_positive_decimal_request(**kwargs: Any) -> HttpRequest: @@ -448,13 +448,13 @@ def build_get_big_decimal_positive_decimal_request(**kwargs: Any) -> HttpRequest accept = "application/json" # Construct URL - url = "/number/big/decimal/99999999.99" + _url = "/number/big/decimal/99999999.99" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_big_decimal_negative_decimal_request(**kwargs: Any) -> HttpRequest: @@ -477,15 +477,15 @@ def build_put_big_decimal_negative_decimal_request(**kwargs: Any) -> HttpRequest accept = "application/json" # Construct URL - url = "/number/big/decimal/-99999999.99" + _url = "/number/big/decimal/-99999999.99" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, **kwargs) def build_get_big_decimal_negative_decimal_request(**kwargs: Any) -> HttpRequest: @@ -502,13 +502,13 @@ def build_get_big_decimal_negative_decimal_request(**kwargs: Any) -> HttpRequest accept = "application/json" # Construct URL - url = "/number/big/decimal/-99999999.99" + _url = "/number/big/decimal/-99999999.99" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_small_float_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -539,15 +539,15 @@ def build_put_small_float_request(*, json: JSONType = None, content: Any = None, accept = "application/json" # Construct URL - url = "/number/small/float/3.402823e-20" + _url = "/number/small/float/3.402823e-20" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_small_float_request(**kwargs: Any) -> HttpRequest: @@ -564,13 +564,13 @@ def build_get_small_float_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/number/small/float/3.402823e-20" + _url = "/number/small/float/3.402823e-20" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_small_double_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -601,15 +601,15 @@ def build_put_small_double_request(*, json: JSONType = None, content: Any = None accept = "application/json" # Construct URL - url = "/number/small/double/2.5976931e-101" + _url = "/number/small/double/2.5976931e-101" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_small_double_request(**kwargs: Any) -> HttpRequest: @@ -626,13 +626,13 @@ def build_get_small_double_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/number/small/double/2.5976931e-101" + _url = "/number/small/double/2.5976931e-101" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_small_decimal_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -663,15 +663,15 @@ def build_put_small_decimal_request(*, json: JSONType = None, content: Any = Non accept = "application/json" # Construct URL - url = "/number/small/decimal/2.5976931e-101" + _url = "/number/small/decimal/2.5976931e-101" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_small_decimal_request(**kwargs: Any) -> HttpRequest: @@ -688,10 +688,10 @@ def build_get_small_decimal_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/number/small/decimal/2.5976931e-101" + _url = "/number/small/decimal/2.5976931e-101" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyStringLowLevel/bodystringlowlevel/rest/enum/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyStringLowLevel/bodystringlowlevel/rest/enum/_request_builders.py index 4c1ae784125..1d9b9de3a07 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyStringLowLevel/bodystringlowlevel/rest/enum/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyStringLowLevel/bodystringlowlevel/rest/enum/_request_builders.py @@ -45,16 +45,16 @@ def build_get_not_expandable_request( accept = "application/json" # Construct URL - url = "/string/enum/notExpandable" + _url = "/string/enum/notExpandable" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -90,18 +90,18 @@ def build_put_not_expandable_request( accept = "application/json" # Construct URL - url = "/string/enum/notExpandable" + _url = "/string/enum/notExpandable" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -129,16 +129,16 @@ def build_get_referenced_request( accept = "application/json" # Construct URL - url = "/string/enum/Referenced" + _url = "/string/enum/Referenced" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -174,18 +174,18 @@ def build_put_referenced_request( accept = "application/json" # Construct URL - url = "/string/enum/Referenced" + _url = "/string/enum/Referenced" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -217,16 +217,16 @@ def build_get_referenced_constant_request( accept = "application/json" # Construct URL - url = "/string/enum/ReferencedConstant" + _url = "/string/enum/ReferencedConstant" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -266,17 +266,17 @@ def build_put_referenced_constant_request( accept = "application/json" # Construct URL - url = "/string/enum/ReferencedConstant" + _url = "/string/enum/ReferencedConstant" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyStringLowLevel/bodystringlowlevel/rest/enum/_request_builders_py3.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyStringLowLevel/bodystringlowlevel/rest/enum/_request_builders_py3.py index 62bd164edc3..8ea131eb647 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyStringLowLevel/bodystringlowlevel/rest/enum/_request_builders_py3.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyStringLowLevel/bodystringlowlevel/rest/enum/_request_builders_py3.py @@ -37,13 +37,13 @@ def build_get_not_expandable_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/string/enum/notExpandable" + _url = "/string/enum/notExpandable" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_not_expandable_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -74,15 +74,15 @@ def build_put_not_expandable_request(*, json: JSONType = None, content: Any = No accept = "application/json" # Construct URL - url = "/string/enum/notExpandable" + _url = "/string/enum/notExpandable" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_referenced_request(**kwargs: Any) -> HttpRequest: @@ -105,13 +105,13 @@ def build_get_referenced_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/string/enum/Referenced" + _url = "/string/enum/Referenced" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_referenced_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -142,15 +142,15 @@ def build_put_referenced_request(*, json: JSONType = None, content: Any = None, accept = "application/json" # Construct URL - url = "/string/enum/Referenced" + _url = "/string/enum/Referenced" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_referenced_constant_request(**kwargs: Any) -> HttpRequest: @@ -177,13 +177,13 @@ def build_get_referenced_constant_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/string/enum/ReferencedConstant" + _url = "/string/enum/ReferencedConstant" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_referenced_constant_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -218,12 +218,12 @@ def build_put_referenced_constant_request(*, json: JSONType = None, content: Any accept = "application/json" # Construct URL - url = "/string/enum/ReferencedConstant" + _url = "/string/enum/ReferencedConstant" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyStringLowLevel/bodystringlowlevel/rest/string/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyStringLowLevel/bodystringlowlevel/rest/string/_request_builders.py index 9ba3389d1cf..ad99cc4289e 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyStringLowLevel/bodystringlowlevel/rest/string/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyStringLowLevel/bodystringlowlevel/rest/string/_request_builders.py @@ -39,16 +39,16 @@ def build_get_null_request( accept = "application/json" # Construct URL - url = "/string/null" + _url = "/string/null" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -84,18 +84,18 @@ def build_put_null_request( accept = "application/json" # Construct URL - url = "/string/null" + _url = "/string/null" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -117,16 +117,16 @@ def build_get_empty_request( accept = "application/json" # Construct URL - url = "/string/empty" + _url = "/string/empty" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -154,18 +154,18 @@ def build_put_empty_request( accept = "application/json" # Construct URL - url = "/string/empty" + _url = "/string/empty" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, json=json, **kwargs ) @@ -188,16 +188,16 @@ def build_get_mbcs_request( accept = "application/json" # Construct URL - url = "/string/mbcs" + _url = "/string/mbcs" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -226,18 +226,18 @@ def build_put_mbcs_request( accept = "application/json" # Construct URL - url = "/string/mbcs" + _url = "/string/mbcs" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, json=json, **kwargs ) @@ -262,16 +262,16 @@ def build_get_whitespace_request( accept = "application/json" # Construct URL - url = "/string/whitespace" + _url = "/string/whitespace" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -302,18 +302,18 @@ def build_put_whitespace_request( accept = "application/json" # Construct URL - url = "/string/whitespace" + _url = "/string/whitespace" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, json=json, **kwargs ) @@ -336,16 +336,16 @@ def build_get_not_provided_request( accept = "application/json" # Construct URL - url = "/string/notProvided" + _url = "/string/notProvided" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -367,16 +367,16 @@ def build_get_base64_encoded_request( accept = "application/json" # Construct URL - url = "/string/base64Encoding" + _url = "/string/base64Encoding" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -398,16 +398,16 @@ def build_get_base64_url_encoded_request( accept = "application/json" # Construct URL - url = "/string/base64UrlEncoding" + _url = "/string/base64UrlEncoding" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -443,18 +443,18 @@ def build_put_base64_url_encoded_request( accept = "application/json" # Construct URL - url = "/string/base64UrlEncoding" + _url = "/string/base64UrlEncoding" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -476,15 +476,15 @@ def build_get_null_base64_url_encoded_request( accept = "application/json" # Construct URL - url = "/string/nullBase64UrlEncoding" + _url = "/string/nullBase64UrlEncoding" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyStringLowLevel/bodystringlowlevel/rest/string/_request_builders_py3.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyStringLowLevel/bodystringlowlevel/rest/string/_request_builders_py3.py index 7a85de251c1..5378e806f61 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyStringLowLevel/bodystringlowlevel/rest/string/_request_builders_py3.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyStringLowLevel/bodystringlowlevel/rest/string/_request_builders_py3.py @@ -31,13 +31,13 @@ def build_get_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/string/null" + _url = "/string/null" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_null_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -68,15 +68,15 @@ def build_put_null_request(*, json: JSONType = None, content: Any = None, **kwar accept = "application/json" # Construct URL - url = "/string/null" + _url = "/string/null" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_empty_request(**kwargs: Any) -> HttpRequest: @@ -93,13 +93,13 @@ def build_get_empty_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/string/empty" + _url = "/string/empty" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_empty_request(**kwargs: Any) -> HttpRequest: @@ -122,15 +122,15 @@ def build_put_empty_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/string/empty" + _url = "/string/empty" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, **kwargs) def build_get_mbcs_request(**kwargs: Any) -> HttpRequest: @@ -147,13 +147,13 @@ def build_get_mbcs_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/string/mbcs" + _url = "/string/mbcs" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_mbcs_request(**kwargs: Any) -> HttpRequest: @@ -177,15 +177,15 @@ def build_put_mbcs_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/string/mbcs" + _url = "/string/mbcs" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, **kwargs) def build_get_whitespace_request(**kwargs: Any) -> HttpRequest: @@ -204,13 +204,13 @@ def build_get_whitespace_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/string/whitespace" + _url = "/string/whitespace" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_whitespace_request(**kwargs: Any) -> HttpRequest: @@ -238,15 +238,15 @@ def build_put_whitespace_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/string/whitespace" + _url = "/string/whitespace" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, **kwargs) def build_get_not_provided_request(**kwargs: Any) -> HttpRequest: @@ -263,13 +263,13 @@ def build_get_not_provided_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/string/notProvided" + _url = "/string/notProvided" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_base64_encoded_request(**kwargs: Any) -> HttpRequest: @@ -286,13 +286,13 @@ def build_get_base64_encoded_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/string/base64Encoding" + _url = "/string/base64Encoding" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_base64_url_encoded_request(**kwargs: Any) -> HttpRequest: @@ -309,13 +309,13 @@ def build_get_base64_url_encoded_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/string/base64UrlEncoding" + _url = "/string/base64UrlEncoding" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_base64_url_encoded_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -346,15 +346,15 @@ def build_put_base64_url_encoded_request(*, json: JSONType = None, content: Any accept = "application/json" # Construct URL - url = "/string/base64UrlEncoding" + _url = "/string/base64UrlEncoding" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_null_base64_url_encoded_request(**kwargs: Any) -> HttpRequest: @@ -371,10 +371,10 @@ def build_get_null_base64_url_encoded_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/string/nullBase64UrlEncoding" + _url = "/string/nullBase64UrlEncoding" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyTimeLowLevel/bodytimelowlevel/rest/time/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyTimeLowLevel/bodytimelowlevel/rest/time/_request_builders.py index 65dec90ffea..a99cc5cc9ee 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyTimeLowLevel/bodytimelowlevel/rest/time/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyTimeLowLevel/bodytimelowlevel/rest/time/_request_builders.py @@ -39,16 +39,16 @@ def build_get_request( accept = "application/json" # Construct URL - url = "/time/get" + _url = "/time/get" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -84,17 +84,17 @@ def build_put_request( accept = "application/json" # Construct URL - url = "/time/put" + _url = "/time/put" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyTimeLowLevel/bodytimelowlevel/rest/time/_request_builders_py3.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyTimeLowLevel/bodytimelowlevel/rest/time/_request_builders_py3.py index f34ad22e998..53bfc76f4ba 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyTimeLowLevel/bodytimelowlevel/rest/time/_request_builders_py3.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyTimeLowLevel/bodytimelowlevel/rest/time/_request_builders_py3.py @@ -31,13 +31,13 @@ def build_get_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/time/get" + _url = "/time/get" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -68,12 +68,12 @@ def build_put_request(*, json: JSONType = None, content: Any = None, **kwargs: A accept = "application/json" # Construct URL - url = "/time/put" + _url = "/time/put" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/ConstantsLowLevel/constantslowlevel/rest/contants/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/ConstantsLowLevel/constantslowlevel/rest/contants/_request_builders.py index 1c5f704763a..d047235d2f4 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/ConstantsLowLevel/constantslowlevel/rest/contants/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/ConstantsLowLevel/constantslowlevel/rest/contants/_request_builders.py @@ -43,17 +43,17 @@ def build_put_no_model_as_string_no_required_two_value_no_default_request( input = kwargs.pop('input', None) # type: Optional[str] # Construct URL - url = "/constants/putNoModelAsStringNoRequiredTwoValueNoDefault" + _url = "/constants/putNoModelAsStringNoRequiredTwoValueNoDefault" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if input is not None: - query_parameters['input'] = _SERIALIZER.query("input", input, 'str') + _query_parameters['input'] = _SERIALIZER.query("input", input, 'str') return HttpRequest( method="PUT", - url=url, - params=query_parameters, + url=_url, + params=_query_parameters, **kwargs ) @@ -80,17 +80,17 @@ def build_put_no_model_as_string_no_required_two_value_default_request( input = kwargs.pop('input', "value1") # type: Optional[str] # Construct URL - url = "/constants/putNoModelAsStringNoRequiredTwoValueDefault" + _url = "/constants/putNoModelAsStringNoRequiredTwoValueDefault" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if input is not None: - query_parameters['input'] = _SERIALIZER.query("input", input, 'str') + _query_parameters['input'] = _SERIALIZER.query("input", input, 'str') return HttpRequest( method="PUT", - url=url, - params=query_parameters, + url=_url, + params=_query_parameters, **kwargs ) @@ -117,17 +117,17 @@ def build_put_no_model_as_string_no_required_one_value_no_default_request( input = kwargs.pop('input', "value1") # type: Optional[str] # Construct URL - url = "/constants/putNoModelAsStringNoRequiredOneValueNoDefault" + _url = "/constants/putNoModelAsStringNoRequiredOneValueNoDefault" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if input is not None: - query_parameters['input'] = _SERIALIZER.query("input", input, 'str') + _query_parameters['input'] = _SERIALIZER.query("input", input, 'str') return HttpRequest( method="PUT", - url=url, - params=query_parameters, + url=_url, + params=_query_parameters, **kwargs ) @@ -154,17 +154,17 @@ def build_put_no_model_as_string_no_required_one_value_default_request( input = kwargs.pop('input', "value1") # type: Optional[str] # Construct URL - url = "/constants/putNoModelAsStringNoRequiredOneValueDefault" + _url = "/constants/putNoModelAsStringNoRequiredOneValueDefault" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if input is not None: - query_parameters['input'] = _SERIALIZER.query("input", input, 'str') + _query_parameters['input'] = _SERIALIZER.query("input", input, 'str') return HttpRequest( method="PUT", - url=url, - params=query_parameters, + url=_url, + params=_query_parameters, **kwargs ) @@ -191,16 +191,16 @@ def build_put_no_model_as_string_required_two_value_no_default_request( input = kwargs.pop('input') # type: str # Construct URL - url = "/constants/putNoModelAsStringRequiredTwoValueNoDefault" + _url = "/constants/putNoModelAsStringRequiredTwoValueNoDefault" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['input'] = _SERIALIZER.query("input", input, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['input'] = _SERIALIZER.query("input", input, 'str') return HttpRequest( method="PUT", - url=url, - params=query_parameters, + url=_url, + params=_query_parameters, **kwargs ) @@ -227,16 +227,16 @@ def build_put_no_model_as_string_required_two_value_default_request( input = kwargs.pop('input', "value1") # type: str # Construct URL - url = "/constants/putNoModelAsStringRequiredTwoValueDefault" + _url = "/constants/putNoModelAsStringRequiredTwoValueDefault" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['input'] = _SERIALIZER.query("input", input, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['input'] = _SERIALIZER.query("input", input, 'str') return HttpRequest( method="PUT", - url=url, - params=query_parameters, + url=_url, + params=_query_parameters, **kwargs ) @@ -264,16 +264,16 @@ def build_put_no_model_as_string_required_one_value_no_default_request( input = kwargs.pop('input', "value1") # type: str # Construct URL - url = "/constants/putNoModelAsStringRequiredOneValueNoDefault" + _url = "/constants/putNoModelAsStringRequiredOneValueNoDefault" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['input'] = _SERIALIZER.query("input", input, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['input'] = _SERIALIZER.query("input", input, 'str') return HttpRequest( method="PUT", - url=url, - params=query_parameters, + url=_url, + params=_query_parameters, **kwargs ) @@ -301,16 +301,16 @@ def build_put_no_model_as_string_required_one_value_default_request( input = kwargs.pop('input', "value1") # type: str # Construct URL - url = "/constants/putNoModelAsStringRequiredOneValueDefault" + _url = "/constants/putNoModelAsStringRequiredOneValueDefault" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['input'] = _SERIALIZER.query("input", input, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['input'] = _SERIALIZER.query("input", input, 'str') return HttpRequest( method="PUT", - url=url, - params=query_parameters, + url=_url, + params=_query_parameters, **kwargs ) @@ -337,17 +337,17 @@ def build_put_model_as_string_no_required_two_value_no_default_request( input = kwargs.pop('input', None) # type: Optional[str] # Construct URL - url = "/constants/putModelAsStringNoRequiredTwoValueNoDefault" + _url = "/constants/putModelAsStringNoRequiredTwoValueNoDefault" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if input is not None: - query_parameters['input'] = _SERIALIZER.query("input", input, 'str') + _query_parameters['input'] = _SERIALIZER.query("input", input, 'str') return HttpRequest( method="PUT", - url=url, - params=query_parameters, + url=_url, + params=_query_parameters, **kwargs ) @@ -374,17 +374,17 @@ def build_put_model_as_string_no_required_two_value_default_request( input = kwargs.pop('input', "value1") # type: Optional[str] # Construct URL - url = "/constants/putModelAsStringNoRequiredTwoValueDefault" + _url = "/constants/putModelAsStringNoRequiredTwoValueDefault" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if input is not None: - query_parameters['input'] = _SERIALIZER.query("input", input, 'str') + _query_parameters['input'] = _SERIALIZER.query("input", input, 'str') return HttpRequest( method="PUT", - url=url, - params=query_parameters, + url=_url, + params=_query_parameters, **kwargs ) @@ -411,17 +411,17 @@ def build_put_model_as_string_no_required_one_value_no_default_request( input = kwargs.pop('input', None) # type: Optional[str] # Construct URL - url = "/constants/putModelAsStringNoRequiredOneValueNoDefault" + _url = "/constants/putModelAsStringNoRequiredOneValueNoDefault" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if input is not None: - query_parameters['input'] = _SERIALIZER.query("input", input, 'str') + _query_parameters['input'] = _SERIALIZER.query("input", input, 'str') return HttpRequest( method="PUT", - url=url, - params=query_parameters, + url=_url, + params=_query_parameters, **kwargs ) @@ -448,17 +448,17 @@ def build_put_model_as_string_no_required_one_value_default_request( input = kwargs.pop('input', "value1") # type: Optional[str] # Construct URL - url = "/constants/putModelAsStringNoRequiredOneValueDefault" + _url = "/constants/putModelAsStringNoRequiredOneValueDefault" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if input is not None: - query_parameters['input'] = _SERIALIZER.query("input", input, 'str') + _query_parameters['input'] = _SERIALIZER.query("input", input, 'str') return HttpRequest( method="PUT", - url=url, - params=query_parameters, + url=_url, + params=_query_parameters, **kwargs ) @@ -485,16 +485,16 @@ def build_put_model_as_string_required_two_value_no_default_request( input = kwargs.pop('input') # type: str # Construct URL - url = "/constants/putModelAsStringRequiredTwoValueNoDefault" + _url = "/constants/putModelAsStringRequiredTwoValueNoDefault" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['input'] = _SERIALIZER.query("input", input, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['input'] = _SERIALIZER.query("input", input, 'str') return HttpRequest( method="PUT", - url=url, - params=query_parameters, + url=_url, + params=_query_parameters, **kwargs ) @@ -521,16 +521,16 @@ def build_put_model_as_string_required_two_value_default_request( input = kwargs.pop('input', "value1") # type: str # Construct URL - url = "/constants/putModelAsStringRequiredTwoValueDefault" + _url = "/constants/putModelAsStringRequiredTwoValueDefault" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['input'] = _SERIALIZER.query("input", input, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['input'] = _SERIALIZER.query("input", input, 'str') return HttpRequest( method="PUT", - url=url, - params=query_parameters, + url=_url, + params=_query_parameters, **kwargs ) @@ -557,16 +557,16 @@ def build_put_model_as_string_required_one_value_no_default_request( input = kwargs.pop('input') # type: str # Construct URL - url = "/constants/putModelAsStringRequiredOneValueNoDefault" + _url = "/constants/putModelAsStringRequiredOneValueNoDefault" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['input'] = _SERIALIZER.query("input", input, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['input'] = _SERIALIZER.query("input", input, 'str') return HttpRequest( method="PUT", - url=url, - params=query_parameters, + url=_url, + params=_query_parameters, **kwargs ) @@ -593,16 +593,16 @@ def build_put_model_as_string_required_one_value_default_request( input = kwargs.pop('input', "value1") # type: str # Construct URL - url = "/constants/putModelAsStringRequiredOneValueDefault" + _url = "/constants/putModelAsStringRequiredOneValueDefault" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['input'] = _SERIALIZER.query("input", input, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['input'] = _SERIALIZER.query("input", input, 'str') return HttpRequest( method="PUT", - url=url, - params=query_parameters, + url=_url, + params=_query_parameters, **kwargs ) @@ -628,25 +628,25 @@ def build_put_client_constants_request( path_constant = kwargs.pop('path_constant', "path") # type: str # Construct URL - url = "/constants/clientConstants/{path-constant}" + _url = "/constants/clientConstants/{path-constant}" path_format_arguments = { "path-constant": _SERIALIZER.url("path_constant", path_constant, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['query-constant'] = _SERIALIZER.query("query_constant", query_constant, 'int') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['query-constant'] = _SERIALIZER.query("query_constant", query_constant, 'int') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['header-constant'] = _SERIALIZER.header("header_constant", header_constant, 'bool') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['header-constant'] = _SERIALIZER.header("header_constant", header_constant, 'bool') return HttpRequest( method="PUT", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/ConstantsLowLevel/constantslowlevel/rest/contants/_request_builders_py3.py b/test/vanilla/low-level/Expected/AcceptanceTests/ConstantsLowLevel/constantslowlevel/rest/contants/_request_builders_py3.py index f47bbc0389a..7f598ba0887 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/ConstantsLowLevel/constantslowlevel/rest/contants/_request_builders_py3.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/ConstantsLowLevel/constantslowlevel/rest/contants/_request_builders_py3.py @@ -35,14 +35,14 @@ def build_put_no_model_as_string_no_required_two_value_no_default_request( """ # Construct URL - url = "/constants/putNoModelAsStringNoRequiredTwoValueNoDefault" + _url = "/constants/putNoModelAsStringNoRequiredTwoValueNoDefault" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if input is not None: - query_parameters["input"] = _SERIALIZER.query("input", input, "str") + _query_parameters["input"] = _SERIALIZER.query("input", input, "str") - return HttpRequest(method="PUT", url=url, params=query_parameters, **kwargs) + return HttpRequest(method="PUT", url=_url, params=_query_parameters, **kwargs) def build_put_no_model_as_string_no_required_two_value_default_request( @@ -64,14 +64,14 @@ def build_put_no_model_as_string_no_required_two_value_default_request( """ # Construct URL - url = "/constants/putNoModelAsStringNoRequiredTwoValueDefault" + _url = "/constants/putNoModelAsStringNoRequiredTwoValueDefault" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if input is not None: - query_parameters["input"] = _SERIALIZER.query("input", input, "str") + _query_parameters["input"] = _SERIALIZER.query("input", input, "str") - return HttpRequest(method="PUT", url=url, params=query_parameters, **kwargs) + return HttpRequest(method="PUT", url=_url, params=_query_parameters, **kwargs) def build_put_no_model_as_string_no_required_one_value_no_default_request( @@ -93,14 +93,14 @@ def build_put_no_model_as_string_no_required_one_value_no_default_request( """ # Construct URL - url = "/constants/putNoModelAsStringNoRequiredOneValueNoDefault" + _url = "/constants/putNoModelAsStringNoRequiredOneValueNoDefault" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if input is not None: - query_parameters["input"] = _SERIALIZER.query("input", input, "str") + _query_parameters["input"] = _SERIALIZER.query("input", input, "str") - return HttpRequest(method="PUT", url=url, params=query_parameters, **kwargs) + return HttpRequest(method="PUT", url=_url, params=_query_parameters, **kwargs) def build_put_no_model_as_string_no_required_one_value_default_request( @@ -122,14 +122,14 @@ def build_put_no_model_as_string_no_required_one_value_default_request( """ # Construct URL - url = "/constants/putNoModelAsStringNoRequiredOneValueDefault" + _url = "/constants/putNoModelAsStringNoRequiredOneValueDefault" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if input is not None: - query_parameters["input"] = _SERIALIZER.query("input", input, "str") + _query_parameters["input"] = _SERIALIZER.query("input", input, "str") - return HttpRequest(method="PUT", url=url, params=query_parameters, **kwargs) + return HttpRequest(method="PUT", url=_url, params=_query_parameters, **kwargs) def build_put_no_model_as_string_required_two_value_no_default_request(*, input: str, **kwargs: Any) -> HttpRequest: @@ -149,13 +149,13 @@ def build_put_no_model_as_string_required_two_value_no_default_request(*, input: """ # Construct URL - url = "/constants/putNoModelAsStringRequiredTwoValueNoDefault" + _url = "/constants/putNoModelAsStringRequiredTwoValueNoDefault" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["input"] = _SERIALIZER.query("input", input, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["input"] = _SERIALIZER.query("input", input, "str") - return HttpRequest(method="PUT", url=url, params=query_parameters, **kwargs) + return HttpRequest(method="PUT", url=_url, params=_query_parameters, **kwargs) def build_put_no_model_as_string_required_two_value_default_request( @@ -177,13 +177,13 @@ def build_put_no_model_as_string_required_two_value_default_request( """ # Construct URL - url = "/constants/putNoModelAsStringRequiredTwoValueDefault" + _url = "/constants/putNoModelAsStringRequiredTwoValueDefault" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["input"] = _SERIALIZER.query("input", input, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["input"] = _SERIALIZER.query("input", input, "str") - return HttpRequest(method="PUT", url=url, params=query_parameters, **kwargs) + return HttpRequest(method="PUT", url=_url, params=_query_parameters, **kwargs) def build_put_no_model_as_string_required_one_value_no_default_request(**kwargs: Any) -> HttpRequest: @@ -206,13 +206,13 @@ def build_put_no_model_as_string_required_one_value_no_default_request(**kwargs: input = kwargs.pop("input", "value1") # type: str # Construct URL - url = "/constants/putNoModelAsStringRequiredOneValueNoDefault" + _url = "/constants/putNoModelAsStringRequiredOneValueNoDefault" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["input"] = _SERIALIZER.query("input", input, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["input"] = _SERIALIZER.query("input", input, "str") - return HttpRequest(method="PUT", url=url, params=query_parameters, **kwargs) + return HttpRequest(method="PUT", url=_url, params=_query_parameters, **kwargs) def build_put_no_model_as_string_required_one_value_default_request(**kwargs: Any) -> HttpRequest: @@ -235,13 +235,13 @@ def build_put_no_model_as_string_required_one_value_default_request(**kwargs: An input = kwargs.pop("input", "value1") # type: str # Construct URL - url = "/constants/putNoModelAsStringRequiredOneValueDefault" + _url = "/constants/putNoModelAsStringRequiredOneValueDefault" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["input"] = _SERIALIZER.query("input", input, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["input"] = _SERIALIZER.query("input", input, "str") - return HttpRequest(method="PUT", url=url, params=query_parameters, **kwargs) + return HttpRequest(method="PUT", url=_url, params=_query_parameters, **kwargs) def build_put_model_as_string_no_required_two_value_no_default_request( @@ -263,14 +263,14 @@ def build_put_model_as_string_no_required_two_value_no_default_request( """ # Construct URL - url = "/constants/putModelAsStringNoRequiredTwoValueNoDefault" + _url = "/constants/putModelAsStringNoRequiredTwoValueNoDefault" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if input is not None: - query_parameters["input"] = _SERIALIZER.query("input", input, "str") + _query_parameters["input"] = _SERIALIZER.query("input", input, "str") - return HttpRequest(method="PUT", url=url, params=query_parameters, **kwargs) + return HttpRequest(method="PUT", url=_url, params=_query_parameters, **kwargs) def build_put_model_as_string_no_required_two_value_default_request( @@ -292,14 +292,14 @@ def build_put_model_as_string_no_required_two_value_default_request( """ # Construct URL - url = "/constants/putModelAsStringNoRequiredTwoValueDefault" + _url = "/constants/putModelAsStringNoRequiredTwoValueDefault" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if input is not None: - query_parameters["input"] = _SERIALIZER.query("input", input, "str") + _query_parameters["input"] = _SERIALIZER.query("input", input, "str") - return HttpRequest(method="PUT", url=url, params=query_parameters, **kwargs) + return HttpRequest(method="PUT", url=_url, params=_query_parameters, **kwargs) def build_put_model_as_string_no_required_one_value_no_default_request( @@ -321,14 +321,14 @@ def build_put_model_as_string_no_required_one_value_no_default_request( """ # Construct URL - url = "/constants/putModelAsStringNoRequiredOneValueNoDefault" + _url = "/constants/putModelAsStringNoRequiredOneValueNoDefault" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if input is not None: - query_parameters["input"] = _SERIALIZER.query("input", input, "str") + _query_parameters["input"] = _SERIALIZER.query("input", input, "str") - return HttpRequest(method="PUT", url=url, params=query_parameters, **kwargs) + return HttpRequest(method="PUT", url=_url, params=_query_parameters, **kwargs) def build_put_model_as_string_no_required_one_value_default_request( @@ -350,14 +350,14 @@ def build_put_model_as_string_no_required_one_value_default_request( """ # Construct URL - url = "/constants/putModelAsStringNoRequiredOneValueDefault" + _url = "/constants/putModelAsStringNoRequiredOneValueDefault" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if input is not None: - query_parameters["input"] = _SERIALIZER.query("input", input, "str") + _query_parameters["input"] = _SERIALIZER.query("input", input, "str") - return HttpRequest(method="PUT", url=url, params=query_parameters, **kwargs) + return HttpRequest(method="PUT", url=_url, params=_query_parameters, **kwargs) def build_put_model_as_string_required_two_value_no_default_request(*, input: str, **kwargs: Any) -> HttpRequest: @@ -377,13 +377,13 @@ def build_put_model_as_string_required_two_value_no_default_request(*, input: st """ # Construct URL - url = "/constants/putModelAsStringRequiredTwoValueNoDefault" + _url = "/constants/putModelAsStringRequiredTwoValueNoDefault" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["input"] = _SERIALIZER.query("input", input, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["input"] = _SERIALIZER.query("input", input, "str") - return HttpRequest(method="PUT", url=url, params=query_parameters, **kwargs) + return HttpRequest(method="PUT", url=_url, params=_query_parameters, **kwargs) def build_put_model_as_string_required_two_value_default_request( @@ -405,13 +405,13 @@ def build_put_model_as_string_required_two_value_default_request( """ # Construct URL - url = "/constants/putModelAsStringRequiredTwoValueDefault" + _url = "/constants/putModelAsStringRequiredTwoValueDefault" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["input"] = _SERIALIZER.query("input", input, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["input"] = _SERIALIZER.query("input", input, "str") - return HttpRequest(method="PUT", url=url, params=query_parameters, **kwargs) + return HttpRequest(method="PUT", url=_url, params=_query_parameters, **kwargs) def build_put_model_as_string_required_one_value_no_default_request(*, input: str, **kwargs: Any) -> HttpRequest: @@ -431,13 +431,13 @@ def build_put_model_as_string_required_one_value_no_default_request(*, input: st """ # Construct URL - url = "/constants/putModelAsStringRequiredOneValueNoDefault" + _url = "/constants/putModelAsStringRequiredOneValueNoDefault" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["input"] = _SERIALIZER.query("input", input, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["input"] = _SERIALIZER.query("input", input, "str") - return HttpRequest(method="PUT", url=url, params=query_parameters, **kwargs) + return HttpRequest(method="PUT", url=_url, params=_query_parameters, **kwargs) def build_put_model_as_string_required_one_value_default_request( @@ -459,13 +459,13 @@ def build_put_model_as_string_required_one_value_default_request( """ # Construct URL - url = "/constants/putModelAsStringRequiredOneValueDefault" + _url = "/constants/putModelAsStringRequiredOneValueDefault" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["input"] = _SERIALIZER.query("input", input, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["input"] = _SERIALIZER.query("input", input, "str") - return HttpRequest(method="PUT", url=url, params=query_parameters, **kwargs) + return HttpRequest(method="PUT", url=_url, params=_query_parameters, **kwargs) def build_put_client_constants_request(**kwargs: Any) -> HttpRequest: @@ -486,19 +486,19 @@ def build_put_client_constants_request(**kwargs: Any) -> HttpRequest: path_constant = kwargs.pop("path_constant", "path") # type: str # Construct URL - url = "/constants/clientConstants/{path-constant}" + _url = "/constants/clientConstants/{path-constant}" path_format_arguments = { "path-constant": _SERIALIZER.url("path_constant", path_constant, "str"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["query-constant"] = _SERIALIZER.query("query_constant", query_constant, "int") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["query-constant"] = _SERIALIZER.query("query_constant", query_constant, "int") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["header-constant"] = _SERIALIZER.header("header_constant", header_constant, "bool") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["header-constant"] = _SERIALIZER.header("header_constant", header_constant, "bool") - return HttpRequest(method="PUT", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="PUT", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/CustomBaseUriLowLevel/custombaseurllowlevel/rest/paths/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/CustomBaseUriLowLevel/custombaseurllowlevel/rest/paths/_request_builders.py index e0c223d0f9d..51746c8b6ca 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/CustomBaseUriLowLevel/custombaseurllowlevel/rest/paths/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/CustomBaseUriLowLevel/custombaseurllowlevel/rest/paths/_request_builders.py @@ -35,15 +35,15 @@ def build_get_empty_request( accept = "application/json" # Construct URL - url = "/customuri" + _url = "/customuri" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/CustomBaseUriLowLevel/custombaseurllowlevel/rest/paths/_request_builders_py3.py b/test/vanilla/low-level/Expected/AcceptanceTests/CustomBaseUriLowLevel/custombaseurllowlevel/rest/paths/_request_builders_py3.py index 728ef604371..dfe3bc8f74f 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/CustomBaseUriLowLevel/custombaseurllowlevel/rest/paths/_request_builders_py3.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/CustomBaseUriLowLevel/custombaseurllowlevel/rest/paths/_request_builders_py3.py @@ -27,10 +27,10 @@ def build_get_empty_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/customuri" + _url = "/customuri" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/CustomBaseUriMoreOptionsLowLevel/custombaseurlmoreoptionslowlevel/rest/paths/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/CustomBaseUriMoreOptionsLowLevel/custombaseurlmoreoptionslowlevel/rest/paths/_request_builders.py index e3b476291f3..0263bc18d3c 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/CustomBaseUriMoreOptionsLowLevel/custombaseurlmoreoptionslowlevel/rest/paths/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/CustomBaseUriMoreOptionsLowLevel/custombaseurlmoreoptionslowlevel/rest/paths/_request_builders.py @@ -48,27 +48,27 @@ def build_get_empty_request( accept = "application/json" # Construct URL - url = "/customuri/{subscriptionId}/{keyName}" + _url = "/customuri/{subscriptionId}/{keyName}" path_format_arguments = { "keyName": _SERIALIZER.url("key_name", key_name, 'str'), "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if key_version is not None: - query_parameters['keyVersion'] = _SERIALIZER.query("key_version", key_version, 'str') + _query_parameters['keyVersion'] = _SERIALIZER.query("key_version", key_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/CustomBaseUriMoreOptionsLowLevel/custombaseurlmoreoptionslowlevel/rest/paths/_request_builders_py3.py b/test/vanilla/low-level/Expected/AcceptanceTests/CustomBaseUriMoreOptionsLowLevel/custombaseurlmoreoptionslowlevel/rest/paths/_request_builders_py3.py index 93c7133e6ee..19736c873c9 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/CustomBaseUriMoreOptionsLowLevel/custombaseurlmoreoptionslowlevel/rest/paths/_request_builders_py3.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/CustomBaseUriMoreOptionsLowLevel/custombaseurlmoreoptionslowlevel/rest/paths/_request_builders_py3.py @@ -38,21 +38,21 @@ def build_get_empty_request( accept = "application/json" # Construct URL - url = "/customuri/{subscriptionId}/{keyName}" + _url = "/customuri/{subscriptionId}/{keyName}" path_format_arguments = { "keyName": _SERIALIZER.url("key_name", key_name, "str"), "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if key_version is not None: - query_parameters["keyVersion"] = _SERIALIZER.query("key_version", key_version, "str") + _query_parameters["keyVersion"] = _SERIALIZER.query("key_version", key_version, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/ExtensibleEnumsLowLevel/extensibleenumsswaggerlowlevel/rest/pet/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/ExtensibleEnumsLowLevel/extensibleenumsswaggerlowlevel/rest/pet/_request_builders.py index 32c105d1ab1..90661a2c2da 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/ExtensibleEnumsLowLevel/extensibleenumsswaggerlowlevel/rest/pet/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/ExtensibleEnumsLowLevel/extensibleenumsswaggerlowlevel/rest/pet/_request_builders.py @@ -56,21 +56,21 @@ def build_get_by_pet_id_request( accept = "application/json" # Construct URL - url = "/extensibleenums/pet/{petId}" + _url = "/extensibleenums/pet/{petId}" path_format_arguments = { "petId": _SERIALIZER.url("pet_id", pet_id, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -121,17 +121,17 @@ def build_add_pet_request( accept = "application/json" # Construct URL - url = "/extensibleenums/pet/addPet" + _url = "/extensibleenums/pet/addPet" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/ExtensibleEnumsLowLevel/extensibleenumsswaggerlowlevel/rest/pet/_request_builders_py3.py b/test/vanilla/low-level/Expected/AcceptanceTests/ExtensibleEnumsLowLevel/extensibleenumsswaggerlowlevel/rest/pet/_request_builders_py3.py index a2c1f0a2dc3..feca6bcc607 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/ExtensibleEnumsLowLevel/extensibleenumsswaggerlowlevel/rest/pet/_request_builders_py3.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/ExtensibleEnumsLowLevel/extensibleenumsswaggerlowlevel/rest/pet/_request_builders_py3.py @@ -47,18 +47,18 @@ def build_get_by_pet_id_request(pet_id: str, **kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/extensibleenums/pet/{petId}" + _url = "/extensibleenums/pet/{petId}" path_format_arguments = { "petId": _SERIALIZER.url("pet_id", pet_id, "str"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_add_pet_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -104,12 +104,12 @@ def build_add_pet_request(*, json: JSONType = None, content: Any = None, **kwarg accept = "application/json" # Construct URL - url = "/extensibleenums/pet/addPet" + _url = "/extensibleenums/pet/addPet" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/HeaderLowLevel/headerlowlevel/rest/header/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/HeaderLowLevel/headerlowlevel/rest/header/_request_builders.py index 22bb34d289e..d681a475d48 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/HeaderLowLevel/headerlowlevel/rest/header/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/HeaderLowLevel/headerlowlevel/rest/header/_request_builders.py @@ -41,17 +41,17 @@ def build_param_existing_key_request( accept = "application/json" # Construct URL - url = "/header/param/existingkey" + _url = "/header/param/existingkey" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['User-Agent'] = _SERIALIZER.header("user_agent_parameter", user_agent_parameter, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['User-Agent'] = _SERIALIZER.header("user_agent_parameter", user_agent_parameter, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -73,16 +73,16 @@ def build_response_existing_key_request( accept = "application/json" # Construct URL - url = "/header/response/existingkey" + _url = "/header/response/existingkey" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -106,17 +106,17 @@ def build_param_protected_key_request( accept = "application/json" # Construct URL - url = "/header/param/protectedkey" + _url = "/header/param/protectedkey" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -138,16 +138,16 @@ def build_response_protected_key_request( accept = "application/json" # Construct URL - url = "/header/response/protectedkey" + _url = "/header/response/protectedkey" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -177,18 +177,18 @@ def build_param_integer_request( accept = "application/json" # Construct URL - url = "/header/param/prim/integer" + _url = "/header/param/prim/integer" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['scenario'] = _SERIALIZER.header("scenario", scenario, 'str') - header_parameters['value'] = _SERIALIZER.header("value", value, 'int') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['scenario'] = _SERIALIZER.header("scenario", scenario, 'str') + _header_parameters['value'] = _SERIALIZER.header("value", value, 'int') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -214,17 +214,17 @@ def build_response_integer_request( accept = "application/json" # Construct URL - url = "/header/response/prim/integer" + _url = "/header/response/prim/integer" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['scenario'] = _SERIALIZER.header("scenario", scenario, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['scenario'] = _SERIALIZER.header("scenario", scenario, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -254,18 +254,18 @@ def build_param_long_request( accept = "application/json" # Construct URL - url = "/header/param/prim/long" + _url = "/header/param/prim/long" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['scenario'] = _SERIALIZER.header("scenario", scenario, 'str') - header_parameters['value'] = _SERIALIZER.header("value", value, 'long') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['scenario'] = _SERIALIZER.header("scenario", scenario, 'str') + _header_parameters['value'] = _SERIALIZER.header("value", value, 'long') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -291,17 +291,17 @@ def build_response_long_request( accept = "application/json" # Construct URL - url = "/header/response/prim/long" + _url = "/header/response/prim/long" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['scenario'] = _SERIALIZER.header("scenario", scenario, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['scenario'] = _SERIALIZER.header("scenario", scenario, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -331,18 +331,18 @@ def build_param_float_request( accept = "application/json" # Construct URL - url = "/header/param/prim/float" + _url = "/header/param/prim/float" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['scenario'] = _SERIALIZER.header("scenario", scenario, 'str') - header_parameters['value'] = _SERIALIZER.header("value", value, 'float') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['scenario'] = _SERIALIZER.header("scenario", scenario, 'str') + _header_parameters['value'] = _SERIALIZER.header("value", value, 'float') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -368,17 +368,17 @@ def build_response_float_request( accept = "application/json" # Construct URL - url = "/header/response/prim/float" + _url = "/header/response/prim/float" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['scenario'] = _SERIALIZER.header("scenario", scenario, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['scenario'] = _SERIALIZER.header("scenario", scenario, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -408,18 +408,18 @@ def build_param_double_request( accept = "application/json" # Construct URL - url = "/header/param/prim/double" + _url = "/header/param/prim/double" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['scenario'] = _SERIALIZER.header("scenario", scenario, 'str') - header_parameters['value'] = _SERIALIZER.header("value", value, 'float') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['scenario'] = _SERIALIZER.header("scenario", scenario, 'str') + _header_parameters['value'] = _SERIALIZER.header("value", value, 'float') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -445,17 +445,17 @@ def build_response_double_request( accept = "application/json" # Construct URL - url = "/header/response/prim/double" + _url = "/header/response/prim/double" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['scenario'] = _SERIALIZER.header("scenario", scenario, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['scenario'] = _SERIALIZER.header("scenario", scenario, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -485,18 +485,18 @@ def build_param_bool_request( accept = "application/json" # Construct URL - url = "/header/param/prim/bool" + _url = "/header/param/prim/bool" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['scenario'] = _SERIALIZER.header("scenario", scenario, 'str') - header_parameters['value'] = _SERIALIZER.header("value", value, 'bool') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['scenario'] = _SERIALIZER.header("scenario", scenario, 'str') + _header_parameters['value'] = _SERIALIZER.header("value", value, 'bool') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -522,17 +522,17 @@ def build_response_bool_request( accept = "application/json" # Construct URL - url = "/header/response/prim/bool" + _url = "/header/response/prim/bool" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['scenario'] = _SERIALIZER.header("scenario", scenario, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['scenario'] = _SERIALIZER.header("scenario", scenario, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -564,19 +564,19 @@ def build_param_string_request( accept = "application/json" # Construct URL - url = "/header/param/prim/string" + _url = "/header/param/prim/string" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['scenario'] = _SERIALIZER.header("scenario", scenario, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['scenario'] = _SERIALIZER.header("scenario", scenario, 'str') if value is not None: - header_parameters['value'] = _SERIALIZER.header("value", value, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['value'] = _SERIALIZER.header("value", value, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -603,17 +603,17 @@ def build_response_string_request( accept = "application/json" # Construct URL - url = "/header/response/prim/string" + _url = "/header/response/prim/string" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['scenario'] = _SERIALIZER.header("scenario", scenario, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['scenario'] = _SERIALIZER.header("scenario", scenario, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -643,18 +643,18 @@ def build_param_date_request( accept = "application/json" # Construct URL - url = "/header/param/prim/date" + _url = "/header/param/prim/date" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['scenario'] = _SERIALIZER.header("scenario", scenario, 'str') - header_parameters['value'] = _SERIALIZER.header("value", value, 'date') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['scenario'] = _SERIALIZER.header("scenario", scenario, 'str') + _header_parameters['value'] = _SERIALIZER.header("value", value, 'date') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -680,17 +680,17 @@ def build_response_date_request( accept = "application/json" # Construct URL - url = "/header/response/prim/date" + _url = "/header/response/prim/date" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['scenario'] = _SERIALIZER.header("scenario", scenario, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['scenario'] = _SERIALIZER.header("scenario", scenario, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -721,18 +721,18 @@ def build_param_datetime_request( accept = "application/json" # Construct URL - url = "/header/param/prim/datetime" + _url = "/header/param/prim/datetime" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['scenario'] = _SERIALIZER.header("scenario", scenario, 'str') - header_parameters['value'] = _SERIALIZER.header("value", value, 'iso-8601') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['scenario'] = _SERIALIZER.header("scenario", scenario, 'str') + _header_parameters['value'] = _SERIALIZER.header("value", value, 'iso-8601') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -758,17 +758,17 @@ def build_response_datetime_request( accept = "application/json" # Construct URL - url = "/header/response/prim/datetime" + _url = "/header/response/prim/datetime" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['scenario'] = _SERIALIZER.header("scenario", scenario, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['scenario'] = _SERIALIZER.header("scenario", scenario, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -799,19 +799,19 @@ def build_param_datetime_rfc1123_request( accept = "application/json" # Construct URL - url = "/header/param/prim/datetimerfc1123" + _url = "/header/param/prim/datetimerfc1123" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['scenario'] = _SERIALIZER.header("scenario", scenario, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['scenario'] = _SERIALIZER.header("scenario", scenario, 'str') if value is not None: - header_parameters['value'] = _SERIALIZER.header("value", value, 'rfc-1123') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['value'] = _SERIALIZER.header("value", value, 'rfc-1123') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -838,17 +838,17 @@ def build_response_datetime_rfc1123_request( accept = "application/json" # Construct URL - url = "/header/response/prim/datetimerfc1123" + _url = "/header/response/prim/datetimerfc1123" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['scenario'] = _SERIALIZER.header("scenario", scenario, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['scenario'] = _SERIALIZER.header("scenario", scenario, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -877,18 +877,18 @@ def build_param_duration_request( accept = "application/json" # Construct URL - url = "/header/param/prim/duration" + _url = "/header/param/prim/duration" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['scenario'] = _SERIALIZER.header("scenario", scenario, 'str') - header_parameters['value'] = _SERIALIZER.header("value", value, 'duration') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['scenario'] = _SERIALIZER.header("scenario", scenario, 'str') + _header_parameters['value'] = _SERIALIZER.header("value", value, 'duration') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -914,17 +914,17 @@ def build_response_duration_request( accept = "application/json" # Construct URL - url = "/header/response/prim/duration" + _url = "/header/response/prim/duration" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['scenario'] = _SERIALIZER.header("scenario", scenario, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['scenario'] = _SERIALIZER.header("scenario", scenario, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -953,18 +953,18 @@ def build_param_byte_request( accept = "application/json" # Construct URL - url = "/header/param/prim/byte" + _url = "/header/param/prim/byte" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['scenario'] = _SERIALIZER.header("scenario", scenario, 'str') - header_parameters['value'] = _SERIALIZER.header("value", value, 'bytearray') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['scenario'] = _SERIALIZER.header("scenario", scenario, 'str') + _header_parameters['value'] = _SERIALIZER.header("value", value, 'bytearray') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -990,17 +990,17 @@ def build_response_byte_request( accept = "application/json" # Construct URL - url = "/header/response/prim/byte" + _url = "/header/response/prim/byte" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['scenario'] = _SERIALIZER.header("scenario", scenario, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['scenario'] = _SERIALIZER.header("scenario", scenario, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1032,19 +1032,19 @@ def build_param_enum_request( accept = "application/json" # Construct URL - url = "/header/param/prim/enum" + _url = "/header/param/prim/enum" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['scenario'] = _SERIALIZER.header("scenario", scenario, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['scenario'] = _SERIALIZER.header("scenario", scenario, 'str') if value is not None: - header_parameters['value'] = _SERIALIZER.header("value", value, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['value'] = _SERIALIZER.header("value", value, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1071,17 +1071,17 @@ def build_response_enum_request( accept = "application/json" # Construct URL - url = "/header/response/prim/enum" + _url = "/header/response/prim/enum" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['scenario'] = _SERIALIZER.header("scenario", scenario, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['scenario'] = _SERIALIZER.header("scenario", scenario, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1104,15 +1104,15 @@ def build_custom_request_id_request( accept = "application/json" # Construct URL - url = "/header/custom/x-ms-client-request-id/9C4D50EE-2D56-4CD3-8152-34347DC9F2B0" + _url = "/header/custom/x-ms-client-request-id/9C4D50EE-2D56-4CD3-8152-34347DC9F2B0" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/HeaderLowLevel/headerlowlevel/rest/header/_request_builders_py3.py b/test/vanilla/low-level/Expected/AcceptanceTests/HeaderLowLevel/headerlowlevel/rest/header/_request_builders_py3.py index 857c44c5319..8fc5220eddf 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/HeaderLowLevel/headerlowlevel/rest/header/_request_builders_py3.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/HeaderLowLevel/headerlowlevel/rest/header/_request_builders_py3.py @@ -31,14 +31,14 @@ def build_param_existing_key_request(*, user_agent_parameter: str, **kwargs: Any accept = "application/json" # Construct URL - url = "/header/param/existingkey" + _url = "/header/param/existingkey" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["User-Agent"] = _SERIALIZER.header("user_agent_parameter", user_agent_parameter, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["User-Agent"] = _SERIALIZER.header("user_agent_parameter", user_agent_parameter, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) def build_response_existing_key_request(**kwargs: Any) -> HttpRequest: @@ -55,13 +55,13 @@ def build_response_existing_key_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/header/response/existingkey" + _url = "/header/response/existingkey" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) def build_param_protected_key_request(**kwargs: Any) -> HttpRequest: @@ -80,14 +80,14 @@ def build_param_protected_key_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/header/param/protectedkey" + _url = "/header/param/protectedkey" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) def build_response_protected_key_request(**kwargs: Any) -> HttpRequest: @@ -104,13 +104,13 @@ def build_response_protected_key_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/header/response/protectedkey" + _url = "/header/response/protectedkey" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) def build_param_integer_request(*, scenario: str, value: int, **kwargs: Any) -> HttpRequest: @@ -132,15 +132,15 @@ def build_param_integer_request(*, scenario: str, value: int, **kwargs: Any) -> accept = "application/json" # Construct URL - url = "/header/param/prim/integer" + _url = "/header/param/prim/integer" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["scenario"] = _SERIALIZER.header("scenario", scenario, "str") - header_parameters["value"] = _SERIALIZER.header("value", value, "int") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["scenario"] = _SERIALIZER.header("scenario", scenario, "str") + _header_parameters["value"] = _SERIALIZER.header("value", value, "int") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) def build_response_integer_request(*, scenario: str, **kwargs: Any) -> HttpRequest: @@ -159,14 +159,14 @@ def build_response_integer_request(*, scenario: str, **kwargs: Any) -> HttpReque accept = "application/json" # Construct URL - url = "/header/response/prim/integer" + _url = "/header/response/prim/integer" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["scenario"] = _SERIALIZER.header("scenario", scenario, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["scenario"] = _SERIALIZER.header("scenario", scenario, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) def build_param_long_request(*, scenario: str, value: int, **kwargs: Any) -> HttpRequest: @@ -188,15 +188,15 @@ def build_param_long_request(*, scenario: str, value: int, **kwargs: Any) -> Htt accept = "application/json" # Construct URL - url = "/header/param/prim/long" + _url = "/header/param/prim/long" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["scenario"] = _SERIALIZER.header("scenario", scenario, "str") - header_parameters["value"] = _SERIALIZER.header("value", value, "long") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["scenario"] = _SERIALIZER.header("scenario", scenario, "str") + _header_parameters["value"] = _SERIALIZER.header("value", value, "long") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) def build_response_long_request(*, scenario: str, **kwargs: Any) -> HttpRequest: @@ -215,14 +215,14 @@ def build_response_long_request(*, scenario: str, **kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/header/response/prim/long" + _url = "/header/response/prim/long" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["scenario"] = _SERIALIZER.header("scenario", scenario, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["scenario"] = _SERIALIZER.header("scenario", scenario, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) def build_param_float_request(*, scenario: str, value: float, **kwargs: Any) -> HttpRequest: @@ -244,15 +244,15 @@ def build_param_float_request(*, scenario: str, value: float, **kwargs: Any) -> accept = "application/json" # Construct URL - url = "/header/param/prim/float" + _url = "/header/param/prim/float" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["scenario"] = _SERIALIZER.header("scenario", scenario, "str") - header_parameters["value"] = _SERIALIZER.header("value", value, "float") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["scenario"] = _SERIALIZER.header("scenario", scenario, "str") + _header_parameters["value"] = _SERIALIZER.header("value", value, "float") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) def build_response_float_request(*, scenario: str, **kwargs: Any) -> HttpRequest: @@ -271,14 +271,14 @@ def build_response_float_request(*, scenario: str, **kwargs: Any) -> HttpRequest accept = "application/json" # Construct URL - url = "/header/response/prim/float" + _url = "/header/response/prim/float" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["scenario"] = _SERIALIZER.header("scenario", scenario, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["scenario"] = _SERIALIZER.header("scenario", scenario, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) def build_param_double_request(*, scenario: str, value: float, **kwargs: Any) -> HttpRequest: @@ -300,15 +300,15 @@ def build_param_double_request(*, scenario: str, value: float, **kwargs: Any) -> accept = "application/json" # Construct URL - url = "/header/param/prim/double" + _url = "/header/param/prim/double" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["scenario"] = _SERIALIZER.header("scenario", scenario, "str") - header_parameters["value"] = _SERIALIZER.header("value", value, "float") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["scenario"] = _SERIALIZER.header("scenario", scenario, "str") + _header_parameters["value"] = _SERIALIZER.header("value", value, "float") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) def build_response_double_request(*, scenario: str, **kwargs: Any) -> HttpRequest: @@ -327,14 +327,14 @@ def build_response_double_request(*, scenario: str, **kwargs: Any) -> HttpReques accept = "application/json" # Construct URL - url = "/header/response/prim/double" + _url = "/header/response/prim/double" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["scenario"] = _SERIALIZER.header("scenario", scenario, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["scenario"] = _SERIALIZER.header("scenario", scenario, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) def build_param_bool_request(*, scenario: str, value: bool, **kwargs: Any) -> HttpRequest: @@ -356,15 +356,15 @@ def build_param_bool_request(*, scenario: str, value: bool, **kwargs: Any) -> Ht accept = "application/json" # Construct URL - url = "/header/param/prim/bool" + _url = "/header/param/prim/bool" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["scenario"] = _SERIALIZER.header("scenario", scenario, "str") - header_parameters["value"] = _SERIALIZER.header("value", value, "bool") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["scenario"] = _SERIALIZER.header("scenario", scenario, "str") + _header_parameters["value"] = _SERIALIZER.header("value", value, "bool") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) def build_response_bool_request(*, scenario: str, **kwargs: Any) -> HttpRequest: @@ -383,14 +383,14 @@ def build_response_bool_request(*, scenario: str, **kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/header/response/prim/bool" + _url = "/header/response/prim/bool" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["scenario"] = _SERIALIZER.header("scenario", scenario, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["scenario"] = _SERIALIZER.header("scenario", scenario, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) def build_param_string_request(*, scenario: str, value: Optional[str] = None, **kwargs: Any) -> HttpRequest: @@ -414,16 +414,16 @@ def build_param_string_request(*, scenario: str, value: Optional[str] = None, ** accept = "application/json" # Construct URL - url = "/header/param/prim/string" + _url = "/header/param/prim/string" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["scenario"] = _SERIALIZER.header("scenario", scenario, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["scenario"] = _SERIALIZER.header("scenario", scenario, "str") if value is not None: - header_parameters["value"] = _SERIALIZER.header("value", value, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["value"] = _SERIALIZER.header("value", value, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) def build_response_string_request(*, scenario: str, **kwargs: Any) -> HttpRequest: @@ -443,14 +443,14 @@ def build_response_string_request(*, scenario: str, **kwargs: Any) -> HttpReques accept = "application/json" # Construct URL - url = "/header/response/prim/string" + _url = "/header/response/prim/string" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["scenario"] = _SERIALIZER.header("scenario", scenario, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["scenario"] = _SERIALIZER.header("scenario", scenario, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) def build_param_date_request(*, scenario: str, value: datetime.date, **kwargs: Any) -> HttpRequest: @@ -472,15 +472,15 @@ def build_param_date_request(*, scenario: str, value: datetime.date, **kwargs: A accept = "application/json" # Construct URL - url = "/header/param/prim/date" + _url = "/header/param/prim/date" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["scenario"] = _SERIALIZER.header("scenario", scenario, "str") - header_parameters["value"] = _SERIALIZER.header("value", value, "date") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["scenario"] = _SERIALIZER.header("scenario", scenario, "str") + _header_parameters["value"] = _SERIALIZER.header("value", value, "date") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) def build_response_date_request(*, scenario: str, **kwargs: Any) -> HttpRequest: @@ -499,14 +499,14 @@ def build_response_date_request(*, scenario: str, **kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/header/response/prim/date" + _url = "/header/response/prim/date" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["scenario"] = _SERIALIZER.header("scenario", scenario, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["scenario"] = _SERIALIZER.header("scenario", scenario, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) def build_param_datetime_request(*, scenario: str, value: datetime.datetime, **kwargs: Any) -> HttpRequest: @@ -529,15 +529,15 @@ def build_param_datetime_request(*, scenario: str, value: datetime.datetime, **k accept = "application/json" # Construct URL - url = "/header/param/prim/datetime" + _url = "/header/param/prim/datetime" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["scenario"] = _SERIALIZER.header("scenario", scenario, "str") - header_parameters["value"] = _SERIALIZER.header("value", value, "iso-8601") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["scenario"] = _SERIALIZER.header("scenario", scenario, "str") + _header_parameters["value"] = _SERIALIZER.header("value", value, "iso-8601") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) def build_response_datetime_request(*, scenario: str, **kwargs: Any) -> HttpRequest: @@ -556,14 +556,14 @@ def build_response_datetime_request(*, scenario: str, **kwargs: Any) -> HttpRequ accept = "application/json" # Construct URL - url = "/header/response/prim/datetime" + _url = "/header/response/prim/datetime" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["scenario"] = _SERIALIZER.header("scenario", scenario, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["scenario"] = _SERIALIZER.header("scenario", scenario, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) def build_param_datetime_rfc1123_request( @@ -588,16 +588,16 @@ def build_param_datetime_rfc1123_request( accept = "application/json" # Construct URL - url = "/header/param/prim/datetimerfc1123" + _url = "/header/param/prim/datetimerfc1123" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["scenario"] = _SERIALIZER.header("scenario", scenario, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["scenario"] = _SERIALIZER.header("scenario", scenario, "str") if value is not None: - header_parameters["value"] = _SERIALIZER.header("value", value, "rfc-1123") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["value"] = _SERIALIZER.header("value", value, "rfc-1123") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) def build_response_datetime_rfc1123_request(*, scenario: str, **kwargs: Any) -> HttpRequest: @@ -617,14 +617,14 @@ def build_response_datetime_rfc1123_request(*, scenario: str, **kwargs: Any) -> accept = "application/json" # Construct URL - url = "/header/response/prim/datetimerfc1123" + _url = "/header/response/prim/datetimerfc1123" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["scenario"] = _SERIALIZER.header("scenario", scenario, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["scenario"] = _SERIALIZER.header("scenario", scenario, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) def build_param_duration_request(*, scenario: str, value: datetime.timedelta, **kwargs: Any) -> HttpRequest: @@ -645,15 +645,15 @@ def build_param_duration_request(*, scenario: str, value: datetime.timedelta, ** accept = "application/json" # Construct URL - url = "/header/param/prim/duration" + _url = "/header/param/prim/duration" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["scenario"] = _SERIALIZER.header("scenario", scenario, "str") - header_parameters["value"] = _SERIALIZER.header("value", value, "duration") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["scenario"] = _SERIALIZER.header("scenario", scenario, "str") + _header_parameters["value"] = _SERIALIZER.header("value", value, "duration") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) def build_response_duration_request(*, scenario: str, **kwargs: Any) -> HttpRequest: @@ -672,14 +672,14 @@ def build_response_duration_request(*, scenario: str, **kwargs: Any) -> HttpRequ accept = "application/json" # Construct URL - url = "/header/response/prim/duration" + _url = "/header/response/prim/duration" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["scenario"] = _SERIALIZER.header("scenario", scenario, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["scenario"] = _SERIALIZER.header("scenario", scenario, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) def build_param_byte_request(*, scenario: str, value: bytearray, **kwargs: Any) -> HttpRequest: @@ -700,15 +700,15 @@ def build_param_byte_request(*, scenario: str, value: bytearray, **kwargs: Any) accept = "application/json" # Construct URL - url = "/header/param/prim/byte" + _url = "/header/param/prim/byte" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["scenario"] = _SERIALIZER.header("scenario", scenario, "str") - header_parameters["value"] = _SERIALIZER.header("value", value, "bytearray") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["scenario"] = _SERIALIZER.header("scenario", scenario, "str") + _header_parameters["value"] = _SERIALIZER.header("value", value, "bytearray") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) def build_response_byte_request(*, scenario: str, **kwargs: Any) -> HttpRequest: @@ -727,14 +727,14 @@ def build_response_byte_request(*, scenario: str, **kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/header/response/prim/byte" + _url = "/header/response/prim/byte" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["scenario"] = _SERIALIZER.header("scenario", scenario, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["scenario"] = _SERIALIZER.header("scenario", scenario, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) def build_param_enum_request(*, scenario: str, value: Optional[str] = None, **kwargs: Any) -> HttpRequest: @@ -758,16 +758,16 @@ def build_param_enum_request(*, scenario: str, value: Optional[str] = None, **kw accept = "application/json" # Construct URL - url = "/header/param/prim/enum" + _url = "/header/param/prim/enum" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["scenario"] = _SERIALIZER.header("scenario", scenario, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["scenario"] = _SERIALIZER.header("scenario", scenario, "str") if value is not None: - header_parameters["value"] = _SERIALIZER.header("value", value, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["value"] = _SERIALIZER.header("value", value, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) def build_response_enum_request(*, scenario: str, **kwargs: Any) -> HttpRequest: @@ -787,14 +787,14 @@ def build_response_enum_request(*, scenario: str, **kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/header/response/prim/enum" + _url = "/header/response/prim/enum" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["scenario"] = _SERIALIZER.header("scenario", scenario, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["scenario"] = _SERIALIZER.header("scenario", scenario, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) def build_custom_request_id_request(**kwargs: Any) -> HttpRequest: @@ -812,10 +812,10 @@ def build_custom_request_id_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/header/custom/x-ms-client-request-id/9C4D50EE-2D56-4CD3-8152-34347DC9F2B0" + _url = "/header/custom/x-ms-client-request-id/9C4D50EE-2D56-4CD3-8152-34347DC9F2B0" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/httpinfrastructurelowlevel/rest/http_client_failure/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/httpinfrastructurelowlevel/rest/http_client_failure/_request_builders.py index b9350442780..1ef8f866783 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/httpinfrastructurelowlevel/rest/http_client_failure/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/httpinfrastructurelowlevel/rest/http_client_failure/_request_builders.py @@ -39,16 +39,16 @@ def build_head400_request( accept = "application/json" # Construct URL - url = "/http/failure/client/400" + _url = "/http/failure/client/400" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="HEAD", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -70,16 +70,16 @@ def build_get400_request( accept = "application/json" # Construct URL - url = "/http/failure/client/400" + _url = "/http/failure/client/400" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -101,16 +101,16 @@ def build_options400_request( accept = "application/json" # Construct URL - url = "/http/failure/client/400" + _url = "/http/failure/client/400" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="OPTIONS", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -146,18 +146,18 @@ def build_put400_request( accept = "application/json" # Construct URL - url = "/http/failure/client/400" + _url = "/http/failure/client/400" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -193,18 +193,18 @@ def build_patch400_request( accept = "application/json" # Construct URL - url = "/http/failure/client/400" + _url = "/http/failure/client/400" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PATCH", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -240,18 +240,18 @@ def build_post400_request( accept = "application/json" # Construct URL - url = "/http/failure/client/400" + _url = "/http/failure/client/400" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -287,18 +287,18 @@ def build_delete400_request( accept = "application/json" # Construct URL - url = "/http/failure/client/400" + _url = "/http/failure/client/400" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="DELETE", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -320,16 +320,16 @@ def build_head401_request( accept = "application/json" # Construct URL - url = "/http/failure/client/401" + _url = "/http/failure/client/401" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="HEAD", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -351,16 +351,16 @@ def build_get402_request( accept = "application/json" # Construct URL - url = "/http/failure/client/402" + _url = "/http/failure/client/402" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -382,16 +382,16 @@ def build_options403_request( accept = "application/json" # Construct URL - url = "/http/failure/client/403" + _url = "/http/failure/client/403" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="OPTIONS", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -413,16 +413,16 @@ def build_get403_request( accept = "application/json" # Construct URL - url = "/http/failure/client/403" + _url = "/http/failure/client/403" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -458,18 +458,18 @@ def build_put404_request( accept = "application/json" # Construct URL - url = "/http/failure/client/404" + _url = "/http/failure/client/404" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -505,18 +505,18 @@ def build_patch405_request( accept = "application/json" # Construct URL - url = "/http/failure/client/405" + _url = "/http/failure/client/405" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PATCH", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -552,18 +552,18 @@ def build_post406_request( accept = "application/json" # Construct URL - url = "/http/failure/client/406" + _url = "/http/failure/client/406" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -599,18 +599,18 @@ def build_delete407_request( accept = "application/json" # Construct URL - url = "/http/failure/client/407" + _url = "/http/failure/client/407" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="DELETE", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -646,18 +646,18 @@ def build_put409_request( accept = "application/json" # Construct URL - url = "/http/failure/client/409" + _url = "/http/failure/client/409" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -679,16 +679,16 @@ def build_head410_request( accept = "application/json" # Construct URL - url = "/http/failure/client/410" + _url = "/http/failure/client/410" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="HEAD", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -710,16 +710,16 @@ def build_get411_request( accept = "application/json" # Construct URL - url = "/http/failure/client/411" + _url = "/http/failure/client/411" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -741,16 +741,16 @@ def build_options412_request( accept = "application/json" # Construct URL - url = "/http/failure/client/412" + _url = "/http/failure/client/412" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="OPTIONS", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -772,16 +772,16 @@ def build_get412_request( accept = "application/json" # Construct URL - url = "/http/failure/client/412" + _url = "/http/failure/client/412" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -817,18 +817,18 @@ def build_put413_request( accept = "application/json" # Construct URL - url = "/http/failure/client/413" + _url = "/http/failure/client/413" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -864,18 +864,18 @@ def build_patch414_request( accept = "application/json" # Construct URL - url = "/http/failure/client/414" + _url = "/http/failure/client/414" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PATCH", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -911,18 +911,18 @@ def build_post415_request( accept = "application/json" # Construct URL - url = "/http/failure/client/415" + _url = "/http/failure/client/415" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -944,16 +944,16 @@ def build_get416_request( accept = "application/json" # Construct URL - url = "/http/failure/client/416" + _url = "/http/failure/client/416" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -989,18 +989,18 @@ def build_delete417_request( accept = "application/json" # Construct URL - url = "/http/failure/client/417" + _url = "/http/failure/client/417" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="DELETE", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1022,15 +1022,15 @@ def build_head429_request( accept = "application/json" # Construct URL - url = "/http/failure/client/429" + _url = "/http/failure/client/429" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="HEAD", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/httpinfrastructurelowlevel/rest/http_client_failure/_request_builders_py3.py b/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/httpinfrastructurelowlevel/rest/http_client_failure/_request_builders_py3.py index a94b38d301d..54848ec4891 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/httpinfrastructurelowlevel/rest/http_client_failure/_request_builders_py3.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/httpinfrastructurelowlevel/rest/http_client_failure/_request_builders_py3.py @@ -31,13 +31,13 @@ def build_head400_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/failure/client/400" + _url = "/http/failure/client/400" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="HEAD", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="HEAD", url=_url, headers=_header_parameters, **kwargs) def build_get400_request(**kwargs: Any) -> HttpRequest: @@ -54,13 +54,13 @@ def build_get400_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/failure/client/400" + _url = "/http/failure/client/400" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_options400_request(**kwargs: Any) -> HttpRequest: @@ -77,13 +77,13 @@ def build_options400_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/failure/client/400" + _url = "/http/failure/client/400" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="OPTIONS", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="OPTIONS", url=_url, headers=_header_parameters, **kwargs) def build_put400_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -114,15 +114,15 @@ def build_put400_request(*, json: JSONType = None, content: Any = None, **kwargs accept = "application/json" # Construct URL - url = "/http/failure/client/400" + _url = "/http/failure/client/400" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_patch400_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -153,15 +153,15 @@ def build_patch400_request(*, json: JSONType = None, content: Any = None, **kwar accept = "application/json" # Construct URL - url = "/http/failure/client/400" + _url = "/http/failure/client/400" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PATCH", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PATCH", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_post400_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -192,15 +192,15 @@ def build_post400_request(*, json: JSONType = None, content: Any = None, **kwarg accept = "application/json" # Construct URL - url = "/http/failure/client/400" + _url = "/http/failure/client/400" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_delete400_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -231,15 +231,15 @@ def build_delete400_request(*, json: JSONType = None, content: Any = None, **kwa accept = "application/json" # Construct URL - url = "/http/failure/client/400" + _url = "/http/failure/client/400" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="DELETE", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="DELETE", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_head401_request(**kwargs: Any) -> HttpRequest: @@ -256,13 +256,13 @@ def build_head401_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/failure/client/401" + _url = "/http/failure/client/401" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="HEAD", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="HEAD", url=_url, headers=_header_parameters, **kwargs) def build_get402_request(**kwargs: Any) -> HttpRequest: @@ -279,13 +279,13 @@ def build_get402_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/failure/client/402" + _url = "/http/failure/client/402" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_options403_request(**kwargs: Any) -> HttpRequest: @@ -302,13 +302,13 @@ def build_options403_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/failure/client/403" + _url = "/http/failure/client/403" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="OPTIONS", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="OPTIONS", url=_url, headers=_header_parameters, **kwargs) def build_get403_request(**kwargs: Any) -> HttpRequest: @@ -325,13 +325,13 @@ def build_get403_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/failure/client/403" + _url = "/http/failure/client/403" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put404_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -362,15 +362,15 @@ def build_put404_request(*, json: JSONType = None, content: Any = None, **kwargs accept = "application/json" # Construct URL - url = "/http/failure/client/404" + _url = "/http/failure/client/404" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_patch405_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -401,15 +401,15 @@ def build_patch405_request(*, json: JSONType = None, content: Any = None, **kwar accept = "application/json" # Construct URL - url = "/http/failure/client/405" + _url = "/http/failure/client/405" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PATCH", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PATCH", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_post406_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -440,15 +440,15 @@ def build_post406_request(*, json: JSONType = None, content: Any = None, **kwarg accept = "application/json" # Construct URL - url = "/http/failure/client/406" + _url = "/http/failure/client/406" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_delete407_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -479,15 +479,15 @@ def build_delete407_request(*, json: JSONType = None, content: Any = None, **kwa accept = "application/json" # Construct URL - url = "/http/failure/client/407" + _url = "/http/failure/client/407" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="DELETE", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="DELETE", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_put409_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -518,15 +518,15 @@ def build_put409_request(*, json: JSONType = None, content: Any = None, **kwargs accept = "application/json" # Construct URL - url = "/http/failure/client/409" + _url = "/http/failure/client/409" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_head410_request(**kwargs: Any) -> HttpRequest: @@ -543,13 +543,13 @@ def build_head410_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/failure/client/410" + _url = "/http/failure/client/410" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="HEAD", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="HEAD", url=_url, headers=_header_parameters, **kwargs) def build_get411_request(**kwargs: Any) -> HttpRequest: @@ -566,13 +566,13 @@ def build_get411_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/failure/client/411" + _url = "/http/failure/client/411" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_options412_request(**kwargs: Any) -> HttpRequest: @@ -589,13 +589,13 @@ def build_options412_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/failure/client/412" + _url = "/http/failure/client/412" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="OPTIONS", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="OPTIONS", url=_url, headers=_header_parameters, **kwargs) def build_get412_request(**kwargs: Any) -> HttpRequest: @@ -612,13 +612,13 @@ def build_get412_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/failure/client/412" + _url = "/http/failure/client/412" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put413_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -649,15 +649,15 @@ def build_put413_request(*, json: JSONType = None, content: Any = None, **kwargs accept = "application/json" # Construct URL - url = "/http/failure/client/413" + _url = "/http/failure/client/413" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_patch414_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -688,15 +688,15 @@ def build_patch414_request(*, json: JSONType = None, content: Any = None, **kwar accept = "application/json" # Construct URL - url = "/http/failure/client/414" + _url = "/http/failure/client/414" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PATCH", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PATCH", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_post415_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -727,15 +727,15 @@ def build_post415_request(*, json: JSONType = None, content: Any = None, **kwarg accept = "application/json" # Construct URL - url = "/http/failure/client/415" + _url = "/http/failure/client/415" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get416_request(**kwargs: Any) -> HttpRequest: @@ -752,13 +752,13 @@ def build_get416_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/failure/client/416" + _url = "/http/failure/client/416" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_delete417_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -789,15 +789,15 @@ def build_delete417_request(*, json: JSONType = None, content: Any = None, **kwa accept = "application/json" # Construct URL - url = "/http/failure/client/417" + _url = "/http/failure/client/417" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="DELETE", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="DELETE", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_head429_request(**kwargs: Any) -> HttpRequest: @@ -814,10 +814,10 @@ def build_head429_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/failure/client/429" + _url = "/http/failure/client/429" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="HEAD", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="HEAD", url=_url, headers=_header_parameters, **kwargs) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/httpinfrastructurelowlevel/rest/http_failure/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/httpinfrastructurelowlevel/rest/http_failure/_request_builders.py index a0893ae04d5..2ea39b78938 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/httpinfrastructurelowlevel/rest/http_failure/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/httpinfrastructurelowlevel/rest/http_failure/_request_builders.py @@ -36,16 +36,16 @@ def build_get_empty_error_request( accept = "application/json" # Construct URL - url = "/http/failure/emptybody/error" + _url = "/http/failure/emptybody/error" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -67,16 +67,16 @@ def build_get_no_model_error_request( accept = "application/json" # Construct URL - url = "/http/failure/nomodel/error" + _url = "/http/failure/nomodel/error" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -98,15 +98,15 @@ def build_get_no_model_empty_request( accept = "application/json" # Construct URL - url = "/http/failure/nomodel/empty" + _url = "/http/failure/nomodel/empty" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/httpinfrastructurelowlevel/rest/http_failure/_request_builders_py3.py b/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/httpinfrastructurelowlevel/rest/http_failure/_request_builders_py3.py index 078a09800b2..70710458555 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/httpinfrastructurelowlevel/rest/http_failure/_request_builders_py3.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/httpinfrastructurelowlevel/rest/http_failure/_request_builders_py3.py @@ -28,13 +28,13 @@ def build_get_empty_error_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/failure/emptybody/error" + _url = "/http/failure/emptybody/error" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_no_model_error_request(**kwargs: Any) -> HttpRequest: @@ -51,13 +51,13 @@ def build_get_no_model_error_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/failure/nomodel/error" + _url = "/http/failure/nomodel/error" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_no_model_empty_request(**kwargs: Any) -> HttpRequest: @@ -74,10 +74,10 @@ def build_get_no_model_empty_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/failure/nomodel/empty" + _url = "/http/failure/nomodel/empty" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/httpinfrastructurelowlevel/rest/http_redirects/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/httpinfrastructurelowlevel/rest/http_redirects/_request_builders.py index ecb8a8ee36d..c1b048ed74d 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/httpinfrastructurelowlevel/rest/http_redirects/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/httpinfrastructurelowlevel/rest/http_redirects/_request_builders.py @@ -39,16 +39,16 @@ def build_head300_request( accept = "application/json" # Construct URL - url = "/http/redirect/300" + _url = "/http/redirect/300" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="HEAD", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -78,16 +78,16 @@ def build_get300_request( accept = "application/json" # Construct URL - url = "/http/redirect/300" + _url = "/http/redirect/300" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -109,16 +109,16 @@ def build_head301_request( accept = "application/json" # Construct URL - url = "/http/redirect/301" + _url = "/http/redirect/301" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="HEAD", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -140,16 +140,16 @@ def build_get301_request( accept = "application/json" # Construct URL - url = "/http/redirect/301" + _url = "/http/redirect/301" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -186,18 +186,18 @@ def build_put301_request( accept = "application/json" # Construct URL - url = "/http/redirect/301" + _url = "/http/redirect/301" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -219,16 +219,16 @@ def build_head302_request( accept = "application/json" # Construct URL - url = "/http/redirect/302" + _url = "/http/redirect/302" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="HEAD", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -250,16 +250,16 @@ def build_get302_request( accept = "application/json" # Construct URL - url = "/http/redirect/302" + _url = "/http/redirect/302" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -296,18 +296,18 @@ def build_patch302_request( accept = "application/json" # Construct URL - url = "/http/redirect/302" + _url = "/http/redirect/302" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PATCH", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -344,18 +344,18 @@ def build_post303_request( accept = "application/json" # Construct URL - url = "/http/redirect/303" + _url = "/http/redirect/303" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -377,16 +377,16 @@ def build_head307_request( accept = "application/json" # Construct URL - url = "/http/redirect/307" + _url = "/http/redirect/307" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="HEAD", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -408,16 +408,16 @@ def build_get307_request( accept = "application/json" # Construct URL - url = "/http/redirect/307" + _url = "/http/redirect/307" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -439,16 +439,16 @@ def build_options307_request( accept = "application/json" # Construct URL - url = "/http/redirect/307" + _url = "/http/redirect/307" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="OPTIONS", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -484,18 +484,18 @@ def build_put307_request( accept = "application/json" # Construct URL - url = "/http/redirect/307" + _url = "/http/redirect/307" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -531,18 +531,18 @@ def build_patch307_request( accept = "application/json" # Construct URL - url = "/http/redirect/307" + _url = "/http/redirect/307" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PATCH", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -578,18 +578,18 @@ def build_post307_request( accept = "application/json" # Construct URL - url = "/http/redirect/307" + _url = "/http/redirect/307" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -625,17 +625,17 @@ def build_delete307_request( accept = "application/json" # Construct URL - url = "/http/redirect/307" + _url = "/http/redirect/307" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="DELETE", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/httpinfrastructurelowlevel/rest/http_redirects/_request_builders_py3.py b/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/httpinfrastructurelowlevel/rest/http_redirects/_request_builders_py3.py index daef0bb10f1..7a0ad6e9942 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/httpinfrastructurelowlevel/rest/http_redirects/_request_builders_py3.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/httpinfrastructurelowlevel/rest/http_redirects/_request_builders_py3.py @@ -31,13 +31,13 @@ def build_head300_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/redirect/300" + _url = "/http/redirect/300" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="HEAD", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="HEAD", url=_url, headers=_header_parameters, **kwargs) def build_get300_request(**kwargs: Any) -> HttpRequest: @@ -62,13 +62,13 @@ def build_get300_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/redirect/300" + _url = "/http/redirect/300" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_head301_request(**kwargs: Any) -> HttpRequest: @@ -85,13 +85,13 @@ def build_head301_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/redirect/301" + _url = "/http/redirect/301" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="HEAD", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="HEAD", url=_url, headers=_header_parameters, **kwargs) def build_get301_request(**kwargs: Any) -> HttpRequest: @@ -108,13 +108,13 @@ def build_get301_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/redirect/301" + _url = "/http/redirect/301" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put301_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -146,15 +146,15 @@ def build_put301_request(*, json: JSONType = None, content: Any = None, **kwargs accept = "application/json" # Construct URL - url = "/http/redirect/301" + _url = "/http/redirect/301" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_head302_request(**kwargs: Any) -> HttpRequest: @@ -171,13 +171,13 @@ def build_head302_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/redirect/302" + _url = "/http/redirect/302" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="HEAD", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="HEAD", url=_url, headers=_header_parameters, **kwargs) def build_get302_request(**kwargs: Any) -> HttpRequest: @@ -194,13 +194,13 @@ def build_get302_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/redirect/302" + _url = "/http/redirect/302" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_patch302_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -232,15 +232,15 @@ def build_patch302_request(*, json: JSONType = None, content: Any = None, **kwar accept = "application/json" # Construct URL - url = "/http/redirect/302" + _url = "/http/redirect/302" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PATCH", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PATCH", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_post303_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -272,15 +272,15 @@ def build_post303_request(*, json: JSONType = None, content: Any = None, **kwarg accept = "application/json" # Construct URL - url = "/http/redirect/303" + _url = "/http/redirect/303" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_head307_request(**kwargs: Any) -> HttpRequest: @@ -297,13 +297,13 @@ def build_head307_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/redirect/307" + _url = "/http/redirect/307" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="HEAD", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="HEAD", url=_url, headers=_header_parameters, **kwargs) def build_get307_request(**kwargs: Any) -> HttpRequest: @@ -320,13 +320,13 @@ def build_get307_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/redirect/307" + _url = "/http/redirect/307" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_options307_request(**kwargs: Any) -> HttpRequest: @@ -343,13 +343,13 @@ def build_options307_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/redirect/307" + _url = "/http/redirect/307" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="OPTIONS", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="OPTIONS", url=_url, headers=_header_parameters, **kwargs) def build_put307_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -380,15 +380,15 @@ def build_put307_request(*, json: JSONType = None, content: Any = None, **kwargs accept = "application/json" # Construct URL - url = "/http/redirect/307" + _url = "/http/redirect/307" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_patch307_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -419,15 +419,15 @@ def build_patch307_request(*, json: JSONType = None, content: Any = None, **kwar accept = "application/json" # Construct URL - url = "/http/redirect/307" + _url = "/http/redirect/307" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PATCH", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PATCH", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_post307_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -458,15 +458,15 @@ def build_post307_request(*, json: JSONType = None, content: Any = None, **kwarg accept = "application/json" # Construct URL - url = "/http/redirect/307" + _url = "/http/redirect/307" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_delete307_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -497,12 +497,12 @@ def build_delete307_request(*, json: JSONType = None, content: Any = None, **kwa accept = "application/json" # Construct URL - url = "/http/redirect/307" + _url = "/http/redirect/307" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="DELETE", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="DELETE", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/httpinfrastructurelowlevel/rest/http_retry/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/httpinfrastructurelowlevel/rest/http_retry/_request_builders.py index 7d7e37b4333..9ce175e7b22 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/httpinfrastructurelowlevel/rest/http_retry/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/httpinfrastructurelowlevel/rest/http_retry/_request_builders.py @@ -39,16 +39,16 @@ def build_head408_request( accept = "application/json" # Construct URL - url = "/http/retry/408" + _url = "/http/retry/408" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="HEAD", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -84,18 +84,18 @@ def build_put500_request( accept = "application/json" # Construct URL - url = "/http/retry/500" + _url = "/http/retry/500" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -131,18 +131,18 @@ def build_patch500_request( accept = "application/json" # Construct URL - url = "/http/retry/500" + _url = "/http/retry/500" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PATCH", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -164,16 +164,16 @@ def build_get502_request( accept = "application/json" # Construct URL - url = "/http/retry/502" + _url = "/http/retry/502" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -195,16 +195,16 @@ def build_options502_request( accept = "application/json" # Construct URL - url = "/http/retry/502" + _url = "/http/retry/502" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="OPTIONS", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -240,18 +240,18 @@ def build_post503_request( accept = "application/json" # Construct URL - url = "/http/retry/503" + _url = "/http/retry/503" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -287,18 +287,18 @@ def build_delete503_request( accept = "application/json" # Construct URL - url = "/http/retry/503" + _url = "/http/retry/503" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="DELETE", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -334,18 +334,18 @@ def build_put504_request( accept = "application/json" # Construct URL - url = "/http/retry/504" + _url = "/http/retry/504" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -381,17 +381,17 @@ def build_patch504_request( accept = "application/json" # Construct URL - url = "/http/retry/504" + _url = "/http/retry/504" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PATCH", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/httpinfrastructurelowlevel/rest/http_retry/_request_builders_py3.py b/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/httpinfrastructurelowlevel/rest/http_retry/_request_builders_py3.py index 7924e870310..fc53f1c9a95 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/httpinfrastructurelowlevel/rest/http_retry/_request_builders_py3.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/httpinfrastructurelowlevel/rest/http_retry/_request_builders_py3.py @@ -31,13 +31,13 @@ def build_head408_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/retry/408" + _url = "/http/retry/408" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="HEAD", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="HEAD", url=_url, headers=_header_parameters, **kwargs) def build_put500_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -68,15 +68,15 @@ def build_put500_request(*, json: JSONType = None, content: Any = None, **kwargs accept = "application/json" # Construct URL - url = "/http/retry/500" + _url = "/http/retry/500" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_patch500_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -107,15 +107,15 @@ def build_patch500_request(*, json: JSONType = None, content: Any = None, **kwar accept = "application/json" # Construct URL - url = "/http/retry/500" + _url = "/http/retry/500" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PATCH", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PATCH", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get502_request(**kwargs: Any) -> HttpRequest: @@ -132,13 +132,13 @@ def build_get502_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/retry/502" + _url = "/http/retry/502" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_options502_request(**kwargs: Any) -> HttpRequest: @@ -155,13 +155,13 @@ def build_options502_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/retry/502" + _url = "/http/retry/502" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="OPTIONS", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="OPTIONS", url=_url, headers=_header_parameters, **kwargs) def build_post503_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -192,15 +192,15 @@ def build_post503_request(*, json: JSONType = None, content: Any = None, **kwarg accept = "application/json" # Construct URL - url = "/http/retry/503" + _url = "/http/retry/503" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_delete503_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -231,15 +231,15 @@ def build_delete503_request(*, json: JSONType = None, content: Any = None, **kwa accept = "application/json" # Construct URL - url = "/http/retry/503" + _url = "/http/retry/503" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="DELETE", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="DELETE", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_put504_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -270,15 +270,15 @@ def build_put504_request(*, json: JSONType = None, content: Any = None, **kwargs accept = "application/json" # Construct URL - url = "/http/retry/504" + _url = "/http/retry/504" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_patch504_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -309,12 +309,12 @@ def build_patch504_request(*, json: JSONType = None, content: Any = None, **kwar accept = "application/json" # Construct URL - url = "/http/retry/504" + _url = "/http/retry/504" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PATCH", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PATCH", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/httpinfrastructurelowlevel/rest/http_server_failure/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/httpinfrastructurelowlevel/rest/http_server_failure/_request_builders.py index 9da21d470a1..44808159fff 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/httpinfrastructurelowlevel/rest/http_server_failure/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/httpinfrastructurelowlevel/rest/http_server_failure/_request_builders.py @@ -39,16 +39,16 @@ def build_head501_request( accept = "application/json" # Construct URL - url = "/http/failure/server/501" + _url = "/http/failure/server/501" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="HEAD", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -70,16 +70,16 @@ def build_get501_request( accept = "application/json" # Construct URL - url = "/http/failure/server/501" + _url = "/http/failure/server/501" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -115,18 +115,18 @@ def build_post505_request( accept = "application/json" # Construct URL - url = "/http/failure/server/505" + _url = "/http/failure/server/505" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -162,17 +162,17 @@ def build_delete505_request( accept = "application/json" # Construct URL - url = "/http/failure/server/505" + _url = "/http/failure/server/505" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="DELETE", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/httpinfrastructurelowlevel/rest/http_server_failure/_request_builders_py3.py b/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/httpinfrastructurelowlevel/rest/http_server_failure/_request_builders_py3.py index 97252af2eca..d3628320000 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/httpinfrastructurelowlevel/rest/http_server_failure/_request_builders_py3.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/httpinfrastructurelowlevel/rest/http_server_failure/_request_builders_py3.py @@ -31,13 +31,13 @@ def build_head501_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/failure/server/501" + _url = "/http/failure/server/501" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="HEAD", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="HEAD", url=_url, headers=_header_parameters, **kwargs) def build_get501_request(**kwargs: Any) -> HttpRequest: @@ -54,13 +54,13 @@ def build_get501_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/failure/server/501" + _url = "/http/failure/server/501" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_post505_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -91,15 +91,15 @@ def build_post505_request(*, json: JSONType = None, content: Any = None, **kwarg accept = "application/json" # Construct URL - url = "/http/failure/server/505" + _url = "/http/failure/server/505" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_delete505_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -130,12 +130,12 @@ def build_delete505_request(*, json: JSONType = None, content: Any = None, **kwa accept = "application/json" # Construct URL - url = "/http/failure/server/505" + _url = "/http/failure/server/505" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="DELETE", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="DELETE", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/httpinfrastructurelowlevel/rest/http_success/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/httpinfrastructurelowlevel/rest/http_success/_request_builders.py index 08d68d13d4a..b6747b5e733 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/httpinfrastructurelowlevel/rest/http_success/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/httpinfrastructurelowlevel/rest/http_success/_request_builders.py @@ -39,16 +39,16 @@ def build_head200_request( accept = "application/json" # Construct URL - url = "/http/success/200" + _url = "/http/success/200" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="HEAD", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -70,16 +70,16 @@ def build_get200_request( accept = "application/json" # Construct URL - url = "/http/success/200" + _url = "/http/success/200" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -101,16 +101,16 @@ def build_options200_request( accept = "application/json" # Construct URL - url = "/http/success/200" + _url = "/http/success/200" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="OPTIONS", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -146,18 +146,18 @@ def build_put200_request( accept = "application/json" # Construct URL - url = "/http/success/200" + _url = "/http/success/200" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -193,18 +193,18 @@ def build_patch200_request( accept = "application/json" # Construct URL - url = "/http/success/200" + _url = "/http/success/200" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PATCH", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -240,18 +240,18 @@ def build_post200_request( accept = "application/json" # Construct URL - url = "/http/success/200" + _url = "/http/success/200" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -287,18 +287,18 @@ def build_delete200_request( accept = "application/json" # Construct URL - url = "/http/success/200" + _url = "/http/success/200" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="DELETE", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -334,18 +334,18 @@ def build_put201_request( accept = "application/json" # Construct URL - url = "/http/success/201" + _url = "/http/success/201" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -381,18 +381,18 @@ def build_post201_request( accept = "application/json" # Construct URL - url = "/http/success/201" + _url = "/http/success/201" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -428,18 +428,18 @@ def build_put202_request( accept = "application/json" # Construct URL - url = "/http/success/202" + _url = "/http/success/202" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -475,18 +475,18 @@ def build_patch202_request( accept = "application/json" # Construct URL - url = "/http/success/202" + _url = "/http/success/202" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PATCH", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -522,18 +522,18 @@ def build_post202_request( accept = "application/json" # Construct URL - url = "/http/success/202" + _url = "/http/success/202" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -569,18 +569,18 @@ def build_delete202_request( accept = "application/json" # Construct URL - url = "/http/success/202" + _url = "/http/success/202" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="DELETE", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -602,16 +602,16 @@ def build_head204_request( accept = "application/json" # Construct URL - url = "/http/success/204" + _url = "/http/success/204" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="HEAD", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -647,18 +647,18 @@ def build_put204_request( accept = "application/json" # Construct URL - url = "/http/success/204" + _url = "/http/success/204" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -694,18 +694,18 @@ def build_patch204_request( accept = "application/json" # Construct URL - url = "/http/success/204" + _url = "/http/success/204" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PATCH", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -741,18 +741,18 @@ def build_post204_request( accept = "application/json" # Construct URL - url = "/http/success/204" + _url = "/http/success/204" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -788,18 +788,18 @@ def build_delete204_request( accept = "application/json" # Construct URL - url = "/http/success/204" + _url = "/http/success/204" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="DELETE", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -821,15 +821,15 @@ def build_head404_request( accept = "application/json" # Construct URL - url = "/http/success/404" + _url = "/http/success/404" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="HEAD", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/httpinfrastructurelowlevel/rest/http_success/_request_builders_py3.py b/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/httpinfrastructurelowlevel/rest/http_success/_request_builders_py3.py index a4eff06885d..3b7398c8c26 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/httpinfrastructurelowlevel/rest/http_success/_request_builders_py3.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/httpinfrastructurelowlevel/rest/http_success/_request_builders_py3.py @@ -31,13 +31,13 @@ def build_head200_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/success/200" + _url = "/http/success/200" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="HEAD", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="HEAD", url=_url, headers=_header_parameters, **kwargs) def build_get200_request(**kwargs: Any) -> HttpRequest: @@ -54,13 +54,13 @@ def build_get200_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/success/200" + _url = "/http/success/200" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_options200_request(**kwargs: Any) -> HttpRequest: @@ -77,13 +77,13 @@ def build_options200_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/success/200" + _url = "/http/success/200" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="OPTIONS", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="OPTIONS", url=_url, headers=_header_parameters, **kwargs) def build_put200_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -114,15 +114,15 @@ def build_put200_request(*, json: JSONType = None, content: Any = None, **kwargs accept = "application/json" # Construct URL - url = "/http/success/200" + _url = "/http/success/200" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_patch200_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -153,15 +153,15 @@ def build_patch200_request(*, json: JSONType = None, content: Any = None, **kwar accept = "application/json" # Construct URL - url = "/http/success/200" + _url = "/http/success/200" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PATCH", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PATCH", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_post200_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -192,15 +192,15 @@ def build_post200_request(*, json: JSONType = None, content: Any = None, **kwarg accept = "application/json" # Construct URL - url = "/http/success/200" + _url = "/http/success/200" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_delete200_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -231,15 +231,15 @@ def build_delete200_request(*, json: JSONType = None, content: Any = None, **kwa accept = "application/json" # Construct URL - url = "/http/success/200" + _url = "/http/success/200" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="DELETE", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="DELETE", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_put201_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -270,15 +270,15 @@ def build_put201_request(*, json: JSONType = None, content: Any = None, **kwargs accept = "application/json" # Construct URL - url = "/http/success/201" + _url = "/http/success/201" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_post201_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -309,15 +309,15 @@ def build_post201_request(*, json: JSONType = None, content: Any = None, **kwarg accept = "application/json" # Construct URL - url = "/http/success/201" + _url = "/http/success/201" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_put202_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -348,15 +348,15 @@ def build_put202_request(*, json: JSONType = None, content: Any = None, **kwargs accept = "application/json" # Construct URL - url = "/http/success/202" + _url = "/http/success/202" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_patch202_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -387,15 +387,15 @@ def build_patch202_request(*, json: JSONType = None, content: Any = None, **kwar accept = "application/json" # Construct URL - url = "/http/success/202" + _url = "/http/success/202" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PATCH", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PATCH", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_post202_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -426,15 +426,15 @@ def build_post202_request(*, json: JSONType = None, content: Any = None, **kwarg accept = "application/json" # Construct URL - url = "/http/success/202" + _url = "/http/success/202" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_delete202_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -465,15 +465,15 @@ def build_delete202_request(*, json: JSONType = None, content: Any = None, **kwa accept = "application/json" # Construct URL - url = "/http/success/202" + _url = "/http/success/202" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="DELETE", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="DELETE", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_head204_request(**kwargs: Any) -> HttpRequest: @@ -490,13 +490,13 @@ def build_head204_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/success/204" + _url = "/http/success/204" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="HEAD", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="HEAD", url=_url, headers=_header_parameters, **kwargs) def build_put204_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -527,15 +527,15 @@ def build_put204_request(*, json: JSONType = None, content: Any = None, **kwargs accept = "application/json" # Construct URL - url = "/http/success/204" + _url = "/http/success/204" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_patch204_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -566,15 +566,15 @@ def build_patch204_request(*, json: JSONType = None, content: Any = None, **kwar accept = "application/json" # Construct URL - url = "/http/success/204" + _url = "/http/success/204" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PATCH", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PATCH", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_post204_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -605,15 +605,15 @@ def build_post204_request(*, json: JSONType = None, content: Any = None, **kwarg accept = "application/json" # Construct URL - url = "/http/success/204" + _url = "/http/success/204" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_delete204_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -644,15 +644,15 @@ def build_delete204_request(*, json: JSONType = None, content: Any = None, **kwa accept = "application/json" # Construct URL - url = "/http/success/204" + _url = "/http/success/204" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="DELETE", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="DELETE", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_head404_request(**kwargs: Any) -> HttpRequest: @@ -669,10 +669,10 @@ def build_head404_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/success/404" + _url = "/http/success/404" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="HEAD", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="HEAD", url=_url, headers=_header_parameters, **kwargs) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/httpinfrastructurelowlevel/rest/multiple_responses/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/httpinfrastructurelowlevel/rest/multiple_responses/_request_builders.py index 62561def45f..04bac222197 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/httpinfrastructurelowlevel/rest/multiple_responses/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/httpinfrastructurelowlevel/rest/multiple_responses/_request_builders.py @@ -44,16 +44,16 @@ def build_get200_model204_no_model_default_error200_valid_request( accept = "application/json" # Construct URL - url = "/http/payloads/200/A/204/none/default/Error/response/200/valid" + _url = "/http/payloads/200/A/204/none/default/Error/response/200/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -83,16 +83,16 @@ def build_get200_model204_no_model_default_error204_valid_request( accept = "application/json" # Construct URL - url = "/http/payloads/200/A/204/none/default/Error/response/204/none" + _url = "/http/payloads/200/A/204/none/default/Error/response/204/none" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -122,16 +122,16 @@ def build_get200_model204_no_model_default_error201_invalid_request( accept = "application/json" # Construct URL - url = "/http/payloads/200/A/204/none/default/Error/response/201/valid" + _url = "/http/payloads/200/A/204/none/default/Error/response/201/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -161,16 +161,16 @@ def build_get200_model204_no_model_default_error202_none_request( accept = "application/json" # Construct URL - url = "/http/payloads/200/A/204/none/default/Error/response/202/none" + _url = "/http/payloads/200/A/204/none/default/Error/response/202/none" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -200,16 +200,16 @@ def build_get200_model204_no_model_default_error400_valid_request( accept = "application/json" # Construct URL - url = "/http/payloads/200/A/204/none/default/Error/response/400/valid" + _url = "/http/payloads/200/A/204/none/default/Error/response/400/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -244,16 +244,16 @@ def build_get200_model201_model_default_error200_valid_request( accept = "application/json" # Construct URL - url = "/http/payloads/200/A/201/B/default/Error/response/200/valid" + _url = "/http/payloads/200/A/201/B/default/Error/response/200/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -288,16 +288,16 @@ def build_get200_model201_model_default_error201_valid_request( accept = "application/json" # Construct URL - url = "/http/payloads/200/A/201/B/default/Error/response/201/valid" + _url = "/http/payloads/200/A/201/B/default/Error/response/201/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -332,16 +332,16 @@ def build_get200_model201_model_default_error400_valid_request( accept = "application/json" # Construct URL - url = "/http/payloads/200/A/201/B/default/Error/response/400/valid" + _url = "/http/payloads/200/A/201/B/default/Error/response/400/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -379,16 +379,16 @@ def build_get200_model_a201_model_c404_model_d_default_error200_valid_request( accept = "application/json" # Construct URL - url = "/http/payloads/200/A/201/C/404/D/default/Error/response/200/valid" + _url = "/http/payloads/200/A/201/C/404/D/default/Error/response/200/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -426,16 +426,16 @@ def build_get200_model_a201_model_c404_model_d_default_error201_valid_request( accept = "application/json" # Construct URL - url = "/http/payloads/200/A/201/C/404/D/default/Error/response/201/valid" + _url = "/http/payloads/200/A/201/C/404/D/default/Error/response/201/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -473,16 +473,16 @@ def build_get200_model_a201_model_c404_model_d_default_error404_valid_request( accept = "application/json" # Construct URL - url = "/http/payloads/200/A/201/C/404/D/default/Error/response/404/valid" + _url = "/http/payloads/200/A/201/C/404/D/default/Error/response/404/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -520,16 +520,16 @@ def build_get200_model_a201_model_c404_model_d_default_error400_valid_request( accept = "application/json" # Construct URL - url = "/http/payloads/200/A/201/C/404/D/default/Error/response/400/valid" + _url = "/http/payloads/200/A/201/C/404/D/default/Error/response/400/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -551,16 +551,16 @@ def build_get202_none204_none_default_error202_none_request( accept = "application/json" # Construct URL - url = "/http/payloads/202/none/204/none/default/Error/response/202/none" + _url = "/http/payloads/202/none/204/none/default/Error/response/202/none" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -582,16 +582,16 @@ def build_get202_none204_none_default_error204_none_request( accept = "application/json" # Construct URL - url = "/http/payloads/202/none/204/none/default/Error/response/204/none" + _url = "/http/payloads/202/none/204/none/default/Error/response/204/none" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -613,16 +613,16 @@ def build_get202_none204_none_default_error400_valid_request( accept = "application/json" # Construct URL - url = "/http/payloads/202/none/204/none/default/Error/response/400/valid" + _url = "/http/payloads/202/none/204/none/default/Error/response/400/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -643,11 +643,11 @@ def build_get202_none204_none_default_none202_invalid_request( """ # Construct URL - url = "/http/payloads/202/none/204/none/default/none/response/202/invalid" + _url = "/http/payloads/202/none/204/none/default/none/response/202/invalid" return HttpRequest( method="GET", - url=url, + url=_url, **kwargs ) @@ -668,11 +668,11 @@ def build_get202_none204_none_default_none204_none_request( """ # Construct URL - url = "/http/payloads/202/none/204/none/default/none/response/204/none" + _url = "/http/payloads/202/none/204/none/default/none/response/204/none" return HttpRequest( method="GET", - url=url, + url=_url, **kwargs ) @@ -693,11 +693,11 @@ def build_get202_none204_none_default_none400_none_request( """ # Construct URL - url = "/http/payloads/202/none/204/none/default/none/response/400/none" + _url = "/http/payloads/202/none/204/none/default/none/response/400/none" return HttpRequest( method="GET", - url=url, + url=_url, **kwargs ) @@ -718,11 +718,11 @@ def build_get202_none204_none_default_none400_invalid_request( """ # Construct URL - url = "/http/payloads/202/none/204/none/default/none/response/400/invalid" + _url = "/http/payloads/202/none/204/none/default/none/response/400/invalid" return HttpRequest( method="GET", - url=url, + url=_url, **kwargs ) @@ -752,16 +752,16 @@ def build_get_default_model_a200_valid_request( accept = "application/json" # Construct URL - url = "/http/payloads/default/A/response/200/valid" + _url = "/http/payloads/default/A/response/200/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -791,16 +791,16 @@ def build_get_default_model_a200_none_request( accept = "application/json" # Construct URL - url = "/http/payloads/default/A/response/200/none" + _url = "/http/payloads/default/A/response/200/none" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -822,16 +822,16 @@ def build_get_default_model_a400_valid_request( accept = "application/json" # Construct URL - url = "/http/payloads/default/A/response/400/valid" + _url = "/http/payloads/default/A/response/400/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -853,16 +853,16 @@ def build_get_default_model_a400_none_request( accept = "application/json" # Construct URL - url = "/http/payloads/default/A/response/400/none" + _url = "/http/payloads/default/A/response/400/none" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -883,11 +883,11 @@ def build_get_default_none200_invalid_request( """ # Construct URL - url = "/http/payloads/default/none/response/200/invalid" + _url = "/http/payloads/default/none/response/200/invalid" return HttpRequest( method="GET", - url=url, + url=_url, **kwargs ) @@ -908,11 +908,11 @@ def build_get_default_none200_none_request( """ # Construct URL - url = "/http/payloads/default/none/response/200/none" + _url = "/http/payloads/default/none/response/200/none" return HttpRequest( method="GET", - url=url, + url=_url, **kwargs ) @@ -933,11 +933,11 @@ def build_get_default_none400_invalid_request( """ # Construct URL - url = "/http/payloads/default/none/response/400/invalid" + _url = "/http/payloads/default/none/response/400/invalid" return HttpRequest( method="GET", - url=url, + url=_url, **kwargs ) @@ -958,11 +958,11 @@ def build_get_default_none400_none_request( """ # Construct URL - url = "/http/payloads/default/none/response/400/none" + _url = "/http/payloads/default/none/response/400/none" return HttpRequest( method="GET", - url=url, + url=_url, **kwargs ) @@ -993,16 +993,16 @@ def build_get200_model_a200_none_request( accept = "application/json" # Construct URL - url = "/http/payloads/200/A/response/200/none" + _url = "/http/payloads/200/A/response/200/none" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1032,16 +1032,16 @@ def build_get200_model_a200_valid_request( accept = "application/json" # Construct URL - url = "/http/payloads/200/A/response/200/valid" + _url = "/http/payloads/200/A/response/200/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1071,16 +1071,16 @@ def build_get200_model_a200_invalid_request( accept = "application/json" # Construct URL - url = "/http/payloads/200/A/response/200/invalid" + _url = "/http/payloads/200/A/response/200/invalid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1110,16 +1110,16 @@ def build_get200_model_a400_none_request( accept = "application/json" # Construct URL - url = "/http/payloads/200/A/response/400/none" + _url = "/http/payloads/200/A/response/400/none" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1149,16 +1149,16 @@ def build_get200_model_a400_valid_request( accept = "application/json" # Construct URL - url = "/http/payloads/200/A/response/400/valid" + _url = "/http/payloads/200/A/response/400/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1188,16 +1188,16 @@ def build_get200_model_a400_invalid_request( accept = "application/json" # Construct URL - url = "/http/payloads/200/A/response/400/invalid" + _url = "/http/payloads/200/A/response/400/invalid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1227,15 +1227,15 @@ def build_get200_model_a202_valid_request( accept = "application/json" # Construct URL - url = "/http/payloads/200/A/response/202/valid" + _url = "/http/payloads/200/A/response/202/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/httpinfrastructurelowlevel/rest/multiple_responses/_request_builders_py3.py b/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/httpinfrastructurelowlevel/rest/multiple_responses/_request_builders_py3.py index ae0ae62ba6c..321959503b1 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/httpinfrastructurelowlevel/rest/multiple_responses/_request_builders_py3.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/httpinfrastructurelowlevel/rest/multiple_responses/_request_builders_py3.py @@ -36,13 +36,13 @@ def build_get200_model204_no_model_default_error200_valid_request(**kwargs: Any) accept = "application/json" # Construct URL - url = "/http/payloads/200/A/204/none/default/Error/response/200/valid" + _url = "/http/payloads/200/A/204/none/default/Error/response/200/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get200_model204_no_model_default_error204_valid_request(**kwargs: Any) -> HttpRequest: @@ -67,13 +67,13 @@ def build_get200_model204_no_model_default_error204_valid_request(**kwargs: Any) accept = "application/json" # Construct URL - url = "/http/payloads/200/A/204/none/default/Error/response/204/none" + _url = "/http/payloads/200/A/204/none/default/Error/response/204/none" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get200_model204_no_model_default_error201_invalid_request(**kwargs: Any) -> HttpRequest: @@ -98,13 +98,13 @@ def build_get200_model204_no_model_default_error201_invalid_request(**kwargs: An accept = "application/json" # Construct URL - url = "/http/payloads/200/A/204/none/default/Error/response/201/valid" + _url = "/http/payloads/200/A/204/none/default/Error/response/201/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get200_model204_no_model_default_error202_none_request(**kwargs: Any) -> HttpRequest: @@ -129,13 +129,13 @@ def build_get200_model204_no_model_default_error202_none_request(**kwargs: Any) accept = "application/json" # Construct URL - url = "/http/payloads/200/A/204/none/default/Error/response/202/none" + _url = "/http/payloads/200/A/204/none/default/Error/response/202/none" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get200_model204_no_model_default_error400_valid_request(**kwargs: Any) -> HttpRequest: @@ -160,13 +160,13 @@ def build_get200_model204_no_model_default_error400_valid_request(**kwargs: Any) accept = "application/json" # Construct URL - url = "/http/payloads/200/A/204/none/default/Error/response/400/valid" + _url = "/http/payloads/200/A/204/none/default/Error/response/400/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get200_model201_model_default_error200_valid_request(**kwargs: Any) -> HttpRequest: @@ -196,13 +196,13 @@ def build_get200_model201_model_default_error200_valid_request(**kwargs: Any) -> accept = "application/json" # Construct URL - url = "/http/payloads/200/A/201/B/default/Error/response/200/valid" + _url = "/http/payloads/200/A/201/B/default/Error/response/200/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get200_model201_model_default_error201_valid_request(**kwargs: Any) -> HttpRequest: @@ -232,13 +232,13 @@ def build_get200_model201_model_default_error201_valid_request(**kwargs: Any) -> accept = "application/json" # Construct URL - url = "/http/payloads/200/A/201/B/default/Error/response/201/valid" + _url = "/http/payloads/200/A/201/B/default/Error/response/201/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get200_model201_model_default_error400_valid_request(**kwargs: Any) -> HttpRequest: @@ -268,13 +268,13 @@ def build_get200_model201_model_default_error400_valid_request(**kwargs: Any) -> accept = "application/json" # Construct URL - url = "/http/payloads/200/A/201/B/default/Error/response/400/valid" + _url = "/http/payloads/200/A/201/B/default/Error/response/400/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get200_model_a201_model_c404_model_d_default_error200_valid_request(**kwargs: Any) -> HttpRequest: @@ -307,13 +307,13 @@ def build_get200_model_a201_model_c404_model_d_default_error200_valid_request(** accept = "application/json" # Construct URL - url = "/http/payloads/200/A/201/C/404/D/default/Error/response/200/valid" + _url = "/http/payloads/200/A/201/C/404/D/default/Error/response/200/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get200_model_a201_model_c404_model_d_default_error201_valid_request(**kwargs: Any) -> HttpRequest: @@ -346,13 +346,13 @@ def build_get200_model_a201_model_c404_model_d_default_error201_valid_request(** accept = "application/json" # Construct URL - url = "/http/payloads/200/A/201/C/404/D/default/Error/response/201/valid" + _url = "/http/payloads/200/A/201/C/404/D/default/Error/response/201/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get200_model_a201_model_c404_model_d_default_error404_valid_request(**kwargs: Any) -> HttpRequest: @@ -385,13 +385,13 @@ def build_get200_model_a201_model_c404_model_d_default_error404_valid_request(** accept = "application/json" # Construct URL - url = "/http/payloads/200/A/201/C/404/D/default/Error/response/404/valid" + _url = "/http/payloads/200/A/201/C/404/D/default/Error/response/404/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get200_model_a201_model_c404_model_d_default_error400_valid_request(**kwargs: Any) -> HttpRequest: @@ -424,13 +424,13 @@ def build_get200_model_a201_model_c404_model_d_default_error400_valid_request(** accept = "application/json" # Construct URL - url = "/http/payloads/200/A/201/C/404/D/default/Error/response/400/valid" + _url = "/http/payloads/200/A/201/C/404/D/default/Error/response/400/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get202_none204_none_default_error202_none_request(**kwargs: Any) -> HttpRequest: @@ -447,13 +447,13 @@ def build_get202_none204_none_default_error202_none_request(**kwargs: Any) -> Ht accept = "application/json" # Construct URL - url = "/http/payloads/202/none/204/none/default/Error/response/202/none" + _url = "/http/payloads/202/none/204/none/default/Error/response/202/none" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get202_none204_none_default_error204_none_request(**kwargs: Any) -> HttpRequest: @@ -470,13 +470,13 @@ def build_get202_none204_none_default_error204_none_request(**kwargs: Any) -> Ht accept = "application/json" # Construct URL - url = "/http/payloads/202/none/204/none/default/Error/response/204/none" + _url = "/http/payloads/202/none/204/none/default/Error/response/204/none" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get202_none204_none_default_error400_valid_request(**kwargs: Any) -> HttpRequest: @@ -493,13 +493,13 @@ def build_get202_none204_none_default_error400_valid_request(**kwargs: Any) -> H accept = "application/json" # Construct URL - url = "/http/payloads/202/none/204/none/default/Error/response/400/valid" + _url = "/http/payloads/202/none/204/none/default/Error/response/400/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get202_none204_none_default_none202_invalid_request(**kwargs: Any) -> HttpRequest: @@ -515,9 +515,9 @@ def build_get202_none204_none_default_none202_invalid_request(**kwargs: Any) -> """ # Construct URL - url = "/http/payloads/202/none/204/none/default/none/response/202/invalid" + _url = "/http/payloads/202/none/204/none/default/none/response/202/invalid" - return HttpRequest(method="GET", url=url, **kwargs) + return HttpRequest(method="GET", url=_url, **kwargs) def build_get202_none204_none_default_none204_none_request(**kwargs: Any) -> HttpRequest: @@ -533,9 +533,9 @@ def build_get202_none204_none_default_none204_none_request(**kwargs: Any) -> Htt """ # Construct URL - url = "/http/payloads/202/none/204/none/default/none/response/204/none" + _url = "/http/payloads/202/none/204/none/default/none/response/204/none" - return HttpRequest(method="GET", url=url, **kwargs) + return HttpRequest(method="GET", url=_url, **kwargs) def build_get202_none204_none_default_none400_none_request(**kwargs: Any) -> HttpRequest: @@ -551,9 +551,9 @@ def build_get202_none204_none_default_none400_none_request(**kwargs: Any) -> Htt """ # Construct URL - url = "/http/payloads/202/none/204/none/default/none/response/400/none" + _url = "/http/payloads/202/none/204/none/default/none/response/400/none" - return HttpRequest(method="GET", url=url, **kwargs) + return HttpRequest(method="GET", url=_url, **kwargs) def build_get202_none204_none_default_none400_invalid_request(**kwargs: Any) -> HttpRequest: @@ -569,9 +569,9 @@ def build_get202_none204_none_default_none400_invalid_request(**kwargs: Any) -> """ # Construct URL - url = "/http/payloads/202/none/204/none/default/none/response/400/invalid" + _url = "/http/payloads/202/none/204/none/default/none/response/400/invalid" - return HttpRequest(method="GET", url=url, **kwargs) + return HttpRequest(method="GET", url=_url, **kwargs) def build_get_default_model_a200_valid_request(**kwargs: Any) -> HttpRequest: @@ -596,13 +596,13 @@ def build_get_default_model_a200_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/payloads/default/A/response/200/valid" + _url = "/http/payloads/default/A/response/200/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_default_model_a200_none_request(**kwargs: Any) -> HttpRequest: @@ -627,13 +627,13 @@ def build_get_default_model_a200_none_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/payloads/default/A/response/200/none" + _url = "/http/payloads/default/A/response/200/none" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_default_model_a400_valid_request(**kwargs: Any) -> HttpRequest: @@ -650,13 +650,13 @@ def build_get_default_model_a400_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/payloads/default/A/response/400/valid" + _url = "/http/payloads/default/A/response/400/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_default_model_a400_none_request(**kwargs: Any) -> HttpRequest: @@ -673,13 +673,13 @@ def build_get_default_model_a400_none_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/payloads/default/A/response/400/none" + _url = "/http/payloads/default/A/response/400/none" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_default_none200_invalid_request(**kwargs: Any) -> HttpRequest: @@ -695,9 +695,9 @@ def build_get_default_none200_invalid_request(**kwargs: Any) -> HttpRequest: """ # Construct URL - url = "/http/payloads/default/none/response/200/invalid" + _url = "/http/payloads/default/none/response/200/invalid" - return HttpRequest(method="GET", url=url, **kwargs) + return HttpRequest(method="GET", url=_url, **kwargs) def build_get_default_none200_none_request(**kwargs: Any) -> HttpRequest: @@ -713,9 +713,9 @@ def build_get_default_none200_none_request(**kwargs: Any) -> HttpRequest: """ # Construct URL - url = "/http/payloads/default/none/response/200/none" + _url = "/http/payloads/default/none/response/200/none" - return HttpRequest(method="GET", url=url, **kwargs) + return HttpRequest(method="GET", url=_url, **kwargs) def build_get_default_none400_invalid_request(**kwargs: Any) -> HttpRequest: @@ -731,9 +731,9 @@ def build_get_default_none400_invalid_request(**kwargs: Any) -> HttpRequest: """ # Construct URL - url = "/http/payloads/default/none/response/400/invalid" + _url = "/http/payloads/default/none/response/400/invalid" - return HttpRequest(method="GET", url=url, **kwargs) + return HttpRequest(method="GET", url=_url, **kwargs) def build_get_default_none400_none_request(**kwargs: Any) -> HttpRequest: @@ -749,9 +749,9 @@ def build_get_default_none400_none_request(**kwargs: Any) -> HttpRequest: """ # Construct URL - url = "/http/payloads/default/none/response/400/none" + _url = "/http/payloads/default/none/response/400/none" - return HttpRequest(method="GET", url=url, **kwargs) + return HttpRequest(method="GET", url=_url, **kwargs) def build_get200_model_a200_none_request(**kwargs: Any) -> HttpRequest: @@ -777,13 +777,13 @@ def build_get200_model_a200_none_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/payloads/200/A/response/200/none" + _url = "/http/payloads/200/A/response/200/none" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get200_model_a200_valid_request(**kwargs: Any) -> HttpRequest: @@ -808,13 +808,13 @@ def build_get200_model_a200_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/payloads/200/A/response/200/valid" + _url = "/http/payloads/200/A/response/200/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get200_model_a200_invalid_request(**kwargs: Any) -> HttpRequest: @@ -839,13 +839,13 @@ def build_get200_model_a200_invalid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/payloads/200/A/response/200/invalid" + _url = "/http/payloads/200/A/response/200/invalid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get200_model_a400_none_request(**kwargs: Any) -> HttpRequest: @@ -870,13 +870,13 @@ def build_get200_model_a400_none_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/payloads/200/A/response/400/none" + _url = "/http/payloads/200/A/response/400/none" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get200_model_a400_valid_request(**kwargs: Any) -> HttpRequest: @@ -901,13 +901,13 @@ def build_get200_model_a400_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/payloads/200/A/response/400/valid" + _url = "/http/payloads/200/A/response/400/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get200_model_a400_invalid_request(**kwargs: Any) -> HttpRequest: @@ -932,13 +932,13 @@ def build_get200_model_a400_invalid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/payloads/200/A/response/400/invalid" + _url = "/http/payloads/200/A/response/400/invalid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get200_model_a202_valid_request(**kwargs: Any) -> HttpRequest: @@ -963,10 +963,10 @@ def build_get200_model_a202_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/payloads/200/A/response/202/valid" + _url = "/http/payloads/200/A/response/202/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/IncorrectErrorResponseLowLevel/incorrecterrorresponselowlevel/rest/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/IncorrectErrorResponseLowLevel/incorrecterrorresponselowlevel/rest/_request_builders.py index 02d97f98afe..5a6d4ae0616 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/IncorrectErrorResponseLowLevel/incorrecterrorresponselowlevel/rest/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/IncorrectErrorResponseLowLevel/incorrecterrorresponselowlevel/rest/_request_builders.py @@ -36,10 +36,10 @@ def build_get_incorrect_error_from_server_request( """ # Construct URL - url = "/incorrectError" + _url = "/incorrectError" return HttpRequest( method="GET", - url=url, + url=_url, **kwargs ) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/IncorrectErrorResponseLowLevel/incorrecterrorresponselowlevel/rest/_request_builders_py3.py b/test/vanilla/low-level/Expected/AcceptanceTests/IncorrectErrorResponseLowLevel/incorrecterrorresponselowlevel/rest/_request_builders_py3.py index e0fee70dfe2..87d2253a509 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/IncorrectErrorResponseLowLevel/incorrecterrorresponselowlevel/rest/_request_builders_py3.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/IncorrectErrorResponseLowLevel/incorrecterrorresponselowlevel/rest/_request_builders_py3.py @@ -28,6 +28,6 @@ def build_get_incorrect_error_from_server_request(**kwargs: Any) -> HttpRequest: """ # Construct URL - url = "/incorrectError" + _url = "/incorrectError" - return HttpRequest(method="GET", url=url, **kwargs) + return HttpRequest(method="GET", url=_url, **kwargs) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/MediaTypesLowLevel/mediatypeslowlevel/rest/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/MediaTypesLowLevel/mediatypeslowlevel/rest/_request_builders.py index 64f98f2eaaa..0722f7a246c 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/MediaTypesLowLevel/mediatypeslowlevel/rest/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/MediaTypesLowLevel/mediatypeslowlevel/rest/_request_builders.py @@ -56,18 +56,18 @@ def build_analyze_body_request( accept = "application/json" # Construct URL - url = "/mediatypes/analyze" + _url = "/mediatypes/analyze" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -106,17 +106,17 @@ def build_analyze_body_no_accept_header_request( content_type = kwargs.pop('content_type', None) # type: Optional[str] # Construct URL - url = "/mediatypes/analyzeNoAccept" + _url = "/mediatypes/analyzeNoAccept" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -143,18 +143,18 @@ def build_content_type_with_encoding_request( accept = "application/json" # Construct URL - url = "/mediatypes/contentTypeWithEncoding" + _url = "/mediatypes/contentTypeWithEncoding" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -191,18 +191,18 @@ def build_binary_body_with_two_content_types_request( accept = "text/plain" # Construct URL - url = "/mediatypes/binaryBodyTwoContentTypes" + _url = "/mediatypes/binaryBodyTwoContentTypes" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -243,18 +243,18 @@ def build_binary_body_with_three_content_types_request( accept = "text/plain" # Construct URL - url = "/mediatypes/binaryBodyThreeContentTypes" + _url = "/mediatypes/binaryBodyThreeContentTypes" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -292,17 +292,17 @@ def build_put_text_and_json_body_request( accept = "text/plain" # Construct URL - url = "/mediatypes/textAndJson" + _url = "/mediatypes/textAndJson" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/MediaTypesLowLevel/mediatypeslowlevel/rest/_request_builders_py3.py b/test/vanilla/low-level/Expected/AcceptanceTests/MediaTypesLowLevel/mediatypeslowlevel/rest/_request_builders_py3.py index 98ff27b5565..294fc6ad096 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/MediaTypesLowLevel/mediatypeslowlevel/rest/_request_builders_py3.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/MediaTypesLowLevel/mediatypeslowlevel/rest/_request_builders_py3.py @@ -48,15 +48,15 @@ def build_analyze_body_request(*, json: JSONType = None, content: Any = None, ** accept = "application/json" # Construct URL - url = "/mediatypes/analyze" + _url = "/mediatypes/analyze" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_analyze_body_no_accept_header_request( @@ -92,14 +92,14 @@ def build_analyze_body_no_accept_header_request( content_type = kwargs.pop("content_type", None) # type: Optional[str] # Construct URL - url = "/mediatypes/analyzeNoAccept" + _url = "/mediatypes/analyzeNoAccept" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_content_type_with_encoding_request(*, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -121,15 +121,15 @@ def build_content_type_with_encoding_request(*, content: Any = None, **kwargs: A accept = "application/json" # Construct URL - url = "/mediatypes/contentTypeWithEncoding" + _url = "/mediatypes/contentTypeWithEncoding" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, content=content, **kwargs) def build_binary_body_with_two_content_types_request( @@ -163,15 +163,15 @@ def build_binary_body_with_two_content_types_request( accept = "text/plain" # Construct URL - url = "/mediatypes/binaryBodyTwoContentTypes" + _url = "/mediatypes/binaryBodyTwoContentTypes" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_binary_body_with_three_content_types_request( @@ -209,15 +209,15 @@ def build_binary_body_with_three_content_types_request( accept = "text/plain" # Construct URL - url = "/mediatypes/binaryBodyThreeContentTypes" + _url = "/mediatypes/binaryBodyThreeContentTypes" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_put_text_and_json_body_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -250,12 +250,12 @@ def build_put_text_and_json_body_request(*, json: JSONType = None, content: Any accept = "text/plain" # Construct URL - url = "/mediatypes/textAndJson" + _url = "/mediatypes/textAndJson" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/MergePatchJsonLowLevel/mergepatchjsonlowlevel/rest/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/MergePatchJsonLowLevel/mergepatchjsonlowlevel/rest/_request_builders.py index fe89749f271..a928f587684 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/MergePatchJsonLowLevel/mergepatchjsonlowlevel/rest/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/MergePatchJsonLowLevel/mergepatchjsonlowlevel/rest/_request_builders.py @@ -55,17 +55,17 @@ def build_patch_single_request( accept = "application/json" # Construct URL - url = "/mergePatchJson/single" + _url = "/mergePatchJson/single" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PATCH", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/MergePatchJsonLowLevel/mergepatchjsonlowlevel/rest/_request_builders_py3.py b/test/vanilla/low-level/Expected/AcceptanceTests/MergePatchJsonLowLevel/mergepatchjsonlowlevel/rest/_request_builders_py3.py index 3aca61c2185..517412322ea 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/MergePatchJsonLowLevel/mergepatchjsonlowlevel/rest/_request_builders_py3.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/MergePatchJsonLowLevel/mergepatchjsonlowlevel/rest/_request_builders_py3.py @@ -47,12 +47,12 @@ def build_patch_single_request(*, json: JSONType = None, content: Any = None, ** accept = "application/json" # Construct URL - url = "/mergePatchJson/single" + _url = "/mergePatchJson/single" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PATCH", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PATCH", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/ModelFlatteningLowLevel/modelflatteninglowlevel/rest/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/ModelFlatteningLowLevel/modelflatteninglowlevel/rest/_request_builders.py index 97d2d2e96fd..e42055f98e0 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/ModelFlatteningLowLevel/modelflatteninglowlevel/rest/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/ModelFlatteningLowLevel/modelflatteninglowlevel/rest/_request_builders.py @@ -66,18 +66,18 @@ def build_put_array_request( accept = "application/json" # Construct URL - url = "/model-flatten/array" + _url = "/model-flatten/array" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -125,16 +125,16 @@ def build_get_array_request( accept = "application/json" # Construct URL - url = "/model-flatten/array" + _url = "/model-flatten/array" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -175,18 +175,18 @@ def build_put_wrapped_array_request( accept = "application/json" # Construct URL - url = "/model-flatten/wrappedarray" + _url = "/model-flatten/wrappedarray" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -221,16 +221,16 @@ def build_get_wrapped_array_request( accept = "application/json" # Construct URL - url = "/model-flatten/wrappedarray" + _url = "/model-flatten/wrappedarray" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -286,18 +286,18 @@ def build_put_dictionary_request( accept = "application/json" # Construct URL - url = "/model-flatten/dictionary" + _url = "/model-flatten/dictionary" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -345,16 +345,16 @@ def build_get_dictionary_request( accept = "application/json" # Construct URL - url = "/model-flatten/dictionary" + _url = "/model-flatten/dictionary" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -455,18 +455,18 @@ def build_put_resource_collection_request( accept = "application/json" # Construct URL - url = "/model-flatten/resourcecollection" + _url = "/model-flatten/resourcecollection" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -559,16 +559,16 @@ def build_get_resource_collection_request( accept = "application/json" # Construct URL - url = "/model-flatten/resourcecollection" + _url = "/model-flatten/resourcecollection" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -637,18 +637,18 @@ def build_put_simple_product_request( accept = "application/json" # Construct URL - url = "/model-flatten/customFlattening" + _url = "/model-flatten/customFlattening" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -717,18 +717,18 @@ def build_post_flattened_simple_product_request( accept = "application/json" # Construct URL - url = "/model-flatten/customFlattening" + _url = "/model-flatten/customFlattening" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -800,22 +800,22 @@ def build_put_simple_product_with_grouping_request( accept = "application/json" # Construct URL - url = "/model-flatten/customFlattening/parametergrouping/{name}/" + _url = "/model-flatten/customFlattening/parametergrouping/{name}/" path_format_arguments = { "name": _SERIALIZER.url("name", name, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/ModelFlatteningLowLevel/modelflatteninglowlevel/rest/_request_builders_py3.py b/test/vanilla/low-level/Expected/AcceptanceTests/ModelFlatteningLowLevel/modelflatteninglowlevel/rest/_request_builders_py3.py index ed1a3102cd7..3da7fce7386 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/ModelFlatteningLowLevel/modelflatteninglowlevel/rest/_request_builders_py3.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/ModelFlatteningLowLevel/modelflatteninglowlevel/rest/_request_builders_py3.py @@ -58,15 +58,15 @@ def build_put_array_request(*, json: JSONType = None, content: Any = None, **kwa accept = "application/json" # Construct URL - url = "/model-flatten/array" + _url = "/model-flatten/array" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_array_request(**kwargs: Any) -> HttpRequest: @@ -109,13 +109,13 @@ def build_get_array_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/model-flatten/array" + _url = "/model-flatten/array" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_wrapped_array_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -151,15 +151,15 @@ def build_put_wrapped_array_request(*, json: JSONType = None, content: Any = Non accept = "application/json" # Construct URL - url = "/model-flatten/wrappedarray" + _url = "/model-flatten/wrappedarray" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_wrapped_array_request(**kwargs: Any) -> HttpRequest: @@ -189,13 +189,13 @@ def build_get_wrapped_array_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/model-flatten/wrappedarray" + _url = "/model-flatten/wrappedarray" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_dictionary_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -246,15 +246,15 @@ def build_put_dictionary_request(*, json: JSONType = None, content: Any = None, accept = "application/json" # Construct URL - url = "/model-flatten/dictionary" + _url = "/model-flatten/dictionary" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_dictionary_request(**kwargs: Any) -> HttpRequest: @@ -297,13 +297,13 @@ def build_get_dictionary_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/model-flatten/dictionary" + _url = "/model-flatten/dictionary" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_resource_collection_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -399,15 +399,15 @@ def build_put_resource_collection_request(*, json: JSONType = None, content: Any accept = "application/json" # Construct URL - url = "/model-flatten/resourcecollection" + _url = "/model-flatten/resourcecollection" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_resource_collection_request(**kwargs: Any) -> HttpRequest: @@ -495,13 +495,13 @@ def build_get_resource_collection_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/model-flatten/resourcecollection" + _url = "/model-flatten/resourcecollection" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_simple_product_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -565,15 +565,15 @@ def build_put_simple_product_request(*, json: JSONType = None, content: Any = No accept = "application/json" # Construct URL - url = "/model-flatten/customFlattening" + _url = "/model-flatten/customFlattening" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_post_flattened_simple_product_request( @@ -639,15 +639,15 @@ def build_post_flattened_simple_product_request( accept = "application/json" # Construct URL - url = "/model-flatten/customFlattening" + _url = "/model-flatten/customFlattening" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_put_simple_product_with_grouping_request( @@ -715,17 +715,17 @@ def build_put_simple_product_with_grouping_request( accept = "application/json" # Construct URL - url = "/model-flatten/customFlattening/parametergrouping/{name}/" + _url = "/model-flatten/customFlattening/parametergrouping/{name}/" path_format_arguments = { "name": _SERIALIZER.url("name", name, "str"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/MultipleInheritanceLowLevel/multipleinheritancelowlevel/rest/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/MultipleInheritanceLowLevel/multipleinheritancelowlevel/rest/_request_builders.py index 1583b11da39..2c5f5d627fd 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/MultipleInheritanceLowLevel/multipleinheritancelowlevel/rest/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/MultipleInheritanceLowLevel/multipleinheritancelowlevel/rest/_request_builders.py @@ -48,16 +48,16 @@ def build_get_horse_request( accept = "application/json" # Construct URL - url = "/multipleInheritance/horse" + _url = "/multipleInheritance/horse" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -96,18 +96,18 @@ def build_put_horse_request( accept = "application/json" # Construct URL - url = "/multipleInheritance/horse" + _url = "/multipleInheritance/horse" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -137,16 +137,16 @@ def build_get_pet_request( accept = "application/json" # Construct URL - url = "/multipleInheritance/pet" + _url = "/multipleInheritance/pet" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -184,18 +184,18 @@ def build_put_pet_request( accept = "application/json" # Construct URL - url = "/multipleInheritance/pet" + _url = "/multipleInheritance/pet" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -226,16 +226,16 @@ def build_get_feline_request( accept = "application/json" # Construct URL - url = "/multipleInheritance/feline" + _url = "/multipleInheritance/feline" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -274,18 +274,18 @@ def build_put_feline_request( accept = "application/json" # Construct URL - url = "/multipleInheritance/feline" + _url = "/multipleInheritance/feline" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -318,16 +318,16 @@ def build_get_cat_request( accept = "application/json" # Construct URL - url = "/multipleInheritance/cat" + _url = "/multipleInheritance/cat" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -370,18 +370,18 @@ def build_put_cat_request( accept = "application/json" # Construct URL - url = "/multipleInheritance/cat" + _url = "/multipleInheritance/cat" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -416,16 +416,16 @@ def build_get_kitten_request( accept = "application/json" # Construct URL - url = "/multipleInheritance/kitten" + _url = "/multipleInheritance/kitten" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -470,17 +470,17 @@ def build_put_kitten_request( accept = "application/json" # Construct URL - url = "/multipleInheritance/kitten" + _url = "/multipleInheritance/kitten" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/MultipleInheritanceLowLevel/multipleinheritancelowlevel/rest/_request_builders_py3.py b/test/vanilla/low-level/Expected/AcceptanceTests/MultipleInheritanceLowLevel/multipleinheritancelowlevel/rest/_request_builders_py3.py index 7fe362f8b48..c85fc34901f 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/MultipleInheritanceLowLevel/multipleinheritancelowlevel/rest/_request_builders_py3.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/MultipleInheritanceLowLevel/multipleinheritancelowlevel/rest/_request_builders_py3.py @@ -40,13 +40,13 @@ def build_get_horse_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/multipleInheritance/horse" + _url = "/multipleInheritance/horse" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_horse_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -80,15 +80,15 @@ def build_put_horse_request(*, json: JSONType = None, content: Any = None, **kwa accept = "application/json" # Construct URL - url = "/multipleInheritance/horse" + _url = "/multipleInheritance/horse" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_pet_request(**kwargs: Any) -> HttpRequest: @@ -113,13 +113,13 @@ def build_get_pet_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/multipleInheritance/pet" + _url = "/multipleInheritance/pet" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_pet_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -152,15 +152,15 @@ def build_put_pet_request(*, json: JSONType = None, content: Any = None, **kwarg accept = "application/json" # Construct URL - url = "/multipleInheritance/pet" + _url = "/multipleInheritance/pet" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_feline_request(**kwargs: Any) -> HttpRequest: @@ -186,13 +186,13 @@ def build_get_feline_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/multipleInheritance/feline" + _url = "/multipleInheritance/feline" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_feline_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -226,15 +226,15 @@ def build_put_feline_request(*, json: JSONType = None, content: Any = None, **kw accept = "application/json" # Construct URL - url = "/multipleInheritance/feline" + _url = "/multipleInheritance/feline" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_cat_request(**kwargs: Any) -> HttpRequest: @@ -262,13 +262,13 @@ def build_get_cat_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/multipleInheritance/cat" + _url = "/multipleInheritance/cat" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_cat_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -306,15 +306,15 @@ def build_put_cat_request(*, json: JSONType = None, content: Any = None, **kwarg accept = "application/json" # Construct URL - url = "/multipleInheritance/cat" + _url = "/multipleInheritance/cat" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_kitten_request(**kwargs: Any) -> HttpRequest: @@ -344,13 +344,13 @@ def build_get_kitten_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/multipleInheritance/kitten" + _url = "/multipleInheritance/kitten" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_kitten_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -390,12 +390,12 @@ def build_put_kitten_request(*, json: JSONType = None, content: Any = None, **kw accept = "application/json" # Construct URL - url = "/multipleInheritance/kitten" + _url = "/multipleInheritance/kitten" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/NonStringEnumsLowLevel/nonstringenumslowlevel/rest/float/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/NonStringEnumsLowLevel/nonstringenumslowlevel/rest/float/_request_builders.py index 7aa1f69f3ed..aee45ae4a15 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/NonStringEnumsLowLevel/nonstringenumslowlevel/rest/float/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/NonStringEnumsLowLevel/nonstringenumslowlevel/rest/float/_request_builders.py @@ -53,18 +53,18 @@ def build_put_request( accept = "application/json" # Construct URL - url = "/nonStringEnums/float/put" + _url = "/nonStringEnums/float/put" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -92,15 +92,15 @@ def build_get_request( accept = "application/json" # Construct URL - url = "/nonStringEnums/float/get" + _url = "/nonStringEnums/float/get" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/NonStringEnumsLowLevel/nonstringenumslowlevel/rest/float/_request_builders_py3.py b/test/vanilla/low-level/Expected/AcceptanceTests/NonStringEnumsLowLevel/nonstringenumslowlevel/rest/float/_request_builders_py3.py index 24c1294ea7a..2173af77161 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/NonStringEnumsLowLevel/nonstringenumslowlevel/rest/float/_request_builders_py3.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/NonStringEnumsLowLevel/nonstringenumslowlevel/rest/float/_request_builders_py3.py @@ -45,15 +45,15 @@ def build_put_request(*, json: JSONType = None, content: Any = None, **kwargs: A accept = "application/json" # Construct URL - url = "/nonStringEnums/float/put" + _url = "/nonStringEnums/float/put" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_request(**kwargs: Any) -> HttpRequest: @@ -76,10 +76,10 @@ def build_get_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/nonStringEnums/float/get" + _url = "/nonStringEnums/float/get" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/NonStringEnumsLowLevel/nonstringenumslowlevel/rest/int/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/NonStringEnumsLowLevel/nonstringenumslowlevel/rest/int/_request_builders.py index a33d3ff30b3..4c9d0c9f324 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/NonStringEnumsLowLevel/nonstringenumslowlevel/rest/int/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/NonStringEnumsLowLevel/nonstringenumslowlevel/rest/int/_request_builders.py @@ -53,18 +53,18 @@ def build_put_request( accept = "application/json" # Construct URL - url = "/nonStringEnums/int/put" + _url = "/nonStringEnums/int/put" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -92,15 +92,15 @@ def build_get_request( accept = "application/json" # Construct URL - url = "/nonStringEnums/int/get" + _url = "/nonStringEnums/int/get" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/NonStringEnumsLowLevel/nonstringenumslowlevel/rest/int/_request_builders_py3.py b/test/vanilla/low-level/Expected/AcceptanceTests/NonStringEnumsLowLevel/nonstringenumslowlevel/rest/int/_request_builders_py3.py index 4d386f7a6a2..14094595cf3 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/NonStringEnumsLowLevel/nonstringenumslowlevel/rest/int/_request_builders_py3.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/NonStringEnumsLowLevel/nonstringenumslowlevel/rest/int/_request_builders_py3.py @@ -45,15 +45,15 @@ def build_put_request(*, json: JSONType = None, content: Any = None, **kwargs: A accept = "application/json" # Construct URL - url = "/nonStringEnums/int/put" + _url = "/nonStringEnums/int/put" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_request(**kwargs: Any) -> HttpRequest: @@ -76,10 +76,10 @@ def build_get_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/nonStringEnums/int/get" + _url = "/nonStringEnums/int/get" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/ObjectTypeLowLevel/objecttypelowlevel/rest/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/ObjectTypeLowLevel/objecttypelowlevel/rest/_request_builders.py index 74f36ac9047..adb0ac318ad 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/ObjectTypeLowLevel/objecttypelowlevel/rest/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/ObjectTypeLowLevel/objecttypelowlevel/rest/_request_builders.py @@ -40,16 +40,16 @@ def build_get_request( accept = "application/json" # Construct URL - url = "/objectType/get" + _url = "/objectType/get" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -88,17 +88,17 @@ def build_put_request( accept = "application/json" # Construct URL - url = "/objectType/put" + _url = "/objectType/put" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/ObjectTypeLowLevel/objecttypelowlevel/rest/_request_builders_py3.py b/test/vanilla/low-level/Expected/AcceptanceTests/ObjectTypeLowLevel/objecttypelowlevel/rest/_request_builders_py3.py index cbe2b1c6b58..175ddfe255b 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/ObjectTypeLowLevel/objecttypelowlevel/rest/_request_builders_py3.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/ObjectTypeLowLevel/objecttypelowlevel/rest/_request_builders_py3.py @@ -32,13 +32,13 @@ def build_get_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/objectType/get" + _url = "/objectType/get" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -72,12 +72,12 @@ def build_put_request(*, json: JSONType = None, content: Any = None, **kwargs: A accept = "application/json" # Construct URL - url = "/objectType/put" + _url = "/objectType/put" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/ParameterFlatteningLowLevel/parameterflatteninglowlevel/rest/availability_sets/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/ParameterFlatteningLowLevel/parameterflatteninglowlevel/rest/availability_sets/_request_builders.py index b4486cfd7d0..fda37fced8f 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/ParameterFlatteningLowLevel/parameterflatteninglowlevel/rest/availability_sets/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/ParameterFlatteningLowLevel/parameterflatteninglowlevel/rest/availability_sets/_request_builders.py @@ -65,22 +65,22 @@ def build_update_request( content_type = kwargs.pop('content_type', None) # type: Optional[str] # Construct URL - url = "/parameterFlattening/{resourceGroupName}/{availabilitySetName}" + _url = "/parameterFlattening/{resourceGroupName}/{availabilitySetName}" path_format_arguments = { "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str'), "availabilitySetName": _SERIALIZER.url("avset", avset, 'str', max_length=80, min_length=0), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') return HttpRequest( method="PATCH", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/ParameterFlatteningLowLevel/parameterflatteninglowlevel/rest/availability_sets/_request_builders_py3.py b/test/vanilla/low-level/Expected/AcceptanceTests/ParameterFlatteningLowLevel/parameterflatteninglowlevel/rest/availability_sets/_request_builders_py3.py index 45a36e5b545..9a766748479 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/ParameterFlatteningLowLevel/parameterflatteninglowlevel/rest/availability_sets/_request_builders_py3.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/ParameterFlatteningLowLevel/parameterflatteninglowlevel/rest/availability_sets/_request_builders_py3.py @@ -57,17 +57,17 @@ def build_update_request( content_type = kwargs.pop("content_type", None) # type: Optional[str] # Construct URL - url = "/parameterFlattening/{resourceGroupName}/{availabilitySetName}" + _url = "/parameterFlattening/{resourceGroupName}/{availabilitySetName}" path_format_arguments = { "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), "availabilitySetName": _SERIALIZER.url("avset", avset, "str", max_length=80, min_length=0), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - return HttpRequest(method="PATCH", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PATCH", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/ParameterizedEndpointLowLevel/parameterizedendpointlowlevel/rest/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/ParameterizedEndpointLowLevel/parameterizedendpointlowlevel/rest/_request_builders.py index cc8156bd05f..fa3f3bdb204 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/ParameterizedEndpointLowLevel/parameterizedendpointlowlevel/rest/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/ParameterizedEndpointLowLevel/parameterizedendpointlowlevel/rest/_request_builders.py @@ -35,10 +35,10 @@ def build_get_request( """ # Construct URL - url = "/parameterizedEndpoint/get" + _url = "/parameterizedEndpoint/get" return HttpRequest( method="GET", - url=url, + url=_url, **kwargs ) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/ParameterizedEndpointLowLevel/parameterizedendpointlowlevel/rest/_request_builders_py3.py b/test/vanilla/low-level/Expected/AcceptanceTests/ParameterizedEndpointLowLevel/parameterizedendpointlowlevel/rest/_request_builders_py3.py index c2bccad6020..745318ced17 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/ParameterizedEndpointLowLevel/parameterizedendpointlowlevel/rest/_request_builders_py3.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/ParameterizedEndpointLowLevel/parameterizedendpointlowlevel/rest/_request_builders_py3.py @@ -27,6 +27,6 @@ def build_get_request(**kwargs: Any) -> HttpRequest: """ # Construct URL - url = "/parameterizedEndpoint/get" + _url = "/parameterizedEndpoint/get" - return HttpRequest(method="GET", url=url, **kwargs) + return HttpRequest(method="GET", url=_url, **kwargs) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/ReportLowLevel/reportlowlevel/rest/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/ReportLowLevel/reportlowlevel/rest/_request_builders.py index 078b24c0add..e967b109acc 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/ReportLowLevel/reportlowlevel/rest/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/ReportLowLevel/reportlowlevel/rest/_request_builders.py @@ -50,22 +50,22 @@ def build_get_report_request( accept = "application/json" # Construct URL - url = "/report" + _url = "/report" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if qualifier is not None: - query_parameters['qualifier'] = _SERIALIZER.query("qualifier", qualifier, 'str') + _query_parameters['qualifier'] = _SERIALIZER.query("qualifier", qualifier, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -101,21 +101,21 @@ def build_get_optional_report_request( accept = "application/json" # Construct URL - url = "/report/optional" + _url = "/report/optional" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if qualifier is not None: - query_parameters['qualifier'] = _SERIALIZER.query("qualifier", qualifier, 'str') + _query_parameters['qualifier'] = _SERIALIZER.query("qualifier", qualifier, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/ReportLowLevel/reportlowlevel/rest/_request_builders_py3.py b/test/vanilla/low-level/Expected/AcceptanceTests/ReportLowLevel/reportlowlevel/rest/_request_builders_py3.py index fd541dad2b9..6b69401f497 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/ReportLowLevel/reportlowlevel/rest/_request_builders_py3.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/ReportLowLevel/reportlowlevel/rest/_request_builders_py3.py @@ -40,18 +40,18 @@ def build_get_report_request(*, qualifier: Optional[str] = None, **kwargs: Any) accept = "application/json" # Construct URL - url = "/report" + _url = "/report" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if qualifier is not None: - query_parameters["qualifier"] = _SERIALIZER.query("qualifier", qualifier, "str") + _query_parameters["qualifier"] = _SERIALIZER.query("qualifier", qualifier, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_get_optional_report_request(*, qualifier: Optional[str] = None, **kwargs: Any) -> HttpRequest: @@ -80,15 +80,15 @@ def build_get_optional_report_request(*, qualifier: Optional[str] = None, **kwar accept = "application/json" # Construct URL - url = "/report/optional" + _url = "/report/optional" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if qualifier is not None: - query_parameters["qualifier"] = _SERIALIZER.query("qualifier", qualifier, "str") + _query_parameters["qualifier"] = _SERIALIZER.query("qualifier", qualifier, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/RequiredOptionalLowLevel/requiredoptionallowlevel/rest/explicit/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/RequiredOptionalLowLevel/requiredoptionallowlevel/rest/explicit/_request_builders.py index 531c2f76591..a45a61c034f 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/RequiredOptionalLowLevel/requiredoptionallowlevel/rest/explicit/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/RequiredOptionalLowLevel/requiredoptionallowlevel/rest/explicit/_request_builders.py @@ -43,18 +43,18 @@ def build_put_optional_binary_body_request( accept = "application/json" # Construct URL - url = "/reqopt/explicit/optional/binary-body" + _url = "/reqopt/explicit/optional/binary-body" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -81,18 +81,18 @@ def build_put_required_binary_body_request( accept = "application/json" # Construct URL - url = "/reqopt/explicit/required/binary-body" + _url = "/reqopt/explicit/required/binary-body" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -129,18 +129,18 @@ def build_post_required_integer_parameter_request( accept = "application/json" # Construct URL - url = "/reqopt/requied/integer/parameter" + _url = "/reqopt/requied/integer/parameter" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -176,18 +176,18 @@ def build_post_optional_integer_parameter_request( accept = "application/json" # Construct URL - url = "/reqopt/optional/integer/parameter" + _url = "/reqopt/optional/integer/parameter" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -226,18 +226,18 @@ def build_post_required_integer_property_request( accept = "application/json" # Construct URL - url = "/reqopt/requied/integer/property" + _url = "/reqopt/requied/integer/property" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -275,18 +275,18 @@ def build_post_optional_integer_property_request( accept = "application/json" # Construct URL - url = "/reqopt/optional/integer/property" + _url = "/reqopt/optional/integer/property" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -313,17 +313,17 @@ def build_post_required_integer_header_request( accept = "application/json" # Construct URL - url = "/reqopt/requied/integer/header" + _url = "/reqopt/requied/integer/header" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['headerParameter'] = _SERIALIZER.header("header_parameter", header_parameter, 'int') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['headerParameter'] = _SERIALIZER.header("header_parameter", header_parameter, 'int') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -349,18 +349,18 @@ def build_post_optional_integer_header_request( accept = "application/json" # Construct URL - url = "/reqopt/optional/integer/header" + _url = "/reqopt/optional/integer/header" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if header_parameter is not None: - header_parameters['headerParameter'] = _SERIALIZER.header("header_parameter", header_parameter, 'int') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['headerParameter'] = _SERIALIZER.header("header_parameter", header_parameter, 'int') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -397,18 +397,18 @@ def build_post_required_string_parameter_request( accept = "application/json" # Construct URL - url = "/reqopt/requied/string/parameter" + _url = "/reqopt/requied/string/parameter" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -444,18 +444,18 @@ def build_post_optional_string_parameter_request( accept = "application/json" # Construct URL - url = "/reqopt/optional/string/parameter" + _url = "/reqopt/optional/string/parameter" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -494,18 +494,18 @@ def build_post_required_string_property_request( accept = "application/json" # Construct URL - url = "/reqopt/requied/string/property" + _url = "/reqopt/requied/string/property" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -543,18 +543,18 @@ def build_post_optional_string_property_request( accept = "application/json" # Construct URL - url = "/reqopt/optional/string/property" + _url = "/reqopt/optional/string/property" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -581,17 +581,17 @@ def build_post_required_string_header_request( accept = "application/json" # Construct URL - url = "/reqopt/requied/string/header" + _url = "/reqopt/requied/string/header" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['headerParameter'] = _SERIALIZER.header("header_parameter", header_parameter, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['headerParameter'] = _SERIALIZER.header("header_parameter", header_parameter, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -617,18 +617,18 @@ def build_post_optional_string_header_request( accept = "application/json" # Construct URL - url = "/reqopt/optional/string/header" + _url = "/reqopt/optional/string/header" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if body_parameter is not None: - header_parameters['bodyParameter'] = _SERIALIZER.header("body_parameter", body_parameter, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['bodyParameter'] = _SERIALIZER.header("body_parameter", body_parameter, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -668,18 +668,18 @@ def build_post_required_class_parameter_request( accept = "application/json" # Construct URL - url = "/reqopt/requied/class/parameter" + _url = "/reqopt/requied/class/parameter" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -718,18 +718,18 @@ def build_post_optional_class_parameter_request( accept = "application/json" # Construct URL - url = "/reqopt/optional/class/parameter" + _url = "/reqopt/optional/class/parameter" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -771,18 +771,18 @@ def build_post_required_class_property_request( accept = "application/json" # Construct URL - url = "/reqopt/requied/class/property" + _url = "/reqopt/requied/class/property" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -823,18 +823,18 @@ def build_post_optional_class_property_request( accept = "application/json" # Construct URL - url = "/reqopt/optional/class/property" + _url = "/reqopt/optional/class/property" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -873,18 +873,18 @@ def build_post_required_array_parameter_request( accept = "application/json" # Construct URL - url = "/reqopt/requied/array/parameter" + _url = "/reqopt/requied/array/parameter" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -922,18 +922,18 @@ def build_post_optional_array_parameter_request( accept = "application/json" # Construct URL - url = "/reqopt/optional/array/parameter" + _url = "/reqopt/optional/array/parameter" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -974,18 +974,18 @@ def build_post_required_array_property_request( accept = "application/json" # Construct URL - url = "/reqopt/requied/array/property" + _url = "/reqopt/requied/array/property" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1025,18 +1025,18 @@ def build_post_optional_array_property_request( accept = "application/json" # Construct URL - url = "/reqopt/optional/array/property" + _url = "/reqopt/optional/array/property" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1063,17 +1063,17 @@ def build_post_required_array_header_request( accept = "application/json" # Construct URL - url = "/reqopt/requied/array/header" + _url = "/reqopt/requied/array/header" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['headerParameter'] = _SERIALIZER.header("header_parameter", header_parameter, '[str]', div=',') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['headerParameter'] = _SERIALIZER.header("header_parameter", header_parameter, '[str]', div=',') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1099,17 +1099,17 @@ def build_post_optional_array_header_request( accept = "application/json" # Construct URL - url = "/reqopt/optional/array/header" + _url = "/reqopt/optional/array/header" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if header_parameter is not None: - header_parameters['headerParameter'] = _SERIALIZER.header("header_parameter", header_parameter, '[str]', div=',') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['headerParameter'] = _SERIALIZER.header("header_parameter", header_parameter, '[str]', div=',') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/RequiredOptionalLowLevel/requiredoptionallowlevel/rest/explicit/_request_builders_py3.py b/test/vanilla/low-level/Expected/AcceptanceTests/RequiredOptionalLowLevel/requiredoptionallowlevel/rest/explicit/_request_builders_py3.py index 2717bd56398..283fd14e5cf 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/RequiredOptionalLowLevel/requiredoptionallowlevel/rest/explicit/_request_builders_py3.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/RequiredOptionalLowLevel/requiredoptionallowlevel/rest/explicit/_request_builders_py3.py @@ -35,15 +35,15 @@ def build_put_optional_binary_body_request(*, content: Any = None, **kwargs: Any accept = "application/json" # Construct URL - url = "/reqopt/explicit/optional/binary-body" + _url = "/reqopt/explicit/optional/binary-body" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, content=content, **kwargs) def build_put_required_binary_body_request(*, content: Any, **kwargs: Any) -> HttpRequest: @@ -65,15 +65,15 @@ def build_put_required_binary_body_request(*, content: Any, **kwargs: Any) -> Ht accept = "application/json" # Construct URL - url = "/reqopt/explicit/required/binary-body" + _url = "/reqopt/explicit/required/binary-body" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, content=content, **kwargs) def build_post_required_integer_parameter_request( @@ -107,15 +107,15 @@ def build_post_required_integer_parameter_request( accept = "application/json" # Construct URL - url = "/reqopt/requied/integer/parameter" + _url = "/reqopt/requied/integer/parameter" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_post_optional_integer_parameter_request( @@ -148,15 +148,15 @@ def build_post_optional_integer_parameter_request( accept = "application/json" # Construct URL - url = "/reqopt/optional/integer/parameter" + _url = "/reqopt/optional/integer/parameter" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_post_required_integer_property_request( @@ -192,15 +192,15 @@ def build_post_required_integer_property_request( accept = "application/json" # Construct URL - url = "/reqopt/requied/integer/property" + _url = "/reqopt/requied/integer/property" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_post_optional_integer_property_request( @@ -235,15 +235,15 @@ def build_post_optional_integer_property_request( accept = "application/json" # Construct URL - url = "/reqopt/optional/integer/property" + _url = "/reqopt/optional/integer/property" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_post_required_integer_header_request(*, header_parameter: int, **kwargs: Any) -> HttpRequest: @@ -263,14 +263,14 @@ def build_post_required_integer_header_request(*, header_parameter: int, **kwarg accept = "application/json" # Construct URL - url = "/reqopt/requied/integer/header" + _url = "/reqopt/requied/integer/header" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["headerParameter"] = _SERIALIZER.header("header_parameter", header_parameter, "int") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["headerParameter"] = _SERIALIZER.header("header_parameter", header_parameter, "int") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) def build_post_optional_integer_header_request(*, header_parameter: Optional[int] = None, **kwargs: Any) -> HttpRequest: @@ -289,15 +289,15 @@ def build_post_optional_integer_header_request(*, header_parameter: Optional[int accept = "application/json" # Construct URL - url = "/reqopt/optional/integer/header" + _url = "/reqopt/optional/integer/header" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if header_parameter is not None: - header_parameters["headerParameter"] = _SERIALIZER.header("header_parameter", header_parameter, "int") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["headerParameter"] = _SERIALIZER.header("header_parameter", header_parameter, "int") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) def build_post_required_string_parameter_request( @@ -331,15 +331,15 @@ def build_post_required_string_parameter_request( accept = "application/json" # Construct URL - url = "/reqopt/requied/string/parameter" + _url = "/reqopt/requied/string/parameter" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_post_optional_string_parameter_request( @@ -372,15 +372,15 @@ def build_post_optional_string_parameter_request( accept = "application/json" # Construct URL - url = "/reqopt/optional/string/parameter" + _url = "/reqopt/optional/string/parameter" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_post_required_string_property_request( @@ -416,15 +416,15 @@ def build_post_required_string_property_request( accept = "application/json" # Construct URL - url = "/reqopt/requied/string/property" + _url = "/reqopt/requied/string/property" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_post_optional_string_property_request( @@ -459,15 +459,15 @@ def build_post_optional_string_property_request( accept = "application/json" # Construct URL - url = "/reqopt/optional/string/property" + _url = "/reqopt/optional/string/property" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_post_required_string_header_request(*, header_parameter: str, **kwargs: Any) -> HttpRequest: @@ -487,14 +487,14 @@ def build_post_required_string_header_request(*, header_parameter: str, **kwargs accept = "application/json" # Construct URL - url = "/reqopt/requied/string/header" + _url = "/reqopt/requied/string/header" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["headerParameter"] = _SERIALIZER.header("header_parameter", header_parameter, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["headerParameter"] = _SERIALIZER.header("header_parameter", header_parameter, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) def build_post_optional_string_header_request(*, body_parameter: Optional[str] = None, **kwargs: Any) -> HttpRequest: @@ -513,15 +513,15 @@ def build_post_optional_string_header_request(*, body_parameter: Optional[str] = accept = "application/json" # Construct URL - url = "/reqopt/optional/string/header" + _url = "/reqopt/optional/string/header" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if body_parameter is not None: - header_parameters["bodyParameter"] = _SERIALIZER.header("body_parameter", body_parameter, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["bodyParameter"] = _SERIALIZER.header("body_parameter", body_parameter, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) def build_post_required_class_parameter_request( @@ -558,15 +558,15 @@ def build_post_required_class_parameter_request( accept = "application/json" # Construct URL - url = "/reqopt/requied/class/parameter" + _url = "/reqopt/requied/class/parameter" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_post_optional_class_parameter_request( @@ -602,15 +602,15 @@ def build_post_optional_class_parameter_request( accept = "application/json" # Construct URL - url = "/reqopt/optional/class/parameter" + _url = "/reqopt/optional/class/parameter" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_post_required_class_property_request( @@ -649,15 +649,15 @@ def build_post_required_class_property_request( accept = "application/json" # Construct URL - url = "/reqopt/requied/class/property" + _url = "/reqopt/requied/class/property" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_post_optional_class_property_request( @@ -695,15 +695,15 @@ def build_post_optional_class_property_request( accept = "application/json" # Construct URL - url = "/reqopt/optional/class/property" + _url = "/reqopt/optional/class/property" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_post_required_array_parameter_request( @@ -739,15 +739,15 @@ def build_post_required_array_parameter_request( accept = "application/json" # Construct URL - url = "/reqopt/requied/array/parameter" + _url = "/reqopt/requied/array/parameter" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_post_optional_array_parameter_request( @@ -782,15 +782,15 @@ def build_post_optional_array_parameter_request( accept = "application/json" # Construct URL - url = "/reqopt/optional/array/parameter" + _url = "/reqopt/optional/array/parameter" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_post_required_array_property_request( @@ -828,15 +828,15 @@ def build_post_required_array_property_request( accept = "application/json" # Construct URL - url = "/reqopt/requied/array/property" + _url = "/reqopt/requied/array/property" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_post_optional_array_property_request( @@ -873,15 +873,15 @@ def build_post_optional_array_property_request( accept = "application/json" # Construct URL - url = "/reqopt/optional/array/property" + _url = "/reqopt/optional/array/property" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_post_required_array_header_request(*, header_parameter: List[str], **kwargs: Any) -> HttpRequest: @@ -901,14 +901,14 @@ def build_post_required_array_header_request(*, header_parameter: List[str], **k accept = "application/json" # Construct URL - url = "/reqopt/requied/array/header" + _url = "/reqopt/requied/array/header" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["headerParameter"] = _SERIALIZER.header("header_parameter", header_parameter, "[str]", div=",") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["headerParameter"] = _SERIALIZER.header("header_parameter", header_parameter, "[str]", div=",") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) def build_post_optional_array_header_request( @@ -929,14 +929,14 @@ def build_post_optional_array_header_request( accept = "application/json" # Construct URL - url = "/reqopt/optional/array/header" + _url = "/reqopt/optional/array/header" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if header_parameter is not None: - header_parameters["headerParameter"] = _SERIALIZER.header( + _header_parameters["headerParameter"] = _SERIALIZER.header( "header_parameter", header_parameter, "[str]", div="," ) - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/RequiredOptionalLowLevel/requiredoptionallowlevel/rest/implicit/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/RequiredOptionalLowLevel/requiredoptionallowlevel/rest/implicit/_request_builders.py index ac6d6776470..1f65476183e 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/RequiredOptionalLowLevel/requiredoptionallowlevel/rest/implicit/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/RequiredOptionalLowLevel/requiredoptionallowlevel/rest/implicit/_request_builders.py @@ -43,21 +43,21 @@ def build_get_required_path_request( accept = "application/json" # Construct URL - url = "/reqopt/implicit/required/path/{pathParameter}" + _url = "/reqopt/implicit/required/path/{pathParameter}" path_format_arguments = { "pathParameter": _SERIALIZER.url("path_parameter", path_parameter, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -83,22 +83,22 @@ def build_put_optional_query_request( accept = "application/json" # Construct URL - url = "/reqopt/implicit/optional/query" + _url = "/reqopt/implicit/optional/query" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if query_parameter is not None: - query_parameters['queryParameter'] = _SERIALIZER.query("query_parameter", query_parameter, 'str') + _query_parameters['queryParameter'] = _SERIALIZER.query("query_parameter", query_parameter, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -124,18 +124,18 @@ def build_put_optional_header_request( accept = "application/json" # Construct URL - url = "/reqopt/implicit/optional/header" + _url = "/reqopt/implicit/optional/header" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if query_parameter is not None: - header_parameters['queryParameter'] = _SERIALIZER.header("query_parameter", query_parameter, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['queryParameter'] = _SERIALIZER.header("query_parameter", query_parameter, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -171,18 +171,18 @@ def build_put_optional_body_request( accept = "application/json" # Construct URL - url = "/reqopt/implicit/optional/body" + _url = "/reqopt/implicit/optional/body" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -209,18 +209,18 @@ def build_put_optional_binary_body_request( accept = "application/json" # Construct URL - url = "/reqopt/implicit/optional/binary-body" + _url = "/reqopt/implicit/optional/binary-body" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -245,21 +245,21 @@ def build_get_required_global_path_request( accept = "application/json" # Construct URL - url = "/reqopt/global/required/path/{required-global-path}" + _url = "/reqopt/global/required/path/{required-global-path}" path_format_arguments = { "required-global-path": _SERIALIZER.url("required_global_path", required_global_path, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -285,21 +285,21 @@ def build_get_required_global_query_request( accept = "application/json" # Construct URL - url = "/reqopt/global/required/query" + _url = "/reqopt/global/required/query" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['required-global-query'] = _SERIALIZER.query("required_global_query", required_global_query, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['required-global-query'] = _SERIALIZER.query("required_global_query", required_global_query, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -325,21 +325,21 @@ def build_get_optional_global_query_request( accept = "application/json" # Construct URL - url = "/reqopt/global/optional/query" + _url = "/reqopt/global/optional/query" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if optional_global_query is not None: - query_parameters['optional-global-query'] = _SERIALIZER.query("optional_global_query", optional_global_query, 'int') + _query_parameters['optional-global-query'] = _SERIALIZER.query("optional_global_query", optional_global_query, 'int') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/RequiredOptionalLowLevel/requiredoptionallowlevel/rest/implicit/_request_builders_py3.py b/test/vanilla/low-level/Expected/AcceptanceTests/RequiredOptionalLowLevel/requiredoptionallowlevel/rest/implicit/_request_builders_py3.py index bbcf8d81c4a..62e8474385c 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/RequiredOptionalLowLevel/requiredoptionallowlevel/rest/implicit/_request_builders_py3.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/RequiredOptionalLowLevel/requiredoptionallowlevel/rest/implicit/_request_builders_py3.py @@ -34,18 +34,18 @@ def build_get_required_path_request(path_parameter: str, **kwargs: Any) -> HttpR accept = "application/json" # Construct URL - url = "/reqopt/implicit/required/path/{pathParameter}" + _url = "/reqopt/implicit/required/path/{pathParameter}" path_format_arguments = { "pathParameter": _SERIALIZER.url("path_parameter", path_parameter, "str"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_optional_query_request(*, query_parameter: Optional[str] = None, **kwargs: Any) -> HttpRequest: @@ -64,18 +64,18 @@ def build_put_optional_query_request(*, query_parameter: Optional[str] = None, * accept = "application/json" # Construct URL - url = "/reqopt/implicit/optional/query" + _url = "/reqopt/implicit/optional/query" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if query_parameter is not None: - query_parameters["queryParameter"] = _SERIALIZER.query("query_parameter", query_parameter, "str") + _query_parameters["queryParameter"] = _SERIALIZER.query("query_parameter", query_parameter, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="PUT", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_put_optional_header_request(*, query_parameter: Optional[str] = None, **kwargs: Any) -> HttpRequest: @@ -94,15 +94,15 @@ def build_put_optional_header_request(*, query_parameter: Optional[str] = None, accept = "application/json" # Construct URL - url = "/reqopt/implicit/optional/header" + _url = "/reqopt/implicit/optional/header" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if query_parameter is not None: - header_parameters["queryParameter"] = _SERIALIZER.header("query_parameter", query_parameter, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["queryParameter"] = _SERIALIZER.header("query_parameter", query_parameter, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, **kwargs) def build_put_optional_body_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -133,15 +133,15 @@ def build_put_optional_body_request(*, json: JSONType = None, content: Any = Non accept = "application/json" # Construct URL - url = "/reqopt/implicit/optional/body" + _url = "/reqopt/implicit/optional/body" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_put_optional_binary_body_request(*, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -163,15 +163,15 @@ def build_put_optional_binary_body_request(*, content: Any = None, **kwargs: Any accept = "application/json" # Construct URL - url = "/reqopt/implicit/optional/binary-body" + _url = "/reqopt/implicit/optional/binary-body" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, content=content, **kwargs) def build_get_required_global_path_request(required_global_path: str, **kwargs: Any) -> HttpRequest: @@ -190,18 +190,18 @@ def build_get_required_global_path_request(required_global_path: str, **kwargs: accept = "application/json" # Construct URL - url = "/reqopt/global/required/path/{required-global-path}" + _url = "/reqopt/global/required/path/{required-global-path}" path_format_arguments = { "required-global-path": _SERIALIZER.url("required_global_path", required_global_path, "str"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_required_global_query_request(*, required_global_query: str, **kwargs: Any) -> HttpRequest: @@ -220,17 +220,19 @@ def build_get_required_global_query_request(*, required_global_query: str, **kwa accept = "application/json" # Construct URL - url = "/reqopt/global/required/query" + _url = "/reqopt/global/required/query" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["required-global-query"] = _SERIALIZER.query("required_global_query", required_global_query, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["required-global-query"] = _SERIALIZER.query( + "required_global_query", required_global_query, "str" + ) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_get_optional_global_query_request( @@ -251,17 +253,17 @@ def build_get_optional_global_query_request( accept = "application/json" # Construct URL - url = "/reqopt/global/optional/query" + _url = "/reqopt/global/optional/query" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if optional_global_query is not None: - query_parameters["optional-global-query"] = _SERIALIZER.query( + _query_parameters["optional-global-query"] = _SERIALIZER.query( "optional_global_query", optional_global_query, "int" ) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/ReservedWordsLowLevel/reservedwordslowlevel/rest/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/ReservedWordsLowLevel/reservedwordslowlevel/rest/_request_builders.py index cbab3489d5b..8c2bc003c9a 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/ReservedWordsLowLevel/reservedwordslowlevel/rest/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/ReservedWordsLowLevel/reservedwordslowlevel/rest/_request_builders.py @@ -44,18 +44,18 @@ def build_operation_with_content_param_request( accept = "application/json" # Construct URL - url = "/reservedWords/operation/content" + _url = "/reservedWords/operation/content" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -91,18 +91,18 @@ def build_operation_with_json_param_request( accept = "application/json" # Construct URL - url = "/reservedWords/operation/json" + _url = "/reservedWords/operation/json" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -141,18 +141,18 @@ def build_operation_with_data_param_request( accept = "application/json" # Construct URL - url = "/reservedWords/operation/data" + _url = "/reservedWords/operation/data" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -191,17 +191,17 @@ def build_operation_with_files_param_request( accept = "application/json" # Construct URL - url = "/reservedWords/operation/files" + _url = "/reservedWords/operation/files" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/ReservedWordsLowLevel/reservedwordslowlevel/rest/_request_builders_py3.py b/test/vanilla/low-level/Expected/AcceptanceTests/ReservedWordsLowLevel/reservedwordslowlevel/rest/_request_builders_py3.py index 1998c0232af..6838c4436be 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/ReservedWordsLowLevel/reservedwordslowlevel/rest/_request_builders_py3.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/ReservedWordsLowLevel/reservedwordslowlevel/rest/_request_builders_py3.py @@ -36,15 +36,15 @@ def build_operation_with_content_param_request(*, content: Any, **kwargs: Any) - accept = "application/json" # Construct URL - url = "/reservedWords/operation/content" + _url = "/reservedWords/operation/content" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, content=content, **kwargs) def build_operation_with_json_param_request( @@ -77,15 +77,15 @@ def build_operation_with_json_param_request( accept = "application/json" # Construct URL - url = "/reservedWords/operation/json" + _url = "/reservedWords/operation/json" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_operation_with_data_param_request( @@ -121,15 +121,15 @@ def build_operation_with_data_param_request( accept = "application/json" # Construct URL - url = "/reservedWords/operation/data" + _url = "/reservedWords/operation/data" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, data=data, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, data=data, content=content, **kwargs) def build_operation_with_files_param_request( @@ -165,12 +165,12 @@ def build_operation_with_files_param_request( accept = "application/json" # Construct URL - url = "/reservedWords/operation/files" + _url = "/reservedWords/operation/files" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, files=files, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, files=files, content=content, **kwargs) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/ReservedWordsLowLevel/reservedwordslowlevel/rest/import_builders/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/ReservedWordsLowLevel/reservedwordslowlevel/rest/import_builders/_request_builders.py index 6f005093d8b..1f418fab84e 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/ReservedWordsLowLevel/reservedwordslowlevel/rest/import_builders/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/ReservedWordsLowLevel/reservedwordslowlevel/rest/import_builders/_request_builders.py @@ -40,20 +40,20 @@ def build_operation_one_request( accept = "application/json" # Construct URL - url = "/reservedWords/operationGroup/import" + _url = "/reservedWords/operationGroup/import" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['parameter1'] = _SERIALIZER.query("parameter1", parameter1, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['parameter1'] = _SERIALIZER.query("parameter1", parameter1, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/ReservedWordsLowLevel/reservedwordslowlevel/rest/import_builders/_request_builders_py3.py b/test/vanilla/low-level/Expected/AcceptanceTests/ReservedWordsLowLevel/reservedwordslowlevel/rest/import_builders/_request_builders_py3.py index 51d3d713a8f..ffc106e0f4e 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/ReservedWordsLowLevel/reservedwordslowlevel/rest/import_builders/_request_builders_py3.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/ReservedWordsLowLevel/reservedwordslowlevel/rest/import_builders/_request_builders_py3.py @@ -30,14 +30,14 @@ def build_operation_one_request(*, parameter1: str, **kwargs: Any) -> HttpReques accept = "application/json" # Construct URL - url = "/reservedWords/operationGroup/import" + _url = "/reservedWords/operationGroup/import" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["parameter1"] = _SERIALIZER.query("parameter1", parameter1, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["parameter1"] = _SERIALIZER.query("parameter1", parameter1, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="PUT", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/UrlLowLevel/urllowlevel/rest/path_items/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/UrlLowLevel/urllowlevel/rest/path_items/_request_builders.py index 206c228ffe9..400f61c88ba 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/UrlLowLevel/urllowlevel/rest/path_items/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/UrlLowLevel/urllowlevel/rest/path_items/_request_builders.py @@ -59,33 +59,33 @@ def build_get_all_with_values_request( accept = "application/json" # Construct URL - url = "/pathitem/nullable/globalStringPath/{globalStringPath}/pathItemStringPath/{pathItemStringPath}/localStringPath/{localStringPath}/globalStringQuery/pathItemStringQuery/localStringQuery" # pylint: disable=line-too-long + _url = "/pathitem/nullable/globalStringPath/{globalStringPath}/pathItemStringPath/{pathItemStringPath}/localStringPath/{localStringPath}/globalStringQuery/pathItemStringQuery/localStringQuery" # pylint: disable=line-too-long path_format_arguments = { "pathItemStringPath": _SERIALIZER.url("path_item_string_path", path_item_string_path, 'str'), "globalStringPath": _SERIALIZER.url("global_string_path", global_string_path, 'str'), "localStringPath": _SERIALIZER.url("local_string_path", local_string_path, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if path_item_string_query is not None: - query_parameters['pathItemStringQuery'] = _SERIALIZER.query("path_item_string_query", path_item_string_query, 'str') + _query_parameters['pathItemStringQuery'] = _SERIALIZER.query("path_item_string_query", path_item_string_query, 'str') if global_string_query is not None: - query_parameters['globalStringQuery'] = _SERIALIZER.query("global_string_query", global_string_query, 'str') + _query_parameters['globalStringQuery'] = _SERIALIZER.query("global_string_query", global_string_query, 'str') if local_string_query is not None: - query_parameters['localStringQuery'] = _SERIALIZER.query("local_string_query", local_string_query, 'str') + _query_parameters['localStringQuery'] = _SERIALIZER.query("local_string_query", local_string_query, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -129,33 +129,33 @@ def build_get_global_query_null_request( accept = "application/json" # Construct URL - url = "/pathitem/nullable/globalStringPath/{globalStringPath}/pathItemStringPath/{pathItemStringPath}/localStringPath/{localStringPath}/null/pathItemStringQuery/localStringQuery" # pylint: disable=line-too-long + _url = "/pathitem/nullable/globalStringPath/{globalStringPath}/pathItemStringPath/{pathItemStringPath}/localStringPath/{localStringPath}/null/pathItemStringQuery/localStringQuery" # pylint: disable=line-too-long path_format_arguments = { "pathItemStringPath": _SERIALIZER.url("path_item_string_path", path_item_string_path, 'str'), "globalStringPath": _SERIALIZER.url("global_string_path", global_string_path, 'str'), "localStringPath": _SERIALIZER.url("local_string_path", local_string_path, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if path_item_string_query is not None: - query_parameters['pathItemStringQuery'] = _SERIALIZER.query("path_item_string_query", path_item_string_query, 'str') + _query_parameters['pathItemStringQuery'] = _SERIALIZER.query("path_item_string_query", path_item_string_query, 'str') if global_string_query is not None: - query_parameters['globalStringQuery'] = _SERIALIZER.query("global_string_query", global_string_query, 'str') + _query_parameters['globalStringQuery'] = _SERIALIZER.query("global_string_query", global_string_query, 'str') if local_string_query is not None: - query_parameters['localStringQuery'] = _SERIALIZER.query("local_string_query", local_string_query, 'str') + _query_parameters['localStringQuery'] = _SERIALIZER.query("local_string_query", local_string_query, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -199,33 +199,33 @@ def build_get_global_and_local_query_null_request( accept = "application/json" # Construct URL - url = "/pathitem/nullable/globalStringPath/{globalStringPath}/pathItemStringPath/{pathItemStringPath}/localStringPath/{localStringPath}/null/pathItemStringQuery/null" # pylint: disable=line-too-long + _url = "/pathitem/nullable/globalStringPath/{globalStringPath}/pathItemStringPath/{pathItemStringPath}/localStringPath/{localStringPath}/null/pathItemStringQuery/null" # pylint: disable=line-too-long path_format_arguments = { "pathItemStringPath": _SERIALIZER.url("path_item_string_path", path_item_string_path, 'str'), "globalStringPath": _SERIALIZER.url("global_string_path", global_string_path, 'str'), "localStringPath": _SERIALIZER.url("local_string_path", local_string_path, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if path_item_string_query is not None: - query_parameters['pathItemStringQuery'] = _SERIALIZER.query("path_item_string_query", path_item_string_query, 'str') + _query_parameters['pathItemStringQuery'] = _SERIALIZER.query("path_item_string_query", path_item_string_query, 'str') if global_string_query is not None: - query_parameters['globalStringQuery'] = _SERIALIZER.query("global_string_query", global_string_query, 'str') + _query_parameters['globalStringQuery'] = _SERIALIZER.query("global_string_query", global_string_query, 'str') if local_string_query is not None: - query_parameters['localStringQuery'] = _SERIALIZER.query("local_string_query", local_string_query, 'str') + _query_parameters['localStringQuery'] = _SERIALIZER.query("local_string_query", local_string_query, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -268,32 +268,32 @@ def build_get_local_path_item_query_null_request( accept = "application/json" # Construct URL - url = "/pathitem/nullable/globalStringPath/{globalStringPath}/pathItemStringPath/{pathItemStringPath}/localStringPath/{localStringPath}/globalStringQuery/null/null" # pylint: disable=line-too-long + _url = "/pathitem/nullable/globalStringPath/{globalStringPath}/pathItemStringPath/{pathItemStringPath}/localStringPath/{localStringPath}/globalStringQuery/null/null" # pylint: disable=line-too-long path_format_arguments = { "pathItemStringPath": _SERIALIZER.url("path_item_string_path", path_item_string_path, 'str'), "globalStringPath": _SERIALIZER.url("global_string_path", global_string_path, 'str'), "localStringPath": _SERIALIZER.url("local_string_path", local_string_path, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if path_item_string_query is not None: - query_parameters['pathItemStringQuery'] = _SERIALIZER.query("path_item_string_query", path_item_string_query, 'str') + _query_parameters['pathItemStringQuery'] = _SERIALIZER.query("path_item_string_query", path_item_string_query, 'str') if global_string_query is not None: - query_parameters['globalStringQuery'] = _SERIALIZER.query("global_string_query", global_string_query, 'str') + _query_parameters['globalStringQuery'] = _SERIALIZER.query("global_string_query", global_string_query, 'str') if local_string_query is not None: - query_parameters['localStringQuery'] = _SERIALIZER.query("local_string_query", local_string_query, 'str') + _query_parameters['localStringQuery'] = _SERIALIZER.query("local_string_query", local_string_query, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/UrlLowLevel/urllowlevel/rest/path_items/_request_builders_py3.py b/test/vanilla/low-level/Expected/AcceptanceTests/UrlLowLevel/urllowlevel/rest/path_items/_request_builders_py3.py index f18ea5e7e1d..e039ab3d41d 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/UrlLowLevel/urllowlevel/rest/path_items/_request_builders_py3.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/UrlLowLevel/urllowlevel/rest/path_items/_request_builders_py3.py @@ -53,31 +53,31 @@ def build_get_all_with_values_request( accept = "application/json" # Construct URL - url = "/pathitem/nullable/globalStringPath/{globalStringPath}/pathItemStringPath/{pathItemStringPath}/localStringPath/{localStringPath}/globalStringQuery/pathItemStringQuery/localStringQuery" # pylint: disable=line-too-long + _url = "/pathitem/nullable/globalStringPath/{globalStringPath}/pathItemStringPath/{pathItemStringPath}/localStringPath/{localStringPath}/globalStringQuery/pathItemStringQuery/localStringQuery" # pylint: disable=line-too-long path_format_arguments = { "pathItemStringPath": _SERIALIZER.url("path_item_string_path", path_item_string_path, "str"), "globalStringPath": _SERIALIZER.url("global_string_path", global_string_path, "str"), "localStringPath": _SERIALIZER.url("local_string_path", local_string_path, "str"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if path_item_string_query is not None: - query_parameters["pathItemStringQuery"] = _SERIALIZER.query( + _query_parameters["pathItemStringQuery"] = _SERIALIZER.query( "path_item_string_query", path_item_string_query, "str" ) if global_string_query is not None: - query_parameters["globalStringQuery"] = _SERIALIZER.query("global_string_query", global_string_query, "str") + _query_parameters["globalStringQuery"] = _SERIALIZER.query("global_string_query", global_string_query, "str") if local_string_query is not None: - query_parameters["localStringQuery"] = _SERIALIZER.query("local_string_query", local_string_query, "str") + _query_parameters["localStringQuery"] = _SERIALIZER.query("local_string_query", local_string_query, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_get_global_query_null_request( @@ -118,31 +118,31 @@ def build_get_global_query_null_request( accept = "application/json" # Construct URL - url = "/pathitem/nullable/globalStringPath/{globalStringPath}/pathItemStringPath/{pathItemStringPath}/localStringPath/{localStringPath}/null/pathItemStringQuery/localStringQuery" # pylint: disable=line-too-long + _url = "/pathitem/nullable/globalStringPath/{globalStringPath}/pathItemStringPath/{pathItemStringPath}/localStringPath/{localStringPath}/null/pathItemStringQuery/localStringQuery" # pylint: disable=line-too-long path_format_arguments = { "pathItemStringPath": _SERIALIZER.url("path_item_string_path", path_item_string_path, "str"), "globalStringPath": _SERIALIZER.url("global_string_path", global_string_path, "str"), "localStringPath": _SERIALIZER.url("local_string_path", local_string_path, "str"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if path_item_string_query is not None: - query_parameters["pathItemStringQuery"] = _SERIALIZER.query( + _query_parameters["pathItemStringQuery"] = _SERIALIZER.query( "path_item_string_query", path_item_string_query, "str" ) if global_string_query is not None: - query_parameters["globalStringQuery"] = _SERIALIZER.query("global_string_query", global_string_query, "str") + _query_parameters["globalStringQuery"] = _SERIALIZER.query("global_string_query", global_string_query, "str") if local_string_query is not None: - query_parameters["localStringQuery"] = _SERIALIZER.query("local_string_query", local_string_query, "str") + _query_parameters["localStringQuery"] = _SERIALIZER.query("local_string_query", local_string_query, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_get_global_and_local_query_null_request( @@ -183,31 +183,31 @@ def build_get_global_and_local_query_null_request( accept = "application/json" # Construct URL - url = "/pathitem/nullable/globalStringPath/{globalStringPath}/pathItemStringPath/{pathItemStringPath}/localStringPath/{localStringPath}/null/pathItemStringQuery/null" # pylint: disable=line-too-long + _url = "/pathitem/nullable/globalStringPath/{globalStringPath}/pathItemStringPath/{pathItemStringPath}/localStringPath/{localStringPath}/null/pathItemStringQuery/null" # pylint: disable=line-too-long path_format_arguments = { "pathItemStringPath": _SERIALIZER.url("path_item_string_path", path_item_string_path, "str"), "globalStringPath": _SERIALIZER.url("global_string_path", global_string_path, "str"), "localStringPath": _SERIALIZER.url("local_string_path", local_string_path, "str"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if path_item_string_query is not None: - query_parameters["pathItemStringQuery"] = _SERIALIZER.query( + _query_parameters["pathItemStringQuery"] = _SERIALIZER.query( "path_item_string_query", path_item_string_query, "str" ) if global_string_query is not None: - query_parameters["globalStringQuery"] = _SERIALIZER.query("global_string_query", global_string_query, "str") + _query_parameters["globalStringQuery"] = _SERIALIZER.query("global_string_query", global_string_query, "str") if local_string_query is not None: - query_parameters["localStringQuery"] = _SERIALIZER.query("local_string_query", local_string_query, "str") + _query_parameters["localStringQuery"] = _SERIALIZER.query("local_string_query", local_string_query, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_get_local_path_item_query_null_request( @@ -247,28 +247,28 @@ def build_get_local_path_item_query_null_request( accept = "application/json" # Construct URL - url = "/pathitem/nullable/globalStringPath/{globalStringPath}/pathItemStringPath/{pathItemStringPath}/localStringPath/{localStringPath}/globalStringQuery/null/null" # pylint: disable=line-too-long + _url = "/pathitem/nullable/globalStringPath/{globalStringPath}/pathItemStringPath/{pathItemStringPath}/localStringPath/{localStringPath}/globalStringQuery/null/null" # pylint: disable=line-too-long path_format_arguments = { "pathItemStringPath": _SERIALIZER.url("path_item_string_path", path_item_string_path, "str"), "globalStringPath": _SERIALIZER.url("global_string_path", global_string_path, "str"), "localStringPath": _SERIALIZER.url("local_string_path", local_string_path, "str"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if path_item_string_query is not None: - query_parameters["pathItemStringQuery"] = _SERIALIZER.query( + _query_parameters["pathItemStringQuery"] = _SERIALIZER.query( "path_item_string_query", path_item_string_query, "str" ) if global_string_query is not None: - query_parameters["globalStringQuery"] = _SERIALIZER.query("global_string_query", global_string_query, "str") + _query_parameters["globalStringQuery"] = _SERIALIZER.query("global_string_query", global_string_query, "str") if local_string_query is not None: - query_parameters["localStringQuery"] = _SERIALIZER.query("local_string_query", local_string_query, "str") + _query_parameters["localStringQuery"] = _SERIALIZER.query("local_string_query", local_string_query, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/UrlLowLevel/urllowlevel/rest/paths/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/UrlLowLevel/urllowlevel/rest/paths/_request_builders.py index 1025c6b3bc9..4531a92fac6 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/UrlLowLevel/urllowlevel/rest/paths/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/UrlLowLevel/urllowlevel/rest/paths/_request_builders.py @@ -43,21 +43,21 @@ def build_get_boolean_true_request( accept = "application/json" # Construct URL - url = "/paths/bool/true/{boolPath}" + _url = "/paths/bool/true/{boolPath}" path_format_arguments = { "boolPath": _SERIALIZER.url("bool_path", bool_path, 'bool'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -84,21 +84,21 @@ def build_get_boolean_false_request( accept = "application/json" # Construct URL - url = "/paths/bool/false/{boolPath}" + _url = "/paths/bool/false/{boolPath}" path_format_arguments = { "boolPath": _SERIALIZER.url("bool_path", bool_path, 'bool'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -125,21 +125,21 @@ def build_get_int_one_million_request( accept = "application/json" # Construct URL - url = "/paths/int/1000000/{intPath}" + _url = "/paths/int/1000000/{intPath}" path_format_arguments = { "intPath": _SERIALIZER.url("int_path", int_path, 'int'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -166,21 +166,21 @@ def build_get_int_negative_one_million_request( accept = "application/json" # Construct URL - url = "/paths/int/-1000000/{intPath}" + _url = "/paths/int/-1000000/{intPath}" path_format_arguments = { "intPath": _SERIALIZER.url("int_path", int_path, 'int'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -207,21 +207,21 @@ def build_get_ten_billion_request( accept = "application/json" # Construct URL - url = "/paths/long/10000000000/{longPath}" + _url = "/paths/long/10000000000/{longPath}" path_format_arguments = { "longPath": _SERIALIZER.url("long_path", long_path, 'long'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -248,21 +248,21 @@ def build_get_negative_ten_billion_request( accept = "application/json" # Construct URL - url = "/paths/long/-10000000000/{longPath}" + _url = "/paths/long/-10000000000/{longPath}" path_format_arguments = { "longPath": _SERIALIZER.url("long_path", long_path, 'long'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -289,21 +289,21 @@ def build_float_scientific_positive_request( accept = "application/json" # Construct URL - url = "/paths/float/1.034E+20/{floatPath}" + _url = "/paths/float/1.034E+20/{floatPath}" path_format_arguments = { "floatPath": _SERIALIZER.url("float_path", float_path, 'float'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -330,21 +330,21 @@ def build_float_scientific_negative_request( accept = "application/json" # Construct URL - url = "/paths/float/-1.034E-20/{floatPath}" + _url = "/paths/float/-1.034E-20/{floatPath}" path_format_arguments = { "floatPath": _SERIALIZER.url("float_path", float_path, 'float'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -371,21 +371,21 @@ def build_double_decimal_positive_request( accept = "application/json" # Construct URL - url = "/paths/double/9999999.999/{doublePath}" + _url = "/paths/double/9999999.999/{doublePath}" path_format_arguments = { "doublePath": _SERIALIZER.url("double_path", double_path, 'float'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -412,21 +412,21 @@ def build_double_decimal_negative_request( accept = "application/json" # Construct URL - url = "/paths/double/-9999999.999/{doublePath}" + _url = "/paths/double/-9999999.999/{doublePath}" path_format_arguments = { "doublePath": _SERIALIZER.url("double_path", double_path, 'float'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -453,21 +453,21 @@ def build_string_unicode_request( accept = "application/json" # Construct URL - url = "/paths/string/unicode/{stringPath}" + _url = "/paths/string/unicode/{stringPath}" path_format_arguments = { "stringPath": _SERIALIZER.url("string_path", string_path, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -495,21 +495,21 @@ def build_string_url_encoded_request( accept = "application/json" # Construct URL - url = "/paths/string/begin%21%2A%27%28%29%3B%3A%40%20%26%3D%2B%24%2C%2F%3F%23%5B%5Dend/{stringPath}" + _url = "/paths/string/begin%21%2A%27%28%29%3B%3A%40%20%26%3D%2B%24%2C%2F%3F%23%5B%5Dend/{stringPath}" path_format_arguments = { "stringPath": _SERIALIZER.url("string_path", string_path, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -539,21 +539,21 @@ def build_string_url_non_encoded_request( accept = "application/json" # Construct URL - url = "/paths/string/begin!*\'();:@&=+$,end/{stringPath}" + _url = "/paths/string/begin!*\'();:@&=+$,end/{stringPath}" path_format_arguments = { "stringPath": _SERIALIZER.url("string_path", string_path, 'str', skip_quote=True), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -580,21 +580,21 @@ def build_string_empty_request( accept = "application/json" # Construct URL - url = "/paths/string/empty/{stringPath}" + _url = "/paths/string/empty/{stringPath}" path_format_arguments = { "stringPath": _SERIALIZER.url("string_path", string_path, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -619,21 +619,21 @@ def build_string_null_request( accept = "application/json" # Construct URL - url = "/paths/string/null/{stringPath}" + _url = "/paths/string/null/{stringPath}" path_format_arguments = { "stringPath": _SERIALIZER.url("string_path", string_path, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -659,21 +659,21 @@ def build_enum_valid_request( accept = "application/json" # Construct URL - url = "/paths/enum/green%20color/{enumPath}" + _url = "/paths/enum/green%20color/{enumPath}" path_format_arguments = { "enumPath": _SERIALIZER.url("enum_path", enum_path, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -699,21 +699,21 @@ def build_enum_null_request( accept = "application/json" # Construct URL - url = "/paths/string/null/{enumPath}" + _url = "/paths/string/null/{enumPath}" path_format_arguments = { "enumPath": _SERIALIZER.url("enum_path", enum_path, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -738,21 +738,21 @@ def build_byte_multi_byte_request( accept = "application/json" # Construct URL - url = "/paths/byte/multibyte/{bytePath}" + _url = "/paths/byte/multibyte/{bytePath}" path_format_arguments = { "bytePath": _SERIALIZER.url("byte_path", byte_path, 'bytearray'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -779,21 +779,21 @@ def build_byte_empty_request( accept = "application/json" # Construct URL - url = "/paths/byte/empty/{bytePath}" + _url = "/paths/byte/empty/{bytePath}" path_format_arguments = { "bytePath": _SERIALIZER.url("byte_path", byte_path, 'bytearray'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -818,21 +818,21 @@ def build_byte_null_request( accept = "application/json" # Construct URL - url = "/paths/byte/null/{bytePath}" + _url = "/paths/byte/null/{bytePath}" path_format_arguments = { "bytePath": _SERIALIZER.url("byte_path", byte_path, 'bytearray'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -859,21 +859,21 @@ def build_date_valid_request( accept = "application/json" # Construct URL - url = "/paths/date/2012-01-01/{datePath}" + _url = "/paths/date/2012-01-01/{datePath}" path_format_arguments = { "datePath": _SERIALIZER.url("date_path", date_path, 'date'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -899,21 +899,21 @@ def build_date_null_request( accept = "application/json" # Construct URL - url = "/paths/date/null/{datePath}" + _url = "/paths/date/null/{datePath}" path_format_arguments = { "datePath": _SERIALIZER.url("date_path", date_path, 'date'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -941,21 +941,21 @@ def build_date_time_valid_request( accept = "application/json" # Construct URL - url = "/paths/datetime/2012-01-01T01%3A01%3A01Z/{dateTimePath}" + _url = "/paths/datetime/2012-01-01T01%3A01%3A01Z/{dateTimePath}" path_format_arguments = { "dateTimePath": _SERIALIZER.url("date_time_path", date_time_path, 'iso-8601'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -980,21 +980,21 @@ def build_date_time_null_request( accept = "application/json" # Construct URL - url = "/paths/datetime/null/{dateTimePath}" + _url = "/paths/datetime/null/{dateTimePath}" path_format_arguments = { "dateTimePath": _SERIALIZER.url("date_time_path", date_time_path, 'iso-8601'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1019,21 +1019,21 @@ def build_base64_url_request( accept = "application/json" # Construct URL - url = "/paths/string/bG9yZW0/{base64UrlPath}" + _url = "/paths/string/bG9yZW0/{base64UrlPath}" path_format_arguments = { "base64UrlPath": _SERIALIZER.url("base64_url_path", base64_url_path, 'base64'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1060,21 +1060,21 @@ def build_array_csv_in_path_request( accept = "application/json" # Construct URL - url = "/paths/array/ArrayPath1%2cbegin%21%2A%27%28%29%3B%3A%40%20%26%3D%2B%24%2C%2F%3F%23%5B%5Dend%2c%2c/{arrayPath}" + _url = "/paths/array/ArrayPath1%2cbegin%21%2A%27%28%29%3B%3A%40%20%26%3D%2B%24%2C%2F%3F%23%5B%5Dend%2c%2c/{arrayPath}" path_format_arguments = { "arrayPath": _SERIALIZER.url("array_path", array_path, '[str]', div=','), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1099,20 +1099,20 @@ def build_unix_time_url_request( accept = "application/json" # Construct URL - url = "/paths/int/1460505600/{unixTimeUrlPath}" + _url = "/paths/int/1460505600/{unixTimeUrlPath}" path_format_arguments = { "unixTimeUrlPath": _SERIALIZER.url("unix_time_url_path", unix_time_url_path, 'unix-time'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/UrlLowLevel/urllowlevel/rest/paths/_request_builders_py3.py b/test/vanilla/low-level/Expected/AcceptanceTests/UrlLowLevel/urllowlevel/rest/paths/_request_builders_py3.py index f1e424b5f18..bd248331680 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/UrlLowLevel/urllowlevel/rest/paths/_request_builders_py3.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/UrlLowLevel/urllowlevel/rest/paths/_request_builders_py3.py @@ -35,18 +35,18 @@ def build_get_boolean_true_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/paths/bool/true/{boolPath}" + _url = "/paths/bool/true/{boolPath}" path_format_arguments = { "boolPath": _SERIALIZER.url("bool_path", bool_path, "bool"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_boolean_false_request(**kwargs: Any) -> HttpRequest: @@ -68,18 +68,18 @@ def build_get_boolean_false_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/paths/bool/false/{boolPath}" + _url = "/paths/bool/false/{boolPath}" path_format_arguments = { "boolPath": _SERIALIZER.url("bool_path", bool_path, "bool"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_int_one_million_request(**kwargs: Any) -> HttpRequest: @@ -101,18 +101,18 @@ def build_get_int_one_million_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/paths/int/1000000/{intPath}" + _url = "/paths/int/1000000/{intPath}" path_format_arguments = { "intPath": _SERIALIZER.url("int_path", int_path, "int"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_int_negative_one_million_request(**kwargs: Any) -> HttpRequest: @@ -134,18 +134,18 @@ def build_get_int_negative_one_million_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/paths/int/-1000000/{intPath}" + _url = "/paths/int/-1000000/{intPath}" path_format_arguments = { "intPath": _SERIALIZER.url("int_path", int_path, "int"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_ten_billion_request(**kwargs: Any) -> HttpRequest: @@ -167,18 +167,18 @@ def build_get_ten_billion_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/paths/long/10000000000/{longPath}" + _url = "/paths/long/10000000000/{longPath}" path_format_arguments = { "longPath": _SERIALIZER.url("long_path", long_path, "long"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_negative_ten_billion_request(**kwargs: Any) -> HttpRequest: @@ -200,18 +200,18 @@ def build_get_negative_ten_billion_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/paths/long/-10000000000/{longPath}" + _url = "/paths/long/-10000000000/{longPath}" path_format_arguments = { "longPath": _SERIALIZER.url("long_path", long_path, "long"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_float_scientific_positive_request(**kwargs: Any) -> HttpRequest: @@ -233,18 +233,18 @@ def build_float_scientific_positive_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/paths/float/1.034E+20/{floatPath}" + _url = "/paths/float/1.034E+20/{floatPath}" path_format_arguments = { "floatPath": _SERIALIZER.url("float_path", float_path, "float"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_float_scientific_negative_request(**kwargs: Any) -> HttpRequest: @@ -266,18 +266,18 @@ def build_float_scientific_negative_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/paths/float/-1.034E-20/{floatPath}" + _url = "/paths/float/-1.034E-20/{floatPath}" path_format_arguments = { "floatPath": _SERIALIZER.url("float_path", float_path, "float"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_double_decimal_positive_request(**kwargs: Any) -> HttpRequest: @@ -299,18 +299,18 @@ def build_double_decimal_positive_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/paths/double/9999999.999/{doublePath}" + _url = "/paths/double/9999999.999/{doublePath}" path_format_arguments = { "doublePath": _SERIALIZER.url("double_path", double_path, "float"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_double_decimal_negative_request(**kwargs: Any) -> HttpRequest: @@ -332,18 +332,18 @@ def build_double_decimal_negative_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/paths/double/-9999999.999/{doublePath}" + _url = "/paths/double/-9999999.999/{doublePath}" path_format_arguments = { "doublePath": _SERIALIZER.url("double_path", double_path, "float"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_string_unicode_request(**kwargs: Any) -> HttpRequest: @@ -365,18 +365,18 @@ def build_string_unicode_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/paths/string/unicode/{stringPath}" + _url = "/paths/string/unicode/{stringPath}" path_format_arguments = { "stringPath": _SERIALIZER.url("string_path", string_path, "str"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_string_url_encoded_request(**kwargs: Any) -> HttpRequest: @@ -399,18 +399,18 @@ def build_string_url_encoded_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/paths/string/begin%21%2A%27%28%29%3B%3A%40%20%26%3D%2B%24%2C%2F%3F%23%5B%5Dend/{stringPath}" + _url = "/paths/string/begin%21%2A%27%28%29%3B%3A%40%20%26%3D%2B%24%2C%2F%3F%23%5B%5Dend/{stringPath}" path_format_arguments = { "stringPath": _SERIALIZER.url("string_path", string_path, "str"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_string_url_non_encoded_request(**kwargs: Any) -> HttpRequest: @@ -435,18 +435,18 @@ def build_string_url_non_encoded_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/paths/string/begin!*'();:@&=+$,end/{stringPath}" + _url = "/paths/string/begin!*'();:@&=+$,end/{stringPath}" path_format_arguments = { "stringPath": _SERIALIZER.url("string_path", string_path, "str", skip_quote=True), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_string_empty_request(**kwargs: Any) -> HttpRequest: @@ -468,18 +468,18 @@ def build_string_empty_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/paths/string/empty/{stringPath}" + _url = "/paths/string/empty/{stringPath}" path_format_arguments = { "stringPath": _SERIALIZER.url("string_path", string_path, "str"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_string_null_request(string_path: str, **kwargs: Any) -> HttpRequest: @@ -498,18 +498,18 @@ def build_string_null_request(string_path: str, **kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/paths/string/null/{stringPath}" + _url = "/paths/string/null/{stringPath}" path_format_arguments = { "stringPath": _SERIALIZER.url("string_path", string_path, "str"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_enum_valid_request(enum_path: str, **kwargs: Any) -> HttpRequest: @@ -529,18 +529,18 @@ def build_enum_valid_request(enum_path: str, **kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/paths/enum/green%20color/{enumPath}" + _url = "/paths/enum/green%20color/{enumPath}" path_format_arguments = { "enumPath": _SERIALIZER.url("enum_path", enum_path, "str"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_enum_null_request(enum_path: str, **kwargs: Any) -> HttpRequest: @@ -560,18 +560,18 @@ def build_enum_null_request(enum_path: str, **kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/paths/string/null/{enumPath}" + _url = "/paths/string/null/{enumPath}" path_format_arguments = { "enumPath": _SERIALIZER.url("enum_path", enum_path, "str"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_byte_multi_byte_request(byte_path: bytearray, **kwargs: Any) -> HttpRequest: @@ -590,18 +590,18 @@ def build_byte_multi_byte_request(byte_path: bytearray, **kwargs: Any) -> HttpRe accept = "application/json" # Construct URL - url = "/paths/byte/multibyte/{bytePath}" + _url = "/paths/byte/multibyte/{bytePath}" path_format_arguments = { "bytePath": _SERIALIZER.url("byte_path", byte_path, "bytearray"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_byte_empty_request(**kwargs: Any) -> HttpRequest: @@ -623,18 +623,18 @@ def build_byte_empty_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/paths/byte/empty/{bytePath}" + _url = "/paths/byte/empty/{bytePath}" path_format_arguments = { "bytePath": _SERIALIZER.url("byte_path", byte_path, "bytearray"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_byte_null_request(byte_path: bytearray, **kwargs: Any) -> HttpRequest: @@ -653,18 +653,18 @@ def build_byte_null_request(byte_path: bytearray, **kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/paths/byte/null/{bytePath}" + _url = "/paths/byte/null/{bytePath}" path_format_arguments = { "bytePath": _SERIALIZER.url("byte_path", byte_path, "bytearray"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_date_valid_request(**kwargs: Any) -> HttpRequest: @@ -686,18 +686,18 @@ def build_date_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/paths/date/2012-01-01/{datePath}" + _url = "/paths/date/2012-01-01/{datePath}" path_format_arguments = { "datePath": _SERIALIZER.url("date_path", date_path, "date"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_date_null_request(date_path: datetime.date, **kwargs: Any) -> HttpRequest: @@ -717,18 +717,18 @@ def build_date_null_request(date_path: datetime.date, **kwargs: Any) -> HttpRequ accept = "application/json" # Construct URL - url = "/paths/date/null/{datePath}" + _url = "/paths/date/null/{datePath}" path_format_arguments = { "datePath": _SERIALIZER.url("date_path", date_path, "date"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_date_time_valid_request(**kwargs: Any) -> HttpRequest: @@ -751,18 +751,18 @@ def build_date_time_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/paths/datetime/2012-01-01T01%3A01%3A01Z/{dateTimePath}" + _url = "/paths/datetime/2012-01-01T01%3A01%3A01Z/{dateTimePath}" path_format_arguments = { "dateTimePath": _SERIALIZER.url("date_time_path", date_time_path, "iso-8601"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_date_time_null_request(date_time_path: datetime.datetime, **kwargs: Any) -> HttpRequest: @@ -781,18 +781,18 @@ def build_date_time_null_request(date_time_path: datetime.datetime, **kwargs: An accept = "application/json" # Construct URL - url = "/paths/datetime/null/{dateTimePath}" + _url = "/paths/datetime/null/{dateTimePath}" path_format_arguments = { "dateTimePath": _SERIALIZER.url("date_time_path", date_time_path, "iso-8601"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_base64_url_request(base64_url_path: bytes, **kwargs: Any) -> HttpRequest: @@ -811,18 +811,18 @@ def build_base64_url_request(base64_url_path: bytes, **kwargs: Any) -> HttpReque accept = "application/json" # Construct URL - url = "/paths/string/bG9yZW0/{base64UrlPath}" + _url = "/paths/string/bG9yZW0/{base64UrlPath}" path_format_arguments = { "base64UrlPath": _SERIALIZER.url("base64_url_path", base64_url_path, "base64"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_array_csv_in_path_request(array_path: List[str], **kwargs: Any) -> HttpRequest: @@ -843,20 +843,20 @@ def build_array_csv_in_path_request(array_path: List[str], **kwargs: Any) -> Htt accept = "application/json" # Construct URL - url = ( + _url = ( "/paths/array/ArrayPath1%2cbegin%21%2A%27%28%29%3B%3A%40%20%26%3D%2B%24%2C%2F%3F%23%5B%5Dend%2c%2c/{arrayPath}" ) path_format_arguments = { "arrayPath": _SERIALIZER.url("array_path", array_path, "[str]", div=","), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_unix_time_url_request(unix_time_url_path: datetime.datetime, **kwargs: Any) -> HttpRequest: @@ -875,15 +875,15 @@ def build_unix_time_url_request(unix_time_url_path: datetime.datetime, **kwargs: accept = "application/json" # Construct URL - url = "/paths/int/1460505600/{unixTimeUrlPath}" + _url = "/paths/int/1460505600/{unixTimeUrlPath}" path_format_arguments = { "unixTimeUrlPath": _SERIALIZER.url("unix_time_url_path", unix_time_url_path, "unix-time"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/UrlLowLevel/urllowlevel/rest/queries/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/UrlLowLevel/urllowlevel/rest/queries/_request_builders.py index 6b579171f62..d5e5b5b5a52 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/UrlLowLevel/urllowlevel/rest/queries/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/UrlLowLevel/urllowlevel/rest/queries/_request_builders.py @@ -41,21 +41,21 @@ def build_get_boolean_true_request( accept = "application/json" # Construct URL - url = "/queries/bool/true" + _url = "/queries/bool/true" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['boolQuery'] = _SERIALIZER.query("bool_query", bool_query, 'bool') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['boolQuery'] = _SERIALIZER.query("bool_query", bool_query, 'bool') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -82,21 +82,21 @@ def build_get_boolean_false_request( accept = "application/json" # Construct URL - url = "/queries/bool/false" + _url = "/queries/bool/false" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['boolQuery'] = _SERIALIZER.query("bool_query", bool_query, 'bool') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['boolQuery'] = _SERIALIZER.query("bool_query", bool_query, 'bool') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -122,22 +122,22 @@ def build_get_boolean_null_request( accept = "application/json" # Construct URL - url = "/queries/bool/null" + _url = "/queries/bool/null" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if bool_query is not None: - query_parameters['boolQuery'] = _SERIALIZER.query("bool_query", bool_query, 'bool') + _query_parameters['boolQuery'] = _SERIALIZER.query("bool_query", bool_query, 'bool') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -164,21 +164,21 @@ def build_get_int_one_million_request( accept = "application/json" # Construct URL - url = "/queries/int/1000000" + _url = "/queries/int/1000000" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['intQuery'] = _SERIALIZER.query("int_query", int_query, 'int') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['intQuery'] = _SERIALIZER.query("int_query", int_query, 'int') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -205,21 +205,21 @@ def build_get_int_negative_one_million_request( accept = "application/json" # Construct URL - url = "/queries/int/-1000000" + _url = "/queries/int/-1000000" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['intQuery'] = _SERIALIZER.query("int_query", int_query, 'int') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['intQuery'] = _SERIALIZER.query("int_query", int_query, 'int') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -245,22 +245,22 @@ def build_get_int_null_request( accept = "application/json" # Construct URL - url = "/queries/int/null" + _url = "/queries/int/null" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if int_query is not None: - query_parameters['intQuery'] = _SERIALIZER.query("int_query", int_query, 'int') + _query_parameters['intQuery'] = _SERIALIZER.query("int_query", int_query, 'int') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -287,21 +287,21 @@ def build_get_ten_billion_request( accept = "application/json" # Construct URL - url = "/queries/long/10000000000" + _url = "/queries/long/10000000000" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['longQuery'] = _SERIALIZER.query("long_query", long_query, 'long') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['longQuery'] = _SERIALIZER.query("long_query", long_query, 'long') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -328,21 +328,21 @@ def build_get_negative_ten_billion_request( accept = "application/json" # Construct URL - url = "/queries/long/-10000000000" + _url = "/queries/long/-10000000000" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['longQuery'] = _SERIALIZER.query("long_query", long_query, 'long') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['longQuery'] = _SERIALIZER.query("long_query", long_query, 'long') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -368,22 +368,22 @@ def build_get_long_null_request( accept = "application/json" # Construct URL - url = "/queries/long/null" + _url = "/queries/long/null" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if long_query is not None: - query_parameters['longQuery'] = _SERIALIZER.query("long_query", long_query, 'long') + _query_parameters['longQuery'] = _SERIALIZER.query("long_query", long_query, 'long') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -410,21 +410,21 @@ def build_float_scientific_positive_request( accept = "application/json" # Construct URL - url = "/queries/float/1.034E+20" + _url = "/queries/float/1.034E+20" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['floatQuery'] = _SERIALIZER.query("float_query", float_query, 'float') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['floatQuery'] = _SERIALIZER.query("float_query", float_query, 'float') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -451,21 +451,21 @@ def build_float_scientific_negative_request( accept = "application/json" # Construct URL - url = "/queries/float/-1.034E-20" + _url = "/queries/float/-1.034E-20" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['floatQuery'] = _SERIALIZER.query("float_query", float_query, 'float') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['floatQuery'] = _SERIALIZER.query("float_query", float_query, 'float') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -491,22 +491,22 @@ def build_float_null_request( accept = "application/json" # Construct URL - url = "/queries/float/null" + _url = "/queries/float/null" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if float_query is not None: - query_parameters['floatQuery'] = _SERIALIZER.query("float_query", float_query, 'float') + _query_parameters['floatQuery'] = _SERIALIZER.query("float_query", float_query, 'float') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -533,21 +533,21 @@ def build_double_decimal_positive_request( accept = "application/json" # Construct URL - url = "/queries/double/9999999.999" + _url = "/queries/double/9999999.999" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['doubleQuery'] = _SERIALIZER.query("double_query", double_query, 'float') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['doubleQuery'] = _SERIALIZER.query("double_query", double_query, 'float') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -574,21 +574,21 @@ def build_double_decimal_negative_request( accept = "application/json" # Construct URL - url = "/queries/double/-9999999.999" + _url = "/queries/double/-9999999.999" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['doubleQuery'] = _SERIALIZER.query("double_query", double_query, 'float') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['doubleQuery'] = _SERIALIZER.query("double_query", double_query, 'float') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -614,22 +614,22 @@ def build_double_null_request( accept = "application/json" # Construct URL - url = "/queries/double/null" + _url = "/queries/double/null" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if double_query is not None: - query_parameters['doubleQuery'] = _SERIALIZER.query("double_query", double_query, 'float') + _query_parameters['doubleQuery'] = _SERIALIZER.query("double_query", double_query, 'float') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -656,21 +656,21 @@ def build_string_unicode_request( accept = "application/json" # Construct URL - url = "/queries/string/unicode/" + _url = "/queries/string/unicode/" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['stringQuery'] = _SERIALIZER.query("string_query", string_query, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['stringQuery'] = _SERIALIZER.query("string_query", string_query, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -698,21 +698,21 @@ def build_string_url_encoded_request( accept = "application/json" # Construct URL - url = "/queries/string/begin%21%2A%27%28%29%3B%3A%40%20%26%3D%2B%24%2C%2F%3F%23%5B%5Dend" + _url = "/queries/string/begin%21%2A%27%28%29%3B%3A%40%20%26%3D%2B%24%2C%2F%3F%23%5B%5Dend" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['stringQuery'] = _SERIALIZER.query("string_query", string_query, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['stringQuery'] = _SERIALIZER.query("string_query", string_query, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -739,21 +739,21 @@ def build_string_empty_request( accept = "application/json" # Construct URL - url = "/queries/string/empty" + _url = "/queries/string/empty" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['stringQuery'] = _SERIALIZER.query("string_query", string_query, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['stringQuery'] = _SERIALIZER.query("string_query", string_query, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -779,22 +779,22 @@ def build_string_null_request( accept = "application/json" # Construct URL - url = "/queries/string/null" + _url = "/queries/string/null" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if string_query is not None: - query_parameters['stringQuery'] = _SERIALIZER.query("string_query", string_query, 'str') + _query_parameters['stringQuery'] = _SERIALIZER.query("string_query", string_query, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -821,22 +821,22 @@ def build_enum_valid_request( accept = "application/json" # Construct URL - url = "/queries/enum/green%20color" + _url = "/queries/enum/green%20color" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if enum_query is not None: - query_parameters['enumQuery'] = _SERIALIZER.query("enum_query", enum_query, 'str') + _query_parameters['enumQuery'] = _SERIALIZER.query("enum_query", enum_query, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -863,22 +863,22 @@ def build_enum_null_request( accept = "application/json" # Construct URL - url = "/queries/enum/null" + _url = "/queries/enum/null" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if enum_query is not None: - query_parameters['enumQuery'] = _SERIALIZER.query("enum_query", enum_query, 'str') + _query_parameters['enumQuery'] = _SERIALIZER.query("enum_query", enum_query, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -904,22 +904,22 @@ def build_byte_multi_byte_request( accept = "application/json" # Construct URL - url = "/queries/byte/multibyte" + _url = "/queries/byte/multibyte" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if byte_query is not None: - query_parameters['byteQuery'] = _SERIALIZER.query("byte_query", byte_query, 'bytearray') + _query_parameters['byteQuery'] = _SERIALIZER.query("byte_query", byte_query, 'bytearray') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -946,21 +946,21 @@ def build_byte_empty_request( accept = "application/json" # Construct URL - url = "/queries/byte/empty" + _url = "/queries/byte/empty" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['byteQuery'] = _SERIALIZER.query("byte_query", byte_query, 'bytearray') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['byteQuery'] = _SERIALIZER.query("byte_query", byte_query, 'bytearray') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -986,22 +986,22 @@ def build_byte_null_request( accept = "application/json" # Construct URL - url = "/queries/byte/null" + _url = "/queries/byte/null" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if byte_query is not None: - query_parameters['byteQuery'] = _SERIALIZER.query("byte_query", byte_query, 'bytearray') + _query_parameters['byteQuery'] = _SERIALIZER.query("byte_query", byte_query, 'bytearray') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -1028,21 +1028,21 @@ def build_date_valid_request( accept = "application/json" # Construct URL - url = "/queries/date/2012-01-01" + _url = "/queries/date/2012-01-01" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['dateQuery'] = _SERIALIZER.query("date_query", date_query, 'date') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['dateQuery'] = _SERIALIZER.query("date_query", date_query, 'date') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -1068,22 +1068,22 @@ def build_date_null_request( accept = "application/json" # Construct URL - url = "/queries/date/null" + _url = "/queries/date/null" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if date_query is not None: - query_parameters['dateQuery'] = _SERIALIZER.query("date_query", date_query, 'date') + _query_parameters['dateQuery'] = _SERIALIZER.query("date_query", date_query, 'date') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -1111,21 +1111,21 @@ def build_date_time_valid_request( accept = "application/json" # Construct URL - url = "/queries/datetime/2012-01-01T01%3A01%3A01Z" + _url = "/queries/datetime/2012-01-01T01%3A01%3A01Z" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['dateTimeQuery'] = _SERIALIZER.query("date_time_query", date_time_query, 'iso-8601') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['dateTimeQuery'] = _SERIALIZER.query("date_time_query", date_time_query, 'iso-8601') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -1151,22 +1151,22 @@ def build_date_time_null_request( accept = "application/json" # Construct URL - url = "/queries/datetime/null" + _url = "/queries/datetime/null" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if date_time_query is not None: - query_parameters['dateTimeQuery'] = _SERIALIZER.query("date_time_query", date_time_query, 'iso-8601') + _query_parameters['dateTimeQuery'] = _SERIALIZER.query("date_time_query", date_time_query, 'iso-8601') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -1194,22 +1194,22 @@ def build_array_string_csv_valid_request( accept = "application/json" # Construct URL - url = "/queries/array/csv/string/valid" + _url = "/queries/array/csv/string/valid" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if array_query is not None: - query_parameters['arrayQuery'] = _SERIALIZER.query("array_query", array_query, '[str]', div=',') + _query_parameters['arrayQuery'] = _SERIALIZER.query("array_query", array_query, '[str]', div=',') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -1235,22 +1235,22 @@ def build_array_string_csv_null_request( accept = "application/json" # Construct URL - url = "/queries/array/csv/string/null" + _url = "/queries/array/csv/string/null" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if array_query is not None: - query_parameters['arrayQuery'] = _SERIALIZER.query("array_query", array_query, '[str]', div=',') + _query_parameters['arrayQuery'] = _SERIALIZER.query("array_query", array_query, '[str]', div=',') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -1276,22 +1276,22 @@ def build_array_string_csv_empty_request( accept = "application/json" # Construct URL - url = "/queries/array/csv/string/empty" + _url = "/queries/array/csv/string/empty" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if array_query is not None: - query_parameters['arrayQuery'] = _SERIALIZER.query("array_query", array_query, '[str]', div=',') + _query_parameters['arrayQuery'] = _SERIALIZER.query("array_query", array_query, '[str]', div=',') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -1318,22 +1318,22 @@ def build_array_string_no_collection_format_empty_request( accept = "application/json" # Construct URL - url = "/queries/array/none/string/empty" + _url = "/queries/array/none/string/empty" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if array_query is not None: - query_parameters['arrayQuery'] = _SERIALIZER.query("array_query", array_query, '[str]', div=',') + _query_parameters['arrayQuery'] = _SERIALIZER.query("array_query", array_query, '[str]', div=',') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -1361,22 +1361,22 @@ def build_array_string_ssv_valid_request( accept = "application/json" # Construct URL - url = "/queries/array/ssv/string/valid" + _url = "/queries/array/ssv/string/valid" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if array_query is not None: - query_parameters['arrayQuery'] = _SERIALIZER.query("array_query", array_query, '[str]', div=' ') + _query_parameters['arrayQuery'] = _SERIALIZER.query("array_query", array_query, '[str]', div=' ') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -1404,22 +1404,22 @@ def build_array_string_tsv_valid_request( accept = "application/json" # Construct URL - url = "/queries/array/tsv/string/valid" + _url = "/queries/array/tsv/string/valid" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if array_query is not None: - query_parameters['arrayQuery'] = _SERIALIZER.query("array_query", array_query, '[str]', div=' ') + _query_parameters['arrayQuery'] = _SERIALIZER.query("array_query", array_query, '[str]', div=' ') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -1447,21 +1447,21 @@ def build_array_string_pipes_valid_request( accept = "application/json" # Construct URL - url = "/queries/array/pipes/string/valid" + _url = "/queries/array/pipes/string/valid" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if array_query is not None: - query_parameters['arrayQuery'] = _SERIALIZER.query("array_query", array_query, '[str]', div='|') + _query_parameters['arrayQuery'] = _SERIALIZER.query("array_query", array_query, '[str]', div='|') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/UrlLowLevel/urllowlevel/rest/queries/_request_builders_py3.py b/test/vanilla/low-level/Expected/AcceptanceTests/UrlLowLevel/urllowlevel/rest/queries/_request_builders_py3.py index b6fb2bef914..e0ec4130131 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/UrlLowLevel/urllowlevel/rest/queries/_request_builders_py3.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/UrlLowLevel/urllowlevel/rest/queries/_request_builders_py3.py @@ -33,17 +33,17 @@ def build_get_boolean_true_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/queries/bool/true" + _url = "/queries/bool/true" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["boolQuery"] = _SERIALIZER.query("bool_query", bool_query, "bool") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["boolQuery"] = _SERIALIZER.query("bool_query", bool_query, "bool") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_get_boolean_false_request(**kwargs: Any) -> HttpRequest: @@ -65,17 +65,17 @@ def build_get_boolean_false_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/queries/bool/false" + _url = "/queries/bool/false" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["boolQuery"] = _SERIALIZER.query("bool_query", bool_query, "bool") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["boolQuery"] = _SERIALIZER.query("bool_query", bool_query, "bool") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_get_boolean_null_request(*, bool_query: Optional[bool] = None, **kwargs: Any) -> HttpRequest: @@ -94,18 +94,18 @@ def build_get_boolean_null_request(*, bool_query: Optional[bool] = None, **kwarg accept = "application/json" # Construct URL - url = "/queries/bool/null" + _url = "/queries/bool/null" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if bool_query is not None: - query_parameters["boolQuery"] = _SERIALIZER.query("bool_query", bool_query, "bool") + _query_parameters["boolQuery"] = _SERIALIZER.query("bool_query", bool_query, "bool") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_get_int_one_million_request(**kwargs: Any) -> HttpRequest: @@ -127,17 +127,17 @@ def build_get_int_one_million_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/queries/int/1000000" + _url = "/queries/int/1000000" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["intQuery"] = _SERIALIZER.query("int_query", int_query, "int") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["intQuery"] = _SERIALIZER.query("int_query", int_query, "int") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_get_int_negative_one_million_request(**kwargs: Any) -> HttpRequest: @@ -159,17 +159,17 @@ def build_get_int_negative_one_million_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/queries/int/-1000000" + _url = "/queries/int/-1000000" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["intQuery"] = _SERIALIZER.query("int_query", int_query, "int") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["intQuery"] = _SERIALIZER.query("int_query", int_query, "int") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_get_int_null_request(*, int_query: Optional[int] = None, **kwargs: Any) -> HttpRequest: @@ -188,18 +188,18 @@ def build_get_int_null_request(*, int_query: Optional[int] = None, **kwargs: Any accept = "application/json" # Construct URL - url = "/queries/int/null" + _url = "/queries/int/null" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if int_query is not None: - query_parameters["intQuery"] = _SERIALIZER.query("int_query", int_query, "int") + _query_parameters["intQuery"] = _SERIALIZER.query("int_query", int_query, "int") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_get_ten_billion_request(**kwargs: Any) -> HttpRequest: @@ -221,17 +221,17 @@ def build_get_ten_billion_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/queries/long/10000000000" + _url = "/queries/long/10000000000" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["longQuery"] = _SERIALIZER.query("long_query", long_query, "long") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["longQuery"] = _SERIALIZER.query("long_query", long_query, "long") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_get_negative_ten_billion_request(**kwargs: Any) -> HttpRequest: @@ -253,17 +253,17 @@ def build_get_negative_ten_billion_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/queries/long/-10000000000" + _url = "/queries/long/-10000000000" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["longQuery"] = _SERIALIZER.query("long_query", long_query, "long") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["longQuery"] = _SERIALIZER.query("long_query", long_query, "long") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_get_long_null_request(*, long_query: Optional[int] = None, **kwargs: Any) -> HttpRequest: @@ -282,18 +282,18 @@ def build_get_long_null_request(*, long_query: Optional[int] = None, **kwargs: A accept = "application/json" # Construct URL - url = "/queries/long/null" + _url = "/queries/long/null" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if long_query is not None: - query_parameters["longQuery"] = _SERIALIZER.query("long_query", long_query, "long") + _query_parameters["longQuery"] = _SERIALIZER.query("long_query", long_query, "long") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_float_scientific_positive_request(**kwargs: Any) -> HttpRequest: @@ -315,17 +315,17 @@ def build_float_scientific_positive_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/queries/float/1.034E+20" + _url = "/queries/float/1.034E+20" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["floatQuery"] = _SERIALIZER.query("float_query", float_query, "float") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["floatQuery"] = _SERIALIZER.query("float_query", float_query, "float") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_float_scientific_negative_request(**kwargs: Any) -> HttpRequest: @@ -347,17 +347,17 @@ def build_float_scientific_negative_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/queries/float/-1.034E-20" + _url = "/queries/float/-1.034E-20" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["floatQuery"] = _SERIALIZER.query("float_query", float_query, "float") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["floatQuery"] = _SERIALIZER.query("float_query", float_query, "float") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_float_null_request(*, float_query: Optional[float] = None, **kwargs: Any) -> HttpRequest: @@ -376,18 +376,18 @@ def build_float_null_request(*, float_query: Optional[float] = None, **kwargs: A accept = "application/json" # Construct URL - url = "/queries/float/null" + _url = "/queries/float/null" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if float_query is not None: - query_parameters["floatQuery"] = _SERIALIZER.query("float_query", float_query, "float") + _query_parameters["floatQuery"] = _SERIALIZER.query("float_query", float_query, "float") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_double_decimal_positive_request(**kwargs: Any) -> HttpRequest: @@ -409,17 +409,17 @@ def build_double_decimal_positive_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/queries/double/9999999.999" + _url = "/queries/double/9999999.999" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["doubleQuery"] = _SERIALIZER.query("double_query", double_query, "float") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["doubleQuery"] = _SERIALIZER.query("double_query", double_query, "float") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_double_decimal_negative_request(**kwargs: Any) -> HttpRequest: @@ -441,17 +441,17 @@ def build_double_decimal_negative_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/queries/double/-9999999.999" + _url = "/queries/double/-9999999.999" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["doubleQuery"] = _SERIALIZER.query("double_query", double_query, "float") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["doubleQuery"] = _SERIALIZER.query("double_query", double_query, "float") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_double_null_request(*, double_query: Optional[float] = None, **kwargs: Any) -> HttpRequest: @@ -470,18 +470,18 @@ def build_double_null_request(*, double_query: Optional[float] = None, **kwargs: accept = "application/json" # Construct URL - url = "/queries/double/null" + _url = "/queries/double/null" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if double_query is not None: - query_parameters["doubleQuery"] = _SERIALIZER.query("double_query", double_query, "float") + _query_parameters["doubleQuery"] = _SERIALIZER.query("double_query", double_query, "float") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_string_unicode_request(**kwargs: Any) -> HttpRequest: @@ -503,17 +503,17 @@ def build_string_unicode_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/queries/string/unicode/" + _url = "/queries/string/unicode/" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["stringQuery"] = _SERIALIZER.query("string_query", string_query, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["stringQuery"] = _SERIALIZER.query("string_query", string_query, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_string_url_encoded_request(**kwargs: Any) -> HttpRequest: @@ -536,17 +536,17 @@ def build_string_url_encoded_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/queries/string/begin%21%2A%27%28%29%3B%3A%40%20%26%3D%2B%24%2C%2F%3F%23%5B%5Dend" + _url = "/queries/string/begin%21%2A%27%28%29%3B%3A%40%20%26%3D%2B%24%2C%2F%3F%23%5B%5Dend" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["stringQuery"] = _SERIALIZER.query("string_query", string_query, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["stringQuery"] = _SERIALIZER.query("string_query", string_query, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_string_empty_request(**kwargs: Any) -> HttpRequest: @@ -568,17 +568,17 @@ def build_string_empty_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/queries/string/empty" + _url = "/queries/string/empty" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["stringQuery"] = _SERIALIZER.query("string_query", string_query, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["stringQuery"] = _SERIALIZER.query("string_query", string_query, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_string_null_request(*, string_query: Optional[str] = None, **kwargs: Any) -> HttpRequest: @@ -597,18 +597,18 @@ def build_string_null_request(*, string_query: Optional[str] = None, **kwargs: A accept = "application/json" # Construct URL - url = "/queries/string/null" + _url = "/queries/string/null" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if string_query is not None: - query_parameters["stringQuery"] = _SERIALIZER.query("string_query", string_query, "str") + _query_parameters["stringQuery"] = _SERIALIZER.query("string_query", string_query, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_enum_valid_request(*, enum_query: Optional[str] = None, **kwargs: Any) -> HttpRequest: @@ -628,18 +628,18 @@ def build_enum_valid_request(*, enum_query: Optional[str] = None, **kwargs: Any) accept = "application/json" # Construct URL - url = "/queries/enum/green%20color" + _url = "/queries/enum/green%20color" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if enum_query is not None: - query_parameters["enumQuery"] = _SERIALIZER.query("enum_query", enum_query, "str") + _query_parameters["enumQuery"] = _SERIALIZER.query("enum_query", enum_query, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_enum_null_request(*, enum_query: Optional[str] = None, **kwargs: Any) -> HttpRequest: @@ -659,18 +659,18 @@ def build_enum_null_request(*, enum_query: Optional[str] = None, **kwargs: Any) accept = "application/json" # Construct URL - url = "/queries/enum/null" + _url = "/queries/enum/null" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if enum_query is not None: - query_parameters["enumQuery"] = _SERIALIZER.query("enum_query", enum_query, "str") + _query_parameters["enumQuery"] = _SERIALIZER.query("enum_query", enum_query, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_byte_multi_byte_request(*, byte_query: Optional[bytearray] = None, **kwargs: Any) -> HttpRequest: @@ -689,18 +689,18 @@ def build_byte_multi_byte_request(*, byte_query: Optional[bytearray] = None, **k accept = "application/json" # Construct URL - url = "/queries/byte/multibyte" + _url = "/queries/byte/multibyte" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if byte_query is not None: - query_parameters["byteQuery"] = _SERIALIZER.query("byte_query", byte_query, "bytearray") + _query_parameters["byteQuery"] = _SERIALIZER.query("byte_query", byte_query, "bytearray") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_byte_empty_request(**kwargs: Any) -> HttpRequest: @@ -722,17 +722,17 @@ def build_byte_empty_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/queries/byte/empty" + _url = "/queries/byte/empty" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["byteQuery"] = _SERIALIZER.query("byte_query", byte_query, "bytearray") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["byteQuery"] = _SERIALIZER.query("byte_query", byte_query, "bytearray") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_byte_null_request(*, byte_query: Optional[bytearray] = None, **kwargs: Any) -> HttpRequest: @@ -751,18 +751,18 @@ def build_byte_null_request(*, byte_query: Optional[bytearray] = None, **kwargs: accept = "application/json" # Construct URL - url = "/queries/byte/null" + _url = "/queries/byte/null" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if byte_query is not None: - query_parameters["byteQuery"] = _SERIALIZER.query("byte_query", byte_query, "bytearray") + _query_parameters["byteQuery"] = _SERIALIZER.query("byte_query", byte_query, "bytearray") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_date_valid_request(**kwargs: Any) -> HttpRequest: @@ -784,17 +784,17 @@ def build_date_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/queries/date/2012-01-01" + _url = "/queries/date/2012-01-01" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["dateQuery"] = _SERIALIZER.query("date_query", date_query, "date") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["dateQuery"] = _SERIALIZER.query("date_query", date_query, "date") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_date_null_request(*, date_query: Optional[datetime.date] = None, **kwargs: Any) -> HttpRequest: @@ -813,18 +813,18 @@ def build_date_null_request(*, date_query: Optional[datetime.date] = None, **kwa accept = "application/json" # Construct URL - url = "/queries/date/null" + _url = "/queries/date/null" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if date_query is not None: - query_parameters["dateQuery"] = _SERIALIZER.query("date_query", date_query, "date") + _query_parameters["dateQuery"] = _SERIALIZER.query("date_query", date_query, "date") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_date_time_valid_request(**kwargs: Any) -> HttpRequest: @@ -847,17 +847,17 @@ def build_date_time_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/queries/datetime/2012-01-01T01%3A01%3A01Z" + _url = "/queries/datetime/2012-01-01T01%3A01%3A01Z" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["dateTimeQuery"] = _SERIALIZER.query("date_time_query", date_time_query, "iso-8601") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["dateTimeQuery"] = _SERIALIZER.query("date_time_query", date_time_query, "iso-8601") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_date_time_null_request(*, date_time_query: Optional[datetime.datetime] = None, **kwargs: Any) -> HttpRequest: @@ -876,18 +876,18 @@ def build_date_time_null_request(*, date_time_query: Optional[datetime.datetime] accept = "application/json" # Construct URL - url = "/queries/datetime/null" + _url = "/queries/datetime/null" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if date_time_query is not None: - query_parameters["dateTimeQuery"] = _SERIALIZER.query("date_time_query", date_time_query, "iso-8601") + _query_parameters["dateTimeQuery"] = _SERIALIZER.query("date_time_query", date_time_query, "iso-8601") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_array_string_csv_valid_request(*, array_query: Optional[List[str]] = None, **kwargs: Any) -> HttpRequest: @@ -908,18 +908,18 @@ def build_array_string_csv_valid_request(*, array_query: Optional[List[str]] = N accept = "application/json" # Construct URL - url = "/queries/array/csv/string/valid" + _url = "/queries/array/csv/string/valid" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if array_query is not None: - query_parameters["arrayQuery"] = _SERIALIZER.query("array_query", array_query, "[str]", div=",") + _query_parameters["arrayQuery"] = _SERIALIZER.query("array_query", array_query, "[str]", div=",") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_array_string_csv_null_request(*, array_query: Optional[List[str]] = None, **kwargs: Any) -> HttpRequest: @@ -938,18 +938,18 @@ def build_array_string_csv_null_request(*, array_query: Optional[List[str]] = No accept = "application/json" # Construct URL - url = "/queries/array/csv/string/null" + _url = "/queries/array/csv/string/null" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if array_query is not None: - query_parameters["arrayQuery"] = _SERIALIZER.query("array_query", array_query, "[str]", div=",") + _query_parameters["arrayQuery"] = _SERIALIZER.query("array_query", array_query, "[str]", div=",") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_array_string_csv_empty_request(*, array_query: Optional[List[str]] = None, **kwargs: Any) -> HttpRequest: @@ -968,18 +968,18 @@ def build_array_string_csv_empty_request(*, array_query: Optional[List[str]] = N accept = "application/json" # Construct URL - url = "/queries/array/csv/string/empty" + _url = "/queries/array/csv/string/empty" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if array_query is not None: - query_parameters["arrayQuery"] = _SERIALIZER.query("array_query", array_query, "[str]", div=",") + _query_parameters["arrayQuery"] = _SERIALIZER.query("array_query", array_query, "[str]", div=",") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_array_string_no_collection_format_empty_request( @@ -1001,18 +1001,18 @@ def build_array_string_no_collection_format_empty_request( accept = "application/json" # Construct URL - url = "/queries/array/none/string/empty" + _url = "/queries/array/none/string/empty" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if array_query is not None: - query_parameters["arrayQuery"] = _SERIALIZER.query("array_query", array_query, "[str]", div=",") + _query_parameters["arrayQuery"] = _SERIALIZER.query("array_query", array_query, "[str]", div=",") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_array_string_ssv_valid_request(*, array_query: Optional[List[str]] = None, **kwargs: Any) -> HttpRequest: @@ -1033,18 +1033,18 @@ def build_array_string_ssv_valid_request(*, array_query: Optional[List[str]] = N accept = "application/json" # Construct URL - url = "/queries/array/ssv/string/valid" + _url = "/queries/array/ssv/string/valid" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if array_query is not None: - query_parameters["arrayQuery"] = _SERIALIZER.query("array_query", array_query, "[str]", div=" ") + _query_parameters["arrayQuery"] = _SERIALIZER.query("array_query", array_query, "[str]", div=" ") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_array_string_tsv_valid_request(*, array_query: Optional[List[str]] = None, **kwargs: Any) -> HttpRequest: @@ -1065,18 +1065,18 @@ def build_array_string_tsv_valid_request(*, array_query: Optional[List[str]] = N accept = "application/json" # Construct URL - url = "/queries/array/tsv/string/valid" + _url = "/queries/array/tsv/string/valid" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if array_query is not None: - query_parameters["arrayQuery"] = _SERIALIZER.query("array_query", array_query, "[str]", div=" ") + _query_parameters["arrayQuery"] = _SERIALIZER.query("array_query", array_query, "[str]", div=" ") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_array_string_pipes_valid_request(*, array_query: Optional[List[str]] = None, **kwargs: Any) -> HttpRequest: @@ -1097,15 +1097,15 @@ def build_array_string_pipes_valid_request(*, array_query: Optional[List[str]] = accept = "application/json" # Construct URL - url = "/queries/array/pipes/string/valid" + _url = "/queries/array/pipes/string/valid" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if array_query is not None: - query_parameters["arrayQuery"] = _SERIALIZER.query("array_query", array_query, "[str]", div="|") + _query_parameters["arrayQuery"] = _SERIALIZER.query("array_query", array_query, "[str]", div="|") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/UrlMultiCollectionFormatLowLevel/urlmulticollectionformatlowlevel/rest/queries/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/UrlMultiCollectionFormatLowLevel/urlmulticollectionformatlowlevel/rest/queries/_request_builders.py index 19bc06c6021..5d6fe44c14e 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/UrlMultiCollectionFormatLowLevel/urlmulticollectionformatlowlevel/rest/queries/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/UrlMultiCollectionFormatLowLevel/urlmulticollectionformatlowlevel/rest/queries/_request_builders.py @@ -40,22 +40,22 @@ def build_array_string_multi_null_request( accept = "application/json" # Construct URL - url = "/queries/array/multi/string/null" + _url = "/queries/array/multi/string/null" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if array_query is not None: - query_parameters['arrayQuery'] = [_SERIALIZER.query("array_query", q, 'str') if q is not None else '' for q in array_query] + _query_parameters['arrayQuery'] = [_SERIALIZER.query("array_query", q, 'str') if q is not None else '' for q in array_query] # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -81,22 +81,22 @@ def build_array_string_multi_empty_request( accept = "application/json" # Construct URL - url = "/queries/array/multi/string/empty" + _url = "/queries/array/multi/string/empty" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if array_query is not None: - query_parameters['arrayQuery'] = [_SERIALIZER.query("array_query", q, 'str') if q is not None else '' for q in array_query] + _query_parameters['arrayQuery'] = [_SERIALIZER.query("array_query", q, 'str') if q is not None else '' for q in array_query] # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -124,21 +124,21 @@ def build_array_string_multi_valid_request( accept = "application/json" # Construct URL - url = "/queries/array/multi/string/valid" + _url = "/queries/array/multi/string/valid" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if array_query is not None: - query_parameters['arrayQuery'] = [_SERIALIZER.query("array_query", q, 'str') if q is not None else '' for q in array_query] + _query_parameters['arrayQuery'] = [_SERIALIZER.query("array_query", q, 'str') if q is not None else '' for q in array_query] # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/UrlMultiCollectionFormatLowLevel/urlmulticollectionformatlowlevel/rest/queries/_request_builders_py3.py b/test/vanilla/low-level/Expected/AcceptanceTests/UrlMultiCollectionFormatLowLevel/urlmulticollectionformatlowlevel/rest/queries/_request_builders_py3.py index 51a4811a090..d791e25513c 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/UrlMultiCollectionFormatLowLevel/urlmulticollectionformatlowlevel/rest/queries/_request_builders_py3.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/UrlMultiCollectionFormatLowLevel/urlmulticollectionformatlowlevel/rest/queries/_request_builders_py3.py @@ -30,20 +30,20 @@ def build_array_string_multi_null_request(*, array_query: Optional[List[str]] = accept = "application/json" # Construct URL - url = "/queries/array/multi/string/null" + _url = "/queries/array/multi/string/null" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if array_query is not None: - query_parameters["arrayQuery"] = [ + _query_parameters["arrayQuery"] = [ _SERIALIZER.query("array_query", q, "str") if q is not None else "" for q in array_query ] # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_array_string_multi_empty_request(*, array_query: Optional[List[str]] = None, **kwargs: Any) -> HttpRequest: @@ -62,20 +62,20 @@ def build_array_string_multi_empty_request(*, array_query: Optional[List[str]] = accept = "application/json" # Construct URL - url = "/queries/array/multi/string/empty" + _url = "/queries/array/multi/string/empty" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if array_query is not None: - query_parameters["arrayQuery"] = [ + _query_parameters["arrayQuery"] = [ _SERIALIZER.query("array_query", q, "str") if q is not None else "" for q in array_query ] # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_array_string_multi_valid_request(*, array_query: Optional[List[str]] = None, **kwargs: Any) -> HttpRequest: @@ -96,17 +96,17 @@ def build_array_string_multi_valid_request(*, array_query: Optional[List[str]] = accept = "application/json" # Construct URL - url = "/queries/array/multi/string/valid" + _url = "/queries/array/multi/string/valid" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if array_query is not None: - query_parameters["arrayQuery"] = [ + _query_parameters["arrayQuery"] = [ _SERIALIZER.query("array_query", q, "str") if q is not None else "" for q in array_query ] # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/ValidationLowLevel/validationlowlevel/rest/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/ValidationLowLevel/validationlowlevel/rest/_request_builders.py index b432e190f90..0acdadbb183 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/ValidationLowLevel/validationlowlevel/rest/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/ValidationLowLevel/validationlowlevel/rest/_request_builders.py @@ -81,28 +81,28 @@ def build_validation_of_method_parameters_request( accept = "application/json" # Construct URL - url = "/fakepath/{subscriptionId}/{resourceGroupName}/{id}" + _url = "/fakepath/{subscriptionId}/{resourceGroupName}/{id}" path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str', max_length=10, min_length=3, pattern=r'[a-zA-Z0-9\']+'), "id": _SERIALIZER.url("id", id, 'int', maximum=1000, minimum=100, multiple=10), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['apiVersion'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['apiVersion'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -199,30 +199,30 @@ def build_validation_of_body_request( accept = "application/json" # Construct URL - url = "/fakepath/{subscriptionId}/{resourceGroupName}/{id}" + _url = "/fakepath/{subscriptionId}/{resourceGroupName}/{id}" path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str', max_length=10, min_length=3, pattern=r'[a-zA-Z0-9]+'), "id": _SERIALIZER.url("id", id, 'int', maximum=1000, minimum=100, multiple=10), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['apiVersion'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['apiVersion'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -248,16 +248,16 @@ def build_get_with_constant_in_path_request( constant_param = kwargs.pop('constant_param', "constant") # type: str # Construct URL - url = "/validation/constantsInPath/{constantParam}/value" + _url = "/validation/constantsInPath/{constantParam}/value" path_format_arguments = { "constantParam": _SERIALIZER.url("constant_param", constant_param, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) return HttpRequest( method="GET", - url=url, + url=_url, **kwargs ) @@ -348,22 +348,22 @@ def build_post_with_constant_in_body_request( accept = "application/json" # Construct URL - url = "/validation/constantsInPath/{constantParam}/value" + _url = "/validation/constantsInPath/{constantParam}/value" path_format_arguments = { "constantParam": _SERIALIZER.url("constant_param", constant_param, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/ValidationLowLevel/validationlowlevel/rest/_request_builders_py3.py b/test/vanilla/low-level/Expected/AcceptanceTests/ValidationLowLevel/validationlowlevel/rest/_request_builders_py3.py index e6adfd9f341..69dcbc9307c 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/ValidationLowLevel/validationlowlevel/rest/_request_builders_py3.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/ValidationLowLevel/validationlowlevel/rest/_request_builders_py3.py @@ -72,7 +72,7 @@ def build_validation_of_method_parameters_request( accept = "application/json" # Construct URL - url = "/fakepath/{subscriptionId}/{resourceGroupName}/{id}" + _url = "/fakepath/{subscriptionId}/{resourceGroupName}/{id}" path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), "resourceGroupName": _SERIALIZER.url( @@ -81,17 +81,17 @@ def build_validation_of_method_parameters_request( "id": _SERIALIZER.url("id", id, "int", maximum=1000, minimum=100, multiple=10), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["apiVersion"] = _SERIALIZER.query("api_version", api_version, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["apiVersion"] = _SERIALIZER.query("api_version", api_version, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_validation_of_body_request( @@ -188,7 +188,7 @@ def build_validation_of_body_request( accept = "application/json" # Construct URL - url = "/fakepath/{subscriptionId}/{resourceGroupName}/{id}" + _url = "/fakepath/{subscriptionId}/{resourceGroupName}/{id}" path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), "resourceGroupName": _SERIALIZER.url( @@ -197,20 +197,26 @@ def build_validation_of_body_request( "id": _SERIALIZER.url("id", id, "int", maximum=1000, minimum=100, multiple=10), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["apiVersion"] = _SERIALIZER.query("api_version", api_version, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["apiVersion"] = _SERIALIZER.query("api_version", api_version, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") return HttpRequest( - method="PUT", url=url, params=query_parameters, headers=header_parameters, json=json, content=content, **kwargs + method="PUT", + url=_url, + params=_query_parameters, + headers=_header_parameters, + json=json, + content=content, + **kwargs ) @@ -232,14 +238,14 @@ def build_get_with_constant_in_path_request(**kwargs: Any) -> HttpRequest: constant_param = kwargs.pop("constant_param", "constant") # type: str # Construct URL - url = "/validation/constantsInPath/{constantParam}/value" + _url = "/validation/constantsInPath/{constantParam}/value" path_format_arguments = { "constantParam": _SERIALIZER.url("constant_param", constant_param, "str"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) - return HttpRequest(method="GET", url=url, **kwargs) + return HttpRequest(method="GET", url=_url, **kwargs) def build_post_with_constant_in_body_request( @@ -327,17 +333,17 @@ def build_post_with_constant_in_body_request( accept = "application/json" # Construct URL - url = "/validation/constantsInPath/{constantParam}/value" + _url = "/validation/constantsInPath/{constantParam}/value" path_format_arguments = { "constantParam": _SERIALIZER.url("constant_param", constant_param, "str"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/XmlLowLevel/xmlservicelowlevel/rest/xml/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/XmlLowLevel/xmlservicelowlevel/rest/xml/_request_builders.py index 541843169bc..678b4d66152 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/XmlLowLevel/xmlservicelowlevel/rest/xml/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/XmlLowLevel/xmlservicelowlevel/rest/xml/_request_builders.py @@ -50,16 +50,16 @@ def build_get_complex_type_ref_no_meta_request( accept = "application/xml" # Construct URL - url = "/xml/complex-type-ref-no-meta" + _url = "/xml/complex-type-ref-no-meta" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -85,17 +85,17 @@ def build_put_complex_type_ref_no_meta_request( content_type = kwargs.pop('content_type', None) # type: Optional[str] # Construct URL - url = "/xml/complex-type-ref-no-meta" + _url = "/xml/complex-type-ref-no-meta" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -128,16 +128,16 @@ def build_get_complex_type_ref_with_meta_request( accept = "application/xml" # Construct URL - url = "/xml/complex-type-ref-with-meta" + _url = "/xml/complex-type-ref-with-meta" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -163,17 +163,17 @@ def build_put_complex_type_ref_with_meta_request( content_type = kwargs.pop('content_type', None) # type: Optional[str] # Construct URL - url = "/xml/complex-type-ref-with-meta" + _url = "/xml/complex-type-ref-with-meta" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -214,16 +214,16 @@ def build_get_simple_request( accept = "application/xml" # Construct URL - url = "/xml/simple" + _url = "/xml/simple" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -250,18 +250,18 @@ def build_put_simple_request( accept = "application/xml" # Construct URL - url = "/xml/simple" + _url = "/xml/simple" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -296,16 +296,16 @@ def build_get_wrapped_lists_request( accept = "application/xml" # Construct URL - url = "/xml/wrapped-lists" + _url = "/xml/wrapped-lists" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -332,18 +332,18 @@ def build_put_wrapped_lists_request( accept = "application/xml" # Construct URL - url = "/xml/wrapped-lists" + _url = "/xml/wrapped-lists" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -364,11 +364,11 @@ def build_get_headers_request( """ # Construct URL - url = "/xml/headers" + _url = "/xml/headers" return HttpRequest( method="GET", - url=url, + url=_url, **kwargs ) @@ -409,16 +409,16 @@ def build_get_empty_list_request( accept = "application/xml" # Construct URL - url = "/xml/empty-list" + _url = "/xml/empty-list" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -444,17 +444,17 @@ def build_put_empty_list_request( content_type = kwargs.pop('content_type', None) # type: Optional[str] # Construct URL - url = "/xml/empty-list" + _url = "/xml/empty-list" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -489,16 +489,16 @@ def build_get_empty_wrapped_lists_request( accept = "application/xml" # Construct URL - url = "/xml/empty-wrapped-lists" + _url = "/xml/empty-wrapped-lists" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -524,17 +524,17 @@ def build_put_empty_wrapped_lists_request( content_type = kwargs.pop('content_type', None) # type: Optional[str] # Construct URL - url = "/xml/empty-wrapped-lists" + _url = "/xml/empty-wrapped-lists" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -569,16 +569,16 @@ def build_get_root_list_request( accept = "application/xml" # Construct URL - url = "/xml/root-list" + _url = "/xml/root-list" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -604,17 +604,17 @@ def build_put_root_list_request( content_type = kwargs.pop('content_type', None) # type: Optional[str] # Construct URL - url = "/xml/root-list" + _url = "/xml/root-list" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -649,16 +649,16 @@ def build_get_root_list_single_item_request( accept = "application/xml" # Construct URL - url = "/xml/root-list-single-item" + _url = "/xml/root-list-single-item" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -684,17 +684,17 @@ def build_put_root_list_single_item_request( content_type = kwargs.pop('content_type', None) # type: Optional[str] # Construct URL - url = "/xml/root-list-single-item" + _url = "/xml/root-list-single-item" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -729,16 +729,16 @@ def build_get_empty_root_list_request( accept = "application/xml" # Construct URL - url = "/xml/empty-root-list" + _url = "/xml/empty-root-list" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -764,17 +764,17 @@ def build_put_empty_root_list_request( content_type = kwargs.pop('content_type', None) # type: Optional[str] # Construct URL - url = "/xml/empty-root-list" + _url = "/xml/empty-root-list" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -807,16 +807,16 @@ def build_get_empty_child_element_request( accept = "application/xml" # Construct URL - url = "/xml/empty-child-element" + _url = "/xml/empty-child-element" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -842,17 +842,17 @@ def build_put_empty_child_element_request( content_type = kwargs.pop('content_type', None) # type: Optional[str] # Construct URL - url = "/xml/empty-child-element" + _url = "/xml/empty-child-element" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -912,21 +912,21 @@ def build_list_containers_request( accept = "application/xml" # Construct URL - url = "/xml/" + _url = "/xml/" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['comp'] = _SERIALIZER.query("comp", comp, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['comp'] = _SERIALIZER.query("comp", comp, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -1041,22 +1041,22 @@ def build_get_service_properties_request( accept = "application/xml" # Construct URL - url = "/xml/" + _url = "/xml/" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['comp'] = _SERIALIZER.query("comp", comp, 'str') - query_parameters['restype'] = _SERIALIZER.query("restype", restype, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['comp'] = _SERIALIZER.query("comp", comp, 'str') + _query_parameters['restype'] = _SERIALIZER.query("restype", restype, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -1090,23 +1090,23 @@ def build_put_service_properties_request( content_type = kwargs.pop('content_type', None) # type: Optional[str] # Construct URL - url = "/xml/" + _url = "/xml/" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['comp'] = _SERIALIZER.query("comp", comp, 'str') - query_parameters['restype'] = _SERIALIZER.query("restype", restype, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['comp'] = _SERIALIZER.query("comp", comp, 'str') + _query_parameters['restype'] = _SERIALIZER.query("restype", restype, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') return HttpRequest( method="PUT", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -1155,22 +1155,22 @@ def build_get_acls_request( accept = "application/xml" # Construct URL - url = "/xml/mycontainer" + _url = "/xml/mycontainer" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['comp'] = _SERIALIZER.query("comp", comp, 'str') - query_parameters['restype'] = _SERIALIZER.query("restype", restype, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['comp'] = _SERIALIZER.query("comp", comp, 'str') + _query_parameters['restype'] = _SERIALIZER.query("restype", restype, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -1204,23 +1204,23 @@ def build_put_acls_request( content_type = kwargs.pop('content_type', None) # type: Optional[str] # Construct URL - url = "/xml/mycontainer" + _url = "/xml/mycontainer" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['comp'] = _SERIALIZER.query("comp", comp, 'str') - query_parameters['restype'] = _SERIALIZER.query("restype", restype, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['comp'] = _SERIALIZER.query("comp", comp, 'str') + _query_parameters['restype'] = _SERIALIZER.query("restype", restype, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') return HttpRequest( method="PUT", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -1343,22 +1343,22 @@ def build_list_blobs_request( accept = "application/xml" # Construct URL - url = "/xml/mycontainer" + _url = "/xml/mycontainer" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['comp'] = _SERIALIZER.query("comp", comp, 'str') - query_parameters['restype'] = _SERIALIZER.query("restype", restype, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['comp'] = _SERIALIZER.query("comp", comp, 'str') + _query_parameters['restype'] = _SERIALIZER.query("restype", restype, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -1396,17 +1396,17 @@ def build_json_input_request( content_type = kwargs.pop('content_type', None) # type: Optional[str] # Construct URL - url = "/xml/jsoninput" + _url = "/xml/jsoninput" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1436,16 +1436,16 @@ def build_json_output_request( accept = "application/json" # Construct URL - url = "/xml/jsonoutput" + _url = "/xml/jsonoutput" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1477,16 +1477,16 @@ def build_get_xms_text_request( accept = "application/xml" # Construct URL - url = "/xml/x-ms-text" + _url = "/xml/x-ms-text" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1516,16 +1516,16 @@ def build_get_bytes_request( accept = "application/xml" # Construct URL - url = "/xml/bytes" + _url = "/xml/bytes" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1552,18 +1552,18 @@ def build_put_binary_request( accept = "application/xml" # Construct URL - url = "/xml/bytes" + _url = "/xml/bytes" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1593,16 +1593,16 @@ def build_get_uri_request( accept = "application/xml" # Construct URL - url = "/xml/url" + _url = "/xml/url" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -1629,17 +1629,17 @@ def build_put_uri_request( accept = "application/xml" # Construct URL - url = "/xml/url" + _url = "/xml/url" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/XmlLowLevel/xmlservicelowlevel/rest/xml/_request_builders_py3.py b/test/vanilla/low-level/Expected/AcceptanceTests/XmlLowLevel/xmlservicelowlevel/rest/xml/_request_builders_py3.py index 28d39d795b8..1c2b8b15fe9 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/XmlLowLevel/xmlservicelowlevel/rest/xml/_request_builders_py3.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/XmlLowLevel/xmlservicelowlevel/rest/xml/_request_builders_py3.py @@ -42,13 +42,13 @@ def build_get_complex_type_ref_no_meta_request(**kwargs: Any) -> HttpRequest: accept = "application/xml" # Construct URL - url = "/xml/complex-type-ref-no-meta" + _url = "/xml/complex-type-ref-no-meta" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_complex_type_ref_no_meta_request(*, content: Any, **kwargs: Any) -> HttpRequest: @@ -69,14 +69,14 @@ def build_put_complex_type_ref_no_meta_request(*, content: Any, **kwargs: Any) - content_type = kwargs.pop("content_type", None) # type: Optional[str] # Construct URL - url = "/xml/complex-type-ref-no-meta" + _url = "/xml/complex-type-ref-no-meta" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, content=content, **kwargs) def build_get_complex_type_ref_with_meta_request(**kwargs: Any) -> HttpRequest: @@ -104,13 +104,13 @@ def build_get_complex_type_ref_with_meta_request(**kwargs: Any) -> HttpRequest: accept = "application/xml" # Construct URL - url = "/xml/complex-type-ref-with-meta" + _url = "/xml/complex-type-ref-with-meta" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_complex_type_ref_with_meta_request(*, content: Any, **kwargs: Any) -> HttpRequest: @@ -131,14 +131,14 @@ def build_put_complex_type_ref_with_meta_request(*, content: Any, **kwargs: Any) content_type = kwargs.pop("content_type", None) # type: Optional[str] # Construct URL - url = "/xml/complex-type-ref-with-meta" + _url = "/xml/complex-type-ref-with-meta" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, content=content, **kwargs) def build_get_simple_request(**kwargs: Any) -> HttpRequest: @@ -174,13 +174,13 @@ def build_get_simple_request(**kwargs: Any) -> HttpRequest: accept = "application/xml" # Construct URL - url = "/xml/simple" + _url = "/xml/simple" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_simple_request(*, content: Any, **kwargs: Any) -> HttpRequest: @@ -202,15 +202,15 @@ def build_put_simple_request(*, content: Any, **kwargs: Any) -> HttpRequest: accept = "application/xml" # Construct URL - url = "/xml/simple" + _url = "/xml/simple" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, content=content, **kwargs) def build_get_wrapped_lists_request(**kwargs: Any) -> HttpRequest: @@ -240,13 +240,13 @@ def build_get_wrapped_lists_request(**kwargs: Any) -> HttpRequest: accept = "application/xml" # Construct URL - url = "/xml/wrapped-lists" + _url = "/xml/wrapped-lists" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_wrapped_lists_request(*, content: Any, **kwargs: Any) -> HttpRequest: @@ -268,15 +268,15 @@ def build_put_wrapped_lists_request(*, content: Any, **kwargs: Any) -> HttpReque accept = "application/xml" # Construct URL - url = "/xml/wrapped-lists" + _url = "/xml/wrapped-lists" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, content=content, **kwargs) def build_get_headers_request(**kwargs: Any) -> HttpRequest: @@ -292,9 +292,9 @@ def build_get_headers_request(**kwargs: Any) -> HttpRequest: """ # Construct URL - url = "/xml/headers" + _url = "/xml/headers" - return HttpRequest(method="GET", url=url, **kwargs) + return HttpRequest(method="GET", url=_url, **kwargs) def build_get_empty_list_request(**kwargs: Any) -> HttpRequest: @@ -330,13 +330,13 @@ def build_get_empty_list_request(**kwargs: Any) -> HttpRequest: accept = "application/xml" # Construct URL - url = "/xml/empty-list" + _url = "/xml/empty-list" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_empty_list_request(*, content: Any, **kwargs: Any) -> HttpRequest: @@ -357,14 +357,14 @@ def build_put_empty_list_request(*, content: Any, **kwargs: Any) -> HttpRequest: content_type = kwargs.pop("content_type", None) # type: Optional[str] # Construct URL - url = "/xml/empty-list" + _url = "/xml/empty-list" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, content=content, **kwargs) def build_get_empty_wrapped_lists_request(**kwargs: Any) -> HttpRequest: @@ -394,13 +394,13 @@ def build_get_empty_wrapped_lists_request(**kwargs: Any) -> HttpRequest: accept = "application/xml" # Construct URL - url = "/xml/empty-wrapped-lists" + _url = "/xml/empty-wrapped-lists" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_empty_wrapped_lists_request(*, content: Any, **kwargs: Any) -> HttpRequest: @@ -421,14 +421,14 @@ def build_put_empty_wrapped_lists_request(*, content: Any, **kwargs: Any) -> Htt content_type = kwargs.pop("content_type", None) # type: Optional[str] # Construct URL - url = "/xml/empty-wrapped-lists" + _url = "/xml/empty-wrapped-lists" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, content=content, **kwargs) def build_get_root_list_request(**kwargs: Any) -> HttpRequest: @@ -458,13 +458,13 @@ def build_get_root_list_request(**kwargs: Any) -> HttpRequest: accept = "application/xml" # Construct URL - url = "/xml/root-list" + _url = "/xml/root-list" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_root_list_request(*, content: Any, **kwargs: Any) -> HttpRequest: @@ -485,14 +485,14 @@ def build_put_root_list_request(*, content: Any, **kwargs: Any) -> HttpRequest: content_type = kwargs.pop("content_type", None) # type: Optional[str] # Construct URL - url = "/xml/root-list" + _url = "/xml/root-list" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, content=content, **kwargs) def build_get_root_list_single_item_request(**kwargs: Any) -> HttpRequest: @@ -522,13 +522,13 @@ def build_get_root_list_single_item_request(**kwargs: Any) -> HttpRequest: accept = "application/xml" # Construct URL - url = "/xml/root-list-single-item" + _url = "/xml/root-list-single-item" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_root_list_single_item_request(*, content: Any, **kwargs: Any) -> HttpRequest: @@ -549,14 +549,14 @@ def build_put_root_list_single_item_request(*, content: Any, **kwargs: Any) -> H content_type = kwargs.pop("content_type", None) # type: Optional[str] # Construct URL - url = "/xml/root-list-single-item" + _url = "/xml/root-list-single-item" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, content=content, **kwargs) def build_get_empty_root_list_request(**kwargs: Any) -> HttpRequest: @@ -586,13 +586,13 @@ def build_get_empty_root_list_request(**kwargs: Any) -> HttpRequest: accept = "application/xml" # Construct URL - url = "/xml/empty-root-list" + _url = "/xml/empty-root-list" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_empty_root_list_request(*, content: Any, **kwargs: Any) -> HttpRequest: @@ -613,14 +613,14 @@ def build_put_empty_root_list_request(*, content: Any, **kwargs: Any) -> HttpReq content_type = kwargs.pop("content_type", None) # type: Optional[str] # Construct URL - url = "/xml/empty-root-list" + _url = "/xml/empty-root-list" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, content=content, **kwargs) def build_get_empty_child_element_request(**kwargs: Any) -> HttpRequest: @@ -648,13 +648,13 @@ def build_get_empty_child_element_request(**kwargs: Any) -> HttpRequest: accept = "application/xml" # Construct URL - url = "/xml/empty-child-element" + _url = "/xml/empty-child-element" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_empty_child_element_request(*, content: Any, **kwargs: Any) -> HttpRequest: @@ -675,14 +675,14 @@ def build_put_empty_child_element_request(*, content: Any, **kwargs: Any) -> Htt content_type = kwargs.pop("content_type", None) # type: Optional[str] # Construct URL - url = "/xml/empty-child-element" + _url = "/xml/empty-child-element" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, content=content, **kwargs) def build_list_containers_request(**kwargs: Any) -> HttpRequest: @@ -737,17 +737,17 @@ def build_list_containers_request(**kwargs: Any) -> HttpRequest: accept = "application/xml" # Construct URL - url = "/xml/" + _url = "/xml/" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["comp"] = _SERIALIZER.query("comp", comp, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["comp"] = _SERIALIZER.query("comp", comp, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_get_service_properties_request(**kwargs: Any) -> HttpRequest: @@ -857,18 +857,18 @@ def build_get_service_properties_request(**kwargs: Any) -> HttpRequest: accept = "application/xml" # Construct URL - url = "/xml/" + _url = "/xml/" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["comp"] = _SERIALIZER.query("comp", comp, "str") - query_parameters["restype"] = _SERIALIZER.query("restype", restype, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["comp"] = _SERIALIZER.query("comp", comp, "str") + _query_parameters["restype"] = _SERIALIZER.query("restype", restype, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_put_service_properties_request(*, content: Any, **kwargs: Any) -> HttpRequest: @@ -897,20 +897,20 @@ def build_put_service_properties_request(*, content: Any, **kwargs: Any) -> Http content_type = kwargs.pop("content_type", None) # type: Optional[str] # Construct URL - url = "/xml/" + _url = "/xml/" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["comp"] = _SERIALIZER.query("comp", comp, "str") - query_parameters["restype"] = _SERIALIZER.query("restype", restype, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["comp"] = _SERIALIZER.query("comp", comp, "str") + _query_parameters["restype"] = _SERIALIZER.query("restype", restype, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") return HttpRequest( - method="PUT", url=url, params=query_parameters, headers=header_parameters, content=content, **kwargs + method="PUT", url=_url, params=_query_parameters, headers=_header_parameters, content=content, **kwargs ) @@ -955,18 +955,18 @@ def build_get_acls_request(**kwargs: Any) -> HttpRequest: accept = "application/xml" # Construct URL - url = "/xml/mycontainer" + _url = "/xml/mycontainer" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["comp"] = _SERIALIZER.query("comp", comp, "str") - query_parameters["restype"] = _SERIALIZER.query("restype", restype, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["comp"] = _SERIALIZER.query("comp", comp, "str") + _query_parameters["restype"] = _SERIALIZER.query("restype", restype, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_put_acls_request(*, content: Any, **kwargs: Any) -> HttpRequest: @@ -995,20 +995,20 @@ def build_put_acls_request(*, content: Any, **kwargs: Any) -> HttpRequest: content_type = kwargs.pop("content_type", None) # type: Optional[str] # Construct URL - url = "/xml/mycontainer" + _url = "/xml/mycontainer" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["comp"] = _SERIALIZER.query("comp", comp, "str") - query_parameters["restype"] = _SERIALIZER.query("restype", restype, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["comp"] = _SERIALIZER.query("comp", comp, "str") + _query_parameters["restype"] = _SERIALIZER.query("restype", restype, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") return HttpRequest( - method="PUT", url=url, params=query_parameters, headers=header_parameters, content=content, **kwargs + method="PUT", url=_url, params=_query_parameters, headers=_header_parameters, content=content, **kwargs ) @@ -1127,18 +1127,18 @@ def build_list_blobs_request(**kwargs: Any) -> HttpRequest: accept = "application/xml" # Construct URL - url = "/xml/mycontainer" + _url = "/xml/mycontainer" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["comp"] = _SERIALIZER.query("comp", comp, "str") - query_parameters["restype"] = _SERIALIZER.query("restype", restype, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["comp"] = _SERIALIZER.query("comp", comp, "str") + _query_parameters["restype"] = _SERIALIZER.query("restype", restype, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_json_input_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -1171,14 +1171,14 @@ def build_json_input_request(*, json: JSONType = None, content: Any = None, **kw content_type = kwargs.pop("content_type", None) # type: Optional[str] # Construct URL - url = "/xml/jsoninput" + _url = "/xml/jsoninput" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_json_output_request(**kwargs: Any) -> HttpRequest: @@ -1203,13 +1203,13 @@ def build_json_output_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/xml/jsonoutput" + _url = "/xml/jsonoutput" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_xms_text_request(**kwargs: Any) -> HttpRequest: @@ -1236,13 +1236,13 @@ def build_get_xms_text_request(**kwargs: Any) -> HttpRequest: accept = "application/xml" # Construct URL - url = "/xml/x-ms-text" + _url = "/xml/x-ms-text" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_get_bytes_request(**kwargs: Any) -> HttpRequest: @@ -1267,13 +1267,13 @@ def build_get_bytes_request(**kwargs: Any) -> HttpRequest: accept = "application/xml" # Construct URL - url = "/xml/bytes" + _url = "/xml/bytes" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_binary_request(*, content: Any, **kwargs: Any) -> HttpRequest: @@ -1295,15 +1295,15 @@ def build_put_binary_request(*, content: Any, **kwargs: Any) -> HttpRequest: accept = "application/xml" # Construct URL - url = "/xml/bytes" + _url = "/xml/bytes" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, content=content, **kwargs) def build_get_uri_request(**kwargs: Any) -> HttpRequest: @@ -1328,13 +1328,13 @@ def build_get_uri_request(**kwargs: Any) -> HttpRequest: accept = "application/xml" # Construct URL - url = "/xml/url" + _url = "/xml/url" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_uri_request(*, content: Any, **kwargs: Any) -> HttpRequest: @@ -1356,12 +1356,12 @@ def build_put_uri_request(*, content: Any, **kwargs: Any) -> HttpRequest: accept = "application/xml" # Construct URL - url = "/xml/url" + _url = "/xml/url" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, content=content, **kwargs) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/XmsErrorResponseLowLevel/xmserrorresponselowlevel/rest/pet/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/XmsErrorResponseLowLevel/xmserrorresponselowlevel/rest/pet/_request_builders.py index fad132c81dc..ad1f5e179c1 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/XmsErrorResponseLowLevel/xmserrorresponselowlevel/rest/pet/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/XmsErrorResponseLowLevel/xmserrorresponselowlevel/rest/pet/_request_builders.py @@ -50,21 +50,21 @@ def build_get_pet_by_id_request( accept = "application/json" # Construct URL - url = "/errorStatusCodes/Pets/{petId}/GetPet" + _url = "/errorStatusCodes/Pets/{petId}/GetPet" path_format_arguments = { "petId": _SERIALIZER.url("pet_id", pet_id, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -97,21 +97,21 @@ def build_do_something_request( accept = "application/json" # Construct URL - url = "/errorStatusCodes/Pets/doSomething/{whatAction}" + _url = "/errorStatusCodes/Pets/doSomething/{whatAction}" path_format_arguments = { "whatAction": _SERIALIZER.url("what_action", what_action, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_header_parameters, **kwargs ) @@ -139,21 +139,21 @@ def build_has_models_param_request( accept = "application/json" # Construct URL - url = "/errorStatusCodes/Pets/hasModelsParam" + _url = "/errorStatusCodes/Pets/hasModelsParam" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if models is not None: - query_parameters['models'] = _SERIALIZER.query("models", models, 'str') + _query_parameters['models'] = _SERIALIZER.query("models", models, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/XmsErrorResponseLowLevel/xmserrorresponselowlevel/rest/pet/_request_builders_py3.py b/test/vanilla/low-level/Expected/AcceptanceTests/XmsErrorResponseLowLevel/xmserrorresponselowlevel/rest/pet/_request_builders_py3.py index 077e86291eb..a61389c9993 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/XmsErrorResponseLowLevel/xmserrorresponselowlevel/rest/pet/_request_builders_py3.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/XmsErrorResponseLowLevel/xmserrorresponselowlevel/rest/pet/_request_builders_py3.py @@ -41,18 +41,18 @@ def build_get_pet_by_id_request(pet_id: str, **kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/errorStatusCodes/Pets/{petId}/GetPet" + _url = "/errorStatusCodes/Pets/{petId}/GetPet" path_format_arguments = { "petId": _SERIALIZER.url("pet_id", pet_id, "str"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_do_something_request(what_action: str, **kwargs: Any) -> HttpRequest: @@ -79,18 +79,18 @@ def build_do_something_request(what_action: str, **kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/errorStatusCodes/Pets/doSomething/{whatAction}" + _url = "/errorStatusCodes/Pets/doSomething/{whatAction}" path_format_arguments = { "whatAction": _SERIALIZER.url("what_action", what_action, "str"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) def build_has_models_param_request(*, models: Optional[str] = "value1", **kwargs: Any) -> HttpRequest: @@ -111,15 +111,15 @@ def build_has_models_param_request(*, models: Optional[str] = "value1", **kwargs accept = "application/json" # Construct URL - url = "/errorStatusCodes/Pets/hasModelsParam" + _url = "/errorStatusCodes/Pets/hasModelsParam" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if models is not None: - query_parameters["models"] = _SERIALIZER.query("models", models, "str") + _query_parameters["models"] = _SERIALIZER.query("models", models, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/AdditionalPropertiesVersionTolerant/additionalpropertiesversiontolerant/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/AdditionalPropertiesVersionTolerant/additionalpropertiesversiontolerant/operations/_operations.py index 3b7c0aa75a0..5e220356ed0 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/AdditionalPropertiesVersionTolerant/additionalpropertiesversiontolerant/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/AdditionalPropertiesVersionTolerant/additionalpropertiesversiontolerant/operations/_operations.py @@ -34,15 +34,15 @@ def build_pets_create_ap_true_request(*, json: JSONType = None, content: Any = N accept = "application/json" # Construct URL - url = "/additionalProperties/true" + _url = "/additionalProperties/true" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_pets_create_cat_ap_true_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -50,15 +50,15 @@ def build_pets_create_cat_ap_true_request(*, json: JSONType = None, content: Any accept = "application/json" # Construct URL - url = "/additionalProperties/true-subclass" + _url = "/additionalProperties/true-subclass" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_pets_create_ap_object_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -66,15 +66,15 @@ def build_pets_create_ap_object_request(*, json: JSONType = None, content: Any = accept = "application/json" # Construct URL - url = "/additionalProperties/type/object" + _url = "/additionalProperties/type/object" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_pets_create_ap_string_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -82,15 +82,15 @@ def build_pets_create_ap_string_request(*, json: JSONType = None, content: Any = accept = "application/json" # Construct URL - url = "/additionalProperties/type/string" + _url = "/additionalProperties/type/string" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_pets_create_ap_in_properties_request( @@ -100,15 +100,15 @@ def build_pets_create_ap_in_properties_request( accept = "application/json" # Construct URL - url = "/additionalProperties/in/properties" + _url = "/additionalProperties/in/properties" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_pets_create_ap_in_properties_with_ap_string_request( @@ -118,15 +118,15 @@ def build_pets_create_ap_in_properties_with_ap_string_request( accept = "application/json" # Construct URL - url = "/additionalProperties/in/properties/with/additionalProperties/string" + _url = "/additionalProperties/in/properties/with/additionalProperties/string" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) class PetsOperations(object): diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/AnythingVersionTolerant/anythingversiontolerant/_operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/AnythingVersionTolerant/anythingversiontolerant/_operations/_operations.py index eed3547600f..55eb5ab28e1 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/AnythingVersionTolerant/anythingversiontolerant/_operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/AnythingVersionTolerant/anythingversiontolerant/_operations/_operations.py @@ -32,79 +32,79 @@ def build_get_object_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/anything/object" + _url = "/anything/object" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_object_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: content_type = kwargs.pop("content_type", None) # type: Optional[str] # Construct URL - url = "/anything/object" + _url = "/anything/object" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_string_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/anything/string" + _url = "/anything/string" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_string_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: content_type = kwargs.pop("content_type", None) # type: Optional[str] # Construct URL - url = "/anything/string" + _url = "/anything/string" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_array_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/anything/array" + _url = "/anything/array" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_array_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: content_type = kwargs.pop("content_type", None) # type: Optional[str] # Construct URL - url = "/anything/array" + _url = "/anything/array" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) class AnythingClientOperationsMixin(object): diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyArrayVersionTolerant/bodyarrayversiontolerant/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyArrayVersionTolerant/bodyarrayversiontolerant/operations/_operations.py index bc8b652756d..6ef9c53d544 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyArrayVersionTolerant/bodyarrayversiontolerant/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyArrayVersionTolerant/bodyarrayversiontolerant/operations/_operations.py @@ -33,37 +33,37 @@ def build_array_get_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/array/null" + _url = "/array/null" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_array_get_invalid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/array/invalid" + _url = "/array/invalid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_array_get_empty_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/array/empty" + _url = "/array/empty" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_array_put_empty_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -71,27 +71,27 @@ def build_array_put_empty_request(*, json: JSONType = None, content: Any = None, accept = "application/json" # Construct URL - url = "/array/empty" + _url = "/array/empty" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_array_get_boolean_tfft_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/array/prim/boolean/tfft" + _url = "/array/prim/boolean/tfft" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_array_put_boolean_tfft_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -99,51 +99,51 @@ def build_array_put_boolean_tfft_request(*, json: JSONType = None, content: Any accept = "application/json" # Construct URL - url = "/array/prim/boolean/tfft" + _url = "/array/prim/boolean/tfft" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_array_get_boolean_invalid_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/array/prim/boolean/true.null.false" + _url = "/array/prim/boolean/true.null.false" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_array_get_boolean_invalid_string_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/array/prim/boolean/true.boolean.false" + _url = "/array/prim/boolean/true.boolean.false" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_array_get_integer_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/array/prim/integer/1.-1.3.300" + _url = "/array/prim/integer/1.-1.3.300" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_array_put_integer_valid_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -151,51 +151,51 @@ def build_array_put_integer_valid_request(*, json: JSONType = None, content: Any accept = "application/json" # Construct URL - url = "/array/prim/integer/1.-1.3.300" + _url = "/array/prim/integer/1.-1.3.300" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_array_get_int_invalid_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/array/prim/integer/1.null.zero" + _url = "/array/prim/integer/1.null.zero" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_array_get_int_invalid_string_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/array/prim/integer/1.integer.0" + _url = "/array/prim/integer/1.integer.0" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_array_get_long_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/array/prim/long/1.-1.3.300" + _url = "/array/prim/long/1.-1.3.300" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_array_put_long_valid_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -203,51 +203,51 @@ def build_array_put_long_valid_request(*, json: JSONType = None, content: Any = accept = "application/json" # Construct URL - url = "/array/prim/long/1.-1.3.300" + _url = "/array/prim/long/1.-1.3.300" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_array_get_long_invalid_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/array/prim/long/1.null.zero" + _url = "/array/prim/long/1.null.zero" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_array_get_long_invalid_string_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/array/prim/long/1.integer.0" + _url = "/array/prim/long/1.integer.0" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_array_get_float_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/array/prim/float/0--0.01-1.2e20" + _url = "/array/prim/float/0--0.01-1.2e20" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_array_put_float_valid_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -255,51 +255,51 @@ def build_array_put_float_valid_request(*, json: JSONType = None, content: Any = accept = "application/json" # Construct URL - url = "/array/prim/float/0--0.01-1.2e20" + _url = "/array/prim/float/0--0.01-1.2e20" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_array_get_float_invalid_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/array/prim/float/0.0-null-1.2e20" + _url = "/array/prim/float/0.0-null-1.2e20" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_array_get_float_invalid_string_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/array/prim/float/1.number.0" + _url = "/array/prim/float/1.number.0" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_array_get_double_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/array/prim/double/0--0.01-1.2e20" + _url = "/array/prim/double/0--0.01-1.2e20" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_array_put_double_valid_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -307,51 +307,51 @@ def build_array_put_double_valid_request(*, json: JSONType = None, content: Any accept = "application/json" # Construct URL - url = "/array/prim/double/0--0.01-1.2e20" + _url = "/array/prim/double/0--0.01-1.2e20" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_array_get_double_invalid_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/array/prim/double/0.0-null-1.2e20" + _url = "/array/prim/double/0.0-null-1.2e20" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_array_get_double_invalid_string_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/array/prim/double/1.number.0" + _url = "/array/prim/double/1.number.0" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_array_get_string_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/array/prim/string/foo1.foo2.foo3" + _url = "/array/prim/string/foo1.foo2.foo3" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_array_put_string_valid_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -359,27 +359,27 @@ def build_array_put_string_valid_request(*, json: JSONType = None, content: Any accept = "application/json" # Construct URL - url = "/array/prim/string/foo1.foo2.foo3" + _url = "/array/prim/string/foo1.foo2.foo3" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_array_get_enum_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/array/prim/enum/foo1.foo2.foo3" + _url = "/array/prim/enum/foo1.foo2.foo3" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_array_put_enum_valid_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -387,27 +387,27 @@ def build_array_put_enum_valid_request(*, json: JSONType = None, content: Any = accept = "application/json" # Construct URL - url = "/array/prim/enum/foo1.foo2.foo3" + _url = "/array/prim/enum/foo1.foo2.foo3" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_array_get_string_enum_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/array/prim/string-enum/foo1.foo2.foo3" + _url = "/array/prim/string-enum/foo1.foo2.foo3" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_array_put_string_enum_valid_request( @@ -417,51 +417,51 @@ def build_array_put_string_enum_valid_request( accept = "application/json" # Construct URL - url = "/array/prim/string-enum/foo1.foo2.foo3" + _url = "/array/prim/string-enum/foo1.foo2.foo3" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_array_get_string_with_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/array/prim/string/foo.null.foo2" + _url = "/array/prim/string/foo.null.foo2" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_array_get_string_with_invalid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/array/prim/string/foo.123.foo2" + _url = "/array/prim/string/foo.123.foo2" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_array_get_uuid_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/array/prim/uuid/valid" + _url = "/array/prim/uuid/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_array_put_uuid_valid_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -469,39 +469,39 @@ def build_array_put_uuid_valid_request(*, json: JSONType = None, content: Any = accept = "application/json" # Construct URL - url = "/array/prim/uuid/valid" + _url = "/array/prim/uuid/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_array_get_uuid_invalid_chars_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/array/prim/uuid/invalidchars" + _url = "/array/prim/uuid/invalidchars" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_array_get_date_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/array/prim/date/valid" + _url = "/array/prim/date/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_array_put_date_valid_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -509,51 +509,51 @@ def build_array_put_date_valid_request(*, json: JSONType = None, content: Any = accept = "application/json" # Construct URL - url = "/array/prim/date/valid" + _url = "/array/prim/date/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_array_get_date_invalid_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/array/prim/date/invalidnull" + _url = "/array/prim/date/invalidnull" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_array_get_date_invalid_chars_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/array/prim/date/invalidchars" + _url = "/array/prim/date/invalidchars" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_array_get_date_time_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/array/prim/date-time/valid" + _url = "/array/prim/date-time/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_array_put_date_time_valid_request( @@ -563,51 +563,51 @@ def build_array_put_date_time_valid_request( accept = "application/json" # Construct URL - url = "/array/prim/date-time/valid" + _url = "/array/prim/date-time/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_array_get_date_time_invalid_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/array/prim/date-time/invalidnull" + _url = "/array/prim/date-time/invalidnull" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_array_get_date_time_invalid_chars_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/array/prim/date-time/invalidchars" + _url = "/array/prim/date-time/invalidchars" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_array_get_date_time_rfc1123_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/array/prim/date-time-rfc1123/valid" + _url = "/array/prim/date-time-rfc1123/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_array_put_date_time_rfc1123_valid_request( @@ -617,27 +617,27 @@ def build_array_put_date_time_rfc1123_valid_request( accept = "application/json" # Construct URL - url = "/array/prim/date-time-rfc1123/valid" + _url = "/array/prim/date-time-rfc1123/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_array_get_duration_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/array/prim/duration/valid" + _url = "/array/prim/duration/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_array_put_duration_valid_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -645,27 +645,27 @@ def build_array_put_duration_valid_request(*, json: JSONType = None, content: An accept = "application/json" # Construct URL - url = "/array/prim/duration/valid" + _url = "/array/prim/duration/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_array_get_byte_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/array/prim/byte/valid" + _url = "/array/prim/byte/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_array_put_byte_valid_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -673,99 +673,99 @@ def build_array_put_byte_valid_request(*, json: JSONType = None, content: Any = accept = "application/json" # Construct URL - url = "/array/prim/byte/valid" + _url = "/array/prim/byte/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_array_get_byte_invalid_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/array/prim/byte/invalidnull" + _url = "/array/prim/byte/invalidnull" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_array_get_base64_url_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/array/prim/base64url/valid" + _url = "/array/prim/base64url/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_array_get_complex_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/array/complex/null" + _url = "/array/complex/null" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_array_get_complex_empty_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/array/complex/empty" + _url = "/array/complex/empty" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_array_get_complex_item_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/array/complex/itemnull" + _url = "/array/complex/itemnull" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_array_get_complex_item_empty_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/array/complex/itemempty" + _url = "/array/complex/itemempty" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_array_get_complex_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/array/complex/valid" + _url = "/array/complex/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_array_put_complex_valid_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -773,75 +773,75 @@ def build_array_put_complex_valid_request(*, json: JSONType = None, content: Any accept = "application/json" # Construct URL - url = "/array/complex/valid" + _url = "/array/complex/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_array_get_array_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/array/array/null" + _url = "/array/array/null" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_array_get_array_empty_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/array/array/empty" + _url = "/array/array/empty" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_array_get_array_item_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/array/array/itemnull" + _url = "/array/array/itemnull" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_array_get_array_item_empty_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/array/array/itemempty" + _url = "/array/array/itemempty" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_array_get_array_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/array/array/valid" + _url = "/array/array/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_array_put_array_valid_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -849,75 +849,75 @@ def build_array_put_array_valid_request(*, json: JSONType = None, content: Any = accept = "application/json" # Construct URL - url = "/array/array/valid" + _url = "/array/array/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_array_get_dictionary_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/array/dictionary/null" + _url = "/array/dictionary/null" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_array_get_dictionary_empty_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/array/dictionary/empty" + _url = "/array/dictionary/empty" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_array_get_dictionary_item_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/array/dictionary/itemnull" + _url = "/array/dictionary/itemnull" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_array_get_dictionary_item_empty_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/array/dictionary/itemempty" + _url = "/array/dictionary/itemempty" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_array_get_dictionary_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/array/dictionary/valid" + _url = "/array/dictionary/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_array_put_dictionary_valid_request( @@ -927,15 +927,15 @@ def build_array_put_dictionary_valid_request( accept = "application/json" # Construct URL - url = "/array/dictionary/valid" + _url = "/array/dictionary/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) class ArrayOperations(object): # pylint: disable=too-many-public-methods diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyBinaryVersionTolerant/bodybinaryversiontolerant/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyBinaryVersionTolerant/bodybinaryversiontolerant/operations/_operations.py index 14035fd433d..14a82e283bf 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyBinaryVersionTolerant/bodybinaryversiontolerant/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyBinaryVersionTolerant/bodybinaryversiontolerant/operations/_operations.py @@ -33,28 +33,28 @@ def build_upload_file_request(*, json: JSONType = None, content: Any = None, **k content_type = kwargs.pop("content_type", None) # type: Optional[str] # Construct URL - url = "/binary/file" + _url = "/binary/file" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_upload_binary_request(*, content: Any, **kwargs: Any) -> HttpRequest: content_type = kwargs.pop("content_type", None) # type: Optional[str] # Construct URL - url = "/binary/octet" + _url = "/binary/octet" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, content=content, **kwargs) class UploadOperations(object): diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyBooleanVersionTolerant/bodybooleanversiontolerant/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyBooleanVersionTolerant/bodybooleanversiontolerant/operations/_operations.py index 76f3ee86090..a9a80a6ea81 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyBooleanVersionTolerant/bodybooleanversiontolerant/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyBooleanVersionTolerant/bodybooleanversiontolerant/operations/_operations.py @@ -32,13 +32,13 @@ def build_bool_get_true_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/bool/true" + _url = "/bool/true" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_bool_put_true_request(**kwargs: Any) -> HttpRequest: @@ -47,27 +47,27 @@ def build_bool_put_true_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/bool/true" + _url = "/bool/true" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, **kwargs) def build_bool_get_false_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/bool/false" + _url = "/bool/false" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_bool_put_false_request(**kwargs: Any) -> HttpRequest: @@ -76,39 +76,39 @@ def build_bool_put_false_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/bool/false" + _url = "/bool/false" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, **kwargs) def build_bool_get_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/bool/null" + _url = "/bool/null" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_bool_get_invalid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/bool/invalid" + _url = "/bool/invalid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) class BoolOperations(object): diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyByteVersionTolerant/bodybyteversiontolerant/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyByteVersionTolerant/bodybyteversiontolerant/operations/_operations.py index 6504d7bc286..bdda6690b87 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyByteVersionTolerant/bodybyteversiontolerant/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyByteVersionTolerant/bodybyteversiontolerant/operations/_operations.py @@ -32,37 +32,37 @@ def build_byte_get_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/byte/null" + _url = "/byte/null" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_byte_get_empty_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/byte/empty" + _url = "/byte/empty" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_byte_get_non_ascii_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/byte/nonAscii" + _url = "/byte/nonAscii" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_byte_put_non_ascii_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -70,27 +70,27 @@ def build_byte_put_non_ascii_request(*, json: JSONType = None, content: Any = No accept = "application/json" # Construct URL - url = "/byte/nonAscii" + _url = "/byte/nonAscii" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_byte_get_invalid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/byte/invalid" + _url = "/byte/invalid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) class ByteOperations(object): diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyComplexPythonThreeOnlyVersionTolerant/bodycomplexpython3only/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyComplexPythonThreeOnlyVersionTolerant/bodycomplexpython3only/operations/_operations.py index f6ee7029b3f..0f1901c4760 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyComplexPythonThreeOnlyVersionTolerant/bodycomplexpython3only/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyComplexPythonThreeOnlyVersionTolerant/bodycomplexpython3only/operations/_operations.py @@ -32,13 +32,13 @@ def build_basic_get_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/complex/basic/valid" + _url = "/complex/basic/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_basic_put_valid_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -47,81 +47,87 @@ def build_basic_put_valid_request(*, json: JSONType = None, content: Any = None, accept = "application/json" # Construct URL - url = "/complex/basic/valid" + _url = "/complex/basic/valid" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["api-version"] = _SERIALIZER.query("api_version", api_version, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") return HttpRequest( - method="PUT", url=url, params=query_parameters, headers=header_parameters, json=json, content=content, **kwargs + method="PUT", + url=_url, + params=_query_parameters, + headers=_header_parameters, + json=json, + content=content, + **kwargs ) def build_basic_get_invalid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/complex/basic/invalid" + _url = "/complex/basic/invalid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_basic_get_empty_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/complex/basic/empty" + _url = "/complex/basic/empty" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_basic_get_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/complex/basic/null" + _url = "/complex/basic/null" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_basic_get_not_provided_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/complex/basic/notprovided" + _url = "/complex/basic/notprovided" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_primitive_get_int_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/complex/primitive/integer" + _url = "/complex/primitive/integer" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_primitive_put_int_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -129,27 +135,27 @@ def build_primitive_put_int_request(*, json: JSONType = None, content: Any = Non accept = "application/json" # Construct URL - url = "/complex/primitive/integer" + _url = "/complex/primitive/integer" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_primitive_get_long_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/complex/primitive/long" + _url = "/complex/primitive/long" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_primitive_put_long_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -157,27 +163,27 @@ def build_primitive_put_long_request(*, json: JSONType = None, content: Any = No accept = "application/json" # Construct URL - url = "/complex/primitive/long" + _url = "/complex/primitive/long" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_primitive_get_float_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/complex/primitive/float" + _url = "/complex/primitive/float" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_primitive_put_float_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -185,27 +191,27 @@ def build_primitive_put_float_request(*, json: JSONType = None, content: Any = N accept = "application/json" # Construct URL - url = "/complex/primitive/float" + _url = "/complex/primitive/float" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_primitive_get_double_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/complex/primitive/double" + _url = "/complex/primitive/double" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_primitive_put_double_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -213,27 +219,27 @@ def build_primitive_put_double_request(*, json: JSONType = None, content: Any = accept = "application/json" # Construct URL - url = "/complex/primitive/double" + _url = "/complex/primitive/double" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_primitive_get_bool_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/complex/primitive/bool" + _url = "/complex/primitive/bool" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_primitive_put_bool_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -241,27 +247,27 @@ def build_primitive_put_bool_request(*, json: JSONType = None, content: Any = No accept = "application/json" # Construct URL - url = "/complex/primitive/bool" + _url = "/complex/primitive/bool" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_primitive_get_string_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/complex/primitive/string" + _url = "/complex/primitive/string" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_primitive_put_string_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -269,27 +275,27 @@ def build_primitive_put_string_request(*, json: JSONType = None, content: Any = accept = "application/json" # Construct URL - url = "/complex/primitive/string" + _url = "/complex/primitive/string" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_primitive_get_date_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/complex/primitive/date" + _url = "/complex/primitive/date" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_primitive_put_date_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -297,27 +303,27 @@ def build_primitive_put_date_request(*, json: JSONType = None, content: Any = No accept = "application/json" # Construct URL - url = "/complex/primitive/date" + _url = "/complex/primitive/date" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_primitive_get_date_time_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/complex/primitive/datetime" + _url = "/complex/primitive/datetime" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_primitive_put_date_time_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -325,27 +331,27 @@ def build_primitive_put_date_time_request(*, json: JSONType = None, content: Any accept = "application/json" # Construct URL - url = "/complex/primitive/datetime" + _url = "/complex/primitive/datetime" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_primitive_get_date_time_rfc1123_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/complex/primitive/datetimerfc1123" + _url = "/complex/primitive/datetimerfc1123" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_primitive_put_date_time_rfc1123_request( @@ -355,27 +361,27 @@ def build_primitive_put_date_time_rfc1123_request( accept = "application/json" # Construct URL - url = "/complex/primitive/datetimerfc1123" + _url = "/complex/primitive/datetimerfc1123" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_primitive_get_duration_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/complex/primitive/duration" + _url = "/complex/primitive/duration" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_primitive_put_duration_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -383,27 +389,27 @@ def build_primitive_put_duration_request(*, json: JSONType = None, content: Any accept = "application/json" # Construct URL - url = "/complex/primitive/duration" + _url = "/complex/primitive/duration" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_primitive_get_byte_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/complex/primitive/byte" + _url = "/complex/primitive/byte" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_primitive_put_byte_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -411,27 +417,27 @@ def build_primitive_put_byte_request(*, json: JSONType = None, content: Any = No accept = "application/json" # Construct URL - url = "/complex/primitive/byte" + _url = "/complex/primitive/byte" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_array_get_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/complex/array/valid" + _url = "/complex/array/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_array_put_valid_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -439,27 +445,27 @@ def build_array_put_valid_request(*, json: JSONType = None, content: Any = None, accept = "application/json" # Construct URL - url = "/complex/array/valid" + _url = "/complex/array/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_array_get_empty_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/complex/array/empty" + _url = "/complex/array/empty" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_array_put_empty_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -467,39 +473,39 @@ def build_array_put_empty_request(*, json: JSONType = None, content: Any = None, accept = "application/json" # Construct URL - url = "/complex/array/empty" + _url = "/complex/array/empty" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_array_get_not_provided_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/complex/array/notprovided" + _url = "/complex/array/notprovided" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_dictionary_get_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/complex/dictionary/typed/valid" + _url = "/complex/dictionary/typed/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_dictionary_put_valid_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -507,27 +513,27 @@ def build_dictionary_put_valid_request(*, json: JSONType = None, content: Any = accept = "application/json" # Construct URL - url = "/complex/dictionary/typed/valid" + _url = "/complex/dictionary/typed/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_dictionary_get_empty_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/complex/dictionary/typed/empty" + _url = "/complex/dictionary/typed/empty" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_dictionary_put_empty_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -535,51 +541,51 @@ def build_dictionary_put_empty_request(*, json: JSONType = None, content: Any = accept = "application/json" # Construct URL - url = "/complex/dictionary/typed/empty" + _url = "/complex/dictionary/typed/empty" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_dictionary_get_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/complex/dictionary/typed/null" + _url = "/complex/dictionary/typed/null" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_dictionary_get_not_provided_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/complex/dictionary/typed/notprovided" + _url = "/complex/dictionary/typed/notprovided" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_inheritance_get_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/complex/inheritance/valid" + _url = "/complex/inheritance/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_inheritance_put_valid_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -587,27 +593,27 @@ def build_inheritance_put_valid_request(*, json: JSONType = None, content: Any = accept = "application/json" # Construct URL - url = "/complex/inheritance/valid" + _url = "/complex/inheritance/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_polymorphism_get_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/complex/polymorphism/valid" + _url = "/complex/polymorphism/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_polymorphism_put_valid_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -615,63 +621,63 @@ def build_polymorphism_put_valid_request(*, json: JSONType = None, content: Any accept = "application/json" # Construct URL - url = "/complex/polymorphism/valid" + _url = "/complex/polymorphism/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_polymorphism_get_dot_syntax_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/complex/polymorphism/dotsyntax" + _url = "/complex/polymorphism/dotsyntax" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_polymorphism_get_composed_with_discriminator_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/complex/polymorphism/composedWithDiscriminator" + _url = "/complex/polymorphism/composedWithDiscriminator" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_polymorphism_get_composed_without_discriminator_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/complex/polymorphism/composedWithoutDiscriminator" + _url = "/complex/polymorphism/composedWithoutDiscriminator" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_polymorphism_get_complicated_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/complex/polymorphism/complicated" + _url = "/complex/polymorphism/complicated" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_polymorphism_put_complicated_request( @@ -681,15 +687,15 @@ def build_polymorphism_put_complicated_request( accept = "application/json" # Construct URL - url = "/complex/polymorphism/complicated" + _url = "/complex/polymorphism/complicated" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_polymorphism_put_missing_discriminator_request( @@ -699,15 +705,15 @@ def build_polymorphism_put_missing_discriminator_request( accept = "application/json" # Construct URL - url = "/complex/polymorphism/missingdiscriminator" + _url = "/complex/polymorphism/missingdiscriminator" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_polymorphism_put_valid_missing_required_request( @@ -717,27 +723,27 @@ def build_polymorphism_put_valid_missing_required_request( accept = "application/json" # Construct URL - url = "/complex/polymorphism/missingrequired/invalid" + _url = "/complex/polymorphism/missingrequired/invalid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_polymorphicrecursive_get_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/complex/polymorphicrecursive/valid" + _url = "/complex/polymorphicrecursive/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_polymorphicrecursive_put_valid_request( @@ -747,27 +753,27 @@ def build_polymorphicrecursive_put_valid_request( accept = "application/json" # Construct URL - url = "/complex/polymorphicrecursive/valid" + _url = "/complex/polymorphicrecursive/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_readonlyproperty_get_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/complex/readonlyproperty/valid" + _url = "/complex/readonlyproperty/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_readonlyproperty_put_valid_request( @@ -777,27 +783,27 @@ def build_readonlyproperty_put_valid_request( accept = "application/json" # Construct URL - url = "/complex/readonlyproperty/valid" + _url = "/complex/readonlyproperty/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_flattencomplex_get_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/complex/flatten/valid" + _url = "/complex/flatten/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) class BasicOperations(object): diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyComplexVersionTolerant/bodycomplexversiontolerant/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyComplexVersionTolerant/bodycomplexversiontolerant/operations/_operations.py index af288491d24..cdac89eebca 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyComplexVersionTolerant/bodycomplexversiontolerant/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyComplexVersionTolerant/bodycomplexversiontolerant/operations/_operations.py @@ -31,13 +31,13 @@ def build_basic_get_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/complex/basic/valid" + _url = "/complex/basic/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_basic_put_valid_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -46,81 +46,87 @@ def build_basic_put_valid_request(*, json: JSONType = None, content: Any = None, accept = "application/json" # Construct URL - url = "/complex/basic/valid" + _url = "/complex/basic/valid" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["api-version"] = _SERIALIZER.query("api_version", api_version, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") return HttpRequest( - method="PUT", url=url, params=query_parameters, headers=header_parameters, json=json, content=content, **kwargs + method="PUT", + url=_url, + params=_query_parameters, + headers=_header_parameters, + json=json, + content=content, + **kwargs ) def build_basic_get_invalid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/complex/basic/invalid" + _url = "/complex/basic/invalid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_basic_get_empty_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/complex/basic/empty" + _url = "/complex/basic/empty" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_basic_get_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/complex/basic/null" + _url = "/complex/basic/null" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_basic_get_not_provided_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/complex/basic/notprovided" + _url = "/complex/basic/notprovided" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_primitive_get_int_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/complex/primitive/integer" + _url = "/complex/primitive/integer" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_primitive_put_int_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -128,27 +134,27 @@ def build_primitive_put_int_request(*, json: JSONType = None, content: Any = Non accept = "application/json" # Construct URL - url = "/complex/primitive/integer" + _url = "/complex/primitive/integer" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_primitive_get_long_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/complex/primitive/long" + _url = "/complex/primitive/long" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_primitive_put_long_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -156,27 +162,27 @@ def build_primitive_put_long_request(*, json: JSONType = None, content: Any = No accept = "application/json" # Construct URL - url = "/complex/primitive/long" + _url = "/complex/primitive/long" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_primitive_get_float_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/complex/primitive/float" + _url = "/complex/primitive/float" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_primitive_put_float_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -184,27 +190,27 @@ def build_primitive_put_float_request(*, json: JSONType = None, content: Any = N accept = "application/json" # Construct URL - url = "/complex/primitive/float" + _url = "/complex/primitive/float" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_primitive_get_double_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/complex/primitive/double" + _url = "/complex/primitive/double" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_primitive_put_double_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -212,27 +218,27 @@ def build_primitive_put_double_request(*, json: JSONType = None, content: Any = accept = "application/json" # Construct URL - url = "/complex/primitive/double" + _url = "/complex/primitive/double" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_primitive_get_bool_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/complex/primitive/bool" + _url = "/complex/primitive/bool" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_primitive_put_bool_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -240,27 +246,27 @@ def build_primitive_put_bool_request(*, json: JSONType = None, content: Any = No accept = "application/json" # Construct URL - url = "/complex/primitive/bool" + _url = "/complex/primitive/bool" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_primitive_get_string_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/complex/primitive/string" + _url = "/complex/primitive/string" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_primitive_put_string_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -268,27 +274,27 @@ def build_primitive_put_string_request(*, json: JSONType = None, content: Any = accept = "application/json" # Construct URL - url = "/complex/primitive/string" + _url = "/complex/primitive/string" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_primitive_get_date_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/complex/primitive/date" + _url = "/complex/primitive/date" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_primitive_put_date_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -296,27 +302,27 @@ def build_primitive_put_date_request(*, json: JSONType = None, content: Any = No accept = "application/json" # Construct URL - url = "/complex/primitive/date" + _url = "/complex/primitive/date" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_primitive_get_date_time_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/complex/primitive/datetime" + _url = "/complex/primitive/datetime" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_primitive_put_date_time_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -324,27 +330,27 @@ def build_primitive_put_date_time_request(*, json: JSONType = None, content: Any accept = "application/json" # Construct URL - url = "/complex/primitive/datetime" + _url = "/complex/primitive/datetime" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_primitive_get_date_time_rfc1123_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/complex/primitive/datetimerfc1123" + _url = "/complex/primitive/datetimerfc1123" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_primitive_put_date_time_rfc1123_request( @@ -354,27 +360,27 @@ def build_primitive_put_date_time_rfc1123_request( accept = "application/json" # Construct URL - url = "/complex/primitive/datetimerfc1123" + _url = "/complex/primitive/datetimerfc1123" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_primitive_get_duration_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/complex/primitive/duration" + _url = "/complex/primitive/duration" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_primitive_put_duration_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -382,27 +388,27 @@ def build_primitive_put_duration_request(*, json: JSONType = None, content: Any accept = "application/json" # Construct URL - url = "/complex/primitive/duration" + _url = "/complex/primitive/duration" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_primitive_get_byte_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/complex/primitive/byte" + _url = "/complex/primitive/byte" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_primitive_put_byte_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -410,27 +416,27 @@ def build_primitive_put_byte_request(*, json: JSONType = None, content: Any = No accept = "application/json" # Construct URL - url = "/complex/primitive/byte" + _url = "/complex/primitive/byte" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_array_get_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/complex/array/valid" + _url = "/complex/array/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_array_put_valid_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -438,27 +444,27 @@ def build_array_put_valid_request(*, json: JSONType = None, content: Any = None, accept = "application/json" # Construct URL - url = "/complex/array/valid" + _url = "/complex/array/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_array_get_empty_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/complex/array/empty" + _url = "/complex/array/empty" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_array_put_empty_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -466,39 +472,39 @@ def build_array_put_empty_request(*, json: JSONType = None, content: Any = None, accept = "application/json" # Construct URL - url = "/complex/array/empty" + _url = "/complex/array/empty" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_array_get_not_provided_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/complex/array/notprovided" + _url = "/complex/array/notprovided" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_dictionary_get_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/complex/dictionary/typed/valid" + _url = "/complex/dictionary/typed/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_dictionary_put_valid_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -506,27 +512,27 @@ def build_dictionary_put_valid_request(*, json: JSONType = None, content: Any = accept = "application/json" # Construct URL - url = "/complex/dictionary/typed/valid" + _url = "/complex/dictionary/typed/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_dictionary_get_empty_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/complex/dictionary/typed/empty" + _url = "/complex/dictionary/typed/empty" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_dictionary_put_empty_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -534,51 +540,51 @@ def build_dictionary_put_empty_request(*, json: JSONType = None, content: Any = accept = "application/json" # Construct URL - url = "/complex/dictionary/typed/empty" + _url = "/complex/dictionary/typed/empty" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_dictionary_get_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/complex/dictionary/typed/null" + _url = "/complex/dictionary/typed/null" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_dictionary_get_not_provided_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/complex/dictionary/typed/notprovided" + _url = "/complex/dictionary/typed/notprovided" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_inheritance_get_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/complex/inheritance/valid" + _url = "/complex/inheritance/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_inheritance_put_valid_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -586,27 +592,27 @@ def build_inheritance_put_valid_request(*, json: JSONType = None, content: Any = accept = "application/json" # Construct URL - url = "/complex/inheritance/valid" + _url = "/complex/inheritance/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_polymorphism_get_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/complex/polymorphism/valid" + _url = "/complex/polymorphism/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_polymorphism_put_valid_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -614,63 +620,63 @@ def build_polymorphism_put_valid_request(*, json: JSONType = None, content: Any accept = "application/json" # Construct URL - url = "/complex/polymorphism/valid" + _url = "/complex/polymorphism/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_polymorphism_get_dot_syntax_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/complex/polymorphism/dotsyntax" + _url = "/complex/polymorphism/dotsyntax" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_polymorphism_get_composed_with_discriminator_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/complex/polymorphism/composedWithDiscriminator" + _url = "/complex/polymorphism/composedWithDiscriminator" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_polymorphism_get_composed_without_discriminator_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/complex/polymorphism/composedWithoutDiscriminator" + _url = "/complex/polymorphism/composedWithoutDiscriminator" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_polymorphism_get_complicated_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/complex/polymorphism/complicated" + _url = "/complex/polymorphism/complicated" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_polymorphism_put_complicated_request( @@ -680,15 +686,15 @@ def build_polymorphism_put_complicated_request( accept = "application/json" # Construct URL - url = "/complex/polymorphism/complicated" + _url = "/complex/polymorphism/complicated" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_polymorphism_put_missing_discriminator_request( @@ -698,15 +704,15 @@ def build_polymorphism_put_missing_discriminator_request( accept = "application/json" # Construct URL - url = "/complex/polymorphism/missingdiscriminator" + _url = "/complex/polymorphism/missingdiscriminator" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_polymorphism_put_valid_missing_required_request( @@ -716,27 +722,27 @@ def build_polymorphism_put_valid_missing_required_request( accept = "application/json" # Construct URL - url = "/complex/polymorphism/missingrequired/invalid" + _url = "/complex/polymorphism/missingrequired/invalid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_polymorphicrecursive_get_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/complex/polymorphicrecursive/valid" + _url = "/complex/polymorphicrecursive/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_polymorphicrecursive_put_valid_request( @@ -746,27 +752,27 @@ def build_polymorphicrecursive_put_valid_request( accept = "application/json" # Construct URL - url = "/complex/polymorphicrecursive/valid" + _url = "/complex/polymorphicrecursive/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_readonlyproperty_get_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/complex/readonlyproperty/valid" + _url = "/complex/readonlyproperty/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_readonlyproperty_put_valid_request( @@ -776,27 +782,27 @@ def build_readonlyproperty_put_valid_request( accept = "application/json" # Construct URL - url = "/complex/readonlyproperty/valid" + _url = "/complex/readonlyproperty/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_flattencomplex_get_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/complex/flatten/valid" + _url = "/complex/flatten/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) class BasicOperations(object): diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDateTimeRfc1123VersionTolerant/bodydatetimerfc1123versiontolerant/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDateTimeRfc1123VersionTolerant/bodydatetimerfc1123versiontolerant/operations/_operations.py index 95158c6b880..4ac1d7a09b6 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDateTimeRfc1123VersionTolerant/bodydatetimerfc1123versiontolerant/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDateTimeRfc1123VersionTolerant/bodydatetimerfc1123versiontolerant/operations/_operations.py @@ -33,49 +33,49 @@ def build_datetimerfc1123_get_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/datetimerfc1123/null" + _url = "/datetimerfc1123/null" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_datetimerfc1123_get_invalid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/datetimerfc1123/invalid" + _url = "/datetimerfc1123/invalid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_datetimerfc1123_get_overflow_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/datetimerfc1123/overflow" + _url = "/datetimerfc1123/overflow" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_datetimerfc1123_get_underflow_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/datetimerfc1123/underflow" + _url = "/datetimerfc1123/underflow" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_datetimerfc1123_put_utc_max_date_time_request( @@ -85,39 +85,39 @@ def build_datetimerfc1123_put_utc_max_date_time_request( accept = "application/json" # Construct URL - url = "/datetimerfc1123/max" + _url = "/datetimerfc1123/max" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_datetimerfc1123_get_utc_lowercase_max_date_time_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/datetimerfc1123/max/lowercase" + _url = "/datetimerfc1123/max/lowercase" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_datetimerfc1123_get_utc_uppercase_max_date_time_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/datetimerfc1123/max/uppercase" + _url = "/datetimerfc1123/max/uppercase" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_datetimerfc1123_put_utc_min_date_time_request( @@ -127,27 +127,27 @@ def build_datetimerfc1123_put_utc_min_date_time_request( accept = "application/json" # Construct URL - url = "/datetimerfc1123/min" + _url = "/datetimerfc1123/min" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_datetimerfc1123_get_utc_min_date_time_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/datetimerfc1123/min" + _url = "/datetimerfc1123/min" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) class Datetimerfc1123Operations(object): diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDateTimeVersionTolerant/bodydatetimeversiontolerant/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDateTimeVersionTolerant/bodydatetimeversiontolerant/operations/_operations.py index 9082b084f5e..a7f60ccff02 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDateTimeVersionTolerant/bodydatetimeversiontolerant/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDateTimeVersionTolerant/bodydatetimeversiontolerant/operations/_operations.py @@ -33,49 +33,49 @@ def build_datetime_get_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/datetime/null" + _url = "/datetime/null" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_datetime_get_invalid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/datetime/invalid" + _url = "/datetime/invalid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_datetime_get_overflow_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/datetime/overflow" + _url = "/datetime/overflow" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_datetime_get_underflow_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/datetime/underflow" + _url = "/datetime/underflow" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_datetime_put_utc_max_date_time_request( @@ -85,15 +85,15 @@ def build_datetime_put_utc_max_date_time_request( accept = "application/json" # Construct URL - url = "/datetime/max/utc" + _url = "/datetime/max/utc" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_datetime_put_utc_max_date_time7_digits_request( @@ -103,51 +103,51 @@ def build_datetime_put_utc_max_date_time7_digits_request( accept = "application/json" # Construct URL - url = "/datetime/max/utc7ms" + _url = "/datetime/max/utc7ms" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_datetime_get_utc_lowercase_max_date_time_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/datetime/max/utc/lowercase" + _url = "/datetime/max/utc/lowercase" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_datetime_get_utc_uppercase_max_date_time_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/datetime/max/utc/uppercase" + _url = "/datetime/max/utc/uppercase" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_datetime_get_utc_uppercase_max_date_time7_digits_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/datetime/max/utc7ms/uppercase" + _url = "/datetime/max/utc7ms/uppercase" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_datetime_put_local_positive_offset_max_date_time_request( @@ -157,39 +157,39 @@ def build_datetime_put_local_positive_offset_max_date_time_request( accept = "application/json" # Construct URL - url = "/datetime/max/localpositiveoffset" + _url = "/datetime/max/localpositiveoffset" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_datetime_get_local_positive_offset_lowercase_max_date_time_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/datetime/max/localpositiveoffset/lowercase" + _url = "/datetime/max/localpositiveoffset/lowercase" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_datetime_get_local_positive_offset_uppercase_max_date_time_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/datetime/max/localpositiveoffset/uppercase" + _url = "/datetime/max/localpositiveoffset/uppercase" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_datetime_put_local_negative_offset_max_date_time_request( @@ -199,39 +199,39 @@ def build_datetime_put_local_negative_offset_max_date_time_request( accept = "application/json" # Construct URL - url = "/datetime/max/localnegativeoffset" + _url = "/datetime/max/localnegativeoffset" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_datetime_get_local_negative_offset_uppercase_max_date_time_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/datetime/max/localnegativeoffset/uppercase" + _url = "/datetime/max/localnegativeoffset/uppercase" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_datetime_get_local_negative_offset_lowercase_max_date_time_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/datetime/max/localnegativeoffset/lowercase" + _url = "/datetime/max/localnegativeoffset/lowercase" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_datetime_put_utc_min_date_time_request( @@ -241,27 +241,27 @@ def build_datetime_put_utc_min_date_time_request( accept = "application/json" # Construct URL - url = "/datetime/min/utc" + _url = "/datetime/min/utc" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_datetime_get_utc_min_date_time_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/datetime/min/utc" + _url = "/datetime/min/utc" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_datetime_put_local_positive_offset_min_date_time_request( @@ -271,27 +271,27 @@ def build_datetime_put_local_positive_offset_min_date_time_request( accept = "application/json" # Construct URL - url = "/datetime/min/localpositiveoffset" + _url = "/datetime/min/localpositiveoffset" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_datetime_get_local_positive_offset_min_date_time_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/datetime/min/localpositiveoffset" + _url = "/datetime/min/localpositiveoffset" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_datetime_put_local_negative_offset_min_date_time_request( @@ -301,39 +301,39 @@ def build_datetime_put_local_negative_offset_min_date_time_request( accept = "application/json" # Construct URL - url = "/datetime/min/localnegativeoffset" + _url = "/datetime/min/localnegativeoffset" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_datetime_get_local_negative_offset_min_date_time_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/datetime/min/localnegativeoffset" + _url = "/datetime/min/localnegativeoffset" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_datetime_get_local_no_offset_min_date_time_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/datetime/min/localnooffset" + _url = "/datetime/min/localnooffset" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) class DatetimeOperations(object): # pylint: disable=too-many-public-methods diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDateVersionTolerant/bodydateversiontolerant/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDateVersionTolerant/bodydateversiontolerant/operations/_operations.py index 93376c00b2e..791dac9d4b5 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDateVersionTolerant/bodydateversiontolerant/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDateVersionTolerant/bodydateversiontolerant/operations/_operations.py @@ -33,49 +33,49 @@ def build_date_get_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/date/null" + _url = "/date/null" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_date_get_invalid_date_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/date/invaliddate" + _url = "/date/invaliddate" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_date_get_overflow_date_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/date/overflowdate" + _url = "/date/overflowdate" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_date_get_underflow_date_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/date/underflowdate" + _url = "/date/underflowdate" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_date_put_max_date_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -83,27 +83,27 @@ def build_date_put_max_date_request(*, json: JSONType = None, content: Any = Non accept = "application/json" # Construct URL - url = "/date/max" + _url = "/date/max" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_date_get_max_date_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/date/max" + _url = "/date/max" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_date_put_min_date_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -111,27 +111,27 @@ def build_date_put_min_date_request(*, json: JSONType = None, content: Any = Non accept = "application/json" # Construct URL - url = "/date/min" + _url = "/date/min" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_date_get_min_date_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/date/min" + _url = "/date/min" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) class DateOperations(object): diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDictionaryVersionTolerant/bodydictionaryversiontolerant/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDictionaryVersionTolerant/bodydictionaryversiontolerant/operations/_operations.py index 33d5c3dbeaf..3306a3e8189 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDictionaryVersionTolerant/bodydictionaryversiontolerant/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDictionaryVersionTolerant/bodydictionaryversiontolerant/operations/_operations.py @@ -33,25 +33,25 @@ def build_dictionary_get_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/dictionary/null" + _url = "/dictionary/null" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_dictionary_get_empty_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/dictionary/empty" + _url = "/dictionary/empty" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_dictionary_put_empty_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -59,75 +59,75 @@ def build_dictionary_put_empty_request(*, json: JSONType = None, content: Any = accept = "application/json" # Construct URL - url = "/dictionary/empty" + _url = "/dictionary/empty" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_dictionary_get_null_value_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/dictionary/nullvalue" + _url = "/dictionary/nullvalue" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_dictionary_get_null_key_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/dictionary/nullkey" + _url = "/dictionary/nullkey" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_dictionary_get_empty_string_key_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/dictionary/keyemptystring" + _url = "/dictionary/keyemptystring" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_dictionary_get_invalid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/dictionary/invalid" + _url = "/dictionary/invalid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_dictionary_get_boolean_tfft_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/dictionary/prim/boolean/tfft" + _url = "/dictionary/prim/boolean/tfft" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_dictionary_put_boolean_tfft_request( @@ -137,51 +137,51 @@ def build_dictionary_put_boolean_tfft_request( accept = "application/json" # Construct URL - url = "/dictionary/prim/boolean/tfft" + _url = "/dictionary/prim/boolean/tfft" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_dictionary_get_boolean_invalid_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/dictionary/prim/boolean/true.null.false" + _url = "/dictionary/prim/boolean/true.null.false" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_dictionary_get_boolean_invalid_string_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/dictionary/prim/boolean/true.boolean.false" + _url = "/dictionary/prim/boolean/true.boolean.false" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_dictionary_get_integer_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/dictionary/prim/integer/1.-1.3.300" + _url = "/dictionary/prim/integer/1.-1.3.300" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_dictionary_put_integer_valid_request( @@ -191,51 +191,51 @@ def build_dictionary_put_integer_valid_request( accept = "application/json" # Construct URL - url = "/dictionary/prim/integer/1.-1.3.300" + _url = "/dictionary/prim/integer/1.-1.3.300" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_dictionary_get_int_invalid_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/dictionary/prim/integer/1.null.zero" + _url = "/dictionary/prim/integer/1.null.zero" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_dictionary_get_int_invalid_string_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/dictionary/prim/integer/1.integer.0" + _url = "/dictionary/prim/integer/1.integer.0" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_dictionary_get_long_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/dictionary/prim/long/1.-1.3.300" + _url = "/dictionary/prim/long/1.-1.3.300" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_dictionary_put_long_valid_request( @@ -245,51 +245,51 @@ def build_dictionary_put_long_valid_request( accept = "application/json" # Construct URL - url = "/dictionary/prim/long/1.-1.3.300" + _url = "/dictionary/prim/long/1.-1.3.300" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_dictionary_get_long_invalid_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/dictionary/prim/long/1.null.zero" + _url = "/dictionary/prim/long/1.null.zero" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_dictionary_get_long_invalid_string_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/dictionary/prim/long/1.integer.0" + _url = "/dictionary/prim/long/1.integer.0" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_dictionary_get_float_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/dictionary/prim/float/0--0.01-1.2e20" + _url = "/dictionary/prim/float/0--0.01-1.2e20" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_dictionary_put_float_valid_request( @@ -299,51 +299,51 @@ def build_dictionary_put_float_valid_request( accept = "application/json" # Construct URL - url = "/dictionary/prim/float/0--0.01-1.2e20" + _url = "/dictionary/prim/float/0--0.01-1.2e20" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_dictionary_get_float_invalid_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/dictionary/prim/float/0.0-null-1.2e20" + _url = "/dictionary/prim/float/0.0-null-1.2e20" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_dictionary_get_float_invalid_string_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/dictionary/prim/float/1.number.0" + _url = "/dictionary/prim/float/1.number.0" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_dictionary_get_double_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/dictionary/prim/double/0--0.01-1.2e20" + _url = "/dictionary/prim/double/0--0.01-1.2e20" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_dictionary_put_double_valid_request( @@ -353,51 +353,51 @@ def build_dictionary_put_double_valid_request( accept = "application/json" # Construct URL - url = "/dictionary/prim/double/0--0.01-1.2e20" + _url = "/dictionary/prim/double/0--0.01-1.2e20" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_dictionary_get_double_invalid_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/dictionary/prim/double/0.0-null-1.2e20" + _url = "/dictionary/prim/double/0.0-null-1.2e20" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_dictionary_get_double_invalid_string_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/dictionary/prim/double/1.number.0" + _url = "/dictionary/prim/double/1.number.0" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_dictionary_get_string_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/dictionary/prim/string/foo1.foo2.foo3" + _url = "/dictionary/prim/string/foo1.foo2.foo3" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_dictionary_put_string_valid_request( @@ -407,51 +407,51 @@ def build_dictionary_put_string_valid_request( accept = "application/json" # Construct URL - url = "/dictionary/prim/string/foo1.foo2.foo3" + _url = "/dictionary/prim/string/foo1.foo2.foo3" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_dictionary_get_string_with_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/dictionary/prim/string/foo.null.foo2" + _url = "/dictionary/prim/string/foo.null.foo2" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_dictionary_get_string_with_invalid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/dictionary/prim/string/foo.123.foo2" + _url = "/dictionary/prim/string/foo.123.foo2" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_dictionary_get_date_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/dictionary/prim/date/valid" + _url = "/dictionary/prim/date/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_dictionary_put_date_valid_request( @@ -461,51 +461,51 @@ def build_dictionary_put_date_valid_request( accept = "application/json" # Construct URL - url = "/dictionary/prim/date/valid" + _url = "/dictionary/prim/date/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_dictionary_get_date_invalid_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/dictionary/prim/date/invalidnull" + _url = "/dictionary/prim/date/invalidnull" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_dictionary_get_date_invalid_chars_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/dictionary/prim/date/invalidchars" + _url = "/dictionary/prim/date/invalidchars" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_dictionary_get_date_time_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/dictionary/prim/date-time/valid" + _url = "/dictionary/prim/date-time/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_dictionary_put_date_time_valid_request( @@ -515,51 +515,51 @@ def build_dictionary_put_date_time_valid_request( accept = "application/json" # Construct URL - url = "/dictionary/prim/date-time/valid" + _url = "/dictionary/prim/date-time/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_dictionary_get_date_time_invalid_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/dictionary/prim/date-time/invalidnull" + _url = "/dictionary/prim/date-time/invalidnull" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_dictionary_get_date_time_invalid_chars_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/dictionary/prim/date-time/invalidchars" + _url = "/dictionary/prim/date-time/invalidchars" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_dictionary_get_date_time_rfc1123_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/dictionary/prim/date-time-rfc1123/valid" + _url = "/dictionary/prim/date-time-rfc1123/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_dictionary_put_date_time_rfc1123_valid_request( @@ -569,27 +569,27 @@ def build_dictionary_put_date_time_rfc1123_valid_request( accept = "application/json" # Construct URL - url = "/dictionary/prim/date-time-rfc1123/valid" + _url = "/dictionary/prim/date-time-rfc1123/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_dictionary_get_duration_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/dictionary/prim/duration/valid" + _url = "/dictionary/prim/duration/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_dictionary_put_duration_valid_request( @@ -599,27 +599,27 @@ def build_dictionary_put_duration_valid_request( accept = "application/json" # Construct URL - url = "/dictionary/prim/duration/valid" + _url = "/dictionary/prim/duration/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_dictionary_get_byte_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/dictionary/prim/byte/valid" + _url = "/dictionary/prim/byte/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_dictionary_put_byte_valid_request( @@ -629,99 +629,99 @@ def build_dictionary_put_byte_valid_request( accept = "application/json" # Construct URL - url = "/dictionary/prim/byte/valid" + _url = "/dictionary/prim/byte/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_dictionary_get_byte_invalid_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/dictionary/prim/byte/invalidnull" + _url = "/dictionary/prim/byte/invalidnull" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_dictionary_get_base64_url_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/dictionary/prim/base64url/valid" + _url = "/dictionary/prim/base64url/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_dictionary_get_complex_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/dictionary/complex/null" + _url = "/dictionary/complex/null" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_dictionary_get_complex_empty_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/dictionary/complex/empty" + _url = "/dictionary/complex/empty" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_dictionary_get_complex_item_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/dictionary/complex/itemnull" + _url = "/dictionary/complex/itemnull" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_dictionary_get_complex_item_empty_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/dictionary/complex/itemempty" + _url = "/dictionary/complex/itemempty" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_dictionary_get_complex_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/dictionary/complex/valid" + _url = "/dictionary/complex/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_dictionary_put_complex_valid_request( @@ -731,75 +731,75 @@ def build_dictionary_put_complex_valid_request( accept = "application/json" # Construct URL - url = "/dictionary/complex/valid" + _url = "/dictionary/complex/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_dictionary_get_array_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/dictionary/array/null" + _url = "/dictionary/array/null" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_dictionary_get_array_empty_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/dictionary/array/empty" + _url = "/dictionary/array/empty" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_dictionary_get_array_item_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/dictionary/array/itemnull" + _url = "/dictionary/array/itemnull" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_dictionary_get_array_item_empty_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/dictionary/array/itemempty" + _url = "/dictionary/array/itemempty" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_dictionary_get_array_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/dictionary/array/valid" + _url = "/dictionary/array/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_dictionary_put_array_valid_request( @@ -809,75 +809,75 @@ def build_dictionary_put_array_valid_request( accept = "application/json" # Construct URL - url = "/dictionary/array/valid" + _url = "/dictionary/array/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_dictionary_get_dictionary_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/dictionary/dictionary/null" + _url = "/dictionary/dictionary/null" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_dictionary_get_dictionary_empty_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/dictionary/dictionary/empty" + _url = "/dictionary/dictionary/empty" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_dictionary_get_dictionary_item_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/dictionary/dictionary/itemnull" + _url = "/dictionary/dictionary/itemnull" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_dictionary_get_dictionary_item_empty_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/dictionary/dictionary/itemempty" + _url = "/dictionary/dictionary/itemempty" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_dictionary_get_dictionary_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/dictionary/dictionary/valid" + _url = "/dictionary/dictionary/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_dictionary_put_dictionary_valid_request( @@ -887,15 +887,15 @@ def build_dictionary_put_dictionary_valid_request( accept = "application/json" # Construct URL - url = "/dictionary/dictionary/valid" + _url = "/dictionary/dictionary/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) class DictionaryOperations(object): # pylint: disable=too-many-public-methods diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDurationVersionTolerant/bodydurationversiontolerant/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDurationVersionTolerant/bodydurationversiontolerant/operations/_operations.py index 5c41609c940..09ead5ac9bd 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDurationVersionTolerant/bodydurationversiontolerant/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDurationVersionTolerant/bodydurationversiontolerant/operations/_operations.py @@ -33,13 +33,13 @@ def build_duration_get_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/duration/null" + _url = "/duration/null" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_duration_put_positive_duration_request( @@ -49,39 +49,39 @@ def build_duration_put_positive_duration_request( accept = "application/json" # Construct URL - url = "/duration/positiveduration" + _url = "/duration/positiveduration" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_duration_get_positive_duration_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/duration/positiveduration" + _url = "/duration/positiveduration" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_duration_get_invalid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/duration/invalid" + _url = "/duration/invalid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) class DurationOperations(object): diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyFileVersionTolerant/bodyfileversiontolerant/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyFileVersionTolerant/bodyfileversiontolerant/operations/_operations.py index cb8d6553119..5a7581ce886 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyFileVersionTolerant/bodyfileversiontolerant/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyFileVersionTolerant/bodyfileversiontolerant/operations/_operations.py @@ -32,37 +32,37 @@ def build_files_get_file_request(**kwargs: Any) -> HttpRequest: accept = "image/png, application/json" # Construct URL - url = "/files/stream/nonempty" + _url = "/files/stream/nonempty" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_files_get_file_large_request(**kwargs: Any) -> HttpRequest: accept = "image/png, application/json" # Construct URL - url = "/files/stream/verylarge" + _url = "/files/stream/verylarge" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_files_get_empty_file_request(**kwargs: Any) -> HttpRequest: accept = "image/png, application/json" # Construct URL - url = "/files/stream/empty" + _url = "/files/stream/empty" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) class FilesOperations(object): diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyFormDataVersionTolerant/bodyformdataversiontolerant/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyFormDataVersionTolerant/bodyformdataversiontolerant/operations/_operations.py index bcfa82a04e3..9b949ab56f3 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyFormDataVersionTolerant/bodyformdataversiontolerant/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyFormDataVersionTolerant/bodyformdataversiontolerant/operations/_operations.py @@ -36,15 +36,15 @@ def build_formdata_upload_file_request( accept = "application/octet-stream, application/json" # Construct URL - url = "/formdata/stream/uploadfile" + _url = "/formdata/stream/uploadfile" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, files=files, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, files=files, content=content, **kwargs) def build_formdata_upload_file_via_body_request(*, content: Any, **kwargs: Any) -> HttpRequest: @@ -52,15 +52,15 @@ def build_formdata_upload_file_via_body_request(*, content: Any, **kwargs: Any) accept = "application/octet-stream, application/json" # Construct URL - url = "/formdata/stream/uploadfile" + _url = "/formdata/stream/uploadfile" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, content=content, **kwargs) def build_formdata_upload_files_request( @@ -70,15 +70,15 @@ def build_formdata_upload_files_request( accept = "application/octet-stream, application/json" # Construct URL - url = "/formdata/stream/uploadfiles" + _url = "/formdata/stream/uploadfiles" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, files=files, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, files=files, content=content, **kwargs) class FormdataOperations(object): diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyFormUrlEncodedDataVersionTolerant/bodyformurlencodeddataversiontolerant/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyFormUrlEncodedDataVersionTolerant/bodyformurlencodeddataversiontolerant/operations/_operations.py index c5ec9fde403..6a18a31b0c6 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyFormUrlEncodedDataVersionTolerant/bodyformurlencodeddataversiontolerant/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyFormUrlEncodedDataVersionTolerant/bodyformurlencodeddataversiontolerant/operations/_operations.py @@ -37,19 +37,19 @@ def build_formdataurlencoded_update_pet_with_form_request( content_type = kwargs.pop("content_type", None) # type: Optional[str] # Construct URL - url = "/formsdataurlencoded/pet/add/{petId}" + _url = "/formsdataurlencoded/pet/add/{petId}" path_format_arguments = { "petId": _SERIALIZER.url("pet_id", pet_id, "int"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, data=data, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, data=data, content=content, **kwargs) def build_formdataurlencoded_partial_constant_body_request( @@ -58,14 +58,14 @@ def build_formdataurlencoded_partial_constant_body_request( content_type = kwargs.pop("content_type", None) # type: Optional[str] # Construct URL - url = "/formsdataurlencoded/partialConstantBody" + _url = "/formsdataurlencoded/partialConstantBody" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, data=data, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, data=data, content=content, **kwargs) class FormdataurlencodedOperations(object): diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyIntegerVersionTolerant/bodyintegerversiontolerant/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyIntegerVersionTolerant/bodyintegerversiontolerant/operations/_operations.py index 5ca94dace60..c79b581f19a 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyIntegerVersionTolerant/bodyintegerversiontolerant/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyIntegerVersionTolerant/bodyintegerversiontolerant/operations/_operations.py @@ -33,73 +33,73 @@ def build_int_get_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/int/null" + _url = "/int/null" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_int_get_invalid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/int/invalid" + _url = "/int/invalid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_int_get_overflow_int32_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/int/overflowint32" + _url = "/int/overflowint32" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_int_get_underflow_int32_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/int/underflowint32" + _url = "/int/underflowint32" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_int_get_overflow_int64_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/int/overflowint64" + _url = "/int/overflowint64" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_int_get_underflow_int64_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/int/underflowint64" + _url = "/int/underflowint64" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_int_put_max32_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -107,15 +107,15 @@ def build_int_put_max32_request(*, json: JSONType = None, content: Any = None, * accept = "application/json" # Construct URL - url = "/int/max/32" + _url = "/int/max/32" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_int_put_max64_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -123,15 +123,15 @@ def build_int_put_max64_request(*, json: JSONType = None, content: Any = None, * accept = "application/json" # Construct URL - url = "/int/max/64" + _url = "/int/max/64" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_int_put_min32_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -139,15 +139,15 @@ def build_int_put_min32_request(*, json: JSONType = None, content: Any = None, * accept = "application/json" # Construct URL - url = "/int/min/32" + _url = "/int/min/32" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_int_put_min64_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -155,27 +155,27 @@ def build_int_put_min64_request(*, json: JSONType = None, content: Any = None, * accept = "application/json" # Construct URL - url = "/int/min/64" + _url = "/int/min/64" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_int_get_unix_time_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/int/unixtime" + _url = "/int/unixtime" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_int_put_unix_time_date_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -183,39 +183,39 @@ def build_int_put_unix_time_date_request(*, json: JSONType = None, content: Any accept = "application/json" # Construct URL - url = "/int/unixtime" + _url = "/int/unixtime" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_int_get_invalid_unix_time_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/int/invalidunixtime" + _url = "/int/invalidunixtime" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_int_get_null_unix_time_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/int/nullunixtime" + _url = "/int/nullunixtime" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) class IntOperations(object): diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyNumberVersionTolerant/bodynumberversiontolerant/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyNumberVersionTolerant/bodynumberversiontolerant/operations/_operations.py index ba0646be634..addc2ec09b5 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyNumberVersionTolerant/bodynumberversiontolerant/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyNumberVersionTolerant/bodynumberversiontolerant/operations/_operations.py @@ -32,49 +32,49 @@ def build_number_get_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/number/null" + _url = "/number/null" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_number_get_invalid_float_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/number/invalidfloat" + _url = "/number/invalidfloat" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_number_get_invalid_double_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/number/invaliddouble" + _url = "/number/invaliddouble" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_number_get_invalid_decimal_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/number/invaliddecimal" + _url = "/number/invaliddecimal" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_number_put_big_float_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -82,27 +82,27 @@ def build_number_put_big_float_request(*, json: JSONType = None, content: Any = accept = "application/json" # Construct URL - url = "/number/big/float/3.402823e+20" + _url = "/number/big/float/3.402823e+20" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_number_get_big_float_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/number/big/float/3.402823e+20" + _url = "/number/big/float/3.402823e+20" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_number_put_big_double_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -110,27 +110,27 @@ def build_number_put_big_double_request(*, json: JSONType = None, content: Any = accept = "application/json" # Construct URL - url = "/number/big/double/2.5976931e+101" + _url = "/number/big/double/2.5976931e+101" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_number_get_big_double_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/number/big/double/2.5976931e+101" + _url = "/number/big/double/2.5976931e+101" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_number_put_big_double_positive_decimal_request(**kwargs: Any) -> HttpRequest: @@ -139,27 +139,27 @@ def build_number_put_big_double_positive_decimal_request(**kwargs: Any) -> HttpR accept = "application/json" # Construct URL - url = "/number/big/double/99999999.99" + _url = "/number/big/double/99999999.99" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, **kwargs) def build_number_get_big_double_positive_decimal_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/number/big/double/99999999.99" + _url = "/number/big/double/99999999.99" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_number_put_big_double_negative_decimal_request(**kwargs: Any) -> HttpRequest: @@ -168,27 +168,27 @@ def build_number_put_big_double_negative_decimal_request(**kwargs: Any) -> HttpR accept = "application/json" # Construct URL - url = "/number/big/double/-99999999.99" + _url = "/number/big/double/-99999999.99" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, **kwargs) def build_number_get_big_double_negative_decimal_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/number/big/double/-99999999.99" + _url = "/number/big/double/-99999999.99" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_number_put_big_decimal_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -196,27 +196,27 @@ def build_number_put_big_decimal_request(*, json: JSONType = None, content: Any accept = "application/json" # Construct URL - url = "/number/big/decimal/2.5976931e+101" + _url = "/number/big/decimal/2.5976931e+101" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_number_get_big_decimal_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/number/big/decimal/2.5976931e+101" + _url = "/number/big/decimal/2.5976931e+101" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_number_put_big_decimal_positive_decimal_request(**kwargs: Any) -> HttpRequest: @@ -225,27 +225,27 @@ def build_number_put_big_decimal_positive_decimal_request(**kwargs: Any) -> Http accept = "application/json" # Construct URL - url = "/number/big/decimal/99999999.99" + _url = "/number/big/decimal/99999999.99" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, **kwargs) def build_number_get_big_decimal_positive_decimal_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/number/big/decimal/99999999.99" + _url = "/number/big/decimal/99999999.99" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_number_put_big_decimal_negative_decimal_request(**kwargs: Any) -> HttpRequest: @@ -254,27 +254,27 @@ def build_number_put_big_decimal_negative_decimal_request(**kwargs: Any) -> Http accept = "application/json" # Construct URL - url = "/number/big/decimal/-99999999.99" + _url = "/number/big/decimal/-99999999.99" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, **kwargs) def build_number_get_big_decimal_negative_decimal_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/number/big/decimal/-99999999.99" + _url = "/number/big/decimal/-99999999.99" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_number_put_small_float_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -282,27 +282,27 @@ def build_number_put_small_float_request(*, json: JSONType = None, content: Any accept = "application/json" # Construct URL - url = "/number/small/float/3.402823e-20" + _url = "/number/small/float/3.402823e-20" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_number_get_small_float_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/number/small/float/3.402823e-20" + _url = "/number/small/float/3.402823e-20" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_number_put_small_double_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -310,27 +310,27 @@ def build_number_put_small_double_request(*, json: JSONType = None, content: Any accept = "application/json" # Construct URL - url = "/number/small/double/2.5976931e-101" + _url = "/number/small/double/2.5976931e-101" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_number_get_small_double_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/number/small/double/2.5976931e-101" + _url = "/number/small/double/2.5976931e-101" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_number_put_small_decimal_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -338,27 +338,27 @@ def build_number_put_small_decimal_request(*, json: JSONType = None, content: An accept = "application/json" # Construct URL - url = "/number/small/decimal/2.5976931e-101" + _url = "/number/small/decimal/2.5976931e-101" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_number_get_small_decimal_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/number/small/decimal/2.5976931e-101" + _url = "/number/small/decimal/2.5976931e-101" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) class NumberOperations(object): # pylint: disable=too-many-public-methods diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyStringVersionTolerant/bodystringversiontolerant/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyStringVersionTolerant/bodystringversiontolerant/operations/_operations.py index 62642adf5cc..d6c8ed33b51 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyStringVersionTolerant/bodystringversiontolerant/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyStringVersionTolerant/bodystringversiontolerant/operations/_operations.py @@ -32,13 +32,13 @@ def build_string_get_null_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/string/null" + _url = "/string/null" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_string_put_null_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -46,27 +46,27 @@ def build_string_put_null_request(*, json: JSONType = None, content: Any = None, accept = "application/json" # Construct URL - url = "/string/null" + _url = "/string/null" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_string_get_empty_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/string/empty" + _url = "/string/empty" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_string_put_empty_request(**kwargs: Any) -> HttpRequest: @@ -75,27 +75,27 @@ def build_string_put_empty_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/string/empty" + _url = "/string/empty" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, **kwargs) def build_string_get_mbcs_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/string/mbcs" + _url = "/string/mbcs" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_string_put_mbcs_request(**kwargs: Any) -> HttpRequest: @@ -104,27 +104,27 @@ def build_string_put_mbcs_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/string/mbcs" + _url = "/string/mbcs" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, **kwargs) def build_string_get_whitespace_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/string/whitespace" + _url = "/string/whitespace" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_string_put_whitespace_request(**kwargs: Any) -> HttpRequest: @@ -135,51 +135,51 @@ def build_string_put_whitespace_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/string/whitespace" + _url = "/string/whitespace" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, **kwargs) def build_string_get_not_provided_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/string/notProvided" + _url = "/string/notProvided" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_string_get_base64_encoded_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/string/base64Encoding" + _url = "/string/base64Encoding" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_string_get_base64_url_encoded_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/string/base64UrlEncoding" + _url = "/string/base64UrlEncoding" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_string_put_base64_url_encoded_request( @@ -189,39 +189,39 @@ def build_string_put_base64_url_encoded_request( accept = "application/json" # Construct URL - url = "/string/base64UrlEncoding" + _url = "/string/base64UrlEncoding" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_string_get_null_base64_url_encoded_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/string/nullBase64UrlEncoding" + _url = "/string/nullBase64UrlEncoding" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_enum_get_not_expandable_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/string/enum/notExpandable" + _url = "/string/enum/notExpandable" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_enum_put_not_expandable_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -229,27 +229,27 @@ def build_enum_put_not_expandable_request(*, json: JSONType = None, content: Any accept = "application/json" # Construct URL - url = "/string/enum/notExpandable" + _url = "/string/enum/notExpandable" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_enum_get_referenced_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/string/enum/Referenced" + _url = "/string/enum/Referenced" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_enum_put_referenced_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -257,27 +257,27 @@ def build_enum_put_referenced_request(*, json: JSONType = None, content: Any = N accept = "application/json" # Construct URL - url = "/string/enum/Referenced" + _url = "/string/enum/Referenced" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_enum_get_referenced_constant_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/string/enum/ReferencedConstant" + _url = "/string/enum/ReferencedConstant" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_enum_put_referenced_constant_request( @@ -287,15 +287,15 @@ def build_enum_put_referenced_constant_request( accept = "application/json" # Construct URL - url = "/string/enum/ReferencedConstant" + _url = "/string/enum/ReferencedConstant" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) class StringOperations(object): diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyTimeVersionTolerant/bodytimeversiontolerant/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyTimeVersionTolerant/bodytimeversiontolerant/operations/_operations.py index a803a0f12af..d3ac1969a04 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyTimeVersionTolerant/bodytimeversiontolerant/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyTimeVersionTolerant/bodytimeversiontolerant/operations/_operations.py @@ -33,13 +33,13 @@ def build_time_get_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/time/get" + _url = "/time/get" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_time_put_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -47,15 +47,15 @@ def build_time_put_request(*, json: JSONType = None, content: Any = None, **kwar accept = "application/json" # Construct URL - url = "/time/put" + _url = "/time/put" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) class TimeOperations(object): diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/ConstantsVersionTolerant/constantsversiontolerant/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/ConstantsVersionTolerant/constantsversiontolerant/operations/_operations.py index c6de16a2f42..e4cd93c3c92 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/ConstantsVersionTolerant/constantsversiontolerant/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/ConstantsVersionTolerant/constantsversiontolerant/operations/_operations.py @@ -34,216 +34,216 @@ def build_contants_put_no_model_as_string_no_required_two_value_no_default_reque *, input: Optional[str] = None, **kwargs: Any ) -> HttpRequest: # Construct URL - url = "/constants/putNoModelAsStringNoRequiredTwoValueNoDefault" + _url = "/constants/putNoModelAsStringNoRequiredTwoValueNoDefault" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if input is not None: - query_parameters["input"] = _SERIALIZER.query("input", input, "str") + _query_parameters["input"] = _SERIALIZER.query("input", input, "str") - return HttpRequest(method="PUT", url=url, params=query_parameters, **kwargs) + return HttpRequest(method="PUT", url=_url, params=_query_parameters, **kwargs) def build_contants_put_no_model_as_string_no_required_two_value_default_request( *, input: Optional[str] = "value1", **kwargs: Any ) -> HttpRequest: # Construct URL - url = "/constants/putNoModelAsStringNoRequiredTwoValueDefault" + _url = "/constants/putNoModelAsStringNoRequiredTwoValueDefault" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if input is not None: - query_parameters["input"] = _SERIALIZER.query("input", input, "str") + _query_parameters["input"] = _SERIALIZER.query("input", input, "str") - return HttpRequest(method="PUT", url=url, params=query_parameters, **kwargs) + return HttpRequest(method="PUT", url=_url, params=_query_parameters, **kwargs) def build_contants_put_no_model_as_string_no_required_one_value_no_default_request( *, input: Optional[str] = "value1", **kwargs: Any ) -> HttpRequest: # Construct URL - url = "/constants/putNoModelAsStringNoRequiredOneValueNoDefault" + _url = "/constants/putNoModelAsStringNoRequiredOneValueNoDefault" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if input is not None: - query_parameters["input"] = _SERIALIZER.query("input", input, "str") + _query_parameters["input"] = _SERIALIZER.query("input", input, "str") - return HttpRequest(method="PUT", url=url, params=query_parameters, **kwargs) + return HttpRequest(method="PUT", url=_url, params=_query_parameters, **kwargs) def build_contants_put_no_model_as_string_no_required_one_value_default_request( *, input: Optional[str] = "value1", **kwargs: Any ) -> HttpRequest: # Construct URL - url = "/constants/putNoModelAsStringNoRequiredOneValueDefault" + _url = "/constants/putNoModelAsStringNoRequiredOneValueDefault" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if input is not None: - query_parameters["input"] = _SERIALIZER.query("input", input, "str") + _query_parameters["input"] = _SERIALIZER.query("input", input, "str") - return HttpRequest(method="PUT", url=url, params=query_parameters, **kwargs) + return HttpRequest(method="PUT", url=_url, params=_query_parameters, **kwargs) def build_contants_put_no_model_as_string_required_two_value_no_default_request( *, input: str, **kwargs: Any ) -> HttpRequest: # Construct URL - url = "/constants/putNoModelAsStringRequiredTwoValueNoDefault" + _url = "/constants/putNoModelAsStringRequiredTwoValueNoDefault" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["input"] = _SERIALIZER.query("input", input, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["input"] = _SERIALIZER.query("input", input, "str") - return HttpRequest(method="PUT", url=url, params=query_parameters, **kwargs) + return HttpRequest(method="PUT", url=_url, params=_query_parameters, **kwargs) def build_contants_put_no_model_as_string_required_two_value_default_request( *, input: str = "value1", **kwargs: Any ) -> HttpRequest: # Construct URL - url = "/constants/putNoModelAsStringRequiredTwoValueDefault" + _url = "/constants/putNoModelAsStringRequiredTwoValueDefault" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["input"] = _SERIALIZER.query("input", input, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["input"] = _SERIALIZER.query("input", input, "str") - return HttpRequest(method="PUT", url=url, params=query_parameters, **kwargs) + return HttpRequest(method="PUT", url=_url, params=_query_parameters, **kwargs) def build_contants_put_no_model_as_string_required_one_value_no_default_request(**kwargs: Any) -> HttpRequest: input = kwargs.pop("input", "value1") # type: str # Construct URL - url = "/constants/putNoModelAsStringRequiredOneValueNoDefault" + _url = "/constants/putNoModelAsStringRequiredOneValueNoDefault" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["input"] = _SERIALIZER.query("input", input, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["input"] = _SERIALIZER.query("input", input, "str") - return HttpRequest(method="PUT", url=url, params=query_parameters, **kwargs) + return HttpRequest(method="PUT", url=_url, params=_query_parameters, **kwargs) def build_contants_put_no_model_as_string_required_one_value_default_request(**kwargs: Any) -> HttpRequest: input = kwargs.pop("input", "value1") # type: str # Construct URL - url = "/constants/putNoModelAsStringRequiredOneValueDefault" + _url = "/constants/putNoModelAsStringRequiredOneValueDefault" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["input"] = _SERIALIZER.query("input", input, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["input"] = _SERIALIZER.query("input", input, "str") - return HttpRequest(method="PUT", url=url, params=query_parameters, **kwargs) + return HttpRequest(method="PUT", url=_url, params=_query_parameters, **kwargs) def build_contants_put_model_as_string_no_required_two_value_no_default_request( *, input: Optional[str] = None, **kwargs: Any ) -> HttpRequest: # Construct URL - url = "/constants/putModelAsStringNoRequiredTwoValueNoDefault" + _url = "/constants/putModelAsStringNoRequiredTwoValueNoDefault" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if input is not None: - query_parameters["input"] = _SERIALIZER.query("input", input, "str") + _query_parameters["input"] = _SERIALIZER.query("input", input, "str") - return HttpRequest(method="PUT", url=url, params=query_parameters, **kwargs) + return HttpRequest(method="PUT", url=_url, params=_query_parameters, **kwargs) def build_contants_put_model_as_string_no_required_two_value_default_request( *, input: Optional[str] = "value1", **kwargs: Any ) -> HttpRequest: # Construct URL - url = "/constants/putModelAsStringNoRequiredTwoValueDefault" + _url = "/constants/putModelAsStringNoRequiredTwoValueDefault" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if input is not None: - query_parameters["input"] = _SERIALIZER.query("input", input, "str") + _query_parameters["input"] = _SERIALIZER.query("input", input, "str") - return HttpRequest(method="PUT", url=url, params=query_parameters, **kwargs) + return HttpRequest(method="PUT", url=_url, params=_query_parameters, **kwargs) def build_contants_put_model_as_string_no_required_one_value_no_default_request( *, input: Optional[str] = None, **kwargs: Any ) -> HttpRequest: # Construct URL - url = "/constants/putModelAsStringNoRequiredOneValueNoDefault" + _url = "/constants/putModelAsStringNoRequiredOneValueNoDefault" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if input is not None: - query_parameters["input"] = _SERIALIZER.query("input", input, "str") + _query_parameters["input"] = _SERIALIZER.query("input", input, "str") - return HttpRequest(method="PUT", url=url, params=query_parameters, **kwargs) + return HttpRequest(method="PUT", url=_url, params=_query_parameters, **kwargs) def build_contants_put_model_as_string_no_required_one_value_default_request( *, input: Optional[str] = "value1", **kwargs: Any ) -> HttpRequest: # Construct URL - url = "/constants/putModelAsStringNoRequiredOneValueDefault" + _url = "/constants/putModelAsStringNoRequiredOneValueDefault" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if input is not None: - query_parameters["input"] = _SERIALIZER.query("input", input, "str") + _query_parameters["input"] = _SERIALIZER.query("input", input, "str") - return HttpRequest(method="PUT", url=url, params=query_parameters, **kwargs) + return HttpRequest(method="PUT", url=_url, params=_query_parameters, **kwargs) def build_contants_put_model_as_string_required_two_value_no_default_request( *, input: str, **kwargs: Any ) -> HttpRequest: # Construct URL - url = "/constants/putModelAsStringRequiredTwoValueNoDefault" + _url = "/constants/putModelAsStringRequiredTwoValueNoDefault" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["input"] = _SERIALIZER.query("input", input, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["input"] = _SERIALIZER.query("input", input, "str") - return HttpRequest(method="PUT", url=url, params=query_parameters, **kwargs) + return HttpRequest(method="PUT", url=_url, params=_query_parameters, **kwargs) def build_contants_put_model_as_string_required_two_value_default_request( *, input: str = "value1", **kwargs: Any ) -> HttpRequest: # Construct URL - url = "/constants/putModelAsStringRequiredTwoValueDefault" + _url = "/constants/putModelAsStringRequiredTwoValueDefault" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["input"] = _SERIALIZER.query("input", input, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["input"] = _SERIALIZER.query("input", input, "str") - return HttpRequest(method="PUT", url=url, params=query_parameters, **kwargs) + return HttpRequest(method="PUT", url=_url, params=_query_parameters, **kwargs) def build_contants_put_model_as_string_required_one_value_no_default_request( *, input: str, **kwargs: Any ) -> HttpRequest: # Construct URL - url = "/constants/putModelAsStringRequiredOneValueNoDefault" + _url = "/constants/putModelAsStringRequiredOneValueNoDefault" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["input"] = _SERIALIZER.query("input", input, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["input"] = _SERIALIZER.query("input", input, "str") - return HttpRequest(method="PUT", url=url, params=query_parameters, **kwargs) + return HttpRequest(method="PUT", url=_url, params=_query_parameters, **kwargs) def build_contants_put_model_as_string_required_one_value_default_request( *, input: str = "value1", **kwargs: Any ) -> HttpRequest: # Construct URL - url = "/constants/putModelAsStringRequiredOneValueDefault" + _url = "/constants/putModelAsStringRequiredOneValueDefault" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["input"] = _SERIALIZER.query("input", input, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["input"] = _SERIALIZER.query("input", input, "str") - return HttpRequest(method="PUT", url=url, params=query_parameters, **kwargs) + return HttpRequest(method="PUT", url=_url, params=_query_parameters, **kwargs) def build_contants_put_client_constants_request(**kwargs: Any) -> HttpRequest: @@ -252,22 +252,22 @@ def build_contants_put_client_constants_request(**kwargs: Any) -> HttpRequest: path_constant = kwargs.pop("path_constant", "path") # type: str # Construct URL - url = "/constants/clientConstants/{path-constant}" + _url = "/constants/clientConstants/{path-constant}" path_format_arguments = { "path-constant": _SERIALIZER.url("path_constant", path_constant, "str"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["query-constant"] = _SERIALIZER.query("query_constant", query_constant, "int") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["query-constant"] = _SERIALIZER.query("query_constant", query_constant, "int") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["header-constant"] = _SERIALIZER.header("header_constant", header_constant, "bool") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["header-constant"] = _SERIALIZER.header("header_constant", header_constant, "bool") - return HttpRequest(method="PUT", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="PUT", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) class ContantsOperations(object): diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/CustomBaseUriMoreOptionsVersionTolerant/custombaseurlmoreoptionsversiontolerant/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/CustomBaseUriMoreOptionsVersionTolerant/custombaseurlmoreoptionsversiontolerant/operations/_operations.py index f058a89677b..e6d853c0446 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/CustomBaseUriMoreOptionsVersionTolerant/custombaseurlmoreoptionsversiontolerant/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/CustomBaseUriMoreOptionsVersionTolerant/custombaseurlmoreoptionsversiontolerant/operations/_operations.py @@ -35,24 +35,24 @@ def build_paths_get_empty_request( ) -> HttpRequest: accept = "application/json" # Construct URL - url = "/customuri/{subscriptionId}/{keyName}" + _url = "/customuri/{subscriptionId}/{keyName}" path_format_arguments = { "keyName": _SERIALIZER.url("key_name", key_name, "str"), "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if key_version is not None: - query_parameters["keyVersion"] = _SERIALIZER.query("key_version", key_version, "str") + _query_parameters["keyVersion"] = _SERIALIZER.query("key_version", key_version, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) class PathsOperations(object): diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/CustomBaseUriVersionTolerant/custombaseurlversiontolerant/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/CustomBaseUriVersionTolerant/custombaseurlversiontolerant/operations/_operations.py index 0d8c5f76933..4b1cabb4340 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/CustomBaseUriVersionTolerant/custombaseurlversiontolerant/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/CustomBaseUriVersionTolerant/custombaseurlversiontolerant/operations/_operations.py @@ -30,13 +30,13 @@ def build_paths_get_empty_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/customuri" + _url = "/customuri" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) class PathsOperations(object): diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/ExtensibleEnumsVersionTolerant/extensibleenumsswaggerversiontolerant/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/ExtensibleEnumsVersionTolerant/extensibleenumsswaggerversiontolerant/operations/_operations.py index 7646225797e..ea804d668a5 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/ExtensibleEnumsVersionTolerant/extensibleenumsswaggerversiontolerant/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/ExtensibleEnumsVersionTolerant/extensibleenumsswaggerversiontolerant/operations/_operations.py @@ -34,18 +34,18 @@ def build_pet_get_by_pet_id_request(pet_id: str, **kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/extensibleenums/pet/{petId}" + _url = "/extensibleenums/pet/{petId}" path_format_arguments = { "petId": _SERIALIZER.url("pet_id", pet_id, "str"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_pet_add_pet_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -53,15 +53,15 @@ def build_pet_add_pet_request(*, json: JSONType = None, content: Any = None, **k accept = "application/json" # Construct URL - url = "/extensibleenums/pet/addPet" + _url = "/extensibleenums/pet/addPet" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) class PetOperations(object): diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/HeaderVersionTolerant/headerversiontolerant/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/HeaderVersionTolerant/headerversiontolerant/operations/_operations.py index ab510b9ad5a..21934d2fa81 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/HeaderVersionTolerant/headerversiontolerant/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/HeaderVersionTolerant/headerversiontolerant/operations/_operations.py @@ -32,26 +32,26 @@ def build_header_param_existing_key_request(*, user_agent_parameter: str, **kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/header/param/existingkey" + _url = "/header/param/existingkey" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["User-Agent"] = _SERIALIZER.header("user_agent_parameter", user_agent_parameter, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["User-Agent"] = _SERIALIZER.header("user_agent_parameter", user_agent_parameter, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) def build_header_response_existing_key_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/header/response/existingkey" + _url = "/header/response/existingkey" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) def build_header_param_protected_key_request(**kwargs: Any) -> HttpRequest: @@ -59,243 +59,243 @@ def build_header_param_protected_key_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/header/param/protectedkey" + _url = "/header/param/protectedkey" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) def build_header_response_protected_key_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/header/response/protectedkey" + _url = "/header/response/protectedkey" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) def build_header_param_integer_request(*, scenario: str, value: int, **kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/header/param/prim/integer" + _url = "/header/param/prim/integer" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["scenario"] = _SERIALIZER.header("scenario", scenario, "str") - header_parameters["value"] = _SERIALIZER.header("value", value, "int") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["scenario"] = _SERIALIZER.header("scenario", scenario, "str") + _header_parameters["value"] = _SERIALIZER.header("value", value, "int") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) def build_header_response_integer_request(*, scenario: str, **kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/header/response/prim/integer" + _url = "/header/response/prim/integer" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["scenario"] = _SERIALIZER.header("scenario", scenario, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["scenario"] = _SERIALIZER.header("scenario", scenario, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) def build_header_param_long_request(*, scenario: str, value: int, **kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/header/param/prim/long" + _url = "/header/param/prim/long" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["scenario"] = _SERIALIZER.header("scenario", scenario, "str") - header_parameters["value"] = _SERIALIZER.header("value", value, "long") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["scenario"] = _SERIALIZER.header("scenario", scenario, "str") + _header_parameters["value"] = _SERIALIZER.header("value", value, "long") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) def build_header_response_long_request(*, scenario: str, **kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/header/response/prim/long" + _url = "/header/response/prim/long" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["scenario"] = _SERIALIZER.header("scenario", scenario, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["scenario"] = _SERIALIZER.header("scenario", scenario, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) def build_header_param_float_request(*, scenario: str, value: float, **kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/header/param/prim/float" + _url = "/header/param/prim/float" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["scenario"] = _SERIALIZER.header("scenario", scenario, "str") - header_parameters["value"] = _SERIALIZER.header("value", value, "float") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["scenario"] = _SERIALIZER.header("scenario", scenario, "str") + _header_parameters["value"] = _SERIALIZER.header("value", value, "float") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) def build_header_response_float_request(*, scenario: str, **kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/header/response/prim/float" + _url = "/header/response/prim/float" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["scenario"] = _SERIALIZER.header("scenario", scenario, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["scenario"] = _SERIALIZER.header("scenario", scenario, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) def build_header_param_double_request(*, scenario: str, value: float, **kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/header/param/prim/double" + _url = "/header/param/prim/double" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["scenario"] = _SERIALIZER.header("scenario", scenario, "str") - header_parameters["value"] = _SERIALIZER.header("value", value, "float") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["scenario"] = _SERIALIZER.header("scenario", scenario, "str") + _header_parameters["value"] = _SERIALIZER.header("value", value, "float") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) def build_header_response_double_request(*, scenario: str, **kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/header/response/prim/double" + _url = "/header/response/prim/double" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["scenario"] = _SERIALIZER.header("scenario", scenario, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["scenario"] = _SERIALIZER.header("scenario", scenario, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) def build_header_param_bool_request(*, scenario: str, value: bool, **kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/header/param/prim/bool" + _url = "/header/param/prim/bool" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["scenario"] = _SERIALIZER.header("scenario", scenario, "str") - header_parameters["value"] = _SERIALIZER.header("value", value, "bool") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["scenario"] = _SERIALIZER.header("scenario", scenario, "str") + _header_parameters["value"] = _SERIALIZER.header("value", value, "bool") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) def build_header_response_bool_request(*, scenario: str, **kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/header/response/prim/bool" + _url = "/header/response/prim/bool" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["scenario"] = _SERIALIZER.header("scenario", scenario, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["scenario"] = _SERIALIZER.header("scenario", scenario, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) def build_header_param_string_request(*, scenario: str, value: Optional[str] = None, **kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/header/param/prim/string" + _url = "/header/param/prim/string" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["scenario"] = _SERIALIZER.header("scenario", scenario, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["scenario"] = _SERIALIZER.header("scenario", scenario, "str") if value is not None: - header_parameters["value"] = _SERIALIZER.header("value", value, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["value"] = _SERIALIZER.header("value", value, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) def build_header_response_string_request(*, scenario: str, **kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/header/response/prim/string" + _url = "/header/response/prim/string" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["scenario"] = _SERIALIZER.header("scenario", scenario, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["scenario"] = _SERIALIZER.header("scenario", scenario, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) def build_header_param_date_request(*, scenario: str, value: datetime.date, **kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/header/param/prim/date" + _url = "/header/param/prim/date" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["scenario"] = _SERIALIZER.header("scenario", scenario, "str") - header_parameters["value"] = _SERIALIZER.header("value", value, "date") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["scenario"] = _SERIALIZER.header("scenario", scenario, "str") + _header_parameters["value"] = _SERIALIZER.header("value", value, "date") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) def build_header_response_date_request(*, scenario: str, **kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/header/response/prim/date" + _url = "/header/response/prim/date" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["scenario"] = _SERIALIZER.header("scenario", scenario, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["scenario"] = _SERIALIZER.header("scenario", scenario, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) def build_header_param_datetime_request(*, scenario: str, value: datetime.datetime, **kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/header/param/prim/datetime" + _url = "/header/param/prim/datetime" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["scenario"] = _SERIALIZER.header("scenario", scenario, "str") - header_parameters["value"] = _SERIALIZER.header("value", value, "iso-8601") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["scenario"] = _SERIALIZER.header("scenario", scenario, "str") + _header_parameters["value"] = _SERIALIZER.header("value", value, "iso-8601") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) def build_header_response_datetime_request(*, scenario: str, **kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/header/response/prim/datetime" + _url = "/header/response/prim/datetime" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["scenario"] = _SERIALIZER.header("scenario", scenario, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["scenario"] = _SERIALIZER.header("scenario", scenario, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) def build_header_param_datetime_rfc1123_request( @@ -303,123 +303,123 @@ def build_header_param_datetime_rfc1123_request( ) -> HttpRequest: accept = "application/json" # Construct URL - url = "/header/param/prim/datetimerfc1123" + _url = "/header/param/prim/datetimerfc1123" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["scenario"] = _SERIALIZER.header("scenario", scenario, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["scenario"] = _SERIALIZER.header("scenario", scenario, "str") if value is not None: - header_parameters["value"] = _SERIALIZER.header("value", value, "rfc-1123") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["value"] = _SERIALIZER.header("value", value, "rfc-1123") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) def build_header_response_datetime_rfc1123_request(*, scenario: str, **kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/header/response/prim/datetimerfc1123" + _url = "/header/response/prim/datetimerfc1123" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["scenario"] = _SERIALIZER.header("scenario", scenario, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["scenario"] = _SERIALIZER.header("scenario", scenario, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) def build_header_param_duration_request(*, scenario: str, value: datetime.timedelta, **kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/header/param/prim/duration" + _url = "/header/param/prim/duration" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["scenario"] = _SERIALIZER.header("scenario", scenario, "str") - header_parameters["value"] = _SERIALIZER.header("value", value, "duration") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["scenario"] = _SERIALIZER.header("scenario", scenario, "str") + _header_parameters["value"] = _SERIALIZER.header("value", value, "duration") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) def build_header_response_duration_request(*, scenario: str, **kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/header/response/prim/duration" + _url = "/header/response/prim/duration" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["scenario"] = _SERIALIZER.header("scenario", scenario, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["scenario"] = _SERIALIZER.header("scenario", scenario, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) def build_header_param_byte_request(*, scenario: str, value: bytearray, **kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/header/param/prim/byte" + _url = "/header/param/prim/byte" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["scenario"] = _SERIALIZER.header("scenario", scenario, "str") - header_parameters["value"] = _SERIALIZER.header("value", value, "bytearray") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["scenario"] = _SERIALIZER.header("scenario", scenario, "str") + _header_parameters["value"] = _SERIALIZER.header("value", value, "bytearray") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) def build_header_response_byte_request(*, scenario: str, **kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/header/response/prim/byte" + _url = "/header/response/prim/byte" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["scenario"] = _SERIALIZER.header("scenario", scenario, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["scenario"] = _SERIALIZER.header("scenario", scenario, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) def build_header_param_enum_request(*, scenario: str, value: Optional[str] = None, **kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/header/param/prim/enum" + _url = "/header/param/prim/enum" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["scenario"] = _SERIALIZER.header("scenario", scenario, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["scenario"] = _SERIALIZER.header("scenario", scenario, "str") if value is not None: - header_parameters["value"] = _SERIALIZER.header("value", value, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["value"] = _SERIALIZER.header("value", value, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) def build_header_response_enum_request(*, scenario: str, **kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/header/response/prim/enum" + _url = "/header/response/prim/enum" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["scenario"] = _SERIALIZER.header("scenario", scenario, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["scenario"] = _SERIALIZER.header("scenario", scenario, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) def build_header_custom_request_id_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/header/custom/x-ms-client-request-id/9C4D50EE-2D56-4CD3-8152-34347DC9F2B0" + _url = "/header/custom/x-ms-client-request-id/9C4D50EE-2D56-4CD3-8152-34347DC9F2B0" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) class HeaderOperations(object): # pylint: disable=too-many-public-methods diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/HttpVersionTolerant/httpinfrastructureversiontolerant/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/HttpVersionTolerant/httpinfrastructureversiontolerant/operations/_operations.py index 78392a457ec..1c6deba274b 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/HttpVersionTolerant/httpinfrastructureversiontolerant/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/HttpVersionTolerant/httpinfrastructureversiontolerant/operations/_operations.py @@ -32,73 +32,73 @@ def build_http_failure_get_empty_error_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/failure/emptybody/error" + _url = "/http/failure/emptybody/error" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_http_failure_get_no_model_error_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/failure/nomodel/error" + _url = "/http/failure/nomodel/error" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_http_failure_get_no_model_empty_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/failure/nomodel/empty" + _url = "/http/failure/nomodel/empty" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_http_success_head200_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/success/200" + _url = "/http/success/200" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="HEAD", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="HEAD", url=_url, headers=_header_parameters, **kwargs) def build_http_success_get200_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/success/200" + _url = "/http/success/200" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_http_success_options200_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/success/200" + _url = "/http/success/200" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="OPTIONS", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="OPTIONS", url=_url, headers=_header_parameters, **kwargs) def build_http_success_put200_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -106,15 +106,15 @@ def build_http_success_put200_request(*, json: JSONType = None, content: Any = N accept = "application/json" # Construct URL - url = "/http/success/200" + _url = "/http/success/200" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_http_success_patch200_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -122,15 +122,15 @@ def build_http_success_patch200_request(*, json: JSONType = None, content: Any = accept = "application/json" # Construct URL - url = "/http/success/200" + _url = "/http/success/200" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PATCH", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PATCH", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_http_success_post200_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -138,15 +138,15 @@ def build_http_success_post200_request(*, json: JSONType = None, content: Any = accept = "application/json" # Construct URL - url = "/http/success/200" + _url = "/http/success/200" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_http_success_delete200_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -154,15 +154,15 @@ def build_http_success_delete200_request(*, json: JSONType = None, content: Any accept = "application/json" # Construct URL - url = "/http/success/200" + _url = "/http/success/200" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="DELETE", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="DELETE", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_http_success_put201_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -170,15 +170,15 @@ def build_http_success_put201_request(*, json: JSONType = None, content: Any = N accept = "application/json" # Construct URL - url = "/http/success/201" + _url = "/http/success/201" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_http_success_post201_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -186,15 +186,15 @@ def build_http_success_post201_request(*, json: JSONType = None, content: Any = accept = "application/json" # Construct URL - url = "/http/success/201" + _url = "/http/success/201" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_http_success_put202_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -202,15 +202,15 @@ def build_http_success_put202_request(*, json: JSONType = None, content: Any = N accept = "application/json" # Construct URL - url = "/http/success/202" + _url = "/http/success/202" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_http_success_patch202_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -218,15 +218,15 @@ def build_http_success_patch202_request(*, json: JSONType = None, content: Any = accept = "application/json" # Construct URL - url = "/http/success/202" + _url = "/http/success/202" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PATCH", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PATCH", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_http_success_post202_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -234,15 +234,15 @@ def build_http_success_post202_request(*, json: JSONType = None, content: Any = accept = "application/json" # Construct URL - url = "/http/success/202" + _url = "/http/success/202" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_http_success_delete202_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -250,27 +250,27 @@ def build_http_success_delete202_request(*, json: JSONType = None, content: Any accept = "application/json" # Construct URL - url = "/http/success/202" + _url = "/http/success/202" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="DELETE", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="DELETE", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_http_success_head204_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/success/204" + _url = "/http/success/204" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="HEAD", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="HEAD", url=_url, headers=_header_parameters, **kwargs) def build_http_success_put204_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -278,15 +278,15 @@ def build_http_success_put204_request(*, json: JSONType = None, content: Any = N accept = "application/json" # Construct URL - url = "/http/success/204" + _url = "/http/success/204" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_http_success_patch204_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -294,15 +294,15 @@ def build_http_success_patch204_request(*, json: JSONType = None, content: Any = accept = "application/json" # Construct URL - url = "/http/success/204" + _url = "/http/success/204" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PATCH", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PATCH", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_http_success_post204_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -310,15 +310,15 @@ def build_http_success_post204_request(*, json: JSONType = None, content: Any = accept = "application/json" # Construct URL - url = "/http/success/204" + _url = "/http/success/204" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_http_success_delete204_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -326,75 +326,75 @@ def build_http_success_delete204_request(*, json: JSONType = None, content: Any accept = "application/json" # Construct URL - url = "/http/success/204" + _url = "/http/success/204" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="DELETE", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="DELETE", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_http_success_head404_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/success/404" + _url = "/http/success/404" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="HEAD", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="HEAD", url=_url, headers=_header_parameters, **kwargs) def build_http_redirects_head300_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/redirect/300" + _url = "/http/redirect/300" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="HEAD", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="HEAD", url=_url, headers=_header_parameters, **kwargs) def build_http_redirects_get300_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/redirect/300" + _url = "/http/redirect/300" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_http_redirects_head301_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/redirect/301" + _url = "/http/redirect/301" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="HEAD", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="HEAD", url=_url, headers=_header_parameters, **kwargs) def build_http_redirects_get301_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/redirect/301" + _url = "/http/redirect/301" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_http_redirects_put301_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -402,39 +402,39 @@ def build_http_redirects_put301_request(*, json: JSONType = None, content: Any = accept = "application/json" # Construct URL - url = "/http/redirect/301" + _url = "/http/redirect/301" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_http_redirects_head302_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/redirect/302" + _url = "/http/redirect/302" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="HEAD", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="HEAD", url=_url, headers=_header_parameters, **kwargs) def build_http_redirects_get302_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/redirect/302" + _url = "/http/redirect/302" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_http_redirects_patch302_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -442,15 +442,15 @@ def build_http_redirects_patch302_request(*, json: JSONType = None, content: Any accept = "application/json" # Construct URL - url = "/http/redirect/302" + _url = "/http/redirect/302" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PATCH", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PATCH", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_http_redirects_post303_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -458,51 +458,51 @@ def build_http_redirects_post303_request(*, json: JSONType = None, content: Any accept = "application/json" # Construct URL - url = "/http/redirect/303" + _url = "/http/redirect/303" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_http_redirects_head307_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/redirect/307" + _url = "/http/redirect/307" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="HEAD", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="HEAD", url=_url, headers=_header_parameters, **kwargs) def build_http_redirects_get307_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/redirect/307" + _url = "/http/redirect/307" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_http_redirects_options307_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/redirect/307" + _url = "/http/redirect/307" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="OPTIONS", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="OPTIONS", url=_url, headers=_header_parameters, **kwargs) def build_http_redirects_put307_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -510,15 +510,15 @@ def build_http_redirects_put307_request(*, json: JSONType = None, content: Any = accept = "application/json" # Construct URL - url = "/http/redirect/307" + _url = "/http/redirect/307" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_http_redirects_patch307_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -526,15 +526,15 @@ def build_http_redirects_patch307_request(*, json: JSONType = None, content: Any accept = "application/json" # Construct URL - url = "/http/redirect/307" + _url = "/http/redirect/307" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PATCH", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PATCH", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_http_redirects_post307_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -542,15 +542,15 @@ def build_http_redirects_post307_request(*, json: JSONType = None, content: Any accept = "application/json" # Construct URL - url = "/http/redirect/307" + _url = "/http/redirect/307" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_http_redirects_delete307_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -558,51 +558,51 @@ def build_http_redirects_delete307_request(*, json: JSONType = None, content: An accept = "application/json" # Construct URL - url = "/http/redirect/307" + _url = "/http/redirect/307" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="DELETE", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="DELETE", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_http_client_failure_head400_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/failure/client/400" + _url = "/http/failure/client/400" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="HEAD", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="HEAD", url=_url, headers=_header_parameters, **kwargs) def build_http_client_failure_get400_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/failure/client/400" + _url = "/http/failure/client/400" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_http_client_failure_options400_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/failure/client/400" + _url = "/http/failure/client/400" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="OPTIONS", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="OPTIONS", url=_url, headers=_header_parameters, **kwargs) def build_http_client_failure_put400_request( @@ -612,15 +612,15 @@ def build_http_client_failure_put400_request( accept = "application/json" # Construct URL - url = "/http/failure/client/400" + _url = "/http/failure/client/400" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_http_client_failure_patch400_request( @@ -630,15 +630,15 @@ def build_http_client_failure_patch400_request( accept = "application/json" # Construct URL - url = "/http/failure/client/400" + _url = "/http/failure/client/400" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PATCH", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PATCH", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_http_client_failure_post400_request( @@ -648,15 +648,15 @@ def build_http_client_failure_post400_request( accept = "application/json" # Construct URL - url = "/http/failure/client/400" + _url = "/http/failure/client/400" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_http_client_failure_delete400_request( @@ -666,63 +666,63 @@ def build_http_client_failure_delete400_request( accept = "application/json" # Construct URL - url = "/http/failure/client/400" + _url = "/http/failure/client/400" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="DELETE", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="DELETE", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_http_client_failure_head401_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/failure/client/401" + _url = "/http/failure/client/401" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="HEAD", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="HEAD", url=_url, headers=_header_parameters, **kwargs) def build_http_client_failure_get402_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/failure/client/402" + _url = "/http/failure/client/402" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_http_client_failure_options403_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/failure/client/403" + _url = "/http/failure/client/403" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="OPTIONS", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="OPTIONS", url=_url, headers=_header_parameters, **kwargs) def build_http_client_failure_get403_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/failure/client/403" + _url = "/http/failure/client/403" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_http_client_failure_put404_request( @@ -732,15 +732,15 @@ def build_http_client_failure_put404_request( accept = "application/json" # Construct URL - url = "/http/failure/client/404" + _url = "/http/failure/client/404" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_http_client_failure_patch405_request( @@ -750,15 +750,15 @@ def build_http_client_failure_patch405_request( accept = "application/json" # Construct URL - url = "/http/failure/client/405" + _url = "/http/failure/client/405" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PATCH", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PATCH", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_http_client_failure_post406_request( @@ -768,15 +768,15 @@ def build_http_client_failure_post406_request( accept = "application/json" # Construct URL - url = "/http/failure/client/406" + _url = "/http/failure/client/406" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_http_client_failure_delete407_request( @@ -786,15 +786,15 @@ def build_http_client_failure_delete407_request( accept = "application/json" # Construct URL - url = "/http/failure/client/407" + _url = "/http/failure/client/407" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="DELETE", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="DELETE", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_http_client_failure_put409_request( @@ -804,63 +804,63 @@ def build_http_client_failure_put409_request( accept = "application/json" # Construct URL - url = "/http/failure/client/409" + _url = "/http/failure/client/409" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_http_client_failure_head410_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/failure/client/410" + _url = "/http/failure/client/410" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="HEAD", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="HEAD", url=_url, headers=_header_parameters, **kwargs) def build_http_client_failure_get411_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/failure/client/411" + _url = "/http/failure/client/411" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_http_client_failure_options412_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/failure/client/412" + _url = "/http/failure/client/412" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="OPTIONS", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="OPTIONS", url=_url, headers=_header_parameters, **kwargs) def build_http_client_failure_get412_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/failure/client/412" + _url = "/http/failure/client/412" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_http_client_failure_put413_request( @@ -870,15 +870,15 @@ def build_http_client_failure_put413_request( accept = "application/json" # Construct URL - url = "/http/failure/client/413" + _url = "/http/failure/client/413" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_http_client_failure_patch414_request( @@ -888,15 +888,15 @@ def build_http_client_failure_patch414_request( accept = "application/json" # Construct URL - url = "/http/failure/client/414" + _url = "/http/failure/client/414" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PATCH", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PATCH", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_http_client_failure_post415_request( @@ -906,27 +906,27 @@ def build_http_client_failure_post415_request( accept = "application/json" # Construct URL - url = "/http/failure/client/415" + _url = "/http/failure/client/415" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_http_client_failure_get416_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/failure/client/416" + _url = "/http/failure/client/416" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_http_client_failure_delete417_request( @@ -936,51 +936,51 @@ def build_http_client_failure_delete417_request( accept = "application/json" # Construct URL - url = "/http/failure/client/417" + _url = "/http/failure/client/417" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="DELETE", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="DELETE", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_http_client_failure_head429_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/failure/client/429" + _url = "/http/failure/client/429" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="HEAD", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="HEAD", url=_url, headers=_header_parameters, **kwargs) def build_http_server_failure_head501_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/failure/server/501" + _url = "/http/failure/server/501" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="HEAD", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="HEAD", url=_url, headers=_header_parameters, **kwargs) def build_http_server_failure_get501_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/failure/server/501" + _url = "/http/failure/server/501" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_http_server_failure_post505_request( @@ -990,15 +990,15 @@ def build_http_server_failure_post505_request( accept = "application/json" # Construct URL - url = "/http/failure/server/505" + _url = "/http/failure/server/505" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_http_server_failure_delete505_request( @@ -1008,27 +1008,27 @@ def build_http_server_failure_delete505_request( accept = "application/json" # Construct URL - url = "/http/failure/server/505" + _url = "/http/failure/server/505" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="DELETE", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="DELETE", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_http_retry_head408_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/retry/408" + _url = "/http/retry/408" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="HEAD", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="HEAD", url=_url, headers=_header_parameters, **kwargs) def build_http_retry_put500_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -1036,15 +1036,15 @@ def build_http_retry_put500_request(*, json: JSONType = None, content: Any = Non accept = "application/json" # Construct URL - url = "/http/retry/500" + _url = "/http/retry/500" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_http_retry_patch500_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -1052,39 +1052,39 @@ def build_http_retry_patch500_request(*, json: JSONType = None, content: Any = N accept = "application/json" # Construct URL - url = "/http/retry/500" + _url = "/http/retry/500" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PATCH", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PATCH", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_http_retry_get502_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/retry/502" + _url = "/http/retry/502" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_http_retry_options502_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/retry/502" + _url = "/http/retry/502" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="OPTIONS", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="OPTIONS", url=_url, headers=_header_parameters, **kwargs) def build_http_retry_post503_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -1092,15 +1092,15 @@ def build_http_retry_post503_request(*, json: JSONType = None, content: Any = No accept = "application/json" # Construct URL - url = "/http/retry/503" + _url = "/http/retry/503" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_http_retry_delete503_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -1108,15 +1108,15 @@ def build_http_retry_delete503_request(*, json: JSONType = None, content: Any = accept = "application/json" # Construct URL - url = "/http/retry/503" + _url = "/http/retry/503" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="DELETE", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="DELETE", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_http_retry_put504_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -1124,15 +1124,15 @@ def build_http_retry_put504_request(*, json: JSONType = None, content: Any = Non accept = "application/json" # Construct URL - url = "/http/retry/504" + _url = "/http/retry/504" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_http_retry_patch504_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -1140,111 +1140,111 @@ def build_http_retry_patch504_request(*, json: JSONType = None, content: Any = N accept = "application/json" # Construct URL - url = "/http/retry/504" + _url = "/http/retry/504" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PATCH", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PATCH", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_multiple_responses_get200_model204_no_model_default_error200_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/payloads/200/A/204/none/default/Error/response/200/valid" + _url = "/http/payloads/200/A/204/none/default/Error/response/200/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_multiple_responses_get200_model204_no_model_default_error204_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/payloads/200/A/204/none/default/Error/response/204/none" + _url = "/http/payloads/200/A/204/none/default/Error/response/204/none" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_multiple_responses_get200_model204_no_model_default_error201_invalid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/payloads/200/A/204/none/default/Error/response/201/valid" + _url = "/http/payloads/200/A/204/none/default/Error/response/201/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_multiple_responses_get200_model204_no_model_default_error202_none_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/payloads/200/A/204/none/default/Error/response/202/none" + _url = "/http/payloads/200/A/204/none/default/Error/response/202/none" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_multiple_responses_get200_model204_no_model_default_error400_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/payloads/200/A/204/none/default/Error/response/400/valid" + _url = "/http/payloads/200/A/204/none/default/Error/response/400/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_multiple_responses_get200_model201_model_default_error200_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/payloads/200/A/201/B/default/Error/response/200/valid" + _url = "/http/payloads/200/A/201/B/default/Error/response/200/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_multiple_responses_get200_model201_model_default_error201_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/payloads/200/A/201/B/default/Error/response/201/valid" + _url = "/http/payloads/200/A/201/B/default/Error/response/201/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_multiple_responses_get200_model201_model_default_error400_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/payloads/200/A/201/B/default/Error/response/400/valid" + _url = "/http/payloads/200/A/201/B/default/Error/response/400/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_multiple_responses_get200_model_a201_model_c404_model_d_default_error200_valid_request( @@ -1252,13 +1252,13 @@ def build_multiple_responses_get200_model_a201_model_c404_model_d_default_error2 ) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/payloads/200/A/201/C/404/D/default/Error/response/200/valid" + _url = "/http/payloads/200/A/201/C/404/D/default/Error/response/200/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_multiple_responses_get200_model_a201_model_c404_model_d_default_error201_valid_request( @@ -1266,13 +1266,13 @@ def build_multiple_responses_get200_model_a201_model_c404_model_d_default_error2 ) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/payloads/200/A/201/C/404/D/default/Error/response/201/valid" + _url = "/http/payloads/200/A/201/C/404/D/default/Error/response/201/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_multiple_responses_get200_model_a201_model_c404_model_d_default_error404_valid_request( @@ -1280,13 +1280,13 @@ def build_multiple_responses_get200_model_a201_model_c404_model_d_default_error4 ) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/payloads/200/A/201/C/404/D/default/Error/response/404/valid" + _url = "/http/payloads/200/A/201/C/404/D/default/Error/response/404/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_multiple_responses_get200_model_a201_model_c404_model_d_default_error400_valid_request( @@ -1294,237 +1294,237 @@ def build_multiple_responses_get200_model_a201_model_c404_model_d_default_error4 ) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/payloads/200/A/201/C/404/D/default/Error/response/400/valid" + _url = "/http/payloads/200/A/201/C/404/D/default/Error/response/400/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_multiple_responses_get202_none204_none_default_error202_none_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/payloads/202/none/204/none/default/Error/response/202/none" + _url = "/http/payloads/202/none/204/none/default/Error/response/202/none" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_multiple_responses_get202_none204_none_default_error204_none_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/payloads/202/none/204/none/default/Error/response/204/none" + _url = "/http/payloads/202/none/204/none/default/Error/response/204/none" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_multiple_responses_get202_none204_none_default_error400_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/payloads/202/none/204/none/default/Error/response/400/valid" + _url = "/http/payloads/202/none/204/none/default/Error/response/400/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_multiple_responses_get202_none204_none_default_none202_invalid_request(**kwargs: Any) -> HttpRequest: # Construct URL - url = "/http/payloads/202/none/204/none/default/none/response/202/invalid" + _url = "/http/payloads/202/none/204/none/default/none/response/202/invalid" - return HttpRequest(method="GET", url=url, **kwargs) + return HttpRequest(method="GET", url=_url, **kwargs) def build_multiple_responses_get202_none204_none_default_none204_none_request(**kwargs: Any) -> HttpRequest: # Construct URL - url = "/http/payloads/202/none/204/none/default/none/response/204/none" + _url = "/http/payloads/202/none/204/none/default/none/response/204/none" - return HttpRequest(method="GET", url=url, **kwargs) + return HttpRequest(method="GET", url=_url, **kwargs) def build_multiple_responses_get202_none204_none_default_none400_none_request(**kwargs: Any) -> HttpRequest: # Construct URL - url = "/http/payloads/202/none/204/none/default/none/response/400/none" + _url = "/http/payloads/202/none/204/none/default/none/response/400/none" - return HttpRequest(method="GET", url=url, **kwargs) + return HttpRequest(method="GET", url=_url, **kwargs) def build_multiple_responses_get202_none204_none_default_none400_invalid_request(**kwargs: Any) -> HttpRequest: # Construct URL - url = "/http/payloads/202/none/204/none/default/none/response/400/invalid" + _url = "/http/payloads/202/none/204/none/default/none/response/400/invalid" - return HttpRequest(method="GET", url=url, **kwargs) + return HttpRequest(method="GET", url=_url, **kwargs) def build_multiple_responses_get_default_model_a200_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/payloads/default/A/response/200/valid" + _url = "/http/payloads/default/A/response/200/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_multiple_responses_get_default_model_a200_none_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/payloads/default/A/response/200/none" + _url = "/http/payloads/default/A/response/200/none" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_multiple_responses_get_default_model_a400_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/payloads/default/A/response/400/valid" + _url = "/http/payloads/default/A/response/400/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_multiple_responses_get_default_model_a400_none_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/payloads/default/A/response/400/none" + _url = "/http/payloads/default/A/response/400/none" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_multiple_responses_get_default_none200_invalid_request(**kwargs: Any) -> HttpRequest: # Construct URL - url = "/http/payloads/default/none/response/200/invalid" + _url = "/http/payloads/default/none/response/200/invalid" - return HttpRequest(method="GET", url=url, **kwargs) + return HttpRequest(method="GET", url=_url, **kwargs) def build_multiple_responses_get_default_none200_none_request(**kwargs: Any) -> HttpRequest: # Construct URL - url = "/http/payloads/default/none/response/200/none" + _url = "/http/payloads/default/none/response/200/none" - return HttpRequest(method="GET", url=url, **kwargs) + return HttpRequest(method="GET", url=_url, **kwargs) def build_multiple_responses_get_default_none400_invalid_request(**kwargs: Any) -> HttpRequest: # Construct URL - url = "/http/payloads/default/none/response/400/invalid" + _url = "/http/payloads/default/none/response/400/invalid" - return HttpRequest(method="GET", url=url, **kwargs) + return HttpRequest(method="GET", url=_url, **kwargs) def build_multiple_responses_get_default_none400_none_request(**kwargs: Any) -> HttpRequest: # Construct URL - url = "/http/payloads/default/none/response/400/none" + _url = "/http/payloads/default/none/response/400/none" - return HttpRequest(method="GET", url=url, **kwargs) + return HttpRequest(method="GET", url=_url, **kwargs) def build_multiple_responses_get200_model_a200_none_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/payloads/200/A/response/200/none" + _url = "/http/payloads/200/A/response/200/none" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_multiple_responses_get200_model_a200_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/payloads/200/A/response/200/valid" + _url = "/http/payloads/200/A/response/200/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_multiple_responses_get200_model_a200_invalid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/payloads/200/A/response/200/invalid" + _url = "/http/payloads/200/A/response/200/invalid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_multiple_responses_get200_model_a400_none_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/payloads/200/A/response/400/none" + _url = "/http/payloads/200/A/response/400/none" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_multiple_responses_get200_model_a400_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/payloads/200/A/response/400/valid" + _url = "/http/payloads/200/A/response/400/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_multiple_responses_get200_model_a400_invalid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/payloads/200/A/response/400/invalid" + _url = "/http/payloads/200/A/response/400/invalid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_multiple_responses_get200_model_a202_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/http/payloads/200/A/response/202/valid" + _url = "/http/payloads/200/A/response/202/valid" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) class HttpFailureOperations(object): diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/IncorrectErrorResponseVersionTolerant/incorrecterrorresponseversiontolerant/_operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/IncorrectErrorResponseVersionTolerant/incorrecterrorresponseversiontolerant/_operations/_operations.py index 93e796ab86c..5c62ffdd215 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/IncorrectErrorResponseVersionTolerant/incorrecterrorresponseversiontolerant/_operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/IncorrectErrorResponseVersionTolerant/incorrecterrorresponseversiontolerant/_operations/_operations.py @@ -30,9 +30,9 @@ def build_get_incorrect_error_from_server_request(**kwargs: Any) -> HttpRequest: # Construct URL - url = "/incorrectError" + _url = "/incorrectError" - return HttpRequest(method="GET", url=url, **kwargs) + return HttpRequest(method="GET", url=_url, **kwargs) class IncorrectReturnedErrorModelOperationsMixin(object): diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/MediaTypesVersionTolerant/mediatypesversiontolerant/_operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/MediaTypesVersionTolerant/mediatypesversiontolerant/_operations/_operations.py index 62384f20b4f..366ef9fcb1c 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/MediaTypesVersionTolerant/mediatypesversiontolerant/_operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/MediaTypesVersionTolerant/mediatypesversiontolerant/_operations/_operations.py @@ -34,15 +34,15 @@ def build_analyze_body_request(*, json: JSONType = None, content: Any = None, ** accept = "application/json" # Construct URL - url = "/mediatypes/analyze" + _url = "/mediatypes/analyze" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_analyze_body_no_accept_header_request( @@ -51,14 +51,14 @@ def build_analyze_body_no_accept_header_request( content_type = kwargs.pop("content_type", None) # type: Optional[str] # Construct URL - url = "/mediatypes/analyzeNoAccept" + _url = "/mediatypes/analyzeNoAccept" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_content_type_with_encoding_request(*, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -66,15 +66,15 @@ def build_content_type_with_encoding_request(*, content: Any = None, **kwargs: A accept = "application/json" # Construct URL - url = "/mediatypes/contentTypeWithEncoding" + _url = "/mediatypes/contentTypeWithEncoding" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, content=content, **kwargs) def build_binary_body_with_two_content_types_request( @@ -84,15 +84,15 @@ def build_binary_body_with_two_content_types_request( accept = "text/plain" # Construct URL - url = "/mediatypes/binaryBodyTwoContentTypes" + _url = "/mediatypes/binaryBodyTwoContentTypes" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_binary_body_with_three_content_types_request( @@ -102,15 +102,15 @@ def build_binary_body_with_three_content_types_request( accept = "text/plain" # Construct URL - url = "/mediatypes/binaryBodyThreeContentTypes" + _url = "/mediatypes/binaryBodyThreeContentTypes" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_put_text_and_json_body_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -118,15 +118,15 @@ def build_put_text_and_json_body_request(*, json: JSONType = None, content: Any accept = "text/plain" # Construct URL - url = "/mediatypes/textAndJson" + _url = "/mediatypes/textAndJson" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) class MediaTypesClientOperationsMixin(object): diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/MergePatchJsonVersionTolerant/mergepatchjsonversiontolerant/_operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/MergePatchJsonVersionTolerant/mergepatchjsonversiontolerant/_operations/_operations.py index 3af5b327d8f..1e839c9c681 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/MergePatchJsonVersionTolerant/mergepatchjsonversiontolerant/_operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/MergePatchJsonVersionTolerant/mergepatchjsonversiontolerant/_operations/_operations.py @@ -34,15 +34,15 @@ def build_patch_single_request(*, json: JSONType = None, content: Any = None, ** accept = "application/json" # Construct URL - url = "/mergePatchJson/single" + _url = "/mergePatchJson/single" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PATCH", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PATCH", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) class MergePatchJsonClientOperationsMixin(object): diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/ModelFlatteningVersionTolerant/modelflatteningversiontolerant/_operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/ModelFlatteningVersionTolerant/modelflatteningversiontolerant/_operations/_operations.py index 067f187c78c..3b2d58e9725 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/ModelFlatteningVersionTolerant/modelflatteningversiontolerant/_operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/ModelFlatteningVersionTolerant/modelflatteningversiontolerant/_operations/_operations.py @@ -36,27 +36,27 @@ def build_put_array_request(*, json: JSONType = None, content: Any = None, **kwa accept = "application/json" # Construct URL - url = "/model-flatten/array" + _url = "/model-flatten/array" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_array_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/model-flatten/array" + _url = "/model-flatten/array" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_wrapped_array_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -64,27 +64,27 @@ def build_put_wrapped_array_request(*, json: JSONType = None, content: Any = Non accept = "application/json" # Construct URL - url = "/model-flatten/wrappedarray" + _url = "/model-flatten/wrappedarray" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_wrapped_array_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/model-flatten/wrappedarray" + _url = "/model-flatten/wrappedarray" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_dictionary_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -92,27 +92,27 @@ def build_put_dictionary_request(*, json: JSONType = None, content: Any = None, accept = "application/json" # Construct URL - url = "/model-flatten/dictionary" + _url = "/model-flatten/dictionary" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_dictionary_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/model-flatten/dictionary" + _url = "/model-flatten/dictionary" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_resource_collection_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -120,27 +120,27 @@ def build_put_resource_collection_request(*, json: JSONType = None, content: Any accept = "application/json" # Construct URL - url = "/model-flatten/resourcecollection" + _url = "/model-flatten/resourcecollection" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_resource_collection_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/model-flatten/resourcecollection" + _url = "/model-flatten/resourcecollection" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_simple_product_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -148,15 +148,15 @@ def build_put_simple_product_request(*, json: JSONType = None, content: Any = No accept = "application/json" # Construct URL - url = "/model-flatten/customFlattening" + _url = "/model-flatten/customFlattening" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_post_flattened_simple_product_request( @@ -166,15 +166,15 @@ def build_post_flattened_simple_product_request( accept = "application/json" # Construct URL - url = "/model-flatten/customFlattening" + _url = "/model-flatten/customFlattening" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_put_simple_product_with_grouping_request( @@ -184,20 +184,20 @@ def build_put_simple_product_with_grouping_request( accept = "application/json" # Construct URL - url = "/model-flatten/customFlattening/parametergrouping/{name}/" + _url = "/model-flatten/customFlattening/parametergrouping/{name}/" path_format_arguments = { "name": _SERIALIZER.url("name", name, "str"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) class AutoRestResourceFlatteningTestServiceOperationsMixin(object): diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/MultipleInheritanceVersionTolerant/multipleinheritanceversiontolerant/_operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/MultipleInheritanceVersionTolerant/multipleinheritanceversiontolerant/_operations/_operations.py index 3edfce91cf2..dba6e9c66b1 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/MultipleInheritanceVersionTolerant/multipleinheritanceversiontolerant/_operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/MultipleInheritanceVersionTolerant/multipleinheritanceversiontolerant/_operations/_operations.py @@ -32,13 +32,13 @@ def build_get_horse_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/multipleInheritance/horse" + _url = "/multipleInheritance/horse" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_horse_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -46,27 +46,27 @@ def build_put_horse_request(*, json: JSONType = None, content: Any = None, **kwa accept = "application/json" # Construct URL - url = "/multipleInheritance/horse" + _url = "/multipleInheritance/horse" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_pet_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/multipleInheritance/pet" + _url = "/multipleInheritance/pet" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_pet_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -74,27 +74,27 @@ def build_put_pet_request(*, json: JSONType = None, content: Any = None, **kwarg accept = "application/json" # Construct URL - url = "/multipleInheritance/pet" + _url = "/multipleInheritance/pet" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_feline_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/multipleInheritance/feline" + _url = "/multipleInheritance/feline" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_feline_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -102,27 +102,27 @@ def build_put_feline_request(*, json: JSONType = None, content: Any = None, **kw accept = "application/json" # Construct URL - url = "/multipleInheritance/feline" + _url = "/multipleInheritance/feline" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_cat_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/multipleInheritance/cat" + _url = "/multipleInheritance/cat" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_cat_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -130,27 +130,27 @@ def build_put_cat_request(*, json: JSONType = None, content: Any = None, **kwarg accept = "application/json" # Construct URL - url = "/multipleInheritance/cat" + _url = "/multipleInheritance/cat" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_get_kitten_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/multipleInheritance/kitten" + _url = "/multipleInheritance/kitten" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_kitten_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -158,15 +158,15 @@ def build_put_kitten_request(*, json: JSONType = None, content: Any = None, **kw accept = "application/json" # Construct URL - url = "/multipleInheritance/kitten" + _url = "/multipleInheritance/kitten" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) class MultipleInheritanceServiceClientOperationsMixin(object): diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/NonStringEnumsVersionTolerant/nonstringenumsversiontolerant/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/NonStringEnumsVersionTolerant/nonstringenumsversiontolerant/operations/_operations.py index efd1a5b578f..660c003a53a 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/NonStringEnumsVersionTolerant/nonstringenumsversiontolerant/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/NonStringEnumsVersionTolerant/nonstringenumsversiontolerant/operations/_operations.py @@ -34,27 +34,27 @@ def build_int_put_request(*, json: JSONType = None, content: Any = None, **kwarg accept = "application/json" # Construct URL - url = "/nonStringEnums/int/put" + _url = "/nonStringEnums/int/put" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_int_get_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/nonStringEnums/int/get" + _url = "/nonStringEnums/int/get" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_float_put_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -62,27 +62,27 @@ def build_float_put_request(*, json: JSONType = None, content: Any = None, **kwa accept = "application/json" # Construct URL - url = "/nonStringEnums/float/put" + _url = "/nonStringEnums/float/put" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_float_get_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/nonStringEnums/float/get" + _url = "/nonStringEnums/float/get" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) class IntOperations(object): diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/ObjectTypeVersionTolerant/objecttypeversiontolerant/_operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/ObjectTypeVersionTolerant/objecttypeversiontolerant/_operations/_operations.py index df193ec2992..b484c739786 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/ObjectTypeVersionTolerant/objecttypeversiontolerant/_operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/ObjectTypeVersionTolerant/objecttypeversiontolerant/_operations/_operations.py @@ -32,13 +32,13 @@ def build_get_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/objectType/get" + _url = "/objectType/get" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_put_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -46,15 +46,15 @@ def build_put_request(*, json: JSONType = None, content: Any = None, **kwargs: A accept = "application/json" # Construct URL - url = "/objectType/put" + _url = "/objectType/put" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) class ObjectTypeClientOperationsMixin(object): diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/ParameterFlatteningVersionTolerant/parameterflatteningversiontolerant/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/ParameterFlatteningVersionTolerant/parameterflatteningversiontolerant/operations/_operations.py index e4952828f40..9357931b080 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/ParameterFlatteningVersionTolerant/parameterflatteningversiontolerant/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/ParameterFlatteningVersionTolerant/parameterflatteningversiontolerant/operations/_operations.py @@ -37,20 +37,20 @@ def build_availability_sets_update_request( content_type = kwargs.pop("content_type", None) # type: Optional[str] # Construct URL - url = "/parameterFlattening/{resourceGroupName}/{availabilitySetName}" + _url = "/parameterFlattening/{resourceGroupName}/{availabilitySetName}" path_format_arguments = { "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), "availabilitySetName": _SERIALIZER.url("avset", avset, "str", max_length=80, min_length=0), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - return HttpRequest(method="PATCH", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PATCH", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) class AvailabilitySetsOperations(object): diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/ParameterizedEndpointVersionTolerant/parameterizedendpointversiontolerant/_operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/ParameterizedEndpointVersionTolerant/parameterizedendpointversiontolerant/_operations/_operations.py index 78ebef09f77..deaa7175e26 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/ParameterizedEndpointVersionTolerant/parameterizedendpointversiontolerant/_operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/ParameterizedEndpointVersionTolerant/parameterizedendpointversiontolerant/_operations/_operations.py @@ -30,9 +30,9 @@ def build_get_request(**kwargs: Any) -> HttpRequest: # Construct URL - url = "/parameterizedEndpoint/get" + _url = "/parameterizedEndpoint/get" - return HttpRequest(method="GET", url=url, **kwargs) + return HttpRequest(method="GET", url=_url, **kwargs) class ParmaterizedEndpointClientOperationsMixin(object): diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/ReportVersionTolerant/reportversiontolerant/_operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/ReportVersionTolerant/reportversiontolerant/_operations/_operations.py index 3991177cc15..71aebf6972f 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/ReportVersionTolerant/reportversiontolerant/_operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/ReportVersionTolerant/reportversiontolerant/_operations/_operations.py @@ -32,35 +32,35 @@ def build_get_report_request(*, qualifier: Optional[str] = None, **kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/report" + _url = "/report" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if qualifier is not None: - query_parameters["qualifier"] = _SERIALIZER.query("qualifier", qualifier, "str") + _query_parameters["qualifier"] = _SERIALIZER.query("qualifier", qualifier, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_get_optional_report_request(*, qualifier: Optional[str] = None, **kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/report/optional" + _url = "/report/optional" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if qualifier is not None: - query_parameters["qualifier"] = _SERIALIZER.query("qualifier", qualifier, "str") + _query_parameters["qualifier"] = _SERIALIZER.query("qualifier", qualifier, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) class AutoRestReportServiceOperationsMixin(object): diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/RequiredOptionalVersionTolerant/requiredoptionalversiontolerant/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/RequiredOptionalVersionTolerant/requiredoptionalversiontolerant/operations/_operations.py index e63c32a1416..e2240b81161 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/RequiredOptionalVersionTolerant/requiredoptionalversiontolerant/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/RequiredOptionalVersionTolerant/requiredoptionalversiontolerant/operations/_operations.py @@ -33,49 +33,49 @@ def build_implicit_get_required_path_request(path_parameter: str, **kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/reqopt/implicit/required/path/{pathParameter}" + _url = "/reqopt/implicit/required/path/{pathParameter}" path_format_arguments = { "pathParameter": _SERIALIZER.url("path_parameter", path_parameter, "str"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_implicit_put_optional_query_request(*, query_parameter: Optional[str] = None, **kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/reqopt/implicit/optional/query" + _url = "/reqopt/implicit/optional/query" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if query_parameter is not None: - query_parameters["queryParameter"] = _SERIALIZER.query("query_parameter", query_parameter, "str") + _query_parameters["queryParameter"] = _SERIALIZER.query("query_parameter", query_parameter, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="PUT", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_implicit_put_optional_header_request(*, query_parameter: Optional[str] = None, **kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/reqopt/implicit/optional/header" + _url = "/reqopt/implicit/optional/header" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if query_parameter is not None: - header_parameters["queryParameter"] = _SERIALIZER.header("query_parameter", query_parameter, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["queryParameter"] = _SERIALIZER.header("query_parameter", query_parameter, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, **kwargs) def build_implicit_put_optional_body_request( @@ -85,15 +85,15 @@ def build_implicit_put_optional_body_request( accept = "application/json" # Construct URL - url = "/reqopt/implicit/optional/body" + _url = "/reqopt/implicit/optional/body" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_implicit_put_optional_binary_body_request(*, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -101,48 +101,50 @@ def build_implicit_put_optional_binary_body_request(*, content: Any = None, **kw accept = "application/json" # Construct URL - url = "/reqopt/implicit/optional/binary-body" + _url = "/reqopt/implicit/optional/binary-body" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, content=content, **kwargs) def build_implicit_get_required_global_path_request(required_global_path: str, **kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/reqopt/global/required/path/{required-global-path}" + _url = "/reqopt/global/required/path/{required-global-path}" path_format_arguments = { "required-global-path": _SERIALIZER.url("required_global_path", required_global_path, "str"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_implicit_get_required_global_query_request(*, required_global_query: str, **kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/reqopt/global/required/query" + _url = "/reqopt/global/required/query" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["required-global-query"] = _SERIALIZER.query("required_global_query", required_global_query, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["required-global-query"] = _SERIALIZER.query( + "required_global_query", required_global_query, "str" + ) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_implicit_get_optional_global_query_request( @@ -150,20 +152,20 @@ def build_implicit_get_optional_global_query_request( ) -> HttpRequest: accept = "application/json" # Construct URL - url = "/reqopt/global/optional/query" + _url = "/reqopt/global/optional/query" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if optional_global_query is not None: - query_parameters["optional-global-query"] = _SERIALIZER.query( + _query_parameters["optional-global-query"] = _SERIALIZER.query( "optional_global_query", optional_global_query, "int" ) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_explicit_put_optional_binary_body_request(*, content: Any = None, **kwargs: Any) -> HttpRequest: @@ -171,15 +173,15 @@ def build_explicit_put_optional_binary_body_request(*, content: Any = None, **kw accept = "application/json" # Construct URL - url = "/reqopt/explicit/optional/binary-body" + _url = "/reqopt/explicit/optional/binary-body" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, content=content, **kwargs) def build_explicit_put_required_binary_body_request(*, content: Any, **kwargs: Any) -> HttpRequest: @@ -187,15 +189,15 @@ def build_explicit_put_required_binary_body_request(*, content: Any, **kwargs: A accept = "application/json" # Construct URL - url = "/reqopt/explicit/required/binary-body" + _url = "/reqopt/explicit/required/binary-body" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, content=content, **kwargs) def build_explicit_post_required_integer_parameter_request( @@ -205,15 +207,15 @@ def build_explicit_post_required_integer_parameter_request( accept = "application/json" # Construct URL - url = "/reqopt/requied/integer/parameter" + _url = "/reqopt/requied/integer/parameter" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_explicit_post_optional_integer_parameter_request( @@ -223,15 +225,15 @@ def build_explicit_post_optional_integer_parameter_request( accept = "application/json" # Construct URL - url = "/reqopt/optional/integer/parameter" + _url = "/reqopt/optional/integer/parameter" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_explicit_post_required_integer_property_request( @@ -241,15 +243,15 @@ def build_explicit_post_required_integer_property_request( accept = "application/json" # Construct URL - url = "/reqopt/requied/integer/property" + _url = "/reqopt/requied/integer/property" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_explicit_post_optional_integer_property_request( @@ -259,28 +261,28 @@ def build_explicit_post_optional_integer_property_request( accept = "application/json" # Construct URL - url = "/reqopt/optional/integer/property" + _url = "/reqopt/optional/integer/property" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_explicit_post_required_integer_header_request(*, header_parameter: int, **kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/reqopt/requied/integer/header" + _url = "/reqopt/requied/integer/header" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["headerParameter"] = _SERIALIZER.header("header_parameter", header_parameter, "int") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["headerParameter"] = _SERIALIZER.header("header_parameter", header_parameter, "int") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) def build_explicit_post_optional_integer_header_request( @@ -288,15 +290,15 @@ def build_explicit_post_optional_integer_header_request( ) -> HttpRequest: accept = "application/json" # Construct URL - url = "/reqopt/optional/integer/header" + _url = "/reqopt/optional/integer/header" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if header_parameter is not None: - header_parameters["headerParameter"] = _SERIALIZER.header("header_parameter", header_parameter, "int") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["headerParameter"] = _SERIALIZER.header("header_parameter", header_parameter, "int") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) def build_explicit_post_required_string_parameter_request( @@ -306,15 +308,15 @@ def build_explicit_post_required_string_parameter_request( accept = "application/json" # Construct URL - url = "/reqopt/requied/string/parameter" + _url = "/reqopt/requied/string/parameter" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_explicit_post_optional_string_parameter_request( @@ -324,15 +326,15 @@ def build_explicit_post_optional_string_parameter_request( accept = "application/json" # Construct URL - url = "/reqopt/optional/string/parameter" + _url = "/reqopt/optional/string/parameter" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_explicit_post_required_string_property_request( @@ -342,15 +344,15 @@ def build_explicit_post_required_string_property_request( accept = "application/json" # Construct URL - url = "/reqopt/requied/string/property" + _url = "/reqopt/requied/string/property" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_explicit_post_optional_string_property_request( @@ -360,28 +362,28 @@ def build_explicit_post_optional_string_property_request( accept = "application/json" # Construct URL - url = "/reqopt/optional/string/property" + _url = "/reqopt/optional/string/property" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_explicit_post_required_string_header_request(*, header_parameter: str, **kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/reqopt/requied/string/header" + _url = "/reqopt/requied/string/header" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["headerParameter"] = _SERIALIZER.header("header_parameter", header_parameter, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["headerParameter"] = _SERIALIZER.header("header_parameter", header_parameter, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) def build_explicit_post_optional_string_header_request( @@ -389,15 +391,15 @@ def build_explicit_post_optional_string_header_request( ) -> HttpRequest: accept = "application/json" # Construct URL - url = "/reqopt/optional/string/header" + _url = "/reqopt/optional/string/header" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if body_parameter is not None: - header_parameters["bodyParameter"] = _SERIALIZER.header("body_parameter", body_parameter, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["bodyParameter"] = _SERIALIZER.header("body_parameter", body_parameter, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) def build_explicit_post_required_class_parameter_request( @@ -407,15 +409,15 @@ def build_explicit_post_required_class_parameter_request( accept = "application/json" # Construct URL - url = "/reqopt/requied/class/parameter" + _url = "/reqopt/requied/class/parameter" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_explicit_post_optional_class_parameter_request( @@ -425,15 +427,15 @@ def build_explicit_post_optional_class_parameter_request( accept = "application/json" # Construct URL - url = "/reqopt/optional/class/parameter" + _url = "/reqopt/optional/class/parameter" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_explicit_post_required_class_property_request( @@ -443,15 +445,15 @@ def build_explicit_post_required_class_property_request( accept = "application/json" # Construct URL - url = "/reqopt/requied/class/property" + _url = "/reqopt/requied/class/property" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_explicit_post_optional_class_property_request( @@ -461,15 +463,15 @@ def build_explicit_post_optional_class_property_request( accept = "application/json" # Construct URL - url = "/reqopt/optional/class/property" + _url = "/reqopt/optional/class/property" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_explicit_post_required_array_parameter_request( @@ -479,15 +481,15 @@ def build_explicit_post_required_array_parameter_request( accept = "application/json" # Construct URL - url = "/reqopt/requied/array/parameter" + _url = "/reqopt/requied/array/parameter" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_explicit_post_optional_array_parameter_request( @@ -497,15 +499,15 @@ def build_explicit_post_optional_array_parameter_request( accept = "application/json" # Construct URL - url = "/reqopt/optional/array/parameter" + _url = "/reqopt/optional/array/parameter" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_explicit_post_required_array_property_request( @@ -515,15 +517,15 @@ def build_explicit_post_required_array_property_request( accept = "application/json" # Construct URL - url = "/reqopt/requied/array/property" + _url = "/reqopt/requied/array/property" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_explicit_post_optional_array_property_request( @@ -533,28 +535,28 @@ def build_explicit_post_optional_array_property_request( accept = "application/json" # Construct URL - url = "/reqopt/optional/array/property" + _url = "/reqopt/optional/array/property" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_explicit_post_required_array_header_request(*, header_parameter: List[str], **kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/reqopt/requied/array/header" + _url = "/reqopt/requied/array/header" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["headerParameter"] = _SERIALIZER.header("header_parameter", header_parameter, "[str]", div=",") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["headerParameter"] = _SERIALIZER.header("header_parameter", header_parameter, "[str]", div=",") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) def build_explicit_post_optional_array_header_request( @@ -562,17 +564,17 @@ def build_explicit_post_optional_array_header_request( ) -> HttpRequest: accept = "application/json" # Construct URL - url = "/reqopt/optional/array/header" + _url = "/reqopt/optional/array/header" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if header_parameter is not None: - header_parameters["headerParameter"] = _SERIALIZER.header( + _header_parameters["headerParameter"] = _SERIALIZER.header( "header_parameter", header_parameter, "[str]", div="," ) - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) class ImplicitOperations(object): diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/ReservedWordsVersionTolerant/reservedwordsversiontolerant/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/ReservedWordsVersionTolerant/reservedwordsversiontolerant/operations/_operations.py index 3231e1cbda1..da1450d00d7 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/ReservedWordsVersionTolerant/reservedwordsversiontolerant/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/ReservedWordsVersionTolerant/reservedwordsversiontolerant/operations/_operations.py @@ -32,17 +32,17 @@ def build_import_builders_operation_one_request(*, parameter1: str, **kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/reservedWords/operationGroup/import" + _url = "/reservedWords/operationGroup/import" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["parameter1"] = _SERIALIZER.query("parameter1", parameter1, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["parameter1"] = _SERIALIZER.query("parameter1", parameter1, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="PUT", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_operation_with_content_param_request(*, content: Any, **kwargs: Any) -> HttpRequest: @@ -50,15 +50,15 @@ def build_operation_with_content_param_request(*, content: Any, **kwargs: Any) - accept = "application/json" # Construct URL - url = "/reservedWords/operation/content" + _url = "/reservedWords/operation/content" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, content=content, **kwargs) def build_operation_with_json_param_request( @@ -68,15 +68,15 @@ def build_operation_with_json_param_request( accept = "application/json" # Construct URL - url = "/reservedWords/operation/json" + _url = "/reservedWords/operation/json" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_operation_with_data_param_request( @@ -86,15 +86,15 @@ def build_operation_with_data_param_request( accept = "application/json" # Construct URL - url = "/reservedWords/operation/data" + _url = "/reservedWords/operation/data" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, data=data, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, data=data, content=content, **kwargs) def build_operation_with_files_param_request( @@ -104,15 +104,15 @@ def build_operation_with_files_param_request( accept = "application/json" # Construct URL - url = "/reservedWords/operation/files" + _url = "/reservedWords/operation/files" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, files=files, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, files=files, content=content, **kwargs) class ImportOperations(object): diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/UrlMultiCollectionFormatVersionTolerant/urlmulticollectionformatversiontolerant/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/UrlMultiCollectionFormatVersionTolerant/urlmulticollectionformatversiontolerant/operations/_operations.py index 2dcebcb7c17..51a9af0f690 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/UrlMultiCollectionFormatVersionTolerant/urlmulticollectionformatversiontolerant/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/UrlMultiCollectionFormatVersionTolerant/urlmulticollectionformatversiontolerant/operations/_operations.py @@ -33,20 +33,20 @@ def build_queries_array_string_multi_null_request( ) -> HttpRequest: accept = "application/json" # Construct URL - url = "/queries/array/multi/string/null" + _url = "/queries/array/multi/string/null" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if array_query is not None: - query_parameters["arrayQuery"] = [ + _query_parameters["arrayQuery"] = [ _SERIALIZER.query("array_query", q, "str") if q is not None else "" for q in array_query ] # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_queries_array_string_multi_empty_request( @@ -54,20 +54,20 @@ def build_queries_array_string_multi_empty_request( ) -> HttpRequest: accept = "application/json" # Construct URL - url = "/queries/array/multi/string/empty" + _url = "/queries/array/multi/string/empty" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if array_query is not None: - query_parameters["arrayQuery"] = [ + _query_parameters["arrayQuery"] = [ _SERIALIZER.query("array_query", q, "str") if q is not None else "" for q in array_query ] # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_queries_array_string_multi_valid_request( @@ -75,20 +75,20 @@ def build_queries_array_string_multi_valid_request( ) -> HttpRequest: accept = "application/json" # Construct URL - url = "/queries/array/multi/string/valid" + _url = "/queries/array/multi/string/valid" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if array_query is not None: - query_parameters["arrayQuery"] = [ + _query_parameters["arrayQuery"] = [ _SERIALIZER.query("array_query", q, "str") if q is not None else "" for q in array_query ] # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) class QueriesOperations(object): diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/UrlVersionTolerant/urlversiontolerant/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/UrlVersionTolerant/urlversiontolerant/operations/_operations.py index 6d80dc3a691..ad404b5e479 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/UrlVersionTolerant/urlversiontolerant/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/UrlVersionTolerant/urlversiontolerant/operations/_operations.py @@ -35,18 +35,18 @@ def build_paths_get_boolean_true_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/paths/bool/true/{boolPath}" + _url = "/paths/bool/true/{boolPath}" path_format_arguments = { "boolPath": _SERIALIZER.url("bool_path", bool_path, "bool"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_paths_get_boolean_false_request(**kwargs: Any) -> HttpRequest: @@ -54,18 +54,18 @@ def build_paths_get_boolean_false_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/paths/bool/false/{boolPath}" + _url = "/paths/bool/false/{boolPath}" path_format_arguments = { "boolPath": _SERIALIZER.url("bool_path", bool_path, "bool"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_paths_get_int_one_million_request(**kwargs: Any) -> HttpRequest: @@ -73,18 +73,18 @@ def build_paths_get_int_one_million_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/paths/int/1000000/{intPath}" + _url = "/paths/int/1000000/{intPath}" path_format_arguments = { "intPath": _SERIALIZER.url("int_path", int_path, "int"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_paths_get_int_negative_one_million_request(**kwargs: Any) -> HttpRequest: @@ -92,18 +92,18 @@ def build_paths_get_int_negative_one_million_request(**kwargs: Any) -> HttpReque accept = "application/json" # Construct URL - url = "/paths/int/-1000000/{intPath}" + _url = "/paths/int/-1000000/{intPath}" path_format_arguments = { "intPath": _SERIALIZER.url("int_path", int_path, "int"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_paths_get_ten_billion_request(**kwargs: Any) -> HttpRequest: @@ -111,18 +111,18 @@ def build_paths_get_ten_billion_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/paths/long/10000000000/{longPath}" + _url = "/paths/long/10000000000/{longPath}" path_format_arguments = { "longPath": _SERIALIZER.url("long_path", long_path, "long"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_paths_get_negative_ten_billion_request(**kwargs: Any) -> HttpRequest: @@ -130,18 +130,18 @@ def build_paths_get_negative_ten_billion_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/paths/long/-10000000000/{longPath}" + _url = "/paths/long/-10000000000/{longPath}" path_format_arguments = { "longPath": _SERIALIZER.url("long_path", long_path, "long"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_paths_float_scientific_positive_request(**kwargs: Any) -> HttpRequest: @@ -149,18 +149,18 @@ def build_paths_float_scientific_positive_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/paths/float/1.034E+20/{floatPath}" + _url = "/paths/float/1.034E+20/{floatPath}" path_format_arguments = { "floatPath": _SERIALIZER.url("float_path", float_path, "float"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_paths_float_scientific_negative_request(**kwargs: Any) -> HttpRequest: @@ -168,18 +168,18 @@ def build_paths_float_scientific_negative_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/paths/float/-1.034E-20/{floatPath}" + _url = "/paths/float/-1.034E-20/{floatPath}" path_format_arguments = { "floatPath": _SERIALIZER.url("float_path", float_path, "float"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_paths_double_decimal_positive_request(**kwargs: Any) -> HttpRequest: @@ -187,18 +187,18 @@ def build_paths_double_decimal_positive_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/paths/double/9999999.999/{doublePath}" + _url = "/paths/double/9999999.999/{doublePath}" path_format_arguments = { "doublePath": _SERIALIZER.url("double_path", double_path, "float"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_paths_double_decimal_negative_request(**kwargs: Any) -> HttpRequest: @@ -206,18 +206,18 @@ def build_paths_double_decimal_negative_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/paths/double/-9999999.999/{doublePath}" + _url = "/paths/double/-9999999.999/{doublePath}" path_format_arguments = { "doublePath": _SERIALIZER.url("double_path", double_path, "float"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_paths_string_unicode_request(**kwargs: Any) -> HttpRequest: @@ -225,18 +225,18 @@ def build_paths_string_unicode_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/paths/string/unicode/{stringPath}" + _url = "/paths/string/unicode/{stringPath}" path_format_arguments = { "stringPath": _SERIALIZER.url("string_path", string_path, "str"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_paths_string_url_encoded_request(**kwargs: Any) -> HttpRequest: @@ -244,18 +244,18 @@ def build_paths_string_url_encoded_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/paths/string/begin%21%2A%27%28%29%3B%3A%40%20%26%3D%2B%24%2C%2F%3F%23%5B%5Dend/{stringPath}" + _url = "/paths/string/begin%21%2A%27%28%29%3B%3A%40%20%26%3D%2B%24%2C%2F%3F%23%5B%5Dend/{stringPath}" path_format_arguments = { "stringPath": _SERIALIZER.url("string_path", string_path, "str"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_paths_string_url_non_encoded_request(**kwargs: Any) -> HttpRequest: @@ -263,18 +263,18 @@ def build_paths_string_url_non_encoded_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/paths/string/begin!*'();:@&=+$,end/{stringPath}" + _url = "/paths/string/begin!*'();:@&=+$,end/{stringPath}" path_format_arguments = { "stringPath": _SERIALIZER.url("string_path", string_path, "str", skip_quote=True), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_paths_string_empty_request(**kwargs: Any) -> HttpRequest: @@ -282,86 +282,86 @@ def build_paths_string_empty_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/paths/string/empty/{stringPath}" + _url = "/paths/string/empty/{stringPath}" path_format_arguments = { "stringPath": _SERIALIZER.url("string_path", string_path, "str"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_paths_string_null_request(string_path: str, **kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/paths/string/null/{stringPath}" + _url = "/paths/string/null/{stringPath}" path_format_arguments = { "stringPath": _SERIALIZER.url("string_path", string_path, "str"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_paths_enum_valid_request(enum_path: str, **kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/paths/enum/green%20color/{enumPath}" + _url = "/paths/enum/green%20color/{enumPath}" path_format_arguments = { "enumPath": _SERIALIZER.url("enum_path", enum_path, "str"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_paths_enum_null_request(enum_path: str, **kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/paths/string/null/{enumPath}" + _url = "/paths/string/null/{enumPath}" path_format_arguments = { "enumPath": _SERIALIZER.url("enum_path", enum_path, "str"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_paths_byte_multi_byte_request(byte_path: bytearray, **kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/paths/byte/multibyte/{bytePath}" + _url = "/paths/byte/multibyte/{bytePath}" path_format_arguments = { "bytePath": _SERIALIZER.url("byte_path", byte_path, "bytearray"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_paths_byte_empty_request(**kwargs: Any) -> HttpRequest: @@ -369,35 +369,35 @@ def build_paths_byte_empty_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/paths/byte/empty/{bytePath}" + _url = "/paths/byte/empty/{bytePath}" path_format_arguments = { "bytePath": _SERIALIZER.url("byte_path", byte_path, "bytearray"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_paths_byte_null_request(byte_path: bytearray, **kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/paths/byte/null/{bytePath}" + _url = "/paths/byte/null/{bytePath}" path_format_arguments = { "bytePath": _SERIALIZER.url("byte_path", byte_path, "bytearray"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_paths_date_valid_request(**kwargs: Any) -> HttpRequest: @@ -405,35 +405,35 @@ def build_paths_date_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/paths/date/2012-01-01/{datePath}" + _url = "/paths/date/2012-01-01/{datePath}" path_format_arguments = { "datePath": _SERIALIZER.url("date_path", date_path, "date"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_paths_date_null_request(date_path: datetime.date, **kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/paths/date/null/{datePath}" + _url = "/paths/date/null/{datePath}" path_format_arguments = { "datePath": _SERIALIZER.url("date_path", date_path, "date"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_paths_date_time_valid_request(**kwargs: Any) -> HttpRequest: @@ -441,88 +441,88 @@ def build_paths_date_time_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/paths/datetime/2012-01-01T01%3A01%3A01Z/{dateTimePath}" + _url = "/paths/datetime/2012-01-01T01%3A01%3A01Z/{dateTimePath}" path_format_arguments = { "dateTimePath": _SERIALIZER.url("date_time_path", date_time_path, "iso-8601"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_paths_date_time_null_request(date_time_path: datetime.datetime, **kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/paths/datetime/null/{dateTimePath}" + _url = "/paths/datetime/null/{dateTimePath}" path_format_arguments = { "dateTimePath": _SERIALIZER.url("date_time_path", date_time_path, "iso-8601"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_paths_base64_url_request(base64_url_path: bytes, **kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/paths/string/bG9yZW0/{base64UrlPath}" + _url = "/paths/string/bG9yZW0/{base64UrlPath}" path_format_arguments = { "base64UrlPath": _SERIALIZER.url("base64_url_path", base64_url_path, "base64"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_paths_array_csv_in_path_request(array_path: List[str], **kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = ( + _url = ( "/paths/array/ArrayPath1%2cbegin%21%2A%27%28%29%3B%3A%40%20%26%3D%2B%24%2C%2F%3F%23%5B%5Dend%2c%2c/{arrayPath}" ) path_format_arguments = { "arrayPath": _SERIALIZER.url("array_path", array_path, "[str]", div=","), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_paths_unix_time_url_request(unix_time_url_path: datetime.datetime, **kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/paths/int/1460505600/{unixTimeUrlPath}" + _url = "/paths/int/1460505600/{unixTimeUrlPath}" path_format_arguments = { "unixTimeUrlPath": _SERIALIZER.url("unix_time_url_path", unix_time_url_path, "unix-time"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_queries_get_boolean_true_request(**kwargs: Any) -> HttpRequest: @@ -530,17 +530,17 @@ def build_queries_get_boolean_true_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/queries/bool/true" + _url = "/queries/bool/true" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["boolQuery"] = _SERIALIZER.query("bool_query", bool_query, "bool") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["boolQuery"] = _SERIALIZER.query("bool_query", bool_query, "bool") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_queries_get_boolean_false_request(**kwargs: Any) -> HttpRequest: @@ -548,34 +548,34 @@ def build_queries_get_boolean_false_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/queries/bool/false" + _url = "/queries/bool/false" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["boolQuery"] = _SERIALIZER.query("bool_query", bool_query, "bool") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["boolQuery"] = _SERIALIZER.query("bool_query", bool_query, "bool") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_queries_get_boolean_null_request(*, bool_query: Optional[bool] = None, **kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/queries/bool/null" + _url = "/queries/bool/null" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if bool_query is not None: - query_parameters["boolQuery"] = _SERIALIZER.query("bool_query", bool_query, "bool") + _query_parameters["boolQuery"] = _SERIALIZER.query("bool_query", bool_query, "bool") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_queries_get_int_one_million_request(**kwargs: Any) -> HttpRequest: @@ -583,17 +583,17 @@ def build_queries_get_int_one_million_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/queries/int/1000000" + _url = "/queries/int/1000000" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["intQuery"] = _SERIALIZER.query("int_query", int_query, "int") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["intQuery"] = _SERIALIZER.query("int_query", int_query, "int") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_queries_get_int_negative_one_million_request(**kwargs: Any) -> HttpRequest: @@ -601,34 +601,34 @@ def build_queries_get_int_negative_one_million_request(**kwargs: Any) -> HttpReq accept = "application/json" # Construct URL - url = "/queries/int/-1000000" + _url = "/queries/int/-1000000" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["intQuery"] = _SERIALIZER.query("int_query", int_query, "int") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["intQuery"] = _SERIALIZER.query("int_query", int_query, "int") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_queries_get_int_null_request(*, int_query: Optional[int] = None, **kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/queries/int/null" + _url = "/queries/int/null" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if int_query is not None: - query_parameters["intQuery"] = _SERIALIZER.query("int_query", int_query, "int") + _query_parameters["intQuery"] = _SERIALIZER.query("int_query", int_query, "int") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_queries_get_ten_billion_request(**kwargs: Any) -> HttpRequest: @@ -636,17 +636,17 @@ def build_queries_get_ten_billion_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/queries/long/10000000000" + _url = "/queries/long/10000000000" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["longQuery"] = _SERIALIZER.query("long_query", long_query, "long") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["longQuery"] = _SERIALIZER.query("long_query", long_query, "long") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_queries_get_negative_ten_billion_request(**kwargs: Any) -> HttpRequest: @@ -654,34 +654,34 @@ def build_queries_get_negative_ten_billion_request(**kwargs: Any) -> HttpRequest accept = "application/json" # Construct URL - url = "/queries/long/-10000000000" + _url = "/queries/long/-10000000000" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["longQuery"] = _SERIALIZER.query("long_query", long_query, "long") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["longQuery"] = _SERIALIZER.query("long_query", long_query, "long") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_queries_get_long_null_request(*, long_query: Optional[int] = None, **kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/queries/long/null" + _url = "/queries/long/null" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if long_query is not None: - query_parameters["longQuery"] = _SERIALIZER.query("long_query", long_query, "long") + _query_parameters["longQuery"] = _SERIALIZER.query("long_query", long_query, "long") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_queries_float_scientific_positive_request(**kwargs: Any) -> HttpRequest: @@ -689,17 +689,17 @@ def build_queries_float_scientific_positive_request(**kwargs: Any) -> HttpReques accept = "application/json" # Construct URL - url = "/queries/float/1.034E+20" + _url = "/queries/float/1.034E+20" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["floatQuery"] = _SERIALIZER.query("float_query", float_query, "float") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["floatQuery"] = _SERIALIZER.query("float_query", float_query, "float") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_queries_float_scientific_negative_request(**kwargs: Any) -> HttpRequest: @@ -707,34 +707,34 @@ def build_queries_float_scientific_negative_request(**kwargs: Any) -> HttpReques accept = "application/json" # Construct URL - url = "/queries/float/-1.034E-20" + _url = "/queries/float/-1.034E-20" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["floatQuery"] = _SERIALIZER.query("float_query", float_query, "float") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["floatQuery"] = _SERIALIZER.query("float_query", float_query, "float") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_queries_float_null_request(*, float_query: Optional[float] = None, **kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/queries/float/null" + _url = "/queries/float/null" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if float_query is not None: - query_parameters["floatQuery"] = _SERIALIZER.query("float_query", float_query, "float") + _query_parameters["floatQuery"] = _SERIALIZER.query("float_query", float_query, "float") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_queries_double_decimal_positive_request(**kwargs: Any) -> HttpRequest: @@ -742,17 +742,17 @@ def build_queries_double_decimal_positive_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/queries/double/9999999.999" + _url = "/queries/double/9999999.999" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["doubleQuery"] = _SERIALIZER.query("double_query", double_query, "float") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["doubleQuery"] = _SERIALIZER.query("double_query", double_query, "float") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_queries_double_decimal_negative_request(**kwargs: Any) -> HttpRequest: @@ -760,34 +760,34 @@ def build_queries_double_decimal_negative_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/queries/double/-9999999.999" + _url = "/queries/double/-9999999.999" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["doubleQuery"] = _SERIALIZER.query("double_query", double_query, "float") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["doubleQuery"] = _SERIALIZER.query("double_query", double_query, "float") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_queries_double_null_request(*, double_query: Optional[float] = None, **kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/queries/double/null" + _url = "/queries/double/null" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if double_query is not None: - query_parameters["doubleQuery"] = _SERIALIZER.query("double_query", double_query, "float") + _query_parameters["doubleQuery"] = _SERIALIZER.query("double_query", double_query, "float") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_queries_string_unicode_request(**kwargs: Any) -> HttpRequest: @@ -795,17 +795,17 @@ def build_queries_string_unicode_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/queries/string/unicode/" + _url = "/queries/string/unicode/" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["stringQuery"] = _SERIALIZER.query("string_query", string_query, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["stringQuery"] = _SERIALIZER.query("string_query", string_query, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_queries_string_url_encoded_request(**kwargs: Any) -> HttpRequest: @@ -813,17 +813,17 @@ def build_queries_string_url_encoded_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/queries/string/begin%21%2A%27%28%29%3B%3A%40%20%26%3D%2B%24%2C%2F%3F%23%5B%5Dend" + _url = "/queries/string/begin%21%2A%27%28%29%3B%3A%40%20%26%3D%2B%24%2C%2F%3F%23%5B%5Dend" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["stringQuery"] = _SERIALIZER.query("string_query", string_query, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["stringQuery"] = _SERIALIZER.query("string_query", string_query, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_queries_string_empty_request(**kwargs: Any) -> HttpRequest: @@ -831,85 +831,85 @@ def build_queries_string_empty_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/queries/string/empty" + _url = "/queries/string/empty" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["stringQuery"] = _SERIALIZER.query("string_query", string_query, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["stringQuery"] = _SERIALIZER.query("string_query", string_query, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_queries_string_null_request(*, string_query: Optional[str] = None, **kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/queries/string/null" + _url = "/queries/string/null" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if string_query is not None: - query_parameters["stringQuery"] = _SERIALIZER.query("string_query", string_query, "str") + _query_parameters["stringQuery"] = _SERIALIZER.query("string_query", string_query, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_queries_enum_valid_request(*, enum_query: Optional[str] = None, **kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/queries/enum/green%20color" + _url = "/queries/enum/green%20color" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if enum_query is not None: - query_parameters["enumQuery"] = _SERIALIZER.query("enum_query", enum_query, "str") + _query_parameters["enumQuery"] = _SERIALIZER.query("enum_query", enum_query, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_queries_enum_null_request(*, enum_query: Optional[str] = None, **kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/queries/enum/null" + _url = "/queries/enum/null" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if enum_query is not None: - query_parameters["enumQuery"] = _SERIALIZER.query("enum_query", enum_query, "str") + _query_parameters["enumQuery"] = _SERIALIZER.query("enum_query", enum_query, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_queries_byte_multi_byte_request(*, byte_query: Optional[bytearray] = None, **kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/queries/byte/multibyte" + _url = "/queries/byte/multibyte" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if byte_query is not None: - query_parameters["byteQuery"] = _SERIALIZER.query("byte_query", byte_query, "bytearray") + _query_parameters["byteQuery"] = _SERIALIZER.query("byte_query", byte_query, "bytearray") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_queries_byte_empty_request(**kwargs: Any) -> HttpRequest: @@ -917,34 +917,34 @@ def build_queries_byte_empty_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/queries/byte/empty" + _url = "/queries/byte/empty" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["byteQuery"] = _SERIALIZER.query("byte_query", byte_query, "bytearray") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["byteQuery"] = _SERIALIZER.query("byte_query", byte_query, "bytearray") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_queries_byte_null_request(*, byte_query: Optional[bytearray] = None, **kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/queries/byte/null" + _url = "/queries/byte/null" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if byte_query is not None: - query_parameters["byteQuery"] = _SERIALIZER.query("byte_query", byte_query, "bytearray") + _query_parameters["byteQuery"] = _SERIALIZER.query("byte_query", byte_query, "bytearray") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_queries_date_valid_request(**kwargs: Any) -> HttpRequest: @@ -952,34 +952,34 @@ def build_queries_date_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/queries/date/2012-01-01" + _url = "/queries/date/2012-01-01" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["dateQuery"] = _SERIALIZER.query("date_query", date_query, "date") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["dateQuery"] = _SERIALIZER.query("date_query", date_query, "date") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_queries_date_null_request(*, date_query: Optional[datetime.date] = None, **kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/queries/date/null" + _url = "/queries/date/null" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if date_query is not None: - query_parameters["dateQuery"] = _SERIALIZER.query("date_query", date_query, "date") + _query_parameters["dateQuery"] = _SERIALIZER.query("date_query", date_query, "date") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_queries_date_time_valid_request(**kwargs: Any) -> HttpRequest: @@ -987,17 +987,17 @@ def build_queries_date_time_valid_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/queries/datetime/2012-01-01T01%3A01%3A01Z" + _url = "/queries/datetime/2012-01-01T01%3A01%3A01Z" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["dateTimeQuery"] = _SERIALIZER.query("date_time_query", date_time_query, "iso-8601") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["dateTimeQuery"] = _SERIALIZER.query("date_time_query", date_time_query, "iso-8601") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_queries_date_time_null_request( @@ -1005,18 +1005,18 @@ def build_queries_date_time_null_request( ) -> HttpRequest: accept = "application/json" # Construct URL - url = "/queries/datetime/null" + _url = "/queries/datetime/null" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if date_time_query is not None: - query_parameters["dateTimeQuery"] = _SERIALIZER.query("date_time_query", date_time_query, "iso-8601") + _query_parameters["dateTimeQuery"] = _SERIALIZER.query("date_time_query", date_time_query, "iso-8601") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_queries_array_string_csv_valid_request( @@ -1024,18 +1024,18 @@ def build_queries_array_string_csv_valid_request( ) -> HttpRequest: accept = "application/json" # Construct URL - url = "/queries/array/csv/string/valid" + _url = "/queries/array/csv/string/valid" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if array_query is not None: - query_parameters["arrayQuery"] = _SERIALIZER.query("array_query", array_query, "[str]", div=",") + _query_parameters["arrayQuery"] = _SERIALIZER.query("array_query", array_query, "[str]", div=",") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_queries_array_string_csv_null_request( @@ -1043,18 +1043,18 @@ def build_queries_array_string_csv_null_request( ) -> HttpRequest: accept = "application/json" # Construct URL - url = "/queries/array/csv/string/null" + _url = "/queries/array/csv/string/null" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if array_query is not None: - query_parameters["arrayQuery"] = _SERIALIZER.query("array_query", array_query, "[str]", div=",") + _query_parameters["arrayQuery"] = _SERIALIZER.query("array_query", array_query, "[str]", div=",") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_queries_array_string_csv_empty_request( @@ -1062,18 +1062,18 @@ def build_queries_array_string_csv_empty_request( ) -> HttpRequest: accept = "application/json" # Construct URL - url = "/queries/array/csv/string/empty" + _url = "/queries/array/csv/string/empty" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if array_query is not None: - query_parameters["arrayQuery"] = _SERIALIZER.query("array_query", array_query, "[str]", div=",") + _query_parameters["arrayQuery"] = _SERIALIZER.query("array_query", array_query, "[str]", div=",") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_queries_array_string_no_collection_format_empty_request( @@ -1081,18 +1081,18 @@ def build_queries_array_string_no_collection_format_empty_request( ) -> HttpRequest: accept = "application/json" # Construct URL - url = "/queries/array/none/string/empty" + _url = "/queries/array/none/string/empty" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if array_query is not None: - query_parameters["arrayQuery"] = _SERIALIZER.query("array_query", array_query, "[str]", div=",") + _query_parameters["arrayQuery"] = _SERIALIZER.query("array_query", array_query, "[str]", div=",") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_queries_array_string_ssv_valid_request( @@ -1100,18 +1100,18 @@ def build_queries_array_string_ssv_valid_request( ) -> HttpRequest: accept = "application/json" # Construct URL - url = "/queries/array/ssv/string/valid" + _url = "/queries/array/ssv/string/valid" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if array_query is not None: - query_parameters["arrayQuery"] = _SERIALIZER.query("array_query", array_query, "[str]", div=" ") + _query_parameters["arrayQuery"] = _SERIALIZER.query("array_query", array_query, "[str]", div=" ") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_queries_array_string_tsv_valid_request( @@ -1119,18 +1119,18 @@ def build_queries_array_string_tsv_valid_request( ) -> HttpRequest: accept = "application/json" # Construct URL - url = "/queries/array/tsv/string/valid" + _url = "/queries/array/tsv/string/valid" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if array_query is not None: - query_parameters["arrayQuery"] = _SERIALIZER.query("array_query", array_query, "[str]", div=" ") + _query_parameters["arrayQuery"] = _SERIALIZER.query("array_query", array_query, "[str]", div=" ") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_queries_array_string_pipes_valid_request( @@ -1138,18 +1138,18 @@ def build_queries_array_string_pipes_valid_request( ) -> HttpRequest: accept = "application/json" # Construct URL - url = "/queries/array/pipes/string/valid" + _url = "/queries/array/pipes/string/valid" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if array_query is not None: - query_parameters["arrayQuery"] = _SERIALIZER.query("array_query", array_query, "[str]", div="|") + _query_parameters["arrayQuery"] = _SERIALIZER.query("array_query", array_query, "[str]", div="|") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_path_items_get_all_with_values_request( @@ -1164,31 +1164,31 @@ def build_path_items_get_all_with_values_request( ) -> HttpRequest: accept = "application/json" # Construct URL - url = "/pathitem/nullable/globalStringPath/{globalStringPath}/pathItemStringPath/{pathItemStringPath}/localStringPath/{localStringPath}/globalStringQuery/pathItemStringQuery/localStringQuery" # pylint: disable=line-too-long + _url = "/pathitem/nullable/globalStringPath/{globalStringPath}/pathItemStringPath/{pathItemStringPath}/localStringPath/{localStringPath}/globalStringQuery/pathItemStringQuery/localStringQuery" # pylint: disable=line-too-long path_format_arguments = { "pathItemStringPath": _SERIALIZER.url("path_item_string_path", path_item_string_path, "str"), "globalStringPath": _SERIALIZER.url("global_string_path", global_string_path, "str"), "localStringPath": _SERIALIZER.url("local_string_path", local_string_path, "str"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if path_item_string_query is not None: - query_parameters["pathItemStringQuery"] = _SERIALIZER.query( + _query_parameters["pathItemStringQuery"] = _SERIALIZER.query( "path_item_string_query", path_item_string_query, "str" ) if global_string_query is not None: - query_parameters["globalStringQuery"] = _SERIALIZER.query("global_string_query", global_string_query, "str") + _query_parameters["globalStringQuery"] = _SERIALIZER.query("global_string_query", global_string_query, "str") if local_string_query is not None: - query_parameters["localStringQuery"] = _SERIALIZER.query("local_string_query", local_string_query, "str") + _query_parameters["localStringQuery"] = _SERIALIZER.query("local_string_query", local_string_query, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_path_items_get_global_query_null_request( @@ -1203,31 +1203,31 @@ def build_path_items_get_global_query_null_request( ) -> HttpRequest: accept = "application/json" # Construct URL - url = "/pathitem/nullable/globalStringPath/{globalStringPath}/pathItemStringPath/{pathItemStringPath}/localStringPath/{localStringPath}/null/pathItemStringQuery/localStringQuery" # pylint: disable=line-too-long + _url = "/pathitem/nullable/globalStringPath/{globalStringPath}/pathItemStringPath/{pathItemStringPath}/localStringPath/{localStringPath}/null/pathItemStringQuery/localStringQuery" # pylint: disable=line-too-long path_format_arguments = { "pathItemStringPath": _SERIALIZER.url("path_item_string_path", path_item_string_path, "str"), "globalStringPath": _SERIALIZER.url("global_string_path", global_string_path, "str"), "localStringPath": _SERIALIZER.url("local_string_path", local_string_path, "str"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if path_item_string_query is not None: - query_parameters["pathItemStringQuery"] = _SERIALIZER.query( + _query_parameters["pathItemStringQuery"] = _SERIALIZER.query( "path_item_string_query", path_item_string_query, "str" ) if global_string_query is not None: - query_parameters["globalStringQuery"] = _SERIALIZER.query("global_string_query", global_string_query, "str") + _query_parameters["globalStringQuery"] = _SERIALIZER.query("global_string_query", global_string_query, "str") if local_string_query is not None: - query_parameters["localStringQuery"] = _SERIALIZER.query("local_string_query", local_string_query, "str") + _query_parameters["localStringQuery"] = _SERIALIZER.query("local_string_query", local_string_query, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_path_items_get_global_and_local_query_null_request( @@ -1242,31 +1242,31 @@ def build_path_items_get_global_and_local_query_null_request( ) -> HttpRequest: accept = "application/json" # Construct URL - url = "/pathitem/nullable/globalStringPath/{globalStringPath}/pathItemStringPath/{pathItemStringPath}/localStringPath/{localStringPath}/null/pathItemStringQuery/null" # pylint: disable=line-too-long + _url = "/pathitem/nullable/globalStringPath/{globalStringPath}/pathItemStringPath/{pathItemStringPath}/localStringPath/{localStringPath}/null/pathItemStringQuery/null" # pylint: disable=line-too-long path_format_arguments = { "pathItemStringPath": _SERIALIZER.url("path_item_string_path", path_item_string_path, "str"), "globalStringPath": _SERIALIZER.url("global_string_path", global_string_path, "str"), "localStringPath": _SERIALIZER.url("local_string_path", local_string_path, "str"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if path_item_string_query is not None: - query_parameters["pathItemStringQuery"] = _SERIALIZER.query( + _query_parameters["pathItemStringQuery"] = _SERIALIZER.query( "path_item_string_query", path_item_string_query, "str" ) if global_string_query is not None: - query_parameters["globalStringQuery"] = _SERIALIZER.query("global_string_query", global_string_query, "str") + _query_parameters["globalStringQuery"] = _SERIALIZER.query("global_string_query", global_string_query, "str") if local_string_query is not None: - query_parameters["localStringQuery"] = _SERIALIZER.query("local_string_query", local_string_query, "str") + _query_parameters["localStringQuery"] = _SERIALIZER.query("local_string_query", local_string_query, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_path_items_get_local_path_item_query_null_request( @@ -1281,31 +1281,31 @@ def build_path_items_get_local_path_item_query_null_request( ) -> HttpRequest: accept = "application/json" # Construct URL - url = "/pathitem/nullable/globalStringPath/{globalStringPath}/pathItemStringPath/{pathItemStringPath}/localStringPath/{localStringPath}/globalStringQuery/null/null" # pylint: disable=line-too-long + _url = "/pathitem/nullable/globalStringPath/{globalStringPath}/pathItemStringPath/{pathItemStringPath}/localStringPath/{localStringPath}/globalStringQuery/null/null" # pylint: disable=line-too-long path_format_arguments = { "pathItemStringPath": _SERIALIZER.url("path_item_string_path", path_item_string_path, "str"), "globalStringPath": _SERIALIZER.url("global_string_path", global_string_path, "str"), "localStringPath": _SERIALIZER.url("local_string_path", local_string_path, "str"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if path_item_string_query is not None: - query_parameters["pathItemStringQuery"] = _SERIALIZER.query( + _query_parameters["pathItemStringQuery"] = _SERIALIZER.query( "path_item_string_query", path_item_string_query, "str" ) if global_string_query is not None: - query_parameters["globalStringQuery"] = _SERIALIZER.query("global_string_query", global_string_query, "str") + _query_parameters["globalStringQuery"] = _SERIALIZER.query("global_string_query", global_string_query, "str") if local_string_query is not None: - query_parameters["localStringQuery"] = _SERIALIZER.query("local_string_query", local_string_query, "str") + _query_parameters["localStringQuery"] = _SERIALIZER.query("local_string_query", local_string_query, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) class PathsOperations(object): # pylint: disable=too-many-public-methods diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/ValidationVersionTolerant/validationversiontolerant/_operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/ValidationVersionTolerant/validationversiontolerant/_operations/_operations.py index 67ce5f9e12e..daaf8c6b0bf 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/ValidationVersionTolerant/validationversiontolerant/_operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/ValidationVersionTolerant/validationversiontolerant/_operations/_operations.py @@ -37,7 +37,7 @@ def build_validation_of_method_parameters_request( accept = "application/json" # Construct URL - url = "/fakepath/{subscriptionId}/{resourceGroupName}/{id}" + _url = "/fakepath/{subscriptionId}/{resourceGroupName}/{id}" path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), "resourceGroupName": _SERIALIZER.url( @@ -46,17 +46,17 @@ def build_validation_of_method_parameters_request( "id": _SERIALIZER.url("id", id, "int", maximum=1000, minimum=100, multiple=10), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["apiVersion"] = _SERIALIZER.query("api_version", api_version, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["apiVersion"] = _SERIALIZER.query("api_version", api_version, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_validation_of_body_request( @@ -73,7 +73,7 @@ def build_validation_of_body_request( accept = "application/json" # Construct URL - url = "/fakepath/{subscriptionId}/{resourceGroupName}/{id}" + _url = "/fakepath/{subscriptionId}/{resourceGroupName}/{id}" path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), "resourceGroupName": _SERIALIZER.url( @@ -82,20 +82,26 @@ def build_validation_of_body_request( "id": _SERIALIZER.url("id", id, "int", maximum=1000, minimum=100, multiple=10), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["apiVersion"] = _SERIALIZER.query("api_version", api_version, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["apiVersion"] = _SERIALIZER.query("api_version", api_version, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") return HttpRequest( - method="PUT", url=url, params=query_parameters, headers=header_parameters, json=json, content=content, **kwargs + method="PUT", + url=_url, + params=_query_parameters, + headers=_header_parameters, + json=json, + content=content, + **kwargs ) @@ -103,14 +109,14 @@ def build_get_with_constant_in_path_request(**kwargs: Any) -> HttpRequest: constant_param = kwargs.pop("constant_param", "constant") # type: str # Construct URL - url = "/validation/constantsInPath/{constantParam}/value" + _url = "/validation/constantsInPath/{constantParam}/value" path_format_arguments = { "constantParam": _SERIALIZER.url("constant_param", constant_param, "str"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) - return HttpRequest(method="GET", url=url, **kwargs) + return HttpRequest(method="GET", url=_url, **kwargs) def build_post_with_constant_in_body_request( @@ -121,20 +127,20 @@ def build_post_with_constant_in_body_request( accept = "application/json" # Construct URL - url = "/validation/constantsInPath/{constantParam}/value" + _url = "/validation/constantsInPath/{constantParam}/value" path_format_arguments = { "constantParam": _SERIALIZER.url("constant_param", constant_param, "str"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) class AutoRestValidationTestOperationsMixin(object): diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/XmlVersionTolerant/xmlserviceversiontolerant/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/XmlVersionTolerant/xmlserviceversiontolerant/operations/_operations.py index a0748e60e5b..5918fa72c60 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/XmlVersionTolerant/xmlserviceversiontolerant/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/XmlVersionTolerant/xmlserviceversiontolerant/operations/_operations.py @@ -33,65 +33,65 @@ def build_xml_get_complex_type_ref_no_meta_request(**kwargs: Any) -> HttpRequest: accept = "application/xml" # Construct URL - url = "/xml/complex-type-ref-no-meta" + _url = "/xml/complex-type-ref-no-meta" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_xml_put_complex_type_ref_no_meta_request(*, content: Any, **kwargs: Any) -> HttpRequest: content_type = kwargs.pop("content_type", None) # type: Optional[str] # Construct URL - url = "/xml/complex-type-ref-no-meta" + _url = "/xml/complex-type-ref-no-meta" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, content=content, **kwargs) def build_xml_get_complex_type_ref_with_meta_request(**kwargs: Any) -> HttpRequest: accept = "application/xml" # Construct URL - url = "/xml/complex-type-ref-with-meta" + _url = "/xml/complex-type-ref-with-meta" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_xml_put_complex_type_ref_with_meta_request(*, content: Any, **kwargs: Any) -> HttpRequest: content_type = kwargs.pop("content_type", None) # type: Optional[str] # Construct URL - url = "/xml/complex-type-ref-with-meta" + _url = "/xml/complex-type-ref-with-meta" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, content=content, **kwargs) def build_xml_get_simple_request(**kwargs: Any) -> HttpRequest: accept = "application/xml" # Construct URL - url = "/xml/simple" + _url = "/xml/simple" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_xml_put_simple_request(*, content: Any, **kwargs: Any) -> HttpRequest: @@ -99,27 +99,27 @@ def build_xml_put_simple_request(*, content: Any, **kwargs: Any) -> HttpRequest: accept = "application/xml" # Construct URL - url = "/xml/simple" + _url = "/xml/simple" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, content=content, **kwargs) def build_xml_get_wrapped_lists_request(**kwargs: Any) -> HttpRequest: accept = "application/xml" # Construct URL - url = "/xml/wrapped-lists" + _url = "/xml/wrapped-lists" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_xml_put_wrapped_lists_request(*, content: Any, **kwargs: Any) -> HttpRequest: @@ -127,178 +127,178 @@ def build_xml_put_wrapped_lists_request(*, content: Any, **kwargs: Any) -> HttpR accept = "application/xml" # Construct URL - url = "/xml/wrapped-lists" + _url = "/xml/wrapped-lists" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, content=content, **kwargs) def build_xml_get_headers_request(**kwargs: Any) -> HttpRequest: # Construct URL - url = "/xml/headers" + _url = "/xml/headers" - return HttpRequest(method="GET", url=url, **kwargs) + return HttpRequest(method="GET", url=_url, **kwargs) def build_xml_get_empty_list_request(**kwargs: Any) -> HttpRequest: accept = "application/xml" # Construct URL - url = "/xml/empty-list" + _url = "/xml/empty-list" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_xml_put_empty_list_request(*, content: Any, **kwargs: Any) -> HttpRequest: content_type = kwargs.pop("content_type", None) # type: Optional[str] # Construct URL - url = "/xml/empty-list" + _url = "/xml/empty-list" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, content=content, **kwargs) def build_xml_get_empty_wrapped_lists_request(**kwargs: Any) -> HttpRequest: accept = "application/xml" # Construct URL - url = "/xml/empty-wrapped-lists" + _url = "/xml/empty-wrapped-lists" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_xml_put_empty_wrapped_lists_request(*, content: Any, **kwargs: Any) -> HttpRequest: content_type = kwargs.pop("content_type", None) # type: Optional[str] # Construct URL - url = "/xml/empty-wrapped-lists" + _url = "/xml/empty-wrapped-lists" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, content=content, **kwargs) def build_xml_get_root_list_request(**kwargs: Any) -> HttpRequest: accept = "application/xml" # Construct URL - url = "/xml/root-list" + _url = "/xml/root-list" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_xml_put_root_list_request(*, content: Any, **kwargs: Any) -> HttpRequest: content_type = kwargs.pop("content_type", None) # type: Optional[str] # Construct URL - url = "/xml/root-list" + _url = "/xml/root-list" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, content=content, **kwargs) def build_xml_get_root_list_single_item_request(**kwargs: Any) -> HttpRequest: accept = "application/xml" # Construct URL - url = "/xml/root-list-single-item" + _url = "/xml/root-list-single-item" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_xml_put_root_list_single_item_request(*, content: Any, **kwargs: Any) -> HttpRequest: content_type = kwargs.pop("content_type", None) # type: Optional[str] # Construct URL - url = "/xml/root-list-single-item" + _url = "/xml/root-list-single-item" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, content=content, **kwargs) def build_xml_get_empty_root_list_request(**kwargs: Any) -> HttpRequest: accept = "application/xml" # Construct URL - url = "/xml/empty-root-list" + _url = "/xml/empty-root-list" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_xml_put_empty_root_list_request(*, content: Any, **kwargs: Any) -> HttpRequest: content_type = kwargs.pop("content_type", None) # type: Optional[str] # Construct URL - url = "/xml/empty-root-list" + _url = "/xml/empty-root-list" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, content=content, **kwargs) def build_xml_get_empty_child_element_request(**kwargs: Any) -> HttpRequest: accept = "application/xml" # Construct URL - url = "/xml/empty-child-element" + _url = "/xml/empty-child-element" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_xml_put_empty_child_element_request(*, content: Any, **kwargs: Any) -> HttpRequest: content_type = kwargs.pop("content_type", None) # type: Optional[str] # Construct URL - url = "/xml/empty-child-element" + _url = "/xml/empty-child-element" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, content=content, **kwargs) def build_xml_list_containers_request(**kwargs: Any) -> HttpRequest: @@ -306,17 +306,17 @@ def build_xml_list_containers_request(**kwargs: Any) -> HttpRequest: accept = "application/xml" # Construct URL - url = "/xml/" + _url = "/xml/" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["comp"] = _SERIALIZER.query("comp", comp, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["comp"] = _SERIALIZER.query("comp", comp, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_xml_get_service_properties_request(**kwargs: Any) -> HttpRequest: @@ -325,18 +325,18 @@ def build_xml_get_service_properties_request(**kwargs: Any) -> HttpRequest: accept = "application/xml" # Construct URL - url = "/xml/" + _url = "/xml/" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["comp"] = _SERIALIZER.query("comp", comp, "str") - query_parameters["restype"] = _SERIALIZER.query("restype", restype, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["comp"] = _SERIALIZER.query("comp", comp, "str") + _query_parameters["restype"] = _SERIALIZER.query("restype", restype, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_xml_put_service_properties_request(*, content: Any, **kwargs: Any) -> HttpRequest: @@ -345,20 +345,20 @@ def build_xml_put_service_properties_request(*, content: Any, **kwargs: Any) -> content_type = kwargs.pop("content_type", None) # type: Optional[str] # Construct URL - url = "/xml/" + _url = "/xml/" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["comp"] = _SERIALIZER.query("comp", comp, "str") - query_parameters["restype"] = _SERIALIZER.query("restype", restype, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["comp"] = _SERIALIZER.query("comp", comp, "str") + _query_parameters["restype"] = _SERIALIZER.query("restype", restype, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") return HttpRequest( - method="PUT", url=url, params=query_parameters, headers=header_parameters, content=content, **kwargs + method="PUT", url=_url, params=_query_parameters, headers=_header_parameters, content=content, **kwargs ) @@ -368,18 +368,18 @@ def build_xml_get_acls_request(**kwargs: Any) -> HttpRequest: accept = "application/xml" # Construct URL - url = "/xml/mycontainer" + _url = "/xml/mycontainer" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["comp"] = _SERIALIZER.query("comp", comp, "str") - query_parameters["restype"] = _SERIALIZER.query("restype", restype, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["comp"] = _SERIALIZER.query("comp", comp, "str") + _query_parameters["restype"] = _SERIALIZER.query("restype", restype, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_xml_put_acls_request(*, content: Any, **kwargs: Any) -> HttpRequest: @@ -388,20 +388,20 @@ def build_xml_put_acls_request(*, content: Any, **kwargs: Any) -> HttpRequest: content_type = kwargs.pop("content_type", None) # type: Optional[str] # Construct URL - url = "/xml/mycontainer" + _url = "/xml/mycontainer" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["comp"] = _SERIALIZER.query("comp", comp, "str") - query_parameters["restype"] = _SERIALIZER.query("restype", restype, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["comp"] = _SERIALIZER.query("comp", comp, "str") + _query_parameters["restype"] = _SERIALIZER.query("restype", restype, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") return HttpRequest( - method="PUT", url=url, params=query_parameters, headers=header_parameters, content=content, **kwargs + method="PUT", url=_url, params=_query_parameters, headers=_header_parameters, content=content, **kwargs ) @@ -411,68 +411,68 @@ def build_xml_list_blobs_request(**kwargs: Any) -> HttpRequest: accept = "application/xml" # Construct URL - url = "/xml/mycontainer" + _url = "/xml/mycontainer" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["comp"] = _SERIALIZER.query("comp", comp, "str") - query_parameters["restype"] = _SERIALIZER.query("restype", restype, "str") + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters["comp"] = _SERIALIZER.query("comp", comp, "str") + _query_parameters["restype"] = _SERIALIZER.query("restype", restype, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) def build_xml_json_input_request(*, json: JSONType = None, content: Any = None, **kwargs: Any) -> HttpRequest: content_type = kwargs.pop("content_type", None) # type: Optional[str] # Construct URL - url = "/xml/jsoninput" + _url = "/xml/jsoninput" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, json=json, content=content, **kwargs) def build_xml_json_output_request(**kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/xml/jsonoutput" + _url = "/xml/jsonoutput" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_xml_get_xms_text_request(**kwargs: Any) -> HttpRequest: accept = "application/xml" # Construct URL - url = "/xml/x-ms-text" + _url = "/xml/x-ms-text" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_xml_get_bytes_request(**kwargs: Any) -> HttpRequest: accept = "application/xml" # Construct URL - url = "/xml/bytes" + _url = "/xml/bytes" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_xml_put_binary_request(*, content: Any, **kwargs: Any) -> HttpRequest: @@ -480,27 +480,27 @@ def build_xml_put_binary_request(*, content: Any, **kwargs: Any) -> HttpRequest: accept = "application/xml" # Construct URL - url = "/xml/bytes" + _url = "/xml/bytes" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, content=content, **kwargs) def build_xml_get_uri_request(**kwargs: Any) -> HttpRequest: accept = "application/xml" # Construct URL - url = "/xml/url" + _url = "/xml/url" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_xml_put_uri_request(*, content: Any, **kwargs: Any) -> HttpRequest: @@ -508,15 +508,15 @@ def build_xml_put_uri_request(*, content: Any, **kwargs: Any) -> HttpRequest: accept = "application/xml" # Construct URL - url = "/xml/url" + _url = "/xml/url" # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=url, headers=header_parameters, content=content, **kwargs) + return HttpRequest(method="PUT", url=_url, headers=_header_parameters, content=content, **kwargs) class XmlOperations(object): # pylint: disable=too-many-public-methods diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/XmsErrorResponseVersionTolerant/xmserrorresponseversiontolerant/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/XmsErrorResponseVersionTolerant/xmserrorresponseversiontolerant/operations/_operations.py index ae8e17c9594..fb20521a274 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/XmsErrorResponseVersionTolerant/xmserrorresponseversiontolerant/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/XmsErrorResponseVersionTolerant/xmserrorresponseversiontolerant/operations/_operations.py @@ -34,52 +34,52 @@ def build_pet_get_pet_by_id_request(pet_id: str, **kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/errorStatusCodes/Pets/{petId}/GetPet" + _url = "/errorStatusCodes/Pets/{petId}/GetPet" path_format_arguments = { "petId": _SERIALIZER.url("pet_id", pet_id, "str"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, headers=_header_parameters, **kwargs) def build_pet_do_something_request(what_action: str, **kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/errorStatusCodes/Pets/doSomething/{whatAction}" + _url = "/errorStatusCodes/Pets/doSomething/{whatAction}" path_format_arguments = { "whatAction": _SERIALIZER.url("what_action", what_action, "str"), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, headers=_header_parameters, **kwargs) def build_pet_has_models_param_request(*, models: Optional[str] = "value1", **kwargs: Any) -> HttpRequest: accept = "application/json" # Construct URL - url = "/errorStatusCodes/Pets/hasModelsParam" + _url = "/errorStatusCodes/Pets/hasModelsParam" # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if models is not None: - query_parameters["models"] = _SERIALIZER.query("models", models, "str") + _query_parameters["models"] = _SERIALIZER.query("models", models, "str") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=url, params=query_parameters, headers=header_parameters, **kwargs) + return HttpRequest(method="POST", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) class PetOperations(object): diff --git a/test/vanilla/version-tolerant/coverage/report-optional.json b/test/vanilla/version-tolerant/coverage/report-optional.json index 21b11356084..a266a13c201 100644 --- a/test/vanilla/version-tolerant/coverage/report-optional.json +++ b/test/vanilla/version-tolerant/coverage/report-optional.json @@ -1,33 +1,33 @@ { - "StreamUploadFile": 10, - "UpdatePetWithForm": 2, - "UrlEncodedDataWithPartialConstantBody": 2, - "getDecimalInvalid": 2, - "getDecimalBig": 2, - "getDecimalSmall": 2, - "getDecimalBigPositiveDecimal": 2, - "getDecimalBigNegativeDecimal": 2, - "putDecimalBig": 2, - "putDecimalSmall": 2, - "putDecimalBigPositiveDecimal": 2, - "putDecimalBigNegativeDecimal": 2, + "StreamUploadFile": 5, + "UpdatePetWithForm": 1, + "UrlEncodedDataWithPartialConstantBody": 1, + "getDecimalInvalid": 1, + "getDecimalBig": 1, + "getDecimalSmall": 1, + "getDecimalBigPositiveDecimal": 1, + "getDecimalBigNegativeDecimal": 1, + "putDecimalBig": 1, + "putDecimalSmall": 1, + "putDecimalBigPositiveDecimal": 1, + "putDecimalBigNegativeDecimal": 1, "putDateTimeMaxUtc7MS": 0, - "getDateTimeMaxUtc7MSUppercase": 2, - "putDateTimeMaxLocalPositiveOffset": 2, + "getDateTimeMaxUtc7MSUppercase": 1, + "putDateTimeMaxLocalPositiveOffset": 1, "putDateTimeMaxLocalNegativeOffset": 0, "putDateTimeMinLocalPositiveOffset": 0, - "putDateTimeMinLocalNegativeOffset": 2, + "putDateTimeMinLocalNegativeOffset": 1, "HeaderParameterProtectedKey": 1, - "CustomHeaderInRequest": 2, - "FormdataStreamUploadFile": 8, + "CustomHeaderInRequest": 1, + "FormdataStreamUploadFile": 4, "HttpSuccess200Options": 0, "HttpRedirect307Options": 0, "HttpRetry502Options": 0, "HttpClientFailure400Options": 0, "HttpClientFailure403Options": 0, "HttpClientFailure412Options": 0, - "ResponsesScenarioNoModelEmptyBody": 2, - "sendErrorWithParamNameModels": 4, + "ResponsesScenarioNoModelEmptyBody": 1, + "sendErrorWithParamNameModels": 0, "MultiapiPutTestOneApiVersionOne": 0, "MultiapiPutTestOneApiVersionTwo": 0, "MultiapiGetTestTwoApiVersionOne": 0, diff --git a/test/vanilla/version-tolerant/coverage/report-vanilla.json b/test/vanilla/version-tolerant/coverage/report-vanilla.json index 02c3fdfede6..ca2cc614f59 100644 --- a/test/vanilla/version-tolerant/coverage/report-vanilla.json +++ b/test/vanilla/version-tolerant/coverage/report-vanilla.json @@ -1,626 +1,628 @@ { - "GetStringAsAnything": 4, - "PutStringAsAnything": 4, - "GetObjectAsAnything": 4, - "PutObjectAsAnything": 4, - "GetArrayAsAnything": 4, - "PutArrayAsAnything": 4, - "BodyBinaryFile": 4, - "BodyBinaryOctet": 4, - "ConstantClientProperties": 2, - "verifyIncorrectErrorParsing": 4, - "MediaTypesAnalyzeBodyNoAcceptHeader": 14, - "MediaTypesTwoContentTypes": 14, - "GetParameterizedHostWithNameEndpoint": 4, - "ImplicitOptionalBinaryBody": 4, - "ExplicitOptionalBinaryBody": 4, - "ExplicitRequiredBinaryBody": 4, - "OptionalImplicitBody": 4, - "GeneralOptional": 44, - "OptionalImplicitHeader": 4, - "OptionalImplicitQuery": 4, - "OptionalGlobalQuery": 4, - "reservedWordsOperationGroupImport": 4, - "reservedWordsBodyNamedContent": 4, - "reservedWordsBodyNamedJson": 4, - "reservedWordsBodyNamedData": 4, - "reservedWordsBodyNamedFiles": 4, - "getStringNull": 4, - "putStringNull": 4, - "getStringEmpty": 4, - "putStringEmpty": 4, - "getStringNotProvided": 4, - "getStringWithLeadingAndTrailingWhitespace": 4, - "putStringWithLeadingAndTrailingWhitespace": 4, - "getStringBase64UrlEncoded": 4, - "putStringBase64UrlEncoded": 4, - "getStringBase64Encoded": 4, - "getStringNullBase64UrlEncoding": 4, - "getStringMultiByteCharacters": 4, - "putStringMultiByteCharacters": 4, - "getEnumNotExpandable": 4, - "putEnumNotExpandable": 8, - "getEnumReferenced": 4, - "putEnumReferenced": 8, - "getEnumReferencedConstant": 4, - "putEnumReferencedConstant": 4, - "XmlGetBytes": 4, - "XmlPutBytes": 4, - "XmlGetUrl": 4, - "XmlPutUrl": 4, - "additionalPropertiesTrue": 4, - "additionalPropertiesSubclass": 4, - "additionalPropertiesTypeObject": 4, - "additionalPropertiesTypeString": 4, - "additionalPropertiesInProperties": 4, - "additionalPropertiesInPropertiesWithAPTypeString": 4, - "getArrayNull": 4, - "getArrayEmpty": 4, - "putArrayEmpty": 4, - "getArrayInvalid": 4, - "getArrayBooleanValid": 4, - "putArrayBooleanValid": 4, - "getArrayBooleanWithNull": 4, - "getArrayBooleanWithString": 4, - "getArrayIntegerValid": 4, - "putArrayIntegerValid": 4, - "getArrayIntegerWithNull": 4, - "getArrayIntegerWithString": 4, - "getArrayLongValid": 4, - "putArrayLongValid": 4, - "getArrayLongWithNull": 4, - "getArrayLongWithString": 4, - "getArrayFloatValid": 4, - "putArrayFloatValid": 4, - "getArrayFloatWithNull": 4, - "getArrayFloatWithString": 4, - "getArrayDoubleValid": 4, - "putArrayDoubleValid": 4, - "getArrayDoubleWithNull": 4, - "getArrayDoubleWithString": 4, - "getArrayStringValid": 4, - "putArrayStringValid": 4, - "getArrayEnumValid": 4, - "putArrayEnumValid": 4, - "getArrayStringEnumValid": 4, - "putArrayStringEnumValid": 4, - "getArrayStringWithNull": 4, - "getArrayStringWithNumber": 8, - "getArrayDateValid": 4, - "putArrayDateValid": 4, - "getArrayDateWithNull": 4, - "getArrayDateWithInvalidChars": 4, - "getArrayDateTimeValid": 4, - "putArrayDateTimeValid": 4, - "getArrayDateTimeWithNull": 4, - "getArrayDateTimeWithInvalidChars": 4, - "getArrayDateTimeRfc1123Valid": 4, - "putArrayDateTimeRfc1123Valid": 4, - "getArrayDurationValid": 4, - "putArrayDurationValid": 4, - "getArrayUuidValid": 4, - "getArrayUuidWithInvalidChars": 4, - "putArrayUuidValid": 4, - "getArrayByteValid": 4, - "putArrayByteValid": 4, - "getArrayByteWithNull": 4, - "getArrayArrayNull": 4, - "getArrayArrayEmpty": 8, - "getArrayArrayItemNull": 4, - "getArrayArrayItemEmpty": 4, - "getArrayArrayValid": 4, - "putArrayArrayValid": 4, - "getArrayComplexNull": 4, - "getArrayComplexEmpty": 4, - "getArrayComplexItemNull": 4, - "getArrayComplexItemEmpty": 4, - "getArrayComplexValid": 4, - "putArrayComplexValid": 4, - "getArrayDictionaryNull": 4, - "getArrayDictionaryEmpty": 4, - "getArrayDictionaryItemNull": 4, - "getArrayDictionaryItemEmpty": 4, - "getArrayDictionaryValid": 4, - "putArrayDictionaryValid": 4, - "getBoolTrue": 4, - "putBoolTrue": 4, - "getBoolFalse": 4, - "putBoolFalse": 4, - "getBoolInvalid": 4, - "getBoolNull": 4, - "getByteNull": 4, - "getByteEmpty": 4, - "getByteNonAscii": 4, - "putByteNonAscii": 4, - "getByteInvalid": 4, - "getDateNull": 4, - "getDateInvalid": 4, - "getDateOverflow": 4, - "getDateUnderflow": 4, - "getDateMax": 4, - "putDateMax": 4, - "getDateMin": 4, - "putDateMin": 4, - "getDateTimeNull": 4, - "getDateTimeInvalid": 4, - "getDateTimeOverflow": 4, - "getDateTimeUnderflow": 4, - "putDateTimeMaxUtc": 4, - "getDateTimeMaxUtcLowercase": 4, - "getDateTimeMaxUtcUppercase": 4, - "getDateTimeMaxLocalPositiveOffsetLowercase": 4, - "getDateTimeMaxLocalPositiveOffsetUppercase": 4, - "getDateTimeMaxLocalNegativeOffsetLowercase": 4, - "getDateTimeMaxLocalNegativeOffsetUppercase": 4, - "getDateTimeMinUtc": 4, - "putDateTimeMinUtc": 4, - "getDateTimeMinLocalPositiveOffset": 4, - "getDateTimeMinLocalNegativeOffset": 4, - "getDateTimeRfc1123Null": 4, - "getDateTimeRfc1123Invalid": 4, - "getDateTimeRfc1123Overflow": 4, - "getDateTimeRfc1123Underflow": 4, - "getDateTimeRfc1123MinUtc": 4, - "putDateTimeRfc1123Max": 4, - "putDateTimeRfc1123Min": 4, - "getDateTimeRfc1123MaxUtcLowercase": 4, - "getDateTimeRfc1123MaxUtcUppercase": 4, - "getIntegerNull": 4, - "getIntegerInvalid": 4, - "getIntegerOverflow": 4, - "getIntegerUnderflow": 4, - "getLongOverflow": 4, - "getLongUnderflow": 4, - "putIntegerMax": 4, - "putLongMax": 4, - "putIntegerMin": 4, - "putLongMin": 4, - "getNumberNull": 4, - "getFloatInvalid": 4, - "getDoubleInvalid": 4, - "getFloatBigScientificNotation": 4, - "putFloatBigScientificNotation": 4, - "getDoubleBigScientificNotation": 4, - "putDoubleBigScientificNotation": 4, - "getDoubleBigPositiveDecimal": 4, - "putDoubleBigPositiveDecimal": 4, - "getDoubleBigNegativeDecimal": 4, - "putDoubleBigNegativeDecimal": 4, - "getFloatSmallScientificNotation": 4, - "putFloatSmallScientificNotation": 4, - "getDoubleSmallScientificNotation": 4, - "putDoubleSmallScientificNotation": 4, - "putComplexBasicValid": 8, - "getComplexBasicValid": 4, - "getComplexBasicEmpty": 28, - "getComplexBasicNotProvided": 4, - "getComplexBasicNull": 4, - "getComplexBasicInvalid": 4, - "putComplexPrimitiveInteger": 4, - "putComplexPrimitiveLong": 4, - "putComplexPrimitiveFloat": 4, - "putComplexPrimitiveDouble": 4, - "putComplexPrimitiveBool": 4, - "putComplexPrimitiveString": 4, - "putComplexPrimitiveDate": 4, - "putComplexPrimitiveDateTime": 4, - "putComplexPrimitiveDateTimeRfc1123": 4, - "putComplexPrimitiveDuration": 4, - "putComplexPrimitiveByte": 4, - "getComplexPrimitiveInteger": 4, - "getComplexPrimitiveLong": 4, - "getComplexPrimitiveFloat": 4, - "getComplexPrimitiveDouble": 4, - "getComplexPrimitiveBool": 4, - "getComplexPrimitiveString": 4, - "getComplexPrimitiveDate": 4, - "getComplexPrimitiveDateTime": 4, - "getComplexPrimitiveDateTimeRfc1123": 4, - "getComplexPrimitiveDuration": 4, - "getComplexPrimitiveByte": 4, - "putComplexArrayValid": 4, - "putComplexArrayEmpty": 4, - "getComplexArrayValid": 4, - "getComplexArrayEmpty": 4, - "getComplexArrayNotProvided": 4, - "putComplexDictionaryValid": 4, - "putComplexDictionaryEmpty": 4, - "getComplexDictionaryValid": 4, - "getComplexDictionaryEmpty": 4, - "getComplexDictionaryNull": 4, - "getComplexDictionaryNotProvided": 4, - "putComplexInheritanceValid": 12, - "getComplexInheritanceValid": 16, - "putComplexPolymorphismValid": 4, - "getComplexPolymorphismValid": 4, - "putComplexPolymorphismComplicated": 4, - "getComplexPolymorphismComplicated": 4, - "putComplexPolymorphismNoDiscriminator": 4, - "putComplexPolymorphicRecursiveValid": 4, - "getComplexPolymorphicRecursiveValid": 4, - "putComplexReadOnlyPropertyValid": 4, - "getComplexReadOnlyPropertyValid": 4, - "UrlPathsBoolFalse": 4, - "UrlPathsBoolTrue": 4, - "UrlPathsIntPositive": 4, - "UrlPathsIntNegative": 4, - "UrlPathsLongPositive": 4, - "UrlPathsLongNegative": 4, - "UrlPathsFloatPositive": 4, - "UrlPathsFloatNegative": 4, - "UrlPathsDoublePositive": 4, - "UrlPathsDoubleNegative": 4, - "UrlPathsStringUrlEncoded": 4, - "UrlPathsStringUrlNonEncoded": 4, - "UrlPathsStringEmpty": 4, - "UrlPathsStringUnicode": 4, - "UrlPathsEnumValid": 4, - "UrlPathsByteMultiByte": 4, - "UrlPathsByteEmpty": 4, - "UrlPathsDateValid": 4, - "UrlPathsDateTimeValid": 4, - "UrlQueriesBoolFalse": 4, - "UrlQueriesBoolTrue": 4, - "UrlQueriesBoolNull": 4, - "UrlQueriesIntPositive": 4, - "UrlQueriesIntNegative": 4, - "UrlQueriesIntNull": 4, - "UrlQueriesLongPositive": 4, - "UrlQueriesLongNegative": 4, - "UrlQueriesLongNull": 4, - "UrlQueriesFloatPositive": 4, - "UrlQueriesFloatNegative": 4, - "UrlQueriesFloatNull": 4, - "UrlQueriesDoublePositive": 4, - "UrlQueriesDoubleNegative": 4, - "UrlQueriesDoubleNull": 4, - "UrlQueriesStringUrlEncoded": 4, - "UrlQueriesStringEmpty": 4, - "UrlQueriesStringNull": 4, - "UrlQueriesStringUnicode": 4, - "UrlQueriesEnumValid": 4, - "UrlQueriesEnumNull": 4, - "UrlQueriesByteMultiByte": 4, - "UrlQueriesByteEmpty": 4, - "UrlQueriesByteNull": 4, - "UrlQueriesDateValid": 4, - "UrlQueriesDateNull": 4, - "UrlQueriesDateTimeValid": 4, - "UrlQueriesDateTimeNull": 4, - "UrlQueriesArrayCsvNull": 4, - "UrlQueriesArrayCsvEmpty": 4, - "UrlQueriesArrayCsvValid": 4, - "UrlQueriesArrayMultiNull": 4, - "UrlQueriesArrayMultiEmpty": 4, - "UrlQueriesArrayMultiValid": 4, - "UrlQueriesArraySsvValid": 4, - "UrlQueriesArrayPipesValid": 4, - "UrlQueriesArrayTsvValid": 2, - "UrlQueriesArrayNoCollectionFormatValid": 4, - "UrlPathItemGetAll": 4, - "UrlPathItemGetGlobalNull": 4, - "UrlPathItemGetGlobalAndLocalNull": 4, - "UrlPathItemGetPathItemAndLocalNull": 4, - "putDictionaryEmpty": 4, - "getDictionaryNull": 4, - "getDictionaryEmpty": 4, - "getDictionaryInvalid": 4, - "getDictionaryNullValue": 4, - "getDictionaryNullkey": 4, - "getDictionaryKeyEmptyString": 4, - "getDictionaryBooleanValid": 4, - "getDictionaryBooleanWithNull": 4, - "getDictionaryBooleanWithString": 4, - "getDictionaryIntegerValid": 4, - "getDictionaryIntegerWithNull": 4, - "getDictionaryIntegerWithString": 4, - "getDictionaryLongValid": 4, - "getDictionaryLongWithNull": 4, - "getDictionaryLongWithString": 4, - "getDictionaryFloatValid": 4, - "getDictionaryFloatWithNull": 4, - "getDictionaryFloatWithString": 4, - "getDictionaryDoubleValid": 4, - "getDictionaryDoubleWithNull": 4, - "getDictionaryDoubleWithString": 4, - "getDictionaryStringValid": 4, - "getDictionaryStringWithNull": 4, - "getDictionaryStringWithNumber": 4, - "getDictionaryDateValid": 4, - "getDictionaryDateWithNull": 4, - "getDictionaryDateWithInvalidChars": 4, - "getDictionaryDateTimeValid": 4, - "getDictionaryDateTimeWithNull": 4, - "getDictionaryDateTimeWithInvalidChars": 4, - "getDictionaryDateTimeRfc1123Valid": 4, - "getDictionaryDurationValid": 4, - "getDictionaryByteValid": 4, - "getDictionaryByteWithNull": 4, - "putDictionaryBooleanValid": 4, - "putDictionaryIntegerValid": 4, - "putDictionaryLongValid": 4, - "putDictionaryFloatValid": 4, - "putDictionaryDoubleValid": 4, - "putDictionaryStringValid": 4, - "putDictionaryDateValid": 4, - "putDictionaryDateTimeValid": 4, - "putDictionaryDateTimeRfc1123Valid": 4, - "putDictionaryDurationValid": 4, - "putDictionaryByteValid": 4, - "getDictionaryComplexNull": 4, - "getDictionaryComplexEmpty": 4, - "getDictionaryComplexItemNull": 4, - "getDictionaryComplexItemEmpty": 4, - "getDictionaryComplexValid": 4, - "putDictionaryComplexValid": 4, - "getDictionaryArrayNull": 4, - "getDictionaryArrayEmpty": 4, - "getDictionaryArrayItemNull": 4, - "getDictionaryArrayItemEmpty": 4, - "getDictionaryArrayValid": 4, - "putDictionaryArrayValid": 4, - "getDictionaryDictionaryNull": 4, - "getDictionaryDictionaryEmpty": 4, - "getDictionaryDictionaryItemNull": 4, - "getDictionaryDictionaryItemEmpty": 4, - "getDictionaryDictionaryValid": 4, - "putDictionaryDictionaryValid": 4, - "putDurationPositive": 4, - "getDurationNull": 4, - "getDurationInvalid": 4, - "getDurationPositive": 4, - "HeaderParameterExistingKey": 4, - "HeaderResponseExistingKey": 4, - "HeaderResponseProtectedKey": 4, - "HeaderParameterIntegerPositive": 4, - "HeaderParameterIntegerNegative": 4, - "HeaderParameterLongPositive": 4, - "HeaderParameterLongNegative": 4, - "HeaderParameterFloatPositive": 4, - "HeaderParameterFloatNegative": 4, - "HeaderParameterDoublePositive": 4, - "HeaderParameterDoubleNegative": 4, - "HeaderParameterBoolTrue": 4, - "HeaderParameterBoolFalse": 4, - "HeaderParameterStringValid": 4, - "HeaderParameterStringNull": 4, - "HeaderParameterStringEmpty": 4, - "HeaderParameterDateValid": 4, - "HeaderParameterDateMin": 4, - "HeaderParameterDateTimeValid": 4, - "HeaderParameterDateTimeMin": 4, - "HeaderParameterDateTimeRfc1123Valid": 4, - "HeaderParameterDateTimeRfc1123Min": 4, - "HeaderParameterBytesValid": 4, - "HeaderParameterDurationValid": 4, - "HeaderResponseIntegerPositive": 4, - "HeaderResponseIntegerNegative": 4, - "HeaderResponseLongPositive": 4, - "HeaderResponseLongNegative": 4, - "HeaderResponseFloatPositive": 4, - "HeaderResponseFloatNegative": 4, - "HeaderResponseDoublePositive": 4, - "HeaderResponseDoubleNegative": 4, - "HeaderResponseBoolTrue": 4, - "HeaderResponseBoolFalse": 4, - "HeaderResponseStringValid": 4, - "HeaderResponseStringNull": 4, - "HeaderResponseStringEmpty": 4, - "HeaderParameterEnumValid": 8, - "HeaderParameterEnumNull": 4, - "HeaderResponseEnumValid": 4, - "HeaderResponseEnumNull": 4, - "HeaderResponseDateValid": 4, - "HeaderResponseDateMin": 4, - "HeaderResponseDateTimeValid": 4, - "HeaderResponseDateTimeMin": 4, - "HeaderResponseDateTimeRfc1123Valid": 4, - "HeaderResponseDateTimeRfc1123Min": 4, - "HeaderResponseBytesValid": 4, - "HeaderResponseDurationValid": 4, - "ConstantsInPath": 4, - "ConstantsInBody": 4, - "CustomBaseUri": 4, - "CustomBaseUriMoreOptions": 4, - "getModelFlattenArray": 4, - "putModelFlattenArray": 4, - "getModelFlattenDictionary": 4, - "putModelFlattenDictionary": 4, - "getModelFlattenResourceCollection": 4, - "putModelFlattenResourceCollection": 4, - "putModelFlattenCustomBase": 4, - "postModelFlattenCustomParameter": 4, - "putModelFlattenCustomGroupedParameter": 4, - "getArrayBase64Url": 4, - "getDictionaryBase64Url": 4, - "UrlPathsStringBase64Url": 4, - "UrlPathsArrayCSVInPath": 4, - "getUnixTime": 4, - "getInvalidUnixTime": 4, - "getNullUnixTime": 4, - "putUnixTime": 4, - "UrlPathsIntUnixTime": 4, - "expectedEnum": 4, - "unexpectedEnum": 4, - "allowedValueEnum": 4, - "roundTripEnum": 4, - "expectedNoErrors": 8, - "expectedPetSadError": 32, - "expectedPetHungryError": 4, - "intError": 4, - "stringError": 4, - "animalNotFoundError": 4, - "linkNotFoundError": 4, - "getDateTimeMinLocalNoOffset": 4, - "getComplexPolymorphismDotSyntax": 4, - "getComposedWithDiscriminator": 4, - "getComposedWithoutDiscriminator": 4, - "FileStreamNonempty": 12, - "FileStreamVeryLarge": 4, - "FileStreamEmpty": 8, - "HttpSuccess200Head": 4, - "HttpSuccess200Get": 4, - "HttpSuccess200Put": 4, - "HttpSuccess200Post": 4, - "HttpSuccess200Patch": 4, - "HttpSuccess200Delete": 4, - "HttpSuccess201Put": 4, - "HttpSuccess201Post": 4, - "HttpSuccess202Put": 4, - "HttpSuccess202Post": 4, - "HttpSuccess202Patch": 4, - "HttpSuccess202Delete": 4, - "HttpSuccess204Head": 4, - "HttpSuccess404Head": 4, - "HttpSuccess204Put": 4, - "HttpSuccess204Post": 4, - "HttpSuccess204Patch": 4, - "HttpSuccess204Delete": 4, - "HttpRedirect300Head": 4, - "HttpRedirect300Get": 4, - "HttpRedirect301Put": 4, - "HttpRedirect301Get": 4, - "HttpRedirect302Head": 4, - "HttpRedirect302Get": 4, - "HttpRedirect302Patch": 4, - "HttpRedirect303Post": 4, - "HttpRedirect307Head": 4, - "HttpRedirect307Get": 4, - "HttpRedirect307Put": 4, - "HttpRedirect307Post": 4, - "HttpRedirect307Patch": 4, - "HttpRedirect307Delete": 4, - "HttpRetry408Head": 4, - "HttpRetry500Put": 4, - "HttpRetry500Patch": 4, - "HttpRetry502Get": 4, - "HttpRetry503Post": 4, - "HttpRetry503Delete": 4, - "HttpRetry504Put": 4, - "HttpRetry504Patch": 4, - "HttpClientFailure400Head": 4, - "HttpClientFailure400Get": 4, - "HttpClientFailure400Put": 4, - "HttpClientFailure400Post": 4, - "HttpClientFailure400Patch": 4, - "HttpClientFailure400Delete": 4, - "HttpClientFailure401Head": 4, - "HttpClientFailure402Get": 4, - "HttpClientFailure403Get": 4, - "HttpClientFailure404Put": 4, - "HttpClientFailure405Patch": 4, - "HttpClientFailure406Post": 4, - "HttpClientFailure407Delete": 4, - "HttpClientFailure409Put": 4, - "HttpClientFailure410Head": 4, - "HttpClientFailure411Get": 4, - "HttpClientFailure412Get": 4, - "HttpClientFailure413Put": 4, - "HttpClientFailure414Patch": 4, - "HttpClientFailure415Post": 4, - "HttpClientFailure416Get": 4, - "HttpClientFailure417Delete": 4, - "HttpClientFailure429Head": 16, - "HttpServerFailure501Head": 4, - "HttpServerFailure501Get": 4, - "HttpServerFailure505Post": 4, - "HttpServerFailure505Delete": 4, - "ResponsesScenarioA200MatchingModel": 4, - "ResponsesScenarioA204MatchingNoModel": 4, - "ResponsesScenarioA201DefaultNoModel": 4, - "ResponsesScenarioA202DefaultNoModel": 4, - "ResponsesScenarioA400DefaultModel": 4, - "ResponsesScenarioB200MatchingModel": 4, - "ResponsesScenarioB201MatchingModel": 4, - "ResponsesScenarioB400DefaultModel": 4, - "ResponsesScenarioC200MatchingModel": 4, - "ResponsesScenarioC201MatchingModel": 4, - "ResponsesScenarioC404MatchingModel": 4, - "ResponsesScenarioC400DefaultModel": 4, - "ResponsesScenarioD202MatchingNoModel": 4, - "ResponsesScenarioD204MatchingNoModel": 4, - "ResponsesScenarioD400DefaultModel": 4, - "ResponsesScenarioE202MatchingInvalid": 4, - "ResponsesScenarioE204MatchingNoModel": 4, - "ResponsesScenarioE400DefaultNoModel": 4, - "ResponsesScenarioE400DefaultInvalid": 4, - "ResponsesScenarioF200DefaultModel": 8, - "ResponsesScenarioF200DefaultNone": 8, - "ResponsesScenarioF400DefaultModel": 4, - "ResponsesScenarioF400DefaultNone": 4, - "ResponsesScenarioG200DefaultInvalid": 4, - "ResponsesScenarioG200DefaultNoModel": 4, - "ResponsesScenarioG400DefaultInvalid": 4, - "ResponsesScenarioG400DefaultNoModel": 4, - "ResponsesScenarioH200MatchingNone": 4, - "ResponsesScenarioH200MatchingModel": 4, - "ResponsesScenarioH200MatchingInvalid": 4, - "ResponsesScenarioH400NonMatchingNone": 4, - "ResponsesScenarioH400NonMatchingModel": 4, - "ResponsesScenarioH400NonMatchingInvalid": 4, - "ResponsesScenarioH202NonMatchingModel": 4, - "ResponsesScenarioEmptyErrorBody": 4, - "ResponsesScenarioNoModelErrorBody": 4, - "MediaTypeJson": 7, - "MediaTypePdf": 7, - "MediaTypeWithEncoding": 7, - "StorageListContainersXML": 4, - "StorageGetServicePropertiesXML": 4, - "StoragePutServicePropertiesXML": 4, - "StorageGetContainerACLXML": 4, - "StorageListBlobsXML": 4, - "StoragePutContainerACLXML": 4, - "GetSimpleXML": 4, - "PutSimpleXML": 4, - "GetWrappedXMLList": 4, - "PutWrappedXMLList": 4, - "GetEmptyXMLList": 4, - "PutEmptyXMLList": 4, - "GetEmptyWrappedXMLList": 4, - "PutEmptyWrappedXMLList": 4, - "GetXMLListAtRoot": 4, - "PutXMLListAtRoot": 4, - "GetXMLListAtRootSingle": 4, - "PutXMLListAtRootSingle": 4, - "GetEmptyXMLListAtRoot": 4, - "PutEmptyXMLListAtRoot": 4, - "GetXMLEmptyNode": 4, - "PutXMLEmptyNode": 4, - "GetRootWithRefAndNoMetaXML": 4, - "PutRootWithRefAndNoMetaXML": 4, - "GetRootWithRefAndMetaXML": 4, - "PutRootWithRefAndMetaXML": 4, - "jsonInputInXMLSwagger": 4, - "jsonOutputInXMLSwagger": 4, - "GetWithXMsText": 4, - "ObjectTypeResponse": 4, - "ObjectTypePut": 4, - "ObjectTypeErrorResponse": 4, - "NonStringEnumsPostInt": 4, - "NonStringEnumsGetInt": 4, - "NonStringEnumsPostFloat": 4, - "NonStringEnumsGetFloat": 4, - "BodyTimeGet": 4, - "BodyTimePut": 4, - "MultipleInheritancePetGet": 4, - "MultipleInheritancePetPut": 4, - "MultipleInheritanceHorseGet": 4, - "MultipleInheritanceHorsePut": 4, - "MultipleInheritanceFelineGet": 4, - "MultipleInheritanceFelinePut": 4, - "MultipleInheritanceCatGet": 4, - "MultipleInheritanceCatPut": 4, - "MultipleInheritanceKittenGet": 4, - "MultipleInheritanceKittenPut": 4, - "OptionalIntegerParameter": 4, - "OptionalIntegerProperty": 4, - "OptionalIntegerHeader": 4, - "OptionalStringParameter": 4, - "OptionalStringProperty": 4, - "OptionalStringHeader": 4, - "OptionalClassParameter": 4, - "OptionalClassProperty": 4, - "OptionalArrayParameter": 4, - "OptionalArrayProperty": 4, - "OptionalArrayHeader": 4 + "GetStringAsAnything": 2, + "PutStringAsAnything": 2, + "GetObjectAsAnything": 2, + "PutObjectAsAnything": 2, + "GetArrayAsAnything": 2, + "PutArrayAsAnything": 2, + "BodyBinaryFile": 2, + "BodyBinaryOctet": 2, + "ConstantClientProperties": 1, + "verifyIncorrectErrorParsing": 0, + "MediaTypesAnalyzeBodyNoAcceptHeader": 2, + "MediaTypesTwoContentTypes": 2, + "PassMergePatchObject": 1, + "verifyHost": 0, + "GetParameterizedHostWithNameEndpoint": 1, + "ImplicitOptionalBinaryBody": 1, + "ExplicitOptionalBinaryBody": 1, + "ExplicitRequiredBinaryBody": 1, + "OptionalImplicitBody": 1, + "GeneralOptional": 11, + "OptionalImplicitHeader": 1, + "OptionalImplicitQuery": 1, + "OptionalGlobalQuery": 1, + "reservedWordsOperationGroupImport": 1, + "reservedWordsBodyNamedContent": 1, + "reservedWordsBodyNamedJson": 1, + "reservedWordsBodyNamedData": 1, + "reservedWordsBodyNamedFiles": 1, + "getStringNull": 1, + "putStringNull": 1, + "getStringEmpty": 1, + "putStringEmpty": 1, + "getStringNotProvided": 1, + "getStringWithLeadingAndTrailingWhitespace": 1, + "putStringWithLeadingAndTrailingWhitespace": 1, + "getStringBase64UrlEncoded": 1, + "putStringBase64UrlEncoded": 1, + "getStringBase64Encoded": 1, + "getStringNullBase64UrlEncoding": 1, + "getStringMultiByteCharacters": 1, + "putStringMultiByteCharacters": 1, + "getEnumNotExpandable": 1, + "putEnumNotExpandable": 1, + "getEnumReferenced": 1, + "putEnumReferenced": 1, + "getEnumReferencedConstant": 1, + "putEnumReferencedConstant": 1, + "XmlGetBytes": 1, + "XmlPutBytes": 1, + "XmlGetUrl": 1, + "XmlPutUrl": 1, + "additionalPropertiesTrue": 2, + "additionalPropertiesSubclass": 2, + "additionalPropertiesTypeObject": 2, + "additionalPropertiesTypeString": 2, + "additionalPropertiesInProperties": 2, + "additionalPropertiesInPropertiesWithAPTypeString": 2, + "getArrayNull": 2, + "getArrayEmpty": 2, + "putArrayEmpty": 2, + "getArrayInvalid": 2, + "getArrayBooleanValid": 2, + "putArrayBooleanValid": 2, + "getArrayBooleanWithNull": 2, + "getArrayBooleanWithString": 2, + "getArrayIntegerValid": 2, + "putArrayIntegerValid": 2, + "getArrayIntegerWithNull": 2, + "getArrayIntegerWithString": 2, + "getArrayLongValid": 2, + "putArrayLongValid": 2, + "getArrayLongWithNull": 2, + "getArrayLongWithString": 2, + "getArrayFloatValid": 2, + "putArrayFloatValid": 2, + "getArrayFloatWithNull": 2, + "getArrayFloatWithString": 2, + "getArrayDoubleValid": 2, + "putArrayDoubleValid": 2, + "getArrayDoubleWithNull": 2, + "getArrayDoubleWithString": 2, + "getArrayStringValid": 2, + "putArrayStringValid": 2, + "getArrayEnumValid": 2, + "putArrayEnumValid": 2, + "getArrayStringEnumValid": 2, + "putArrayStringEnumValid": 2, + "getArrayStringWithNull": 2, + "getArrayStringWithNumber": 4, + "getArrayDateValid": 2, + "putArrayDateValid": 2, + "getArrayDateWithNull": 2, + "getArrayDateWithInvalidChars": 2, + "getArrayDateTimeValid": 2, + "putArrayDateTimeValid": 2, + "getArrayDateTimeWithNull": 2, + "getArrayDateTimeWithInvalidChars": 2, + "getArrayDateTimeRfc1123Valid": 2, + "putArrayDateTimeRfc1123Valid": 2, + "getArrayDurationValid": 2, + "putArrayDurationValid": 2, + "getArrayUuidValid": 2, + "getArrayUuidWithInvalidChars": 2, + "putArrayUuidValid": 2, + "getArrayByteValid": 2, + "putArrayByteValid": 2, + "getArrayByteWithNull": 2, + "getArrayArrayNull": 2, + "getArrayArrayEmpty": 4, + "getArrayArrayItemNull": 2, + "getArrayArrayItemEmpty": 2, + "getArrayArrayValid": 2, + "putArrayArrayValid": 2, + "getArrayComplexNull": 2, + "getArrayComplexEmpty": 2, + "getArrayComplexItemNull": 2, + "getArrayComplexItemEmpty": 2, + "getArrayComplexValid": 2, + "putArrayComplexValid": 2, + "getArrayDictionaryNull": 2, + "getArrayDictionaryEmpty": 2, + "getArrayDictionaryItemNull": 2, + "getArrayDictionaryItemEmpty": 2, + "getArrayDictionaryValid": 2, + "putArrayDictionaryValid": 2, + "getBoolTrue": 1, + "putBoolTrue": 1, + "getBoolFalse": 1, + "putBoolFalse": 1, + "getBoolInvalid": 1, + "getBoolNull": 1, + "getByteNull": 1, + "getByteEmpty": 1, + "getByteNonAscii": 1, + "putByteNonAscii": 1, + "getByteInvalid": 1, + "getDateNull": 1, + "getDateInvalid": 1, + "getDateOverflow": 1, + "getDateUnderflow": 1, + "getDateMax": 1, + "putDateMax": 1, + "getDateMin": 1, + "putDateMin": 1, + "getDateTimeNull": 1, + "getDateTimeInvalid": 1, + "getDateTimeOverflow": 1, + "getDateTimeUnderflow": 1, + "putDateTimeMaxUtc": 1, + "getDateTimeMaxUtcLowercase": 1, + "getDateTimeMaxUtcUppercase": 1, + "getDateTimeMaxLocalPositiveOffsetLowercase": 1, + "getDateTimeMaxLocalPositiveOffsetUppercase": 1, + "getDateTimeMaxLocalNegativeOffsetLowercase": 1, + "getDateTimeMaxLocalNegativeOffsetUppercase": 1, + "getDateTimeMinUtc": 1, + "putDateTimeMinUtc": 1, + "getDateTimeMinLocalPositiveOffset": 1, + "getDateTimeMinLocalNegativeOffset": 1, + "getDateTimeRfc1123Null": 1, + "getDateTimeRfc1123Invalid": 1, + "getDateTimeRfc1123Overflow": 1, + "getDateTimeRfc1123Underflow": 1, + "getDateTimeRfc1123MinUtc": 1, + "putDateTimeRfc1123Max": 1, + "putDateTimeRfc1123Min": 1, + "getDateTimeRfc1123MaxUtcLowercase": 1, + "getDateTimeRfc1123MaxUtcUppercase": 1, + "getIntegerNull": 1, + "getIntegerInvalid": 1, + "getIntegerOverflow": 1, + "getIntegerUnderflow": 1, + "getLongOverflow": 1, + "getLongUnderflow": 1, + "putIntegerMax": 1, + "putLongMax": 1, + "putIntegerMin": 1, + "putLongMin": 1, + "getNumberNull": 1, + "getFloatInvalid": 1, + "getDoubleInvalid": 1, + "getFloatBigScientificNotation": 1, + "putFloatBigScientificNotation": 1, + "getDoubleBigScientificNotation": 1, + "putDoubleBigScientificNotation": 1, + "getDoubleBigPositiveDecimal": 1, + "putDoubleBigPositiveDecimal": 1, + "getDoubleBigNegativeDecimal": 1, + "putDoubleBigNegativeDecimal": 1, + "getFloatSmallScientificNotation": 1, + "putFloatSmallScientificNotation": 1, + "getDoubleSmallScientificNotation": 1, + "putDoubleSmallScientificNotation": 1, + "putComplexBasicValid": 1, + "getComplexBasicValid": 1, + "getComplexBasicEmpty": 1, + "getComplexBasicNotProvided": 1, + "getComplexBasicNull": 1, + "getComplexBasicInvalid": 1, + "putComplexPrimitiveInteger": 1, + "putComplexPrimitiveLong": 1, + "putComplexPrimitiveFloat": 1, + "putComplexPrimitiveDouble": 1, + "putComplexPrimitiveBool": 1, + "putComplexPrimitiveString": 1, + "putComplexPrimitiveDate": 1, + "putComplexPrimitiveDateTime": 1, + "putComplexPrimitiveDateTimeRfc1123": 1, + "putComplexPrimitiveDuration": 1, + "putComplexPrimitiveByte": 1, + "getComplexPrimitiveInteger": 1, + "getComplexPrimitiveLong": 1, + "getComplexPrimitiveFloat": 1, + "getComplexPrimitiveDouble": 1, + "getComplexPrimitiveBool": 1, + "getComplexPrimitiveString": 1, + "getComplexPrimitiveDate": 1, + "getComplexPrimitiveDateTime": 1, + "getComplexPrimitiveDateTimeRfc1123": 1, + "getComplexPrimitiveDuration": 1, + "getComplexPrimitiveByte": 1, + "putComplexArrayValid": 1, + "putComplexArrayEmpty": 1, + "getComplexArrayValid": 1, + "getComplexArrayEmpty": 1, + "getComplexArrayNotProvided": 1, + "putComplexDictionaryValid": 1, + "putComplexDictionaryEmpty": 1, + "getComplexDictionaryValid": 1, + "getComplexDictionaryEmpty": 1, + "getComplexDictionaryNull": 1, + "getComplexDictionaryNotProvided": 1, + "putComplexInheritanceValid": 2, + "getComplexInheritanceValid": 4, + "putComplexPolymorphismValid": 1, + "getComplexPolymorphismValid": 1, + "putComplexPolymorphismComplicated": 1, + "getComplexPolymorphismComplicated": 1, + "putComplexPolymorphismNoDiscriminator": 1, + "putComplexPolymorphicRecursiveValid": 1, + "getComplexPolymorphicRecursiveValid": 1, + "putComplexReadOnlyPropertyValid": 1, + "getComplexReadOnlyPropertyValid": 1, + "UrlPathsBoolFalse": 1, + "UrlPathsBoolTrue": 1, + "UrlPathsIntPositive": 1, + "UrlPathsIntNegative": 1, + "UrlPathsLongPositive": 1, + "UrlPathsLongNegative": 1, + "UrlPathsFloatPositive": 1, + "UrlPathsFloatNegative": 1, + "UrlPathsDoublePositive": 1, + "UrlPathsDoubleNegative": 1, + "UrlPathsStringUrlEncoded": 1, + "UrlPathsStringUrlNonEncoded": 1, + "UrlPathsStringEmpty": 1, + "UrlPathsStringUnicode": 1, + "UrlPathsEnumValid": 1, + "UrlPathsByteMultiByte": 1, + "UrlPathsByteEmpty": 1, + "UrlPathsDateValid": 1, + "UrlPathsDateTimeValid": 1, + "UrlQueriesBoolFalse": 1, + "UrlQueriesBoolTrue": 1, + "UrlQueriesBoolNull": 1, + "UrlQueriesIntPositive": 1, + "UrlQueriesIntNegative": 1, + "UrlQueriesIntNull": 1, + "UrlQueriesLongPositive": 1, + "UrlQueriesLongNegative": 1, + "UrlQueriesLongNull": 1, + "UrlQueriesFloatPositive": 1, + "UrlQueriesFloatNegative": 1, + "UrlQueriesFloatNull": 1, + "UrlQueriesDoublePositive": 1, + "UrlQueriesDoubleNegative": 1, + "UrlQueriesDoubleNull": 1, + "UrlQueriesStringUrlEncoded": 1, + "UrlQueriesStringEmpty": 1, + "UrlQueriesStringNull": 1, + "UrlQueriesStringUnicode": 1, + "UrlQueriesEnumValid": 1, + "UrlQueriesEnumNull": 1, + "UrlQueriesByteMultiByte": 1, + "UrlQueriesByteEmpty": 1, + "UrlQueriesByteNull": 1, + "UrlQueriesDateValid": 1, + "UrlQueriesDateNull": 1, + "UrlQueriesDateTimeValid": 1, + "UrlQueriesDateTimeNull": 1, + "UrlQueriesArrayCsvNull": 1, + "UrlQueriesArrayCsvEmpty": 1, + "UrlQueriesArrayCsvValid": 1, + "UrlQueriesArrayMultiNull": 1, + "UrlQueriesArrayMultiEmpty": 1, + "UrlQueriesArrayMultiValid": 1, + "UrlQueriesArraySsvValid": 1, + "UrlQueriesArrayPipesValid": 1, + "UrlQueriesArrayTsvValid": 1, + "UrlQueriesArrayNoCollectionFormatValid": 1, + "UrlPathItemGetAll": 1, + "UrlPathItemGetGlobalNull": 1, + "UrlPathItemGetGlobalAndLocalNull": 1, + "UrlPathItemGetPathItemAndLocalNull": 1, + "putDictionaryEmpty": 1, + "getDictionaryNull": 1, + "getDictionaryEmpty": 1, + "getDictionaryInvalid": 1, + "getDictionaryNullValue": 1, + "getDictionaryNullkey": 1, + "getDictionaryKeyEmptyString": 1, + "getDictionaryBooleanValid": 1, + "getDictionaryBooleanWithNull": 1, + "getDictionaryBooleanWithString": 1, + "getDictionaryIntegerValid": 1, + "getDictionaryIntegerWithNull": 1, + "getDictionaryIntegerWithString": 1, + "getDictionaryLongValid": 1, + "getDictionaryLongWithNull": 1, + "getDictionaryLongWithString": 1, + "getDictionaryFloatValid": 1, + "getDictionaryFloatWithNull": 1, + "getDictionaryFloatWithString": 1, + "getDictionaryDoubleValid": 1, + "getDictionaryDoubleWithNull": 1, + "getDictionaryDoubleWithString": 1, + "getDictionaryStringValid": 1, + "getDictionaryStringWithNull": 1, + "getDictionaryStringWithNumber": 1, + "getDictionaryDateValid": 1, + "getDictionaryDateWithNull": 1, + "getDictionaryDateWithInvalidChars": 1, + "getDictionaryDateTimeValid": 1, + "getDictionaryDateTimeWithNull": 1, + "getDictionaryDateTimeWithInvalidChars": 1, + "getDictionaryDateTimeRfc1123Valid": 1, + "getDictionaryDurationValid": 1, + "getDictionaryByteValid": 1, + "getDictionaryByteWithNull": 1, + "putDictionaryBooleanValid": 1, + "putDictionaryIntegerValid": 1, + "putDictionaryLongValid": 1, + "putDictionaryFloatValid": 1, + "putDictionaryDoubleValid": 1, + "putDictionaryStringValid": 1, + "putDictionaryDateValid": 1, + "putDictionaryDateTimeValid": 1, + "putDictionaryDateTimeRfc1123Valid": 1, + "putDictionaryDurationValid": 1, + "putDictionaryByteValid": 1, + "getDictionaryComplexNull": 1, + "getDictionaryComplexEmpty": 1, + "getDictionaryComplexItemNull": 1, + "getDictionaryComplexItemEmpty": 1, + "getDictionaryComplexValid": 1, + "putDictionaryComplexValid": 1, + "getDictionaryArrayNull": 1, + "getDictionaryArrayEmpty": 1, + "getDictionaryArrayItemNull": 1, + "getDictionaryArrayItemEmpty": 1, + "getDictionaryArrayValid": 1, + "putDictionaryArrayValid": 1, + "getDictionaryDictionaryNull": 1, + "getDictionaryDictionaryEmpty": 1, + "getDictionaryDictionaryItemNull": 1, + "getDictionaryDictionaryItemEmpty": 1, + "getDictionaryDictionaryValid": 1, + "putDictionaryDictionaryValid": 1, + "putDurationPositive": 1, + "getDurationNull": 1, + "getDurationInvalid": 1, + "getDurationPositive": 1, + "HeaderParameterExistingKey": 1, + "HeaderResponseExistingKey": 1, + "HeaderResponseProtectedKey": 1, + "HeaderParameterIntegerPositive": 1, + "HeaderParameterIntegerNegative": 1, + "HeaderParameterLongPositive": 1, + "HeaderParameterLongNegative": 1, + "HeaderParameterFloatPositive": 1, + "HeaderParameterFloatNegative": 1, + "HeaderParameterDoublePositive": 1, + "HeaderParameterDoubleNegative": 1, + "HeaderParameterBoolTrue": 1, + "HeaderParameterBoolFalse": 1, + "HeaderParameterStringValid": 1, + "HeaderParameterStringNull": 1, + "HeaderParameterStringEmpty": 1, + "HeaderParameterDateValid": 1, + "HeaderParameterDateMin": 1, + "HeaderParameterDateTimeValid": 1, + "HeaderParameterDateTimeMin": 1, + "HeaderParameterDateTimeRfc1123Valid": 1, + "HeaderParameterDateTimeRfc1123Min": 1, + "HeaderParameterBytesValid": 1, + "HeaderParameterDurationValid": 1, + "HeaderResponseIntegerPositive": 1, + "HeaderResponseIntegerNegative": 1, + "HeaderResponseLongPositive": 1, + "HeaderResponseLongNegative": 1, + "HeaderResponseFloatPositive": 1, + "HeaderResponseFloatNegative": 1, + "HeaderResponseDoublePositive": 1, + "HeaderResponseDoubleNegative": 1, + "HeaderResponseBoolTrue": 1, + "HeaderResponseBoolFalse": 1, + "HeaderResponseStringValid": 1, + "HeaderResponseStringNull": 1, + "HeaderResponseStringEmpty": 1, + "HeaderParameterEnumValid": 1, + "HeaderParameterEnumNull": 1, + "HeaderResponseEnumValid": 1, + "HeaderResponseEnumNull": 1, + "HeaderResponseDateValid": 1, + "HeaderResponseDateMin": 1, + "HeaderResponseDateTimeValid": 1, + "HeaderResponseDateTimeMin": 1, + "HeaderResponseDateTimeRfc1123Valid": 1, + "HeaderResponseDateTimeRfc1123Min": 1, + "HeaderResponseBytesValid": 1, + "HeaderResponseDurationValid": 1, + "ConstantsInPath": 1, + "ConstantsInBody": 1, + "CustomBaseUri": 1, + "CustomBaseUriMoreOptions": 1, + "getModelFlattenArray": 1, + "putModelFlattenArray": 1, + "getModelFlattenDictionary": 1, + "putModelFlattenDictionary": 1, + "getModelFlattenResourceCollection": 1, + "putModelFlattenResourceCollection": 1, + "putModelFlattenCustomBase": 1, + "postModelFlattenCustomParameter": 1, + "putModelFlattenCustomGroupedParameter": 1, + "getArrayBase64Url": 2, + "getDictionaryBase64Url": 1, + "UrlPathsStringBase64Url": 1, + "UrlPathsArrayCSVInPath": 1, + "getUnixTime": 1, + "getInvalidUnixTime": 1, + "getNullUnixTime": 1, + "putUnixTime": 1, + "UrlPathsIntUnixTime": 1, + "expectedEnum": 1, + "unexpectedEnum": 1, + "allowedValueEnum": 1, + "roundTripEnum": 1, + "expectedNoErrors": 2, + "expectedPetSadError": 4, + "expectedPetHungryError": 1, + "intError": 1, + "stringError": 1, + "animalNotFoundError": 1, + "linkNotFoundError": 1, + "getDateTimeMinLocalNoOffset": 1, + "getComplexPolymorphismDotSyntax": 1, + "getComposedWithDiscriminator": 1, + "getComposedWithoutDiscriminator": 1, + "FileStreamNonempty": 3, + "FileStreamVeryLarge": 1, + "FileStreamEmpty": 2, + "HttpSuccess200Head": 1, + "HttpSuccess200Get": 1, + "HttpSuccess200Put": 1, + "HttpSuccess200Post": 1, + "HttpSuccess200Patch": 1, + "HttpSuccess200Delete": 1, + "HttpSuccess201Put": 1, + "HttpSuccess201Post": 1, + "HttpSuccess202Put": 1, + "HttpSuccess202Post": 1, + "HttpSuccess202Patch": 1, + "HttpSuccess202Delete": 1, + "HttpSuccess204Head": 1, + "HttpSuccess404Head": 1, + "HttpSuccess204Put": 1, + "HttpSuccess204Post": 1, + "HttpSuccess204Patch": 1, + "HttpSuccess204Delete": 1, + "HttpRedirect300Head": 1, + "HttpRedirect300Get": 1, + "HttpRedirect301Put": 1, + "HttpRedirect301Get": 1, + "HttpRedirect302Head": 1, + "HttpRedirect302Get": 1, + "HttpRedirect302Patch": 1, + "HttpRedirect303Post": 1, + "HttpRedirect307Head": 1, + "HttpRedirect307Get": 1, + "HttpRedirect307Put": 1, + "HttpRedirect307Post": 1, + "HttpRedirect307Patch": 1, + "HttpRedirect307Delete": 1, + "HttpRetry408Head": 1, + "HttpRetry500Put": 1, + "HttpRetry500Patch": 1, + "HttpRetry502Get": 1, + "HttpRetry503Post": 1, + "HttpRetry503Delete": 1, + "HttpRetry504Put": 1, + "HttpRetry504Patch": 1, + "HttpClientFailure400Head": 1, + "HttpClientFailure400Get": 1, + "HttpClientFailure400Put": 1, + "HttpClientFailure400Post": 1, + "HttpClientFailure400Patch": 1, + "HttpClientFailure400Delete": 1, + "HttpClientFailure401Head": 1, + "HttpClientFailure402Get": 1, + "HttpClientFailure403Get": 1, + "HttpClientFailure404Put": 1, + "HttpClientFailure405Patch": 1, + "HttpClientFailure406Post": 1, + "HttpClientFailure407Delete": 1, + "HttpClientFailure409Put": 1, + "HttpClientFailure410Head": 1, + "HttpClientFailure411Get": 1, + "HttpClientFailure412Get": 1, + "HttpClientFailure413Put": 1, + "HttpClientFailure414Patch": 1, + "HttpClientFailure415Post": 1, + "HttpClientFailure416Get": 1, + "HttpClientFailure417Delete": 1, + "HttpClientFailure429Head": 4, + "HttpServerFailure501Head": 1, + "HttpServerFailure501Get": 1, + "HttpServerFailure505Post": 1, + "HttpServerFailure505Delete": 1, + "ResponsesScenarioA200MatchingModel": 1, + "ResponsesScenarioA204MatchingNoModel": 1, + "ResponsesScenarioA201DefaultNoModel": 1, + "ResponsesScenarioA202DefaultNoModel": 1, + "ResponsesScenarioA400DefaultModel": 1, + "ResponsesScenarioB200MatchingModel": 1, + "ResponsesScenarioB201MatchingModel": 1, + "ResponsesScenarioB400DefaultModel": 1, + "ResponsesScenarioC200MatchingModel": 1, + "ResponsesScenarioC201MatchingModel": 1, + "ResponsesScenarioC404MatchingModel": 1, + "ResponsesScenarioC400DefaultModel": 1, + "ResponsesScenarioD202MatchingNoModel": 1, + "ResponsesScenarioD204MatchingNoModel": 1, + "ResponsesScenarioD400DefaultModel": 1, + "ResponsesScenarioE202MatchingInvalid": 1, + "ResponsesScenarioE204MatchingNoModel": 1, + "ResponsesScenarioE400DefaultNoModel": 1, + "ResponsesScenarioE400DefaultInvalid": 1, + "ResponsesScenarioF200DefaultModel": 2, + "ResponsesScenarioF200DefaultNone": 2, + "ResponsesScenarioF400DefaultModel": 0, + "ResponsesScenarioF400DefaultNone": 0, + "ResponsesScenarioG200DefaultInvalid": 1, + "ResponsesScenarioG200DefaultNoModel": 1, + "ResponsesScenarioG400DefaultInvalid": 1, + "ResponsesScenarioG400DefaultNoModel": 1, + "ResponsesScenarioH200MatchingNone": 1, + "ResponsesScenarioH200MatchingModel": 1, + "ResponsesScenarioH200MatchingInvalid": 1, + "ResponsesScenarioH400NonMatchingNone": 1, + "ResponsesScenarioH400NonMatchingModel": 1, + "ResponsesScenarioH400NonMatchingInvalid": 1, + "ResponsesScenarioH202NonMatchingModel": 1, + "ResponsesScenarioEmptyErrorBody": 1, + "ResponsesScenarioNoModelErrorBody": 1, + "MediaTypeJson": 1, + "MediaTypePdf": 1, + "MediaTypeWithEncoding": 1, + "StorageListContainersXML": 1, + "StorageGetServicePropertiesXML": 1, + "StoragePutServicePropertiesXML": 1, + "StorageGetContainerACLXML": 1, + "StorageListBlobsXML": 1, + "StoragePutContainerACLXML": 1, + "GetSimpleXML": 1, + "PutSimpleXML": 1, + "GetWrappedXMLList": 1, + "PutWrappedXMLList": 1, + "GetEmptyXMLList": 1, + "PutEmptyXMLList": 1, + "GetEmptyWrappedXMLList": 1, + "PutEmptyWrappedXMLList": 1, + "GetXMLListAtRoot": 1, + "PutXMLListAtRoot": 1, + "GetXMLListAtRootSingle": 1, + "PutXMLListAtRootSingle": 1, + "GetEmptyXMLListAtRoot": 1, + "PutEmptyXMLListAtRoot": 1, + "GetXMLEmptyNode": 1, + "PutXMLEmptyNode": 1, + "GetRootWithRefAndNoMetaXML": 1, + "PutRootWithRefAndNoMetaXML": 1, + "GetRootWithRefAndMetaXML": 1, + "PutRootWithRefAndMetaXML": 1, + "jsonInputInXMLSwagger": 1, + "jsonOutputInXMLSwagger": 1, + "GetWithXMsText": 1, + "ObjectTypeResponse": 1, + "ObjectTypePut": 1, + "ObjectTypeErrorResponse": 1, + "NonStringEnumsPostInt": 1, + "NonStringEnumsGetInt": 1, + "NonStringEnumsPostFloat": 1, + "NonStringEnumsGetFloat": 1, + "BodyTimeGet": 1, + "BodyTimePut": 1, + "MultipleInheritancePetGet": 1, + "MultipleInheritancePetPut": 1, + "MultipleInheritanceHorseGet": 1, + "MultipleInheritanceHorsePut": 1, + "MultipleInheritanceFelineGet": 1, + "MultipleInheritanceFelinePut": 1, + "MultipleInheritanceCatGet": 1, + "MultipleInheritanceCatPut": 1, + "MultipleInheritanceKittenGet": 1, + "MultipleInheritanceKittenPut": 1, + "OptionalIntegerParameter": 1, + "OptionalIntegerProperty": 1, + "OptionalIntegerHeader": 1, + "OptionalStringParameter": 1, + "OptionalStringProperty": 1, + "OptionalStringHeader": 1, + "OptionalClassParameter": 1, + "OptionalClassProperty": 1, + "OptionalArrayParameter": 1, + "OptionalArrayProperty": 1, + "OptionalArrayHeader": 1 } \ No newline at end of file From 5da26cd7b7194c4692bc3e6be303621bd8b1f9c7 Mon Sep 17 00:00:00 2001 From: iscai-msft Date: Tue, 8 Feb 2022 11:44:11 -0500 Subject: [PATCH 3/6] pylint --- autorest/codegen/serializers/builder_serializer.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/autorest/codegen/serializers/builder_serializer.py b/autorest/codegen/serializers/builder_serializer.py index 7dc8630b50b..536e99059b2 100644 --- a/autorest/codegen/serializers/builder_serializer.py +++ b/autorest/codegen/serializers/builder_serializer.py @@ -10,8 +10,6 @@ from abc import abstractmethod, ABC from typing import Any, List, TypeVar, Dict, Union, Optional, cast -from autorest.codegen.models import request_builder - from ..models import ( Operation, CodeModel, From 2098bad363d7e67df761830f390786e7199f143f Mon Sep 17 00:00:00 2001 From: iscai-msft Date: Tue, 8 Feb 2022 15:18:11 -0500 Subject: [PATCH 4/6] add reserved words test --- .../asynctests/test_reserved_words.py | 4 + .../AcceptanceTests/test_reserved_words.py | 3 + .../ReservedWords/reservedwords/_vendor.py | 11 +++ .../_reserved_words_client_operations.py | 54 ++++++++++- .../_reserved_words_client_operations.py | 96 ++++++++++++++++++- .../asynctests/test_reserved_words.py | 8 +- .../AcceptanceTests/test_reserved_words.py | 5 + .../reservedwordslowlevel/_vendor.py | 17 ++++ .../reservedwordslowlevel/rest/__init__.py | 3 + .../rest/_request_builders.py | 60 +++++++++++- .../rest/_request_builders_py3.py | 51 +++++++++- .../asynctests/test_reserved_words.py | 4 + .../AcceptanceTests/test_reserved_words.py | 3 + .../reservedwordsversiontolerant/_vendor.py | 17 ++++ .../aio/operations/_operations.py | 52 +++++++++- .../operations/_operations.py | 80 +++++++++++++++- 16 files changed, 460 insertions(+), 8 deletions(-) create mode 100644 test/vanilla/low-level/Expected/AcceptanceTests/ReservedWordsLowLevel/reservedwordslowlevel/_vendor.py create mode 100644 test/vanilla/version-tolerant/Expected/AcceptanceTests/ReservedWordsVersionTolerant/reservedwordsversiontolerant/_vendor.py diff --git a/test/vanilla/legacy/AcceptanceTests/asynctests/test_reserved_words.py b/test/vanilla/legacy/AcceptanceTests/asynctests/test_reserved_words.py index 7a837ba6250..1d983f8fbbc 100644 --- a/test/vanilla/legacy/AcceptanceTests/asynctests/test_reserved_words.py +++ b/test/vanilla/legacy/AcceptanceTests/asynctests/test_reserved_words.py @@ -50,3 +50,7 @@ async def test_operation_with_data_param(client): @pytest.mark.asyncio async def test_operation_with_files_param(client): await client.operation_with_files_param(file_name="my.txt", files=b"bytes") + +@pytest.mark.asyncio +async def test_operation_with_url(client): + await client.operation_with_url("foo", header_parameters="x-ms-header", query_parameters=["one", "two"]) diff --git a/test/vanilla/legacy/AcceptanceTests/test_reserved_words.py b/test/vanilla/legacy/AcceptanceTests/test_reserved_words.py index b424231ebd3..1f80c05883e 100644 --- a/test/vanilla/legacy/AcceptanceTests/test_reserved_words.py +++ b/test/vanilla/legacy/AcceptanceTests/test_reserved_words.py @@ -45,3 +45,6 @@ def test_operation_with_data_param(client): def test_operation_with_files_param(client): client.operation_with_files_param(file_name="my.txt", files=b"bytes") + +def test_operation_with_url(client): + client.operation_with_url("foo", header_parameters="x-ms-header", query_parameters=["one", "two"]) diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/ReservedWords/reservedwords/_vendor.py b/test/vanilla/legacy/Expected/AcceptanceTests/ReservedWords/reservedwords/_vendor.py index 0dafe0e287f..9aad73fc743 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/ReservedWords/reservedwords/_vendor.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/ReservedWords/reservedwords/_vendor.py @@ -14,3 +14,14 @@ def _convert_request(request, files=None): if files: request.set_formdata_body(files) return request + + +def _format_url_section(template, **kwargs): + components = template.split("/") + while components: + try: + return template.format(**kwargs) + except KeyError as key: + formatted_components = template.split("/") + components = [c for c in formatted_components if "{}".format(key.args[0]) not in c] + template = "/".join(components) diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/ReservedWords/reservedwords/aio/operations/_reserved_words_client_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/ReservedWords/reservedwords/aio/operations/_reserved_words_client_operations.py index 2345befce25..f6b78ffe965 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/ReservedWords/reservedwords/aio/operations/_reserved_words_client_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/ReservedWords/reservedwords/aio/operations/_reserved_words_client_operations.py @@ -6,7 +6,7 @@ # 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, IO, Optional, TypeVar +from typing import Any, Callable, Dict, IO, List, Optional, TypeVar from azure.core.exceptions import ( ClientAuthenticationError, @@ -27,6 +27,7 @@ build_operation_with_data_param_request, build_operation_with_files_param_request, build_operation_with_json_param_request, + build_operation_with_url_request, ) T = TypeVar("T") @@ -225,3 +226,54 @@ async def operation_with_files_param(self, files: IO, file_name: str, **kwargs: return deserialized operation_with_files_param.metadata = {"url": "/reservedWords/operation/files"} # type: ignore + + @distributed_trace_async + async def operation_with_url( + self, url: str, header_parameters: str, query_parameters: Optional[List[str]] = None, **kwargs: Any + ) -> Any: + """Operation with path format argument URL, header param headerParameters, and query param + queryParameters. + + :param url: Pass in 'foo'. + :type url: str + :param header_parameters: Header arg that uses same name as headerParameters in generated code. + Pass in 'x-ms-header' to pass. + :type header_parameters: str + :param query_parameters: Query args that uses same name as queryParameters in generated code. + Pass in ['one', 'two'] to pass test. + :type query_parameters: list[str] + :keyword callable cls: A custom type or function that will be passed the direct response + :return: any, or the result of cls(response) + :rtype: any + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop("cls", None) # type: ClsType[Any] + error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} + error_map.update(kwargs.pop("error_map", {})) + + request = build_operation_with_url_request( + url=url, + header_parameters=header_parameters, + query_parameters=query_parameters, + template_url=self.operation_with_url.metadata["url"], + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + + pipeline_response = await self._client._pipeline.run( # pylint: disable=protected-access + 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("object", pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + + operation_with_url.metadata = {"url": "/reservedWords/{url}"} # type: ignore diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/ReservedWords/reservedwords/operations/_reserved_words_client_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/ReservedWords/reservedwords/operations/_reserved_words_client_operations.py index a36598d29b7..327a0dce2e3 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/ReservedWords/reservedwords/operations/_reserved_words_client_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/ReservedWords/reservedwords/operations/_reserved_words_client_operations.py @@ -22,11 +22,11 @@ from msrest import Serializer from .. import models as _models -from .._vendor import _convert_request +from .._vendor import _convert_request, _format_url_section if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, IO, Optional, TypeVar + from typing import Any, Callable, Dict, IO, List, Optional, TypeVar T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -130,6 +130,42 @@ def build_operation_with_files_param_request( **kwargs ) + +def build_operation_with_url_request( + url, # type: str + **kwargs # type: Any +): + # type: (...) -> HttpRequest + header_parameters = kwargs.pop('header_parameters') # type: str + query_parameters = kwargs.pop('query_parameters', None) # type: Optional[List[str]] + + accept = "application/json" + # Construct URL + _url = kwargs.pop("template_url", "/reservedWords/{url}") + path_format_arguments = { + "url": _SERIALIZER.url("url", url, 'str'), + } + + _url = _format_url_section(_url, **path_format_arguments) + + # Construct parameters + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + if query_parameters is not None: + _query_parameters['queryParameters'] = [_SERIALIZER.query("query_parameters", q, 'str') if q is not None else '' for q in query_parameters] + + # Construct headers + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['headerParameters'] = _SERIALIZER.header("header_parameters", header_parameters, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + + return HttpRequest( + method="PUT", + url=_url, + params=_query_parameters, + headers=_header_parameters, + **kwargs + ) + # fmt: on class ReservedWordsClientOperationsMixin(object): @distributed_trace @@ -345,3 +381,59 @@ def operation_with_files_param( return deserialized operation_with_files_param.metadata = {"url": "/reservedWords/operation/files"} # type: ignore + + @distributed_trace + def operation_with_url( + self, + url, # type: str + header_parameters, # type: str + query_parameters=None, # type: Optional[List[str]] + **kwargs # type: Any + ): + # type: (...) -> Any + """Operation with path format argument URL, header param headerParameters, and query param + queryParameters. + + :param url: Pass in 'foo'. + :type url: str + :param header_parameters: Header arg that uses same name as headerParameters in generated code. + Pass in 'x-ms-header' to pass. + :type header_parameters: str + :param query_parameters: Query args that uses same name as queryParameters in generated code. + Pass in ['one', 'two'] to pass test. + :type query_parameters: list[str] + :keyword callable cls: A custom type or function that will be passed the direct response + :return: any, or the result of cls(response) + :rtype: any + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop("cls", None) # type: ClsType[Any] + error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} + error_map.update(kwargs.pop("error_map", {})) + + request = build_operation_with_url_request( + url=url, + header_parameters=header_parameters, + query_parameters=query_parameters, + template_url=self.operation_with_url.metadata["url"], + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + + pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access + 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("object", pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + + operation_with_url.metadata = {"url": "/reservedWords/{url}"} # type: ignore diff --git a/test/vanilla/low-level/AcceptanceTests/asynctests/test_reserved_words.py b/test/vanilla/low-level/AcceptanceTests/asynctests/test_reserved_words.py index 1994a515a3b..75b98037446 100644 --- a/test/vanilla/low-level/AcceptanceTests/asynctests/test_reserved_words.py +++ b/test/vanilla/low-level/AcceptanceTests/asynctests/test_reserved_words.py @@ -30,7 +30,8 @@ build_operation_with_files_param_request, build_operation_with_data_param_request, build_operation_with_json_param_request, - build_operation_with_content_param_request + build_operation_with_content_param_request, + build_operation_with_url_request, ) @pytest.fixture @@ -73,3 +74,8 @@ async def test_operation_with_files_param(send_request): }) await send_request(request) +@pytest.mark.asyncio +async def test_operation_with_url(send_request): + request = build_operation_with_url_request("foo", header_parameters="x-ms-header", query_parameters=["one", "two"]) + await send_request(request) + diff --git a/test/vanilla/low-level/AcceptanceTests/test_reserved_words.py b/test/vanilla/low-level/AcceptanceTests/test_reserved_words.py index 71ecefc850c..a072a6bde63 100644 --- a/test/vanilla/low-level/AcceptanceTests/test_reserved_words.py +++ b/test/vanilla/low-level/AcceptanceTests/test_reserved_words.py @@ -31,6 +31,7 @@ build_operation_with_data_param_request, build_operation_with_files_param_request, build_operation_with_json_param_request, + build_operation_with_url_request, ) @pytest.fixture @@ -66,3 +67,7 @@ def test_operation_with_files_param(send_request): "files": b'bytes' }) send_request(request) + +def test_operation_with_url(send_request): + request = build_operation_with_url_request("foo", header_parameters="x-ms-header", query_parameters=["one", "two"]) + send_request(request) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/ReservedWordsLowLevel/reservedwordslowlevel/_vendor.py b/test/vanilla/low-level/Expected/AcceptanceTests/ReservedWordsLowLevel/reservedwordslowlevel/_vendor.py new file mode 100644 index 00000000000..54f238858ed --- /dev/null +++ b/test/vanilla/low-level/Expected/AcceptanceTests/ReservedWordsLowLevel/reservedwordslowlevel/_vendor.py @@ -0,0 +1,17 @@ +# -------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------- + + +def _format_url_section(template, **kwargs): + components = template.split("/") + while components: + try: + return template.format(**kwargs) + except KeyError as key: + formatted_components = template.split("/") + components = [c for c in formatted_components if "{}".format(key.args[0]) not in c] + template = "/".join(components) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/ReservedWordsLowLevel/reservedwordslowlevel/rest/__init__.py b/test/vanilla/low-level/Expected/AcceptanceTests/ReservedWordsLowLevel/reservedwordslowlevel/rest/__init__.py index 91c75cf4717..0324ebe368c 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/ReservedWordsLowLevel/reservedwordslowlevel/rest/__init__.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/ReservedWordsLowLevel/reservedwordslowlevel/rest/__init__.py @@ -11,15 +11,18 @@ from ._request_builders_py3 import build_operation_with_json_param_request from ._request_builders_py3 import build_operation_with_data_param_request from ._request_builders_py3 import build_operation_with_files_param_request + from ._request_builders_py3 import build_operation_with_url_request except (SyntaxError, ImportError): from ._request_builders import build_operation_with_content_param_request # type: ignore from ._request_builders import build_operation_with_json_param_request # type: ignore from ._request_builders import build_operation_with_data_param_request # type: ignore from ._request_builders import build_operation_with_files_param_request # type: ignore + from ._request_builders import build_operation_with_url_request # type: ignore __all__ = [ "build_operation_with_content_param_request", "build_operation_with_json_param_request", "build_operation_with_data_param_request", "build_operation_with_files_param_request", + "build_operation_with_url_request", ] diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/ReservedWordsLowLevel/reservedwordslowlevel/rest/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/ReservedWordsLowLevel/reservedwordslowlevel/rest/_request_builders.py index 8c2bc003c9a..4d2a1a99b1b 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/ReservedWordsLowLevel/reservedwordslowlevel/rest/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/ReservedWordsLowLevel/reservedwordslowlevel/rest/_request_builders.py @@ -10,9 +10,11 @@ from azure.core.rest import HttpRequest from msrest import Serializer +from .._vendor import _format_url_section + if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Dict, Optional, TypeVar + from typing import Any, Dict, List, Optional, TypeVar T = TypeVar("T") JSONType = Any @@ -205,3 +207,59 @@ def build_operation_with_files_param_request( headers=_header_parameters, **kwargs ) + + +def build_operation_with_url_request( + url, # type: str + **kwargs # type: Any +): + # type: (...) -> HttpRequest + """Operation with path format argument URL, header param headerParameters, and query param + queryParameters. + + See https://aka.ms/azsdk/python/protocol/quickstart for how to incorporate this request builder + into your code flow. + + :param url: Pass in 'foo'. + :type url: str + :keyword header_parameters: Header arg that uses same name as headerParameters in generated + code. Pass in 'x-ms-header' to pass. + :paramtype header_parameters: str + :keyword query_parameters: Query args that uses same name as queryParameters in generated code. + Pass in ['one', 'two'] to pass test. + :paramtype query_parameters: list[str] + :return: Returns an :class:`~azure.core.rest.HttpRequest` that you will pass to the client's + `send_request` method. See https://aka.ms/azsdk/python/protocol/quickstart for how to + incorporate this response into your code flow. + :rtype: ~azure.core.rest.HttpRequest + """ + + header_parameters = kwargs.pop('header_parameters') # type: str + query_parameters = kwargs.pop('query_parameters', None) # type: Optional[List[str]] + + accept = "application/json" + # Construct URL + _url = "/reservedWords/{url}" + path_format_arguments = { + "url": _SERIALIZER.url("url", url, 'str'), + } + + _url = _format_url_section(_url, **path_format_arguments) + + # Construct parameters + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + if query_parameters is not None: + _query_parameters['queryParameters'] = [_SERIALIZER.query("query_parameters", q, 'str') if q is not None else '' for q in query_parameters] + + # Construct headers + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['headerParameters'] = _SERIALIZER.header("header_parameters", header_parameters, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + + return HttpRequest( + method="PUT", + url=_url, + params=_query_parameters, + headers=_header_parameters, + **kwargs + ) diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/ReservedWordsLowLevel/reservedwordslowlevel/rest/_request_builders_py3.py b/test/vanilla/low-level/Expected/AcceptanceTests/ReservedWordsLowLevel/reservedwordslowlevel/rest/_request_builders_py3.py index 6838c4436be..259cf1e81f9 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/ReservedWordsLowLevel/reservedwordslowlevel/rest/_request_builders_py3.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/ReservedWordsLowLevel/reservedwordslowlevel/rest/_request_builders_py3.py @@ -5,11 +5,13 @@ # 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, Dict, Optional, TypeVar +from typing import Any, Dict, List, Optional, TypeVar from azure.core.rest import HttpRequest from msrest import Serializer +from .._vendor import _format_url_section + T = TypeVar("T") JSONType = Any @@ -174,3 +176,50 @@ def build_operation_with_files_param_request( _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") return HttpRequest(method="PUT", url=_url, headers=_header_parameters, files=files, content=content, **kwargs) + + +def build_operation_with_url_request( + url: str, *, header_parameters: str, query_parameters: Optional[List[str]] = None, **kwargs: Any +) -> HttpRequest: + """Operation with path format argument URL, header param headerParameters, and query param + queryParameters. + + See https://aka.ms/azsdk/python/protocol/quickstart for how to incorporate this request builder + into your code flow. + + :param url: Pass in 'foo'. + :type url: str + :keyword header_parameters: Header arg that uses same name as headerParameters in generated + code. Pass in 'x-ms-header' to pass. + :paramtype header_parameters: str + :keyword query_parameters: Query args that uses same name as queryParameters in generated code. + Pass in ['one', 'two'] to pass test. + :paramtype query_parameters: list[str] + :return: Returns an :class:`~azure.core.rest.HttpRequest` that you will pass to the client's + `send_request` method. See https://aka.ms/azsdk/python/protocol/quickstart for how to + incorporate this response into your code flow. + :rtype: ~azure.core.rest.HttpRequest + """ + + accept = "application/json" + # Construct URL + _url = "/reservedWords/{url}" + path_format_arguments = { + "url": _SERIALIZER.url("url", url, "str"), + } + + _url = _format_url_section(_url, **path_format_arguments) + + # Construct parameters + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + if query_parameters is not None: + _query_parameters["queryParameters"] = [ + _SERIALIZER.query("query_parameters", q, "str") if q is not None else "" for q in query_parameters + ] + + # Construct headers + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["headerParameters"] = _SERIALIZER.header("header_parameters", header_parameters, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="PUT", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) diff --git a/test/vanilla/version-tolerant/AcceptanceTests/asynctests/test_reserved_words.py b/test/vanilla/version-tolerant/AcceptanceTests/asynctests/test_reserved_words.py index 559f0303f96..2605b39a268 100644 --- a/test/vanilla/version-tolerant/AcceptanceTests/asynctests/test_reserved_words.py +++ b/test/vanilla/version-tolerant/AcceptanceTests/asynctests/test_reserved_words.py @@ -53,3 +53,7 @@ async def test_operation_with_files_param(client): "file_name": "my.txt", "files": b'bytes' }) + +@pytest.mark.asyncio +async def test_operation_with_url(client): + await client.operation_with_url("foo", header_parameters="x-ms-header", query_parameters=["one", "two"]) diff --git a/test/vanilla/version-tolerant/AcceptanceTests/test_reserved_words.py b/test/vanilla/version-tolerant/AcceptanceTests/test_reserved_words.py index 1f92f790fa0..870be2c1346 100644 --- a/test/vanilla/version-tolerant/AcceptanceTests/test_reserved_words.py +++ b/test/vanilla/version-tolerant/AcceptanceTests/test_reserved_words.py @@ -48,3 +48,6 @@ def test_operation_with_files_param(client): "file_name": "my.txt", "files": b'bytes' }) + +def test_operation_with_url(client): + client.operation_with_url("foo", header_parameters="x-ms-header", query_parameters=["one", "two"]) diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/ReservedWordsVersionTolerant/reservedwordsversiontolerant/_vendor.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/ReservedWordsVersionTolerant/reservedwordsversiontolerant/_vendor.py new file mode 100644 index 00000000000..54f238858ed --- /dev/null +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/ReservedWordsVersionTolerant/reservedwordsversiontolerant/_vendor.py @@ -0,0 +1,17 @@ +# -------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------- + + +def _format_url_section(template, **kwargs): + components = template.split("/") + while components: + try: + return template.format(**kwargs) + except KeyError as key: + formatted_components = template.split("/") + components = [c for c in formatted_components if "{}".format(key.args[0]) not in c] + template = "/".join(components) diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/ReservedWordsVersionTolerant/reservedwordsversiontolerant/aio/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/ReservedWordsVersionTolerant/reservedwordsversiontolerant/aio/operations/_operations.py index 211626ed4cc..e067abef3b3 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/ReservedWordsVersionTolerant/reservedwordsversiontolerant/aio/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/ReservedWordsVersionTolerant/reservedwordsversiontolerant/aio/operations/_operations.py @@ -6,7 +6,7 @@ # 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, IO, Optional, TypeVar +from typing import Any, Callable, Dict, IO, List, Optional, TypeVar from azure.core.exceptions import ( ClientAuthenticationError, @@ -26,6 +26,7 @@ build_operation_with_data_param_request, build_operation_with_files_param_request, build_operation_with_json_param_request, + build_operation_with_url_request, ) T = TypeVar("T") @@ -278,3 +279,52 @@ async def operation_with_files_param(self, files: Dict[str, Any], **kwargs: Any) return cls(pipeline_response, deserialized, {}) return deserialized + + @distributed_trace_async + async def operation_with_url( + self, url: str, *, header_parameters: str, query_parameters: Optional[List[str]] = None, **kwargs: Any + ) -> Any: + """Operation with path format argument URL, header param headerParameters, and query param + queryParameters. + + :param url: Pass in 'foo'. + :type url: str + :keyword header_parameters: Header arg that uses same name as headerParameters in generated + code. Pass in 'x-ms-header' to pass. + :paramtype header_parameters: str + :keyword query_parameters: Query args that uses same name as queryParameters in generated code. + Pass in ['one', 'two'] to pass test. + :paramtype query_parameters: list[str] + :return: any + :rtype: any + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop("cls", None) # type: ClsType[Any] + error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} + error_map.update(kwargs.pop("error_map", {})) + + request = build_operation_with_url_request( + url=url, + header_parameters=header_parameters, + query_parameters=query_parameters, + ) + request.url = self._client.format_url(request.url) + + pipeline_response = await self._client._pipeline.run( # pylint: disable=protected-access + 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) + + if response.content: + deserialized = response.json() + else: + deserialized = None + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/ReservedWordsVersionTolerant/reservedwordsversiontolerant/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/ReservedWordsVersionTolerant/reservedwordsversiontolerant/operations/_operations.py index da1450d00d7..c13e6618e4a 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/ReservedWordsVersionTolerant/reservedwordsversiontolerant/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/ReservedWordsVersionTolerant/reservedwordsversiontolerant/operations/_operations.py @@ -6,7 +6,7 @@ # 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, IO, Optional, TypeVar +from typing import Any, Callable, Dict, IO, List, Optional, TypeVar from azure.core.exceptions import ( ClientAuthenticationError, @@ -21,6 +21,8 @@ from azure.core.tracing.decorator import distributed_trace from msrest import Serializer +from .._vendor import _format_url_section + T = TypeVar("T") JSONType = Any ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -115,6 +117,33 @@ def build_operation_with_files_param_request( return HttpRequest(method="PUT", url=_url, headers=_header_parameters, files=files, content=content, **kwargs) +def build_operation_with_url_request( + url: str, *, header_parameters: str, query_parameters: Optional[List[str]] = None, **kwargs: Any +) -> HttpRequest: + accept = "application/json" + # Construct URL + _url = "/reservedWords/{url}" + path_format_arguments = { + "url": _SERIALIZER.url("url", url, "str"), + } + + _url = _format_url_section(_url, **path_format_arguments) + + # Construct parameters + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + if query_parameters is not None: + _query_parameters["queryParameters"] = [ + _SERIALIZER.query("query_parameters", q, "str") if q is not None else "" for q in query_parameters + ] + + # Construct headers + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters["headerParameters"] = _SERIALIZER.header("header_parameters", header_parameters, "str") + _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="PUT", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) + + class ImportOperations(object): """ImportOperations operations. @@ -360,3 +389,52 @@ def operation_with_files_param(self, files: Dict[str, Any], **kwargs: Any) -> An return cls(pipeline_response, deserialized, {}) return deserialized + + @distributed_trace + def operation_with_url( + self, url: str, *, header_parameters: str, query_parameters: Optional[List[str]] = None, **kwargs: Any + ) -> Any: + """Operation with path format argument URL, header param headerParameters, and query param + queryParameters. + + :param url: Pass in 'foo'. + :type url: str + :keyword header_parameters: Header arg that uses same name as headerParameters in generated + code. Pass in 'x-ms-header' to pass. + :paramtype header_parameters: str + :keyword query_parameters: Query args that uses same name as queryParameters in generated code. + Pass in ['one', 'two'] to pass test. + :paramtype query_parameters: list[str] + :return: any + :rtype: any + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop("cls", None) # type: ClsType[Any] + error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} + error_map.update(kwargs.pop("error_map", {})) + + request = build_operation_with_url_request( + url=url, + header_parameters=header_parameters, + query_parameters=query_parameters, + ) + request.url = self._client.format_url(request.url) + + pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access + 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) + + if response.content: + deserialized = response.json() + else: + deserialized = None + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized From ca3aefed39568ab979d4c23262822d33f1c794a5 Mon Sep 17 00:00:00 2001 From: iscai-msft Date: Tue, 8 Feb 2022 17:16:05 -0500 Subject: [PATCH 5/6] regen with swagger update --- .../operations/_reserved_words_client_operations.py | 2 +- .../reservedwordslowlevel/rest/_request_builders.py | 2 +- .../reservedwordslowlevel/rest/_request_builders_py3.py | 2 +- .../reservedwordsversiontolerant/operations/_operations.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/ReservedWords/reservedwords/operations/_reserved_words_client_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/ReservedWords/reservedwords/operations/_reserved_words_client_operations.py index 327a0dce2e3..88b2786dc02 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/ReservedWords/reservedwords/operations/_reserved_words_client_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/ReservedWords/reservedwords/operations/_reserved_words_client_operations.py @@ -159,7 +159,7 @@ def build_operation_with_url_request( _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( - method="PUT", + method="GET", url=_url, params=_query_parameters, headers=_header_parameters, diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/ReservedWordsLowLevel/reservedwordslowlevel/rest/_request_builders.py b/test/vanilla/low-level/Expected/AcceptanceTests/ReservedWordsLowLevel/reservedwordslowlevel/rest/_request_builders.py index 4d2a1a99b1b..2ee0a420259 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/ReservedWordsLowLevel/reservedwordslowlevel/rest/_request_builders.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/ReservedWordsLowLevel/reservedwordslowlevel/rest/_request_builders.py @@ -257,7 +257,7 @@ def build_operation_with_url_request( _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( - method="PUT", + method="GET", url=_url, params=_query_parameters, headers=_header_parameters, diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/ReservedWordsLowLevel/reservedwordslowlevel/rest/_request_builders_py3.py b/test/vanilla/low-level/Expected/AcceptanceTests/ReservedWordsLowLevel/reservedwordslowlevel/rest/_request_builders_py3.py index 259cf1e81f9..0bb0d2c80f5 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/ReservedWordsLowLevel/reservedwordslowlevel/rest/_request_builders_py3.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/ReservedWordsLowLevel/reservedwordslowlevel/rest/_request_builders_py3.py @@ -222,4 +222,4 @@ def build_operation_with_url_request( _header_parameters["headerParameters"] = _SERIALIZER.header("header_parameters", header_parameters, "str") _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/ReservedWordsVersionTolerant/reservedwordsversiontolerant/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/ReservedWordsVersionTolerant/reservedwordsversiontolerant/operations/_operations.py index c13e6618e4a..098a62bb506 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/ReservedWordsVersionTolerant/reservedwordsversiontolerant/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/ReservedWordsVersionTolerant/reservedwordsversiontolerant/operations/_operations.py @@ -141,7 +141,7 @@ def build_operation_with_url_request( _header_parameters["headerParameters"] = _SERIALIZER.header("header_parameters", header_parameters, "str") _header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="PUT", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) + return HttpRequest(method="GET", url=_url, params=_query_parameters, headers=_header_parameters, **kwargs) class ImportOperations(object): From abe831eb7f5971515a2dbb3ee85a8d5237f359dc Mon Sep 17 00:00:00 2001 From: iscai-msft Date: Tue, 8 Feb 2022 17:17:03 -0500 Subject: [PATCH 6/6] bump testserver version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 3c2ea342ef7..a5c8e70c336 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ "@azure-tools/extension": "~3.2.1" }, "devDependencies": { - "@microsoft.azure/autorest.testserver": "^3.1.11" + "@microsoft.azure/autorest.testserver": "^3.1.13" }, "files": [ "autorest/**/*.py",