From 81573fa12939c70ffbf9fa03d611d05e22d74ded Mon Sep 17 00:00:00 2001 From: iscai-msft Date: Thu, 27 Jan 2022 16:50:19 -0500 Subject: [PATCH 1/2] regen llc --- .../_auto_rest_duration_test_service.py | 2 +- .../bodydurationlowlevel/_configuration.py | 2 +- .../aio/_auto_rest_duration_test_service.py | 2 +- .../aio/_configuration.py | 2 +- .../rest/duration/_request_builders.py | 1 - .../rest/duration/_request_builders_py3.py | 1 - ...to_rest_parameter_grouping_test_service.py | 2 +- .../_configuration.py | 2 +- ...to_rest_parameter_grouping_test_service.py | 2 +- .../aio/_configuration.py | 2 +- .../_auto_rest_report_service_for_azure.py | 2 +- .../azurereportlowlevel/_configuration.py | 2 +- .../_auto_rest_report_service_for_azure.py | 2 +- .../azurereportlowlevel/aio/_configuration.py | 2 +- ...st_azure_special_parameters_test_client.py | 2 +- .../_configuration.py | 10 +- ...st_azure_special_parameters_test_client.py | 2 +- .../aio/_configuration.py | 10 +- .../custombaseurllowlevel/_configuration.py | 2 +- .../aio/_configuration.py | 2 +- .../_configuration.py | 4 +- .../aio/_configuration.py | 4 +- .../_auto_rest_head_exception_test_service.py | 2 +- .../headexceptionslowlevel/_configuration.py | 2 +- .../_auto_rest_head_exception_test_service.py | 2 +- .../aio/_configuration.py | 2 +- .../_auto_rest_head_test_service.py | 2 +- .../headlowlevel/_configuration.py | 2 +- .../aio/_auto_rest_head_test_service.py | 2 +- .../headlowlevel/aio/_configuration.py | 2 +- ...est_long_running_operation_test_service.py | 2 +- .../LroLowLevel/lrolowlevel/_configuration.py | 4 +- ...est_long_running_operation_test_service.py | 2 +- .../lrolowlevel/aio/_configuration.py | 4 +- .../lr_os_custom_header/_request_builders.py | 42 +- .../_request_builders_py3.py | 42 +- .../rest/lro_retrys/_request_builders.py | 49 ++- .../rest/lro_retrys/_request_builders_py3.py | 49 ++- .../rest/lros/_request_builders.py | 380 +++++++++++++----- .../rest/lros/_request_builders_py3.py | 380 +++++++++++++----- .../rest/lrosads/_request_builders.py | 196 ++++++--- .../rest/lrosads/_request_builders_py3.py | 196 ++++++--- .../_configuration.py | 5 +- .../aio/_configuration.py | 5 +- .../_auto_rest_paging_test_service.py | 2 +- .../paginglowlevel/_configuration.py | 2 +- .../aio/_auto_rest_paging_test_service.py | 2 +- .../paginglowlevel/aio/_configuration.py | 2 +- .../storagelowlevel/_configuration.py | 8 +- .../_storage_management_client.py | 2 +- .../storagelowlevel/aio/_configuration.py | 8 +- .../aio/_storage_management_client.py | 2 +- .../storage_accounts/_request_builders.py | 299 ++++++++++---- .../storage_accounts/_request_builders_py3.py | 297 ++++++++++---- .../rest/usage/_request_builders.py | 16 +- .../rest/usage/_request_builders_py3.py | 16 +- .../_configuration.py | 5 +- .../_microsoft_azure_test_url.py | 2 +- .../aio/_configuration.py | 5 +- .../aio/_microsoft_azure_test_url.py | 2 +- .../_configuration.py | 2 +- .../_llc_client.py | 2 +- .../aio/_configuration.py | 2 +- .../aio/_llc_client.py | 2 +- .../rest/params/_request_builders.py | 2 +- .../_configuration.py | 2 +- .../_llc_client.py | 2 +- .../aio/_configuration.py | 2 +- .../aio/_llc_client.py | 2 +- .../rest/params/_request_builders.py | 2 +- .../rest/params/_request_builders_py3.py | 2 +- .../_additional_properties_client.py | 2 +- .../_configuration.py | 2 +- .../aio/_additional_properties_client.py | 2 +- .../aio/_configuration.py | 2 +- .../rest/pets/_request_builders.py | 28 +- .../anythinglowlevel/_anything_client.py | 5 +- .../anythinglowlevel/_configuration.py | 2 +- .../anythinglowlevel/aio/_anything_client.py | 5 +- .../anythinglowlevel/aio/_configuration.py | 2 +- .../_auto_rest_swagger_bat_array_service.py | 2 +- .../bodyarraylowlevel/_configuration.py | 2 +- .../_auto_rest_swagger_bat_array_service.py | 2 +- .../bodyarraylowlevel/aio/_configuration.py | 2 +- .../rest/array/_request_builders.py | 3 +- .../rest/array/_request_builders_py3.py | 3 +- .../_binarywithcontent_typeapplicationjson.py | 2 +- .../bodybinarylowlevel/_configuration.py | 2 +- .../_binarywithcontent_typeapplicationjson.py | 2 +- .../bodybinarylowlevel/aio/_configuration.py | 2 +- .../rest/upload/_request_builders.py | 2 +- .../rest/upload/_request_builders_py3.py | 2 +- .../_auto_rest_bool_test_service.py | 2 +- .../bodybooleanlowlevel/_configuration.py | 2 +- .../aio/_auto_rest_bool_test_service.py | 2 +- .../bodybooleanlowlevel/aio/_configuration.py | 2 +- .../_auto_rest_swagger_bat_byte_service.py | 2 +- .../bodybytelowlevel/_configuration.py | 2 +- .../_auto_rest_swagger_bat_byte_service.py | 2 +- .../bodybytelowlevel/aio/_configuration.py | 2 +- .../_auto_rest_complex_test_service.py | 2 +- .../bodycomplexlowlevel/_configuration.py | 5 +- .../aio/_auto_rest_complex_test_service.py | 2 +- .../bodycomplexlowlevel/aio/_configuration.py | 5 +- .../rest/basic/_request_builders.py | 36 +- .../rest/basic/_request_builders_py3.py | 36 +- .../polymorphicrecursive/_request_builders.py | 4 +- .../rest/polymorphism/_request_builders.py | 22 +- .../rest/primitive/_request_builders.py | 6 +- .../rest/primitive/_request_builders_py3.py | 6 +- .../_auto_rest_date_test_service.py | 2 +- .../bodydatelowlevel/_configuration.py | 2 +- .../aio/_auto_rest_date_test_service.py | 2 +- .../bodydatelowlevel/aio/_configuration.py | 2 +- .../rest/date/_request_builders.py | 1 - .../rest/date/_request_builders_py3.py | 1 - .../_auto_rest_date_time_test_service.py | 2 +- .../bodydatetimelowlevel/_configuration.py | 2 +- .../aio/_auto_rest_date_time_test_service.py | 2 +- .../aio/_configuration.py | 2 +- .../rest/datetime/_request_builders.py | 1 - .../rest/datetime/_request_builders_py3.py | 1 - ...uto_rest_rfc1123_date_time_test_service.py | 2 +- .../_configuration.py | 2 +- ...uto_rest_rfc1123_date_time_test_service.py | 2 +- .../aio/_configuration.py | 2 +- .../rest/datetimerfc1123/_request_builders.py | 1 - .../datetimerfc1123/_request_builders_py3.py | 1 - ...uto_rest_swagger_ba_tdictionary_service.py | 2 +- .../bodydictionarylowlevel/_configuration.py | 2 +- ...uto_rest_swagger_ba_tdictionary_service.py | 2 +- .../aio/_configuration.py | 2 +- .../rest/dictionary/_request_builders.py | 3 +- .../rest/dictionary/_request_builders_py3.py | 3 +- .../_auto_rest_duration_test_service.py | 2 +- .../bodydurationlowlevel/_configuration.py | 2 +- .../aio/_auto_rest_duration_test_service.py | 2 +- .../aio/_configuration.py | 2 +- .../rest/duration/_request_builders.py | 1 - .../rest/duration/_request_builders_py3.py | 1 - .../_auto_rest_swagger_bat_file_service.py | 2 +- .../bodyfilelowlevel/_configuration.py | 2 +- .../_auto_rest_swagger_bat_file_service.py | 2 +- .../bodyfilelowlevel/aio/_configuration.py | 2 +- ...auto_rest_swagger_bat_form_data_service.py | 2 +- .../bodyformdatalowlevel/_configuration.py | 2 +- ...auto_rest_swagger_bat_form_data_service.py | 2 +- .../aio/_configuration.py | 2 +- .../rest/formdata/_request_builders.py | 5 +- .../rest/formdata/_request_builders_py3.py | 5 +- .../_body_forms_data_url_encoded.py | 2 +- .../_configuration.py | 2 +- .../aio/_body_forms_data_url_encoded.py | 2 +- .../aio/_configuration.py | 2 +- .../formdataurlencoded/_request_builders.py | 13 +- .../_request_builders_py3.py | 13 +- .../_auto_rest_integer_test_service.py | 2 +- .../bodyintegerlowlevel/_configuration.py | 2 +- .../aio/_auto_rest_integer_test_service.py | 2 +- .../bodyintegerlowlevel/aio/_configuration.py | 2 +- .../rest/int/_request_builders.py | 1 - .../rest/int/_request_builders_py3.py | 1 - .../_auto_rest_number_test_service.py | 2 +- .../bodynumberlowlevel/_configuration.py | 2 +- .../aio/_auto_rest_number_test_service.py | 2 +- .../bodynumberlowlevel/aio/_configuration.py | 2 +- .../_auto_rest_swagger_bat_service.py | 2 +- .../bodystringlowlevel/_configuration.py | 2 +- .../aio/_auto_rest_swagger_bat_service.py | 2 +- .../bodystringlowlevel/aio/_configuration.py | 2 +- .../rest/enum/_request_builders.py | 6 +- .../rest/enum/_request_builders_py3.py | 6 +- .../_auto_rest_time_test_service.py | 2 +- .../bodytimelowlevel/_configuration.py | 2 +- .../aio/_auto_rest_time_test_service.py | 2 +- .../bodytimelowlevel/aio/_configuration.py | 2 +- .../rest/time/_request_builders.py | 1 - .../rest/time/_request_builders_py3.py | 1 - .../_auto_rest_swagger_constant_service.py | 2 +- .../constantslowlevel/_configuration.py | 14 +- .../_auto_rest_swagger_constant_service.py | 2 +- .../constantslowlevel/aio/_configuration.py | 14 +- .../custombaseurllowlevel/_configuration.py | 2 +- .../aio/_configuration.py | 2 +- .../_configuration.py | 7 +- .../aio/_configuration.py | 7 +- .../_configuration.py | 2 +- .../_pet_store_inc.py | 2 +- .../aio/_configuration.py | 2 +- .../aio/_pet_store_inc.py | 2 +- .../rest/pet/_request_builders.py | 12 +- .../rest/pet/_request_builders_py3.py | 12 +- .../_auto_rest_swagger_bat_header_service.py | 2 +- .../headerlowlevel/_configuration.py | 2 +- .../_auto_rest_swagger_bat_header_service.py | 2 +- .../headerlowlevel/aio/_configuration.py | 2 +- ...o_rest_http_infrastructure_test_service.py | 2 +- .../_configuration.py | 2 +- ...o_rest_http_infrastructure_test_service.py | 2 +- .../aio/_configuration.py | 2 +- .../_configuration.py | 2 +- .../_incorrect_returned_error_model.py | 5 +- .../aio/_configuration.py | 2 +- .../aio/_incorrect_returned_error_model.py | 5 +- .../mediatypeslowlevel/_configuration.py | 2 +- .../mediatypeslowlevel/_media_types_client.py | 2 +- .../mediatypeslowlevel/aio/_configuration.py | 2 +- .../aio/_media_types_client.py | 2 +- .../rest/_request_builders.py | 2 +- .../rest/_request_builders_py3.py | 2 +- .../mergepatchjsonlowlevel/_configuration.py | 2 +- .../_merge_patch_json_client.py | 2 +- .../aio/_configuration.py | 2 +- .../aio/_merge_patch_json_client.py | 2 +- ...o_rest_resource_flattening_test_service.py | 2 +- .../modelflatteninglowlevel/_configuration.py | 2 +- ...o_rest_resource_flattening_test_service.py | 2 +- .../aio/_configuration.py | 2 +- .../rest/_request_builders.py | 155 +++++-- .../rest/_request_builders_py3.py | 155 +++++-- .../_configuration.py | 2 +- .../_multiple_inheritance_service_client.py | 2 +- .../aio/_configuration.py | 2 +- .../_multiple_inheritance_service_client.py | 2 +- .../rest/_request_builders.py | 16 +- .../nonstringenumslowlevel/_configuration.py | 2 +- .../_non_string_enums_client.py | 2 +- .../aio/_configuration.py | 2 +- .../aio/_non_string_enums_client.py | 2 +- .../objecttypelowlevel/_configuration.py | 2 +- .../objecttypelowlevel/_object_type_client.py | 2 +- .../objecttypelowlevel/aio/_configuration.py | 2 +- .../aio/_object_type_client.py | 2 +- .../_auto_rest_parameter_flattening.py | 2 +- .../_configuration.py | 2 +- .../aio/_auto_rest_parameter_flattening.py | 2 +- .../aio/_configuration.py | 2 +- .../availability_sets/_request_builders.py | 3 +- .../_request_builders_py3.py | 3 +- .../_configuration.py | 2 +- .../_parmaterized_endpoint_client.py | 2 +- .../aio/_configuration.py | 2 +- .../aio/_parmaterized_endpoint_client.py | 2 +- .../_auto_rest_report_service.py | 2 +- .../reportlowlevel/_configuration.py | 2 +- .../aio/_auto_rest_report_service.py | 2 +- .../reportlowlevel/aio/_configuration.py | 2 +- .../_configuration.py | 2 +- .../aio/_configuration.py | 2 +- .../rest/explicit/_request_builders.py | 18 +- .../rest/explicit/_request_builders_py3.py | 2 +- .../rest/implicit/_request_builders.py | 2 +- .../rest/implicit/_request_builders_py3.py | 2 +- .../reservedwordslowlevel/_configuration.py | 2 +- .../_reserved_words_client.py | 2 +- .../aio/_configuration.py | 2 +- .../aio/_reserved_words_client.py | 2 +- .../rest/_request_builders.py | 2 +- .../rest/_request_builders_py3.py | 2 +- .../UrlLowLevel/urllowlevel/_configuration.py | 2 +- .../urllowlevel/aio/_configuration.py | 2 +- .../rest/path_items/_request_builders.py | 8 +- .../rest/path_items/_request_builders_py3.py | 8 +- ...rl_mutli_collection_format_test_service.py | 2 +- .../_configuration.py | 4 +- ...rl_mutli_collection_format_test_service.py | 2 +- .../aio/_configuration.py | 4 +- .../_auto_rest_validation_test.py | 2 +- .../validationlowlevel/_configuration.py | 5 +- .../aio/_auto_rest_validation_test.py | 2 +- .../validationlowlevel/aio/_configuration.py | 5 +- .../rest/_request_builders.py | 95 +++-- .../rest/_request_builders_py3.py | 95 +++-- .../_auto_rest_swagger_batxml_service.py | 2 +- .../xmlservicelowlevel/_configuration.py | 2 +- .../aio/_auto_rest_swagger_batxml_service.py | 2 +- .../xmlservicelowlevel/aio/_configuration.py | 2 +- .../rest/xml/_request_builders.py | 244 +++++++---- .../rest/xml/_request_builders_py3.py | 208 +++++++--- .../_configuration.py | 2 +- .../_xms_error_response_extensions.py | 2 +- .../aio/_configuration.py | 2 +- .../aio/_xms_error_response_extensions.py | 2 +- 283 files changed, 2541 insertions(+), 1227 deletions(-) diff --git a/test/azure/low-level/Expected/AcceptanceTests/AzureBodyDurationLowLevel/bodydurationlowlevel/_auto_rest_duration_test_service.py b/test/azure/low-level/Expected/AcceptanceTests/AzureBodyDurationLowLevel/bodydurationlowlevel/_auto_rest_duration_test_service.py index 27b3e462369..014f8173a52 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/AzureBodyDurationLowLevel/bodydurationlowlevel/_auto_rest_duration_test_service.py +++ b/test/azure/low-level/Expected/AcceptanceTests/AzureBodyDurationLowLevel/bodydurationlowlevel/_auto_rest_duration_test_service.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Optional, TYPE_CHECKING +from typing import Any, TYPE_CHECKING from azure.core import PipelineClient from azure.core.rest import HttpRequest, HttpResponse diff --git a/test/azure/low-level/Expected/AcceptanceTests/AzureBodyDurationLowLevel/bodydurationlowlevel/_configuration.py b/test/azure/low-level/Expected/AcceptanceTests/AzureBodyDurationLowLevel/bodydurationlowlevel/_configuration.py index eebf56f42f2..d3e575e957c 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/AzureBodyDurationLowLevel/bodydurationlowlevel/_configuration.py +++ b/test/azure/low-level/Expected/AcceptanceTests/AzureBodyDurationLowLevel/bodydurationlowlevel/_configuration.py @@ -14,7 +14,7 @@ from ._version import VERSION -class AutoRestDurationTestServiceConfiguration(Configuration): +class AutoRestDurationTestServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestDurationTestService. Note that all parameters used to create this instance are saved as instance diff --git a/test/azure/low-level/Expected/AcceptanceTests/AzureBodyDurationLowLevel/bodydurationlowlevel/aio/_auto_rest_duration_test_service.py b/test/azure/low-level/Expected/AcceptanceTests/AzureBodyDurationLowLevel/bodydurationlowlevel/aio/_auto_rest_duration_test_service.py index d53c6fcfd31..704cb9d629c 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/AzureBodyDurationLowLevel/bodydurationlowlevel/aio/_auto_rest_duration_test_service.py +++ b/test/azure/low-level/Expected/AcceptanceTests/AzureBodyDurationLowLevel/bodydurationlowlevel/aio/_auto_rest_duration_test_service.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional, TYPE_CHECKING +from typing import Any, Awaitable, TYPE_CHECKING from azure.core import AsyncPipelineClient from azure.core.rest import AsyncHttpResponse, HttpRequest diff --git a/test/azure/low-level/Expected/AcceptanceTests/AzureBodyDurationLowLevel/bodydurationlowlevel/aio/_configuration.py b/test/azure/low-level/Expected/AcceptanceTests/AzureBodyDurationLowLevel/bodydurationlowlevel/aio/_configuration.py index f7cece514e6..029a04192bc 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/AzureBodyDurationLowLevel/bodydurationlowlevel/aio/_configuration.py +++ b/test/azure/low-level/Expected/AcceptanceTests/AzureBodyDurationLowLevel/bodydurationlowlevel/aio/_configuration.py @@ -14,7 +14,7 @@ from .._version import VERSION -class AutoRestDurationTestServiceConfiguration(Configuration): +class AutoRestDurationTestServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestDurationTestService. Note that all parameters used to create this instance are saved as instance 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 f3a13712c8e..396abf38448 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 @@ -5,7 +5,6 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import datetime from typing import TYPE_CHECKING from azure.core.rest import HttpRequest 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 3ed698a6462..83a739a799c 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 @@ -5,7 +5,6 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import datetime from typing import Any, Dict, Optional, TypeVar from azure.core.rest import HttpRequest diff --git a/test/azure/low-level/Expected/AcceptanceTests/AzureParameterGroupingLowLevel/azureparametergroupinglowlevel/_auto_rest_parameter_grouping_test_service.py b/test/azure/low-level/Expected/AcceptanceTests/AzureParameterGroupingLowLevel/azureparametergroupinglowlevel/_auto_rest_parameter_grouping_test_service.py index aef89a7a20c..18b76153742 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/AzureParameterGroupingLowLevel/azureparametergroupinglowlevel/_auto_rest_parameter_grouping_test_service.py +++ b/test/azure/low-level/Expected/AcceptanceTests/AzureParameterGroupingLowLevel/azureparametergroupinglowlevel/_auto_rest_parameter_grouping_test_service.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Optional, TYPE_CHECKING +from typing import Any, TYPE_CHECKING from azure.core import PipelineClient from azure.core.rest import HttpRequest, HttpResponse diff --git a/test/azure/low-level/Expected/AcceptanceTests/AzureParameterGroupingLowLevel/azureparametergroupinglowlevel/_configuration.py b/test/azure/low-level/Expected/AcceptanceTests/AzureParameterGroupingLowLevel/azureparametergroupinglowlevel/_configuration.py index 80ae620b743..c623295dd8c 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/AzureParameterGroupingLowLevel/azureparametergroupinglowlevel/_configuration.py +++ b/test/azure/low-level/Expected/AcceptanceTests/AzureParameterGroupingLowLevel/azureparametergroupinglowlevel/_configuration.py @@ -14,7 +14,7 @@ from ._version import VERSION -class AutoRestParameterGroupingTestServiceConfiguration(Configuration): +class AutoRestParameterGroupingTestServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestParameterGroupingTestService. Note that all parameters used to create this instance are saved as instance diff --git a/test/azure/low-level/Expected/AcceptanceTests/AzureParameterGroupingLowLevel/azureparametergroupinglowlevel/aio/_auto_rest_parameter_grouping_test_service.py b/test/azure/low-level/Expected/AcceptanceTests/AzureParameterGroupingLowLevel/azureparametergroupinglowlevel/aio/_auto_rest_parameter_grouping_test_service.py index 035436c9db4..f5f799580f9 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/AzureParameterGroupingLowLevel/azureparametergroupinglowlevel/aio/_auto_rest_parameter_grouping_test_service.py +++ b/test/azure/low-level/Expected/AcceptanceTests/AzureParameterGroupingLowLevel/azureparametergroupinglowlevel/aio/_auto_rest_parameter_grouping_test_service.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional, TYPE_CHECKING +from typing import Any, Awaitable, TYPE_CHECKING from azure.core import AsyncPipelineClient from azure.core.rest import AsyncHttpResponse, HttpRequest diff --git a/test/azure/low-level/Expected/AcceptanceTests/AzureParameterGroupingLowLevel/azureparametergroupinglowlevel/aio/_configuration.py b/test/azure/low-level/Expected/AcceptanceTests/AzureParameterGroupingLowLevel/azureparametergroupinglowlevel/aio/_configuration.py index 41cfe947cb7..86d1c745c39 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/AzureParameterGroupingLowLevel/azureparametergroupinglowlevel/aio/_configuration.py +++ b/test/azure/low-level/Expected/AcceptanceTests/AzureParameterGroupingLowLevel/azureparametergroupinglowlevel/aio/_configuration.py @@ -14,7 +14,7 @@ from .._version import VERSION -class AutoRestParameterGroupingTestServiceConfiguration(Configuration): +class AutoRestParameterGroupingTestServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestParameterGroupingTestService. Note that all parameters used to create this instance are saved as instance diff --git a/test/azure/low-level/Expected/AcceptanceTests/AzureReportLowLevel/azurereportlowlevel/_auto_rest_report_service_for_azure.py b/test/azure/low-level/Expected/AcceptanceTests/AzureReportLowLevel/azurereportlowlevel/_auto_rest_report_service_for_azure.py index 0a8258c1830..290d1a499a4 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/AzureReportLowLevel/azurereportlowlevel/_auto_rest_report_service_for_azure.py +++ b/test/azure/low-level/Expected/AcceptanceTests/AzureReportLowLevel/azurereportlowlevel/_auto_rest_report_service_for_azure.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Optional, TYPE_CHECKING +from typing import Any, TYPE_CHECKING from azure.core import PipelineClient from azure.core.rest import HttpRequest, HttpResponse diff --git a/test/azure/low-level/Expected/AcceptanceTests/AzureReportLowLevel/azurereportlowlevel/_configuration.py b/test/azure/low-level/Expected/AcceptanceTests/AzureReportLowLevel/azurereportlowlevel/_configuration.py index 6f9c38083eb..ca4c15656d6 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/AzureReportLowLevel/azurereportlowlevel/_configuration.py +++ b/test/azure/low-level/Expected/AcceptanceTests/AzureReportLowLevel/azurereportlowlevel/_configuration.py @@ -14,7 +14,7 @@ from ._version import VERSION -class AutoRestReportServiceForAzureConfiguration(Configuration): +class AutoRestReportServiceForAzureConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestReportServiceForAzure. Note that all parameters used to create this instance are saved as instance diff --git a/test/azure/low-level/Expected/AcceptanceTests/AzureReportLowLevel/azurereportlowlevel/aio/_auto_rest_report_service_for_azure.py b/test/azure/low-level/Expected/AcceptanceTests/AzureReportLowLevel/azurereportlowlevel/aio/_auto_rest_report_service_for_azure.py index 7ce34075c56..837a7708847 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/AzureReportLowLevel/azurereportlowlevel/aio/_auto_rest_report_service_for_azure.py +++ b/test/azure/low-level/Expected/AcceptanceTests/AzureReportLowLevel/azurereportlowlevel/aio/_auto_rest_report_service_for_azure.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional, TYPE_CHECKING +from typing import Any, Awaitable, TYPE_CHECKING from azure.core import AsyncPipelineClient from azure.core.rest import AsyncHttpResponse, HttpRequest diff --git a/test/azure/low-level/Expected/AcceptanceTests/AzureReportLowLevel/azurereportlowlevel/aio/_configuration.py b/test/azure/low-level/Expected/AcceptanceTests/AzureReportLowLevel/azurereportlowlevel/aio/_configuration.py index 0a75f8ad29c..d5789eafc0d 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/AzureReportLowLevel/azurereportlowlevel/aio/_configuration.py +++ b/test/azure/low-level/Expected/AcceptanceTests/AzureReportLowLevel/azurereportlowlevel/aio/_configuration.py @@ -14,7 +14,7 @@ from .._version import VERSION -class AutoRestReportServiceForAzureConfiguration(Configuration): +class AutoRestReportServiceForAzureConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestReportServiceForAzure. Note that all parameters used to create this instance are saved as instance diff --git a/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/_auto_rest_azure_special_parameters_test_client.py b/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/_auto_rest_azure_special_parameters_test_client.py index 2d808d6e40a..8ccfb27e352 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/_auto_rest_azure_special_parameters_test_client.py +++ b/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/_auto_rest_azure_special_parameters_test_client.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Optional, TYPE_CHECKING +from typing import Any, TYPE_CHECKING from azure.core.rest import HttpRequest, HttpResponse from azure.mgmt.core import ARMPipelineClient diff --git a/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/_configuration.py b/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/_configuration.py index 1a7d16bb1f6..2bc6b72d724 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/_configuration.py +++ b/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/_configuration.py @@ -19,17 +19,21 @@ from azure.core.credentials import TokenCredential -class AutoRestAzureSpecialParametersTestClientConfiguration(Configuration): +class AutoRestAzureSpecialParametersTestClientConfiguration( + Configuration +): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestAzureSpecialParametersTestClient. Note that all parameters used to create this instance are saved as instance attributes. - :param subscription_id: The subscription id, which appears in the path, always modeled in credentials. The value is always '1234-5678-9012-3456'. + :param subscription_id: The subscription id, which appears in the path, always modeled in + credentials. The value is always '1234-5678-9012-3456'. :type subscription_id: str :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials.TokenCredential - :keyword api_version: Api Version. The default value is "2015-07-01-preview". Note that overriding this default value may result in unsupported behavior. + :keyword api_version: Api Version. The default value is "2015-07-01-preview". Note that + overriding this default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/aio/_auto_rest_azure_special_parameters_test_client.py b/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/aio/_auto_rest_azure_special_parameters_test_client.py index 8dc484edcaf..7eb254fda5a 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/aio/_auto_rest_azure_special_parameters_test_client.py +++ b/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/aio/_auto_rest_azure_special_parameters_test_client.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional, TYPE_CHECKING +from typing import Any, Awaitable, TYPE_CHECKING from azure.core.rest import AsyncHttpResponse, HttpRequest from azure.mgmt.core import AsyncARMPipelineClient diff --git a/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/aio/_configuration.py b/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/aio/_configuration.py index aa7af6a3ba8..28b8bc89697 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/aio/_configuration.py +++ b/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/azurespecialpropertieslowlevel/aio/_configuration.py @@ -19,17 +19,21 @@ from azure.core.credentials_async import AsyncTokenCredential -class AutoRestAzureSpecialParametersTestClientConfiguration(Configuration): +class AutoRestAzureSpecialParametersTestClientConfiguration( + Configuration +): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestAzureSpecialParametersTestClient. Note that all parameters used to create this instance are saved as instance attributes. - :param subscription_id: The subscription id, which appears in the path, always modeled in credentials. The value is always '1234-5678-9012-3456'. + :param subscription_id: The subscription id, which appears in the path, always modeled in + credentials. The value is always '1234-5678-9012-3456'. :type subscription_id: str :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials_async.AsyncTokenCredential - :keyword api_version: Api Version. The default value is "2015-07-01-preview". Note that overriding this default value may result in unsupported behavior. + :keyword api_version: Api Version. The default value is "2015-07-01-preview". Note that + overriding this default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/test/azure/low-level/Expected/AcceptanceTests/CustomBaseUriLowLevel/custombaseurllowlevel/_configuration.py b/test/azure/low-level/Expected/AcceptanceTests/CustomBaseUriLowLevel/custombaseurllowlevel/_configuration.py index 128274f962d..8d1336c7464 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/CustomBaseUriLowLevel/custombaseurllowlevel/_configuration.py +++ b/test/azure/low-level/Expected/AcceptanceTests/CustomBaseUriLowLevel/custombaseurllowlevel/_configuration.py @@ -14,7 +14,7 @@ from ._version import VERSION -class AutoRestParameterizedHostTestClientConfiguration(Configuration): +class AutoRestParameterizedHostTestClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestParameterizedHostTestClient. Note that all parameters used to create this instance are saved as instance diff --git a/test/azure/low-level/Expected/AcceptanceTests/CustomBaseUriLowLevel/custombaseurllowlevel/aio/_configuration.py b/test/azure/low-level/Expected/AcceptanceTests/CustomBaseUriLowLevel/custombaseurllowlevel/aio/_configuration.py index cf7cbb01aaf..54699ce96b9 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/CustomBaseUriLowLevel/custombaseurllowlevel/aio/_configuration.py +++ b/test/azure/low-level/Expected/AcceptanceTests/CustomBaseUriLowLevel/custombaseurllowlevel/aio/_configuration.py @@ -14,7 +14,7 @@ from .._version import VERSION -class AutoRestParameterizedHostTestClientConfiguration(Configuration): +class AutoRestParameterizedHostTestClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestParameterizedHostTestClient. Note that all parameters used to create this instance are saved as instance diff --git a/test/azure/low-level/Expected/AcceptanceTests/CustomUrlPagingLowLevel/custombaseurlpaginglowlevel/_configuration.py b/test/azure/low-level/Expected/AcceptanceTests/CustomUrlPagingLowLevel/custombaseurlpaginglowlevel/_configuration.py index 55c5481b291..732afe7bb50 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/CustomUrlPagingLowLevel/custombaseurlpaginglowlevel/_configuration.py +++ b/test/azure/low-level/Expected/AcceptanceTests/CustomUrlPagingLowLevel/custombaseurlpaginglowlevel/_configuration.py @@ -14,7 +14,9 @@ from ._version import VERSION -class AutoRestParameterizedHostTestPagingClientConfiguration(Configuration): +class AutoRestParameterizedHostTestPagingClientConfiguration( + Configuration +): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestParameterizedHostTestPagingClient. Note that all parameters used to create this instance are saved as instance diff --git a/test/azure/low-level/Expected/AcceptanceTests/CustomUrlPagingLowLevel/custombaseurlpaginglowlevel/aio/_configuration.py b/test/azure/low-level/Expected/AcceptanceTests/CustomUrlPagingLowLevel/custombaseurlpaginglowlevel/aio/_configuration.py index 6e56dacdfc7..70d4ecdd326 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/CustomUrlPagingLowLevel/custombaseurlpaginglowlevel/aio/_configuration.py +++ b/test/azure/low-level/Expected/AcceptanceTests/CustomUrlPagingLowLevel/custombaseurlpaginglowlevel/aio/_configuration.py @@ -14,7 +14,9 @@ from .._version import VERSION -class AutoRestParameterizedHostTestPagingClientConfiguration(Configuration): +class AutoRestParameterizedHostTestPagingClientConfiguration( + Configuration +): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestParameterizedHostTestPagingClient. Note that all parameters used to create this instance are saved as instance diff --git a/test/azure/low-level/Expected/AcceptanceTests/HeadExceptionsLowLevel/headexceptionslowlevel/_auto_rest_head_exception_test_service.py b/test/azure/low-level/Expected/AcceptanceTests/HeadExceptionsLowLevel/headexceptionslowlevel/_auto_rest_head_exception_test_service.py index 11339939b50..7dba446cf97 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/HeadExceptionsLowLevel/headexceptionslowlevel/_auto_rest_head_exception_test_service.py +++ b/test/azure/low-level/Expected/AcceptanceTests/HeadExceptionsLowLevel/headexceptionslowlevel/_auto_rest_head_exception_test_service.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Optional, TYPE_CHECKING +from typing import Any, TYPE_CHECKING from azure.core.rest import HttpRequest, HttpResponse from azure.mgmt.core import ARMPipelineClient diff --git a/test/azure/low-level/Expected/AcceptanceTests/HeadExceptionsLowLevel/headexceptionslowlevel/_configuration.py b/test/azure/low-level/Expected/AcceptanceTests/HeadExceptionsLowLevel/headexceptionslowlevel/_configuration.py index f5970e4decb..4413715922f 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/HeadExceptionsLowLevel/headexceptionslowlevel/_configuration.py +++ b/test/azure/low-level/Expected/AcceptanceTests/HeadExceptionsLowLevel/headexceptionslowlevel/_configuration.py @@ -19,7 +19,7 @@ from azure.core.credentials import TokenCredential -class AutoRestHeadExceptionTestServiceConfiguration(Configuration): +class AutoRestHeadExceptionTestServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestHeadExceptionTestService. Note that all parameters used to create this instance are saved as instance diff --git a/test/azure/low-level/Expected/AcceptanceTests/HeadExceptionsLowLevel/headexceptionslowlevel/aio/_auto_rest_head_exception_test_service.py b/test/azure/low-level/Expected/AcceptanceTests/HeadExceptionsLowLevel/headexceptionslowlevel/aio/_auto_rest_head_exception_test_service.py index bebfe30bc33..f6b00bca6c0 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/HeadExceptionsLowLevel/headexceptionslowlevel/aio/_auto_rest_head_exception_test_service.py +++ b/test/azure/low-level/Expected/AcceptanceTests/HeadExceptionsLowLevel/headexceptionslowlevel/aio/_auto_rest_head_exception_test_service.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional, TYPE_CHECKING +from typing import Any, Awaitable, TYPE_CHECKING from azure.core.rest import AsyncHttpResponse, HttpRequest from azure.mgmt.core import AsyncARMPipelineClient diff --git a/test/azure/low-level/Expected/AcceptanceTests/HeadExceptionsLowLevel/headexceptionslowlevel/aio/_configuration.py b/test/azure/low-level/Expected/AcceptanceTests/HeadExceptionsLowLevel/headexceptionslowlevel/aio/_configuration.py index ec5596c8202..cac7a3ff8c9 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/HeadExceptionsLowLevel/headexceptionslowlevel/aio/_configuration.py +++ b/test/azure/low-level/Expected/AcceptanceTests/HeadExceptionsLowLevel/headexceptionslowlevel/aio/_configuration.py @@ -19,7 +19,7 @@ from azure.core.credentials_async import AsyncTokenCredential -class AutoRestHeadExceptionTestServiceConfiguration(Configuration): +class AutoRestHeadExceptionTestServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestHeadExceptionTestService. Note that all parameters used to create this instance are saved as instance diff --git a/test/azure/low-level/Expected/AcceptanceTests/HeadLowLevel/headlowlevel/_auto_rest_head_test_service.py b/test/azure/low-level/Expected/AcceptanceTests/HeadLowLevel/headlowlevel/_auto_rest_head_test_service.py index ea47aaca2d2..4beae8947e7 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/HeadLowLevel/headlowlevel/_auto_rest_head_test_service.py +++ b/test/azure/low-level/Expected/AcceptanceTests/HeadLowLevel/headlowlevel/_auto_rest_head_test_service.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Optional, TYPE_CHECKING +from typing import Any, TYPE_CHECKING from azure.core.rest import HttpRequest, HttpResponse from azure.mgmt.core import ARMPipelineClient diff --git a/test/azure/low-level/Expected/AcceptanceTests/HeadLowLevel/headlowlevel/_configuration.py b/test/azure/low-level/Expected/AcceptanceTests/HeadLowLevel/headlowlevel/_configuration.py index 3752db5b729..59b7a0f543f 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/HeadLowLevel/headlowlevel/_configuration.py +++ b/test/azure/low-level/Expected/AcceptanceTests/HeadLowLevel/headlowlevel/_configuration.py @@ -19,7 +19,7 @@ from azure.core.credentials import TokenCredential -class AutoRestHeadTestServiceConfiguration(Configuration): +class AutoRestHeadTestServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestHeadTestService. Note that all parameters used to create this instance are saved as instance diff --git a/test/azure/low-level/Expected/AcceptanceTests/HeadLowLevel/headlowlevel/aio/_auto_rest_head_test_service.py b/test/azure/low-level/Expected/AcceptanceTests/HeadLowLevel/headlowlevel/aio/_auto_rest_head_test_service.py index 65cec258f9b..7e555cf988c 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/HeadLowLevel/headlowlevel/aio/_auto_rest_head_test_service.py +++ b/test/azure/low-level/Expected/AcceptanceTests/HeadLowLevel/headlowlevel/aio/_auto_rest_head_test_service.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional, TYPE_CHECKING +from typing import Any, Awaitable, TYPE_CHECKING from azure.core.rest import AsyncHttpResponse, HttpRequest from azure.mgmt.core import AsyncARMPipelineClient diff --git a/test/azure/low-level/Expected/AcceptanceTests/HeadLowLevel/headlowlevel/aio/_configuration.py b/test/azure/low-level/Expected/AcceptanceTests/HeadLowLevel/headlowlevel/aio/_configuration.py index 39324636276..c70f8eb34d9 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/HeadLowLevel/headlowlevel/aio/_configuration.py +++ b/test/azure/low-level/Expected/AcceptanceTests/HeadLowLevel/headlowlevel/aio/_configuration.py @@ -19,7 +19,7 @@ from azure.core.credentials_async import AsyncTokenCredential -class AutoRestHeadTestServiceConfiguration(Configuration): +class AutoRestHeadTestServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestHeadTestService. Note that all parameters used to create this instance are saved as instance diff --git a/test/azure/low-level/Expected/AcceptanceTests/LroLowLevel/lrolowlevel/_auto_rest_long_running_operation_test_service.py b/test/azure/low-level/Expected/AcceptanceTests/LroLowLevel/lrolowlevel/_auto_rest_long_running_operation_test_service.py index c0a9a4715a6..0d2a051f37f 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/LroLowLevel/lrolowlevel/_auto_rest_long_running_operation_test_service.py +++ b/test/azure/low-level/Expected/AcceptanceTests/LroLowLevel/lrolowlevel/_auto_rest_long_running_operation_test_service.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Optional, TYPE_CHECKING +from typing import Any, TYPE_CHECKING from azure.core.rest import HttpRequest, HttpResponse from azure.mgmt.core import ARMPipelineClient diff --git a/test/azure/low-level/Expected/AcceptanceTests/LroLowLevel/lrolowlevel/_configuration.py b/test/azure/low-level/Expected/AcceptanceTests/LroLowLevel/lrolowlevel/_configuration.py index 5384d3da397..0a5bfd558ec 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/LroLowLevel/lrolowlevel/_configuration.py +++ b/test/azure/low-level/Expected/AcceptanceTests/LroLowLevel/lrolowlevel/_configuration.py @@ -19,7 +19,9 @@ from azure.core.credentials import TokenCredential -class AutoRestLongRunningOperationTestServiceConfiguration(Configuration): +class AutoRestLongRunningOperationTestServiceConfiguration( + Configuration +): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestLongRunningOperationTestService. Note that all parameters used to create this instance are saved as instance diff --git a/test/azure/low-level/Expected/AcceptanceTests/LroLowLevel/lrolowlevel/aio/_auto_rest_long_running_operation_test_service.py b/test/azure/low-level/Expected/AcceptanceTests/LroLowLevel/lrolowlevel/aio/_auto_rest_long_running_operation_test_service.py index 0fa03ef2229..76b8caec5b5 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/LroLowLevel/lrolowlevel/aio/_auto_rest_long_running_operation_test_service.py +++ b/test/azure/low-level/Expected/AcceptanceTests/LroLowLevel/lrolowlevel/aio/_auto_rest_long_running_operation_test_service.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional, TYPE_CHECKING +from typing import Any, Awaitable, TYPE_CHECKING from azure.core.rest import AsyncHttpResponse, HttpRequest from azure.mgmt.core import AsyncARMPipelineClient diff --git a/test/azure/low-level/Expected/AcceptanceTests/LroLowLevel/lrolowlevel/aio/_configuration.py b/test/azure/low-level/Expected/AcceptanceTests/LroLowLevel/lrolowlevel/aio/_configuration.py index 1fc0cf77ca3..95cdfa836ad 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/LroLowLevel/lrolowlevel/aio/_configuration.py +++ b/test/azure/low-level/Expected/AcceptanceTests/LroLowLevel/lrolowlevel/aio/_configuration.py @@ -19,7 +19,9 @@ from azure.core.credentials_async import AsyncTokenCredential -class AutoRestLongRunningOperationTestServiceConfiguration(Configuration): +class AutoRestLongRunningOperationTestServiceConfiguration( + Configuration +): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestLongRunningOperationTestService. Note that all parameters used to create this instance are saved as instance 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 53621dfb644..53f003b2014 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 @@ -55,10 +55,13 @@ def build_put_async_retry_succeeded_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -70,10 +73,13 @@ def build_put_async_retry_succeeded_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -132,10 +138,13 @@ def build_put201_creating_succeeded200_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -147,10 +156,13 @@ def build_put201_creating_succeeded200_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -208,10 +220,13 @@ def build_post202_retry200_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -270,10 +285,13 @@ def build_post_async_retry_succeeded_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } 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 a9d83e9b5c5..36a26afb94d 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 @@ -49,10 +49,13 @@ def build_put_async_retry_succeeded_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -64,10 +67,13 @@ def build_put_async_retry_succeeded_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -120,10 +126,13 @@ def build_put201_creating_succeeded200_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -135,10 +144,13 @@ def build_put201_creating_succeeded200_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -188,10 +200,13 @@ def build_post202_retry200_request(*, json: JSONType = None, content: Any = None "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -244,10 +259,13 @@ def build_post_async_retry_succeeded_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } 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 34f851e8c84..cfb470ef80f 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 @@ -54,10 +54,13 @@ def build_put201_creating_succeeded200_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -69,10 +72,13 @@ def build_put201_creating_succeeded200_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -130,10 +136,13 @@ def build_put_async_relative_retry_succeeded_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -145,10 +154,13 @@ def build_put_async_relative_retry_succeeded_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -200,10 +212,13 @@ def build_delete_provisioning202_accepted200_succeeded_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -320,10 +335,13 @@ def build_post202_retry200_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -381,10 +399,13 @@ def build_post_async_relative_retry_succeeded_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } 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 1247369158f..bcd13dc77fc 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 @@ -48,10 +48,13 @@ def build_put201_creating_succeeded200_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -63,10 +66,13 @@ def build_put201_creating_succeeded200_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -118,10 +124,13 @@ def build_put_async_relative_retry_succeeded_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -133,10 +142,13 @@ def build_put_async_relative_retry_succeeded_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -180,10 +192,13 @@ def build_delete_provisioning202_accepted200_succeeded_request(**kwargs: Any) -> "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -276,10 +291,13 @@ def build_post202_retry200_request(*, json: JSONType = None, content: Any = None "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -331,10 +349,13 @@ def build_post_async_relative_retry_succeeded_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } 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 6de4d55d0ea..1d70bb82516 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 @@ -53,10 +53,13 @@ def build_put200_succeeded_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -68,10 +71,13 @@ def build_put200_succeeded_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -128,10 +134,13 @@ def build_patch200_succeeded_ignore_headers_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -143,10 +152,13 @@ def build_patch200_succeeded_ignore_headers_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -202,10 +214,13 @@ def build_patch201_retry_with_async_header_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -217,10 +232,13 @@ def build_patch201_retry_with_async_header_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -277,10 +295,13 @@ def build_patch202_retry_with_async_and_location_header_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -292,10 +313,13 @@ def build_patch202_retry_with_async_and_location_header_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -352,10 +376,13 @@ def build_put201_succeeded_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -367,10 +394,13 @@ def build_put201_succeeded_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -422,10 +452,13 @@ def build_post202_list_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -479,10 +512,13 @@ def build_put200_succeeded_no_state_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -494,10 +530,13 @@ def build_put200_succeeded_no_state_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -555,10 +594,13 @@ def build_put202_retry200_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -570,10 +612,13 @@ def build_put202_retry200_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -631,10 +676,13 @@ def build_put201_creating_succeeded200_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -646,10 +694,13 @@ def build_put201_creating_succeeded200_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -707,10 +758,13 @@ def build_put200_updating_succeeded204_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -722,10 +776,13 @@ def build_put200_updating_succeeded204_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -783,10 +840,13 @@ def build_put201_creating_failed200_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -798,10 +858,13 @@ def build_put201_creating_failed200_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -859,10 +922,13 @@ def build_put200_acceptedcanceled200_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -874,10 +940,13 @@ def build_put200_acceptedcanceled200_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -934,10 +1003,13 @@ def build_put_no_header_in_retry_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -949,10 +1021,13 @@ def build_put_no_header_in_retry_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -1010,10 +1085,13 @@ def build_put_async_retry_succeeded_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -1025,10 +1103,13 @@ def build_put_async_retry_succeeded_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -1086,10 +1167,13 @@ def build_put_async_no_retry_succeeded_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -1101,10 +1185,13 @@ def build_put_async_no_retry_succeeded_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -1162,10 +1249,13 @@ def build_put_async_retry_failed_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -1177,10 +1267,13 @@ def build_put_async_retry_failed_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -1238,10 +1331,13 @@ def build_put_async_no_retrycanceled_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -1253,10 +1349,13 @@ def build_put_async_no_retrycanceled_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -1314,10 +1413,13 @@ def build_put_async_no_header_in_retry_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -1329,10 +1431,13 @@ def build_put_async_no_header_in_retry_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -1498,7 +1603,9 @@ def build_put_sub_resource_request( "id": "str", # Optional. Sub Resource Id. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". } } @@ -1507,7 +1614,9 @@ def build_put_sub_resource_request( "id": "str", # Optional. Sub Resource Id. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". } } """ @@ -1560,7 +1669,9 @@ def build_put_async_sub_resource_request( "id": "str", # Optional. Sub Resource Id. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". } } @@ -1569,7 +1680,9 @@ def build_put_async_sub_resource_request( "id": "str", # Optional. Sub Resource Id. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". } } """ @@ -1620,10 +1733,13 @@ def build_delete_provisioning202_accepted200_succeeded_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -1671,10 +1787,13 @@ def build_delete_provisioning202_deleting_failed200_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -1722,10 +1841,13 @@ def build_delete_provisioning202_deletingcanceled200_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -1803,10 +1925,13 @@ def build_delete202_retry200_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -1853,10 +1978,13 @@ def build_delete202_no_retry204_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -2142,10 +2270,13 @@ def build_post202_retry200_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -2202,10 +2333,13 @@ def build_post202_no_retry204_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -2217,10 +2351,13 @@ def build_post202_no_retry204_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -2272,10 +2409,13 @@ def build_post_double_headers_final_location_get_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -2323,10 +2463,13 @@ def build_post_double_headers_final_azure_header_get_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -2374,10 +2517,13 @@ def build_post_double_headers_final_azure_header_get_default_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -2431,10 +2577,13 @@ def build_post_async_retry_succeeded_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -2446,10 +2595,13 @@ def build_post_async_retry_succeeded_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -2507,10 +2659,13 @@ def build_post_async_no_retry_succeeded_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -2522,10 +2677,13 @@ def build_post_async_no_retry_succeeded_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -2583,10 +2741,13 @@ def build_post_async_retry_failed_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -2644,10 +2805,13 @@ def build_post_async_retrycanceled_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } 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 023831d89cd..85be517e8a8 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 @@ -45,10 +45,13 @@ def build_put200_succeeded_request(*, json: JSONType = None, content: Any = None "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -60,10 +63,13 @@ def build_put200_succeeded_request(*, json: JSONType = None, content: Any = None "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -114,10 +120,13 @@ def build_patch200_succeeded_ignore_headers_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -129,10 +138,13 @@ def build_patch200_succeeded_ignore_headers_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -182,10 +194,13 @@ def build_patch201_retry_with_async_header_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -197,10 +212,13 @@ def build_patch201_retry_with_async_header_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -251,10 +269,13 @@ def build_patch202_retry_with_async_and_location_header_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -266,10 +287,13 @@ def build_patch202_retry_with_async_and_location_header_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -318,10 +342,13 @@ def build_put201_succeeded_request(*, json: JSONType = None, content: Any = None "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -333,10 +360,13 @@ def build_put201_succeeded_request(*, json: JSONType = None, content: Any = None "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -380,10 +410,13 @@ def build_post202_list_request(**kwargs: Any) -> HttpRequest: "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -431,10 +464,13 @@ def build_put200_succeeded_no_state_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -446,10 +482,13 @@ def build_put200_succeeded_no_state_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -499,10 +538,13 @@ def build_put202_retry200_request(*, json: JSONType = None, content: Any = None, "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -514,10 +556,13 @@ def build_put202_retry200_request(*, json: JSONType = None, content: Any = None, "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -569,10 +614,13 @@ def build_put201_creating_succeeded200_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -584,10 +632,13 @@ def build_put201_creating_succeeded200_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -639,10 +690,13 @@ def build_put200_updating_succeeded204_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -654,10 +708,13 @@ def build_put200_updating_succeeded204_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -709,10 +766,13 @@ def build_put201_creating_failed200_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -724,10 +784,13 @@ def build_put201_creating_failed200_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -779,10 +842,13 @@ def build_put200_acceptedcanceled200_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -794,10 +860,13 @@ def build_put200_acceptedcanceled200_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -846,10 +915,13 @@ def build_put_no_header_in_retry_request(*, json: JSONType = None, content: Any "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -861,10 +933,13 @@ def build_put_no_header_in_retry_request(*, json: JSONType = None, content: Any "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -916,10 +991,13 @@ def build_put_async_retry_succeeded_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -931,10 +1009,13 @@ def build_put_async_retry_succeeded_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -986,10 +1067,13 @@ def build_put_async_no_retry_succeeded_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -1001,10 +1085,13 @@ def build_put_async_no_retry_succeeded_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -1054,10 +1141,13 @@ def build_put_async_retry_failed_request(*, json: JSONType = None, content: Any "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -1069,10 +1159,13 @@ def build_put_async_retry_failed_request(*, json: JSONType = None, content: Any "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -1124,10 +1217,13 @@ def build_put_async_no_retrycanceled_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -1139,10 +1235,13 @@ def build_put_async_no_retrycanceled_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -1194,10 +1293,13 @@ def build_put_async_no_header_in_retry_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -1209,10 +1311,13 @@ def build_put_async_no_header_in_retry_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -1354,7 +1459,9 @@ def build_put_sub_resource_request(*, json: JSONType = None, content: Any = None "id": "str", # Optional. Sub Resource Id. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". } } @@ -1363,7 +1470,9 @@ def build_put_sub_resource_request(*, json: JSONType = None, content: Any = None "id": "str", # Optional. Sub Resource Id. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". } } """ @@ -1408,7 +1517,9 @@ def build_put_async_sub_resource_request(*, json: JSONType = None, content: Any "id": "str", # Optional. Sub Resource Id. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". } } @@ -1417,7 +1528,9 @@ def build_put_async_sub_resource_request(*, json: JSONType = None, content: Any "id": "str", # Optional. Sub Resource Id. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". } } """ @@ -1460,10 +1573,13 @@ def build_delete_provisioning202_accepted200_succeeded_request(**kwargs: Any) -> "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -1503,10 +1619,13 @@ def build_delete_provisioning202_deleting_failed200_request(**kwargs: Any) -> Ht "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -1546,10 +1665,13 @@ def build_delete_provisioning202_deletingcanceled200_request(**kwargs: Any) -> H "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -1611,10 +1733,13 @@ def build_delete202_retry200_request(**kwargs: Any) -> HttpRequest: "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -1653,10 +1778,13 @@ def build_delete202_no_retry204_request(**kwargs: Any) -> HttpRequest: "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -1878,10 +2006,13 @@ def build_post202_retry200_request(*, json: JSONType = None, content: Any = None "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -1930,10 +2061,13 @@ def build_post202_no_retry204_request(*, json: JSONType = None, content: Any = N "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -1945,10 +2079,13 @@ def build_post202_no_retry204_request(*, json: JSONType = None, content: Any = N "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -1992,10 +2129,13 @@ def build_post_double_headers_final_location_get_request(**kwargs: Any) -> HttpR "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -2035,10 +2175,13 @@ def build_post_double_headers_final_azure_header_get_request(**kwargs: Any) -> H "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -2078,10 +2221,13 @@ def build_post_double_headers_final_azure_header_get_default_request(**kwargs: A "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -2129,10 +2275,13 @@ def build_post_async_retry_succeeded_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -2144,10 +2293,13 @@ def build_post_async_retry_succeeded_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -2199,10 +2351,13 @@ def build_post_async_no_retry_succeeded_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -2214,10 +2369,13 @@ def build_post_async_no_retry_succeeded_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -2267,10 +2425,13 @@ def build_post_async_retry_failed_request(*, json: JSONType = None, content: Any "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -2320,10 +2481,13 @@ def build_post_async_retrycanceled_request(*, json: JSONType = None, content: An "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } 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 b4788b834e1..3f6a8898ad9 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 @@ -52,10 +52,13 @@ def build_put_non_retry400_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -67,10 +70,13 @@ def build_put_non_retry400_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -127,10 +133,13 @@ def build_put_non_retry201_creating400_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -142,10 +151,13 @@ def build_put_non_retry201_creating400_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -202,10 +214,13 @@ def build_put_non_retry201_creating400_invalid_json_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -217,10 +232,13 @@ def build_put_non_retry201_creating400_invalid_json_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -277,10 +295,13 @@ def build_put_async_relative_retry400_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -292,10 +313,13 @@ def build_put_async_relative_retry400_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -445,10 +469,13 @@ def build_post_non_retry400_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -504,10 +531,13 @@ def build_post202_non_retry400_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -564,10 +594,13 @@ def build_post_async_relative_retry400_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -623,10 +656,13 @@ def build_put_error201_no_provisioning_state_payload_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -638,10 +674,13 @@ def build_put_error201_no_provisioning_state_payload_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -699,10 +738,13 @@ def build_put_async_relative_retry_no_status_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -714,10 +756,13 @@ def build_put_async_relative_retry_no_status_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -775,10 +820,13 @@ def build_put_async_relative_retry_no_status_payload_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -790,10 +838,13 @@ def build_put_async_relative_retry_no_status_payload_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -913,10 +964,13 @@ def build_post202_no_location_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -974,10 +1028,13 @@ def build_post_async_relative_retry_no_payload_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -1034,10 +1091,13 @@ def build_put200_invalid_json_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -1049,10 +1109,13 @@ def build_put200_invalid_json_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -1110,10 +1173,13 @@ def build_put_async_relative_retry_invalid_header_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -1125,10 +1191,13 @@ def build_put_async_relative_retry_invalid_header_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -1186,10 +1255,13 @@ def build_put_async_relative_retry_invalid_json_polling_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -1201,10 +1273,13 @@ def build_put_async_relative_retry_invalid_json_polling_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -1357,10 +1432,13 @@ def build_post202_retry_invalid_header_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -1418,10 +1496,13 @@ def build_post_async_relative_retry_invalid_header_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -1479,10 +1560,13 @@ def build_post_async_relative_retry_invalid_json_polling_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } 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 155b6f65a78..53c7b1e72a0 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 @@ -44,10 +44,13 @@ def build_put_non_retry400_request(*, json: JSONType = None, content: Any = None "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -59,10 +62,13 @@ def build_put_non_retry400_request(*, json: JSONType = None, content: Any = None "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -113,10 +119,13 @@ def build_put_non_retry201_creating400_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -128,10 +137,13 @@ def build_put_non_retry201_creating400_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -182,10 +194,13 @@ def build_put_non_retry201_creating400_invalid_json_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -197,10 +212,13 @@ def build_put_non_retry201_creating400_invalid_json_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -251,10 +269,13 @@ def build_put_async_relative_retry400_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -266,10 +287,13 @@ def build_put_async_relative_retry400_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -387,10 +411,13 @@ def build_post_non_retry400_request(*, json: JSONType = None, content: Any = Non "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -438,10 +465,13 @@ def build_post202_non_retry400_request(*, json: JSONType = None, content: Any = "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -492,10 +522,13 @@ def build_post_async_relative_retry400_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -545,10 +578,13 @@ def build_put_error201_no_provisioning_state_payload_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -560,10 +596,13 @@ def build_put_error201_no_provisioning_state_payload_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -615,10 +654,13 @@ def build_put_async_relative_retry_no_status_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -630,10 +672,13 @@ def build_put_async_relative_retry_no_status_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -685,10 +730,13 @@ def build_put_async_relative_retry_no_status_payload_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -700,10 +748,13 @@ def build_put_async_relative_retry_no_status_payload_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -799,10 +850,13 @@ def build_post202_no_location_request(*, json: JSONType = None, content: Any = N "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -854,10 +908,13 @@ def build_post_async_relative_retry_no_payload_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -906,10 +963,13 @@ def build_put200_invalid_json_request(*, json: JSONType = None, content: Any = N "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -921,10 +981,13 @@ def build_put200_invalid_json_request(*, json: JSONType = None, content: Any = N "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -976,10 +1039,13 @@ def build_put_async_relative_retry_invalid_header_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -991,10 +1057,13 @@ def build_put_async_relative_retry_invalid_header_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -1046,10 +1115,13 @@ def build_put_async_relative_retry_invalid_json_polling_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -1061,10 +1133,13 @@ def build_put_async_relative_retry_invalid_json_polling_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -1187,10 +1262,13 @@ def build_post202_retry_invalid_header_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -1242,10 +1320,13 @@ def build_post_async_relative_retry_invalid_header_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -1297,10 +1378,13 @@ def build_post_async_relative_retry_invalid_json_polling_request( "name": "str", # Optional. Resource Name. "properties": { "provisioningState": "str", # Optional. - "provisioningStateValues": "str" # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str" # Optional. Possible values + include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", + "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } diff --git a/test/azure/low-level/Expected/AcceptanceTests/LroWithParameterizedEndpointsLowLevel/lrowithparameterizedendpointslowlevel/_configuration.py b/test/azure/low-level/Expected/AcceptanceTests/LroWithParameterizedEndpointsLowLevel/lrowithparameterizedendpointslowlevel/_configuration.py index ff1964c9363..70bafa84f17 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/LroWithParameterizedEndpointsLowLevel/lrowithparameterizedendpointslowlevel/_configuration.py +++ b/test/azure/low-level/Expected/AcceptanceTests/LroWithParameterizedEndpointsLowLevel/lrowithparameterizedendpointslowlevel/_configuration.py @@ -14,13 +14,14 @@ from ._version import VERSION -class LROWithParamaterizedEndpointsConfiguration(Configuration): +class LROWithParamaterizedEndpointsConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for LROWithParamaterizedEndpoints. Note that all parameters used to create this instance are saved as instance attributes. - :param host: A string value that is used as a global part of the parameterized host. Pass in 'host:3000' to pass test. + :param host: A string value that is used as a global part of the parameterized host. Pass in + 'host:3000' to pass test. :type host: str """ diff --git a/test/azure/low-level/Expected/AcceptanceTests/LroWithParameterizedEndpointsLowLevel/lrowithparameterizedendpointslowlevel/aio/_configuration.py b/test/azure/low-level/Expected/AcceptanceTests/LroWithParameterizedEndpointsLowLevel/lrowithparameterizedendpointslowlevel/aio/_configuration.py index 1b2efaf32f1..82ab4244e5b 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/LroWithParameterizedEndpointsLowLevel/lrowithparameterizedendpointslowlevel/aio/_configuration.py +++ b/test/azure/low-level/Expected/AcceptanceTests/LroWithParameterizedEndpointsLowLevel/lrowithparameterizedendpointslowlevel/aio/_configuration.py @@ -14,13 +14,14 @@ from .._version import VERSION -class LROWithParamaterizedEndpointsConfiguration(Configuration): +class LROWithParamaterizedEndpointsConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for LROWithParamaterizedEndpoints. Note that all parameters used to create this instance are saved as instance attributes. - :param host: A string value that is used as a global part of the parameterized host. Pass in 'host:3000' to pass test. + :param host: A string value that is used as a global part of the parameterized host. Pass in + 'host:3000' to pass test. :type host: str """ diff --git a/test/azure/low-level/Expected/AcceptanceTests/PagingLowLevel/paginglowlevel/_auto_rest_paging_test_service.py b/test/azure/low-level/Expected/AcceptanceTests/PagingLowLevel/paginglowlevel/_auto_rest_paging_test_service.py index 1a7cc6c5401..cf7e6f63508 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/PagingLowLevel/paginglowlevel/_auto_rest_paging_test_service.py +++ b/test/azure/low-level/Expected/AcceptanceTests/PagingLowLevel/paginglowlevel/_auto_rest_paging_test_service.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Optional, TYPE_CHECKING +from typing import Any, TYPE_CHECKING from azure.core import PipelineClient from azure.core.rest import HttpRequest, HttpResponse diff --git a/test/azure/low-level/Expected/AcceptanceTests/PagingLowLevel/paginglowlevel/_configuration.py b/test/azure/low-level/Expected/AcceptanceTests/PagingLowLevel/paginglowlevel/_configuration.py index cde18ff9969..3352eae9c24 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/PagingLowLevel/paginglowlevel/_configuration.py +++ b/test/azure/low-level/Expected/AcceptanceTests/PagingLowLevel/paginglowlevel/_configuration.py @@ -14,7 +14,7 @@ from ._version import VERSION -class AutoRestPagingTestServiceConfiguration(Configuration): +class AutoRestPagingTestServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestPagingTestService. Note that all parameters used to create this instance are saved as instance diff --git a/test/azure/low-level/Expected/AcceptanceTests/PagingLowLevel/paginglowlevel/aio/_auto_rest_paging_test_service.py b/test/azure/low-level/Expected/AcceptanceTests/PagingLowLevel/paginglowlevel/aio/_auto_rest_paging_test_service.py index 44a7b97e919..63a32d461ce 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/PagingLowLevel/paginglowlevel/aio/_auto_rest_paging_test_service.py +++ b/test/azure/low-level/Expected/AcceptanceTests/PagingLowLevel/paginglowlevel/aio/_auto_rest_paging_test_service.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional, TYPE_CHECKING +from typing import Any, Awaitable, TYPE_CHECKING from azure.core import AsyncPipelineClient from azure.core.rest import AsyncHttpResponse, HttpRequest diff --git a/test/azure/low-level/Expected/AcceptanceTests/PagingLowLevel/paginglowlevel/aio/_configuration.py b/test/azure/low-level/Expected/AcceptanceTests/PagingLowLevel/paginglowlevel/aio/_configuration.py index e39ce7a3614..b095035214a 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/PagingLowLevel/paginglowlevel/aio/_configuration.py +++ b/test/azure/low-level/Expected/AcceptanceTests/PagingLowLevel/paginglowlevel/aio/_configuration.py @@ -14,7 +14,7 @@ from .._version import VERSION -class AutoRestPagingTestServiceConfiguration(Configuration): +class AutoRestPagingTestServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestPagingTestService. Note that all parameters used to create this instance are saved as instance diff --git a/test/azure/low-level/Expected/AcceptanceTests/StorageManagementClientLowLevel/storagelowlevel/_configuration.py b/test/azure/low-level/Expected/AcceptanceTests/StorageManagementClientLowLevel/storagelowlevel/_configuration.py index 4edc7f6989a..412ecea257a 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/StorageManagementClientLowLevel/storagelowlevel/_configuration.py +++ b/test/azure/low-level/Expected/AcceptanceTests/StorageManagementClientLowLevel/storagelowlevel/_configuration.py @@ -19,17 +19,19 @@ from azure.core.credentials import TokenCredential -class StorageManagementClientConfiguration(Configuration): +class StorageManagementClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for StorageManagementClient. Note that all parameters used to create this instance are saved as instance attributes. - :param subscription_id: Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + :param subscription_id: Gets subscription credentials which uniquely identify Microsoft Azure + subscription. The subscription ID forms part of the URI for every service call. :type subscription_id: str :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials.TokenCredential - :keyword api_version: Api Version. The default value is "2015-05-01-preview". Note that overriding this default value may result in unsupported behavior. + :keyword api_version: Api Version. The default value is "2015-05-01-preview". Note that + overriding this default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/test/azure/low-level/Expected/AcceptanceTests/StorageManagementClientLowLevel/storagelowlevel/_storage_management_client.py b/test/azure/low-level/Expected/AcceptanceTests/StorageManagementClientLowLevel/storagelowlevel/_storage_management_client.py index c55d2cdefd8..bc90859a9fa 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/StorageManagementClientLowLevel/storagelowlevel/_storage_management_client.py +++ b/test/azure/low-level/Expected/AcceptanceTests/StorageManagementClientLowLevel/storagelowlevel/_storage_management_client.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Optional, TYPE_CHECKING +from typing import Any, TYPE_CHECKING from azure.core.rest import HttpRequest, HttpResponse from azure.mgmt.core import ARMPipelineClient diff --git a/test/azure/low-level/Expected/AcceptanceTests/StorageManagementClientLowLevel/storagelowlevel/aio/_configuration.py b/test/azure/low-level/Expected/AcceptanceTests/StorageManagementClientLowLevel/storagelowlevel/aio/_configuration.py index a567555bf98..fbf417f2d97 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/StorageManagementClientLowLevel/storagelowlevel/aio/_configuration.py +++ b/test/azure/low-level/Expected/AcceptanceTests/StorageManagementClientLowLevel/storagelowlevel/aio/_configuration.py @@ -19,17 +19,19 @@ from azure.core.credentials_async import AsyncTokenCredential -class StorageManagementClientConfiguration(Configuration): +class StorageManagementClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for StorageManagementClient. Note that all parameters used to create this instance are saved as instance attributes. - :param subscription_id: Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + :param subscription_id: Gets subscription credentials which uniquely identify Microsoft Azure + subscription. The subscription ID forms part of the URI for every service call. :type subscription_id: str :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials_async.AsyncTokenCredential - :keyword api_version: Api Version. The default value is "2015-05-01-preview". Note that overriding this default value may result in unsupported behavior. + :keyword api_version: Api Version. The default value is "2015-05-01-preview". Note that + overriding this default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/test/azure/low-level/Expected/AcceptanceTests/StorageManagementClientLowLevel/storagelowlevel/aio/_storage_management_client.py b/test/azure/low-level/Expected/AcceptanceTests/StorageManagementClientLowLevel/storagelowlevel/aio/_storage_management_client.py index 2ea5786f6c6..892a3724270 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/StorageManagementClientLowLevel/storagelowlevel/aio/_storage_management_client.py +++ b/test/azure/low-level/Expected/AcceptanceTests/StorageManagementClientLowLevel/storagelowlevel/aio/_storage_management_client.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional, TYPE_CHECKING +from typing import Any, Awaitable, TYPE_CHECKING from azure.core.rest import AsyncHttpResponse, HttpRequest from azure.mgmt.core import AsyncARMPipelineClient 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 eb89788aa7b..9c88d678e87 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 @@ -57,15 +57,21 @@ def build_check_name_availability_request( # JSON input template you can fill out and use as your body input. json = { - "name": "str", # Required. - "type": "Microsoft.Storage/storageAccounts" # Optional. Default value is "Microsoft.Storage/storageAccounts". + "name": "str", # Required. + "type": "Microsoft.Storage/storageAccounts" # Optional. Default value is + "Microsoft.Storage/storageAccounts". } # response body for status code(s): 200 response.json() == { - "message": "str", # Optional. Gets an error message explaining the Reason value in more detail. - "nameAvailable": bool, # Optional. Gets a boolean value that indicates whether the name is available for you to use. If true, the name is available. If false, the name has already been taken or invalid and cannot be used. - "reason": "str" # Optional. Gets the reason that a storage account name could not be used. The Reason element is only returned if NameAvailable is false. Possible values include: "AccountNameInvalid", "AlreadyExists". + "message": "str", # Optional. Gets an error message explaining the Reason + value in more detail. + "nameAvailable": bool, # Optional. Gets a boolean value that indicates + whether the name is available for you to use. If true, the name is available. If + false, the name has already been taken or invalid and cannot be used. + "reason": "str" # Optional. Gets the reason that a storage account name + could not be used. The Reason element is only returned if NameAvailable is false. + Possible values include: "AccountNameInvalid", "AlreadyExists". } """ @@ -144,7 +150,9 @@ def build_create_request( "location": "str", # Required. Resource location. "name": "str", # Optional. Resource name. "properties": { - "accountType": "str" # Optional. Gets or sets the account type. Possible values include: "Standard_LRS", "Standard_ZRS", "Standard_GRS", "Standard_RAGRS", "Premium_LRS". + "accountType": "str" # Optional. Gets or sets the account type. + Possible values include: "Standard_LRS", "Standard_ZRS", "Standard_GRS", + "Standard_RAGRS", "Premium_LRS". }, "tags": { "str": "str" # Optional. A set of tags. Resource tags. @@ -158,13 +166,23 @@ def build_create_request( "location": "str", # Required. Resource location. "name": "str", # Optional. Resource name. "properties": { - "accountType": "str", # Optional. Gets the type of the storage account. Possible values include: "Standard_LRS", "Standard_ZRS", "Standard_GRS", "Standard_RAGRS", "Premium_LRS". - "creationTime": "2020-02-20 00:00:00", # Optional. Gets the creation date and time of the storage account in UTC. + "accountType": "str", # Optional. Gets the type of the storage + account. Possible values include: "Standard_LRS", "Standard_ZRS", + "Standard_GRS", "Standard_RAGRS", "Premium_LRS". + "creationTime": "2020-02-20 00:00:00", # Optional. Gets the creation + date and time of the storage account in UTC. "customDomain": { - "name": "str", # Optional. Gets or sets the custom domain name. Name is the CNAME source. - "useSubDomain": bool # Optional. Indicates whether indirect CName validation is enabled. Default value is false. This should only be set on updates. + "name": "str", # Optional. Gets or sets the custom domain + name. Name is the CNAME source. + "useSubDomain": bool # Optional. Indicates whether indirect + CName validation is enabled. Default value is false. This should only be + set on updates. }, - "lastGeoFailoverTime": "2020-02-20 00:00:00", # Optional. Gets the timestamp of the most recent instance of a failover to the secondary location. Only the most recent timestamp is retained. This element is not returned if there has never been a failover instance. Only available if the accountType is StandardGRS or StandardRAGRS. + "lastGeoFailoverTime": "2020-02-20 00:00:00", # Optional. Gets the + timestamp of the most recent instance of a failover to the secondary + location. Only the most recent timestamp is retained. This element is not + returned if there has never been a failover instance. Only available if the + accountType is StandardGRS or StandardRAGRS. "primaryEndpoints": { "FooPoint": { "Bar.Point": { @@ -176,8 +194,11 @@ def build_create_request( "queue": "str", # Optional. Gets the queue endpoint. "table": "str" # Optional. Gets the table endpoint. }, - "primaryLocation": "str", # Optional. Gets the location of the primary for the storage account. - "provisioningState": "str", # Optional. Gets the status of the storage account at the time the operation was called. Possible values include: "Creating", "ResolvingDNS", "Succeeded". + "primaryLocation": "str", # Optional. Gets the location of the + primary for the storage account. + "provisioningState": "str", # Optional. Gets the status of the + storage account at the time the operation was called. Possible values + include: "Creating", "ResolvingDNS", "Succeeded". "secondaryEndpoints": { "FooPoint": { "Bar.Point": { @@ -189,9 +210,16 @@ def build_create_request( "queue": "str", # Optional. Gets the queue endpoint. "table": "str" # Optional. Gets the table endpoint. }, - "secondaryLocation": "str", # Optional. Gets the location of the geo replicated secondary for the storage account. Only available if the accountType is StandardGRS or StandardRAGRS. - "statusOfPrimary": "str", # Optional. Gets the status indicating whether the primary location of the storage account is available or unavailable. Possible values include: "Available", "Unavailable". - "statusOfSecondary": "str" # Optional. Gets the status indicating whether the secondary location of the storage account is available or unavailable. Only available if the accountType is StandardGRS or StandardRAGRS. Possible values include: "Available", "Unavailable". + "secondaryLocation": "str", # Optional. Gets the location of the geo + replicated secondary for the storage account. Only available if the + accountType is StandardGRS or StandardRAGRS. + "statusOfPrimary": "str", # Optional. Gets the status indicating + whether the primary location of the storage account is available or + unavailable. Possible values include: "Available", "Unavailable". + "statusOfSecondary": "str" # Optional. Gets the status indicating + whether the secondary location of the storage account is available or + unavailable. Only available if the accountType is StandardGRS or + StandardRAGRS. Possible values include: "Available", "Unavailable". }, "tags": { "str": "str" # Optional. A set of tags. Resource tags. @@ -205,7 +233,7 @@ def build_create_request( accept = "application/json, text/json" # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}' + 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'), @@ -263,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}' + 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'), @@ -321,13 +349,23 @@ def build_get_properties_request( "location": "str", # Required. Resource location. "name": "str", # Optional. Resource name. "properties": { - "accountType": "str", # Optional. Gets the type of the storage account. Possible values include: "Standard_LRS", "Standard_ZRS", "Standard_GRS", "Standard_RAGRS", "Premium_LRS". - "creationTime": "2020-02-20 00:00:00", # Optional. Gets the creation date and time of the storage account in UTC. + "accountType": "str", # Optional. Gets the type of the storage + account. Possible values include: "Standard_LRS", "Standard_ZRS", + "Standard_GRS", "Standard_RAGRS", "Premium_LRS". + "creationTime": "2020-02-20 00:00:00", # Optional. Gets the creation + date and time of the storage account in UTC. "customDomain": { - "name": "str", # Optional. Gets or sets the custom domain name. Name is the CNAME source. - "useSubDomain": bool # Optional. Indicates whether indirect CName validation is enabled. Default value is false. This should only be set on updates. + "name": "str", # Optional. Gets or sets the custom domain + name. Name is the CNAME source. + "useSubDomain": bool # Optional. Indicates whether indirect + CName validation is enabled. Default value is false. This should only be + set on updates. }, - "lastGeoFailoverTime": "2020-02-20 00:00:00", # Optional. Gets the timestamp of the most recent instance of a failover to the secondary location. Only the most recent timestamp is retained. This element is not returned if there has never been a failover instance. Only available if the accountType is StandardGRS or StandardRAGRS. + "lastGeoFailoverTime": "2020-02-20 00:00:00", # Optional. Gets the + timestamp of the most recent instance of a failover to the secondary + location. Only the most recent timestamp is retained. This element is not + returned if there has never been a failover instance. Only available if the + accountType is StandardGRS or StandardRAGRS. "primaryEndpoints": { "FooPoint": { "Bar.Point": { @@ -339,8 +377,11 @@ def build_get_properties_request( "queue": "str", # Optional. Gets the queue endpoint. "table": "str" # Optional. Gets the table endpoint. }, - "primaryLocation": "str", # Optional. Gets the location of the primary for the storage account. - "provisioningState": "str", # Optional. Gets the status of the storage account at the time the operation was called. Possible values include: "Creating", "ResolvingDNS", "Succeeded". + "primaryLocation": "str", # Optional. Gets the location of the + primary for the storage account. + "provisioningState": "str", # Optional. Gets the status of the + storage account at the time the operation was called. Possible values + include: "Creating", "ResolvingDNS", "Succeeded". "secondaryEndpoints": { "FooPoint": { "Bar.Point": { @@ -352,9 +393,16 @@ def build_get_properties_request( "queue": "str", # Optional. Gets the queue endpoint. "table": "str" # Optional. Gets the table endpoint. }, - "secondaryLocation": "str", # Optional. Gets the location of the geo replicated secondary for the storage account. Only available if the accountType is StandardGRS or StandardRAGRS. - "statusOfPrimary": "str", # Optional. Gets the status indicating whether the primary location of the storage account is available or unavailable. Possible values include: "Available", "Unavailable". - "statusOfSecondary": "str" # Optional. Gets the status indicating whether the secondary location of the storage account is available or unavailable. Only available if the accountType is StandardGRS or StandardRAGRS. Possible values include: "Available", "Unavailable". + "secondaryLocation": "str", # Optional. Gets the location of the geo + replicated secondary for the storage account. Only available if the + accountType is StandardGRS or StandardRAGRS. + "statusOfPrimary": "str", # Optional. Gets the status indicating + whether the primary location of the storage account is available or + unavailable. Possible values include: "Available", "Unavailable". + "statusOfSecondary": "str" # Optional. Gets the status indicating + whether the secondary location of the storage account is available or + unavailable. Only available if the accountType is StandardGRS or + StandardRAGRS. Possible values include: "Available", "Unavailable". }, "tags": { "str": "str" # Optional. A set of tags. Resource tags. @@ -367,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}' + 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'), @@ -442,10 +490,17 @@ def build_update_request( "location": "str", # Required. Resource location. "name": "str", # Optional. Resource name. "properties": { - "accountType": "str", # Optional. Gets or sets the account type. Note that StandardZRS and PremiumLRS accounts cannot be changed to other account types, and other account types cannot be changed to StandardZRS or PremiumLRS. Possible values include: "Standard_LRS", "Standard_ZRS", "Standard_GRS", "Standard_RAGRS", "Premium_LRS". + "accountType": "str", # Optional. Gets or sets the account type. + Note that StandardZRS and PremiumLRS accounts cannot be changed to other + account types, and other account types cannot be changed to StandardZRS or + PremiumLRS. Possible values include: "Standard_LRS", "Standard_ZRS", + "Standard_GRS", "Standard_RAGRS", "Premium_LRS". "customDomain": { - "name": "str", # Optional. Gets or sets the custom domain name. Name is the CNAME source. - "useSubDomain": bool # Optional. Indicates whether indirect CName validation is enabled. Default value is false. This should only be set on updates. + "name": "str", # Optional. Gets or sets the custom domain + name. Name is the CNAME source. + "useSubDomain": bool # Optional. Indicates whether indirect + CName validation is enabled. Default value is false. This should only be + set on updates. } }, "tags": { @@ -460,13 +515,23 @@ def build_update_request( "location": "str", # Required. Resource location. "name": "str", # Optional. Resource name. "properties": { - "accountType": "str", # Optional. Gets the type of the storage account. Possible values include: "Standard_LRS", "Standard_ZRS", "Standard_GRS", "Standard_RAGRS", "Premium_LRS". - "creationTime": "2020-02-20 00:00:00", # Optional. Gets the creation date and time of the storage account in UTC. + "accountType": "str", # Optional. Gets the type of the storage + account. Possible values include: "Standard_LRS", "Standard_ZRS", + "Standard_GRS", "Standard_RAGRS", "Premium_LRS". + "creationTime": "2020-02-20 00:00:00", # Optional. Gets the creation + date and time of the storage account in UTC. "customDomain": { - "name": "str", # Optional. Gets or sets the custom domain name. Name is the CNAME source. - "useSubDomain": bool # Optional. Indicates whether indirect CName validation is enabled. Default value is false. This should only be set on updates. + "name": "str", # Optional. Gets or sets the custom domain + name. Name is the CNAME source. + "useSubDomain": bool # Optional. Indicates whether indirect + CName validation is enabled. Default value is false. This should only be + set on updates. }, - "lastGeoFailoverTime": "2020-02-20 00:00:00", # Optional. Gets the timestamp of the most recent instance of a failover to the secondary location. Only the most recent timestamp is retained. This element is not returned if there has never been a failover instance. Only available if the accountType is StandardGRS or StandardRAGRS. + "lastGeoFailoverTime": "2020-02-20 00:00:00", # Optional. Gets the + timestamp of the most recent instance of a failover to the secondary + location. Only the most recent timestamp is retained. This element is not + returned if there has never been a failover instance. Only available if the + accountType is StandardGRS or StandardRAGRS. "primaryEndpoints": { "FooPoint": { "Bar.Point": { @@ -478,8 +543,11 @@ def build_update_request( "queue": "str", # Optional. Gets the queue endpoint. "table": "str" # Optional. Gets the table endpoint. }, - "primaryLocation": "str", # Optional. Gets the location of the primary for the storage account. - "provisioningState": "str", # Optional. Gets the status of the storage account at the time the operation was called. Possible values include: "Creating", "ResolvingDNS", "Succeeded". + "primaryLocation": "str", # Optional. Gets the location of the + primary for the storage account. + "provisioningState": "str", # Optional. Gets the status of the + storage account at the time the operation was called. Possible values + include: "Creating", "ResolvingDNS", "Succeeded". "secondaryEndpoints": { "FooPoint": { "Bar.Point": { @@ -491,9 +559,16 @@ def build_update_request( "queue": "str", # Optional. Gets the queue endpoint. "table": "str" # Optional. Gets the table endpoint. }, - "secondaryLocation": "str", # Optional. Gets the location of the geo replicated secondary for the storage account. Only available if the accountType is StandardGRS or StandardRAGRS. - "statusOfPrimary": "str", # Optional. Gets the status indicating whether the primary location of the storage account is available or unavailable. Possible values include: "Available", "Unavailable". - "statusOfSecondary": "str" # Optional. Gets the status indicating whether the secondary location of the storage account is available or unavailable. Only available if the accountType is StandardGRS or StandardRAGRS. Possible values include: "Available", "Unavailable". + "secondaryLocation": "str", # Optional. Gets the location of the geo + replicated secondary for the storage account. Only available if the + accountType is StandardGRS or StandardRAGRS. + "statusOfPrimary": "str", # Optional. Gets the status indicating + whether the primary location of the storage account is available or + unavailable. Possible values include: "Available", "Unavailable". + "statusOfSecondary": "str" # Optional. Gets the status indicating + whether the secondary location of the storage account is available or + unavailable. Only available if the accountType is StandardGRS or + StandardRAGRS. Possible values include: "Available", "Unavailable". }, "tags": { "str": "str" # Optional. A set of tags. Resource tags. @@ -507,7 +582,7 @@ def build_update_request( accept = "application/json, text/json" # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}' + 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'), @@ -573,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' + 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'), @@ -623,50 +698,81 @@ def build_list_request( # response body for status code(s): 200 response.json() == { - "nextLink": "str", # Optional. Gets the link to the next set of results. Currently this will always be empty as the API does not support pagination. + "nextLink": "str", # Optional. Gets the link to the next set of results. + Currently this will always be empty as the API does not support pagination. "value": [ { "id": "str", # Optional. Resource Id. "location": "str", # Required. Resource location. "name": "str", # Optional. Resource name. "properties": { - "accountType": "str", # Optional. Gets the type of the storage account. Possible values include: "Standard_LRS", "Standard_ZRS", "Standard_GRS", "Standard_RAGRS", "Premium_LRS". - "creationTime": "2020-02-20 00:00:00", # Optional. Gets the creation date and time of the storage account in UTC. + "accountType": "str", # Optional. Gets the type of + the storage account. Possible values include: "Standard_LRS", + "Standard_ZRS", "Standard_GRS", "Standard_RAGRS", "Premium_LRS". + "creationTime": "2020-02-20 00:00:00", # Optional. + Gets the creation date and time of the storage account in UTC. "customDomain": { - "name": "str", # Optional. Gets or sets the custom domain name. Name is the CNAME source. - "useSubDomain": bool # Optional. Indicates whether indirect CName validation is enabled. Default value is false. This should only be set on updates. + "name": "str", # Optional. Gets or sets the + custom domain name. Name is the CNAME source. + "useSubDomain": bool # Optional. Indicates + whether indirect CName validation is enabled. Default value is + false. This should only be set on updates. }, - "lastGeoFailoverTime": "2020-02-20 00:00:00", # Optional. Gets the timestamp of the most recent instance of a failover to the secondary location. Only the most recent timestamp is retained. This element is not returned if there has never been a failover instance. Only available if the accountType is StandardGRS or StandardRAGRS. + "lastGeoFailoverTime": "2020-02-20 00:00:00", # + Optional. Gets the timestamp of the most recent instance of a + failover to the secondary location. Only the most recent timestamp is + retained. This element is not returned if there has never been a + failover instance. Only available if the accountType is StandardGRS + or StandardRAGRS. "primaryEndpoints": { "FooPoint": { "Bar.Point": { "RecursivePoint": ... } }, - "blob": "str", # Optional. Gets the blob endpoint. + "blob": "str", # Optional. Gets the blob + endpoint. "dummyEndPoint": ..., - "queue": "str", # Optional. Gets the queue endpoint. - "table": "str" # Optional. Gets the table endpoint. + "queue": "str", # Optional. Gets the queue + endpoint. + "table": "str" # Optional. Gets the table + endpoint. }, - "primaryLocation": "str", # Optional. Gets the location of the primary for the storage account. - "provisioningState": "str", # Optional. Gets the status of the storage account at the time the operation was called. Possible values include: "Creating", "ResolvingDNS", "Succeeded". + "primaryLocation": "str", # Optional. Gets the + location of the primary for the storage account. + "provisioningState": "str", # Optional. Gets the + status of the storage account at the time the operation was called. + Possible values include: "Creating", "ResolvingDNS", "Succeeded". "secondaryEndpoints": { "FooPoint": { "Bar.Point": { "RecursivePoint": ... } }, - "blob": "str", # Optional. Gets the blob endpoint. + "blob": "str", # Optional. Gets the blob + endpoint. "dummyEndPoint": ..., - "queue": "str", # Optional. Gets the queue endpoint. - "table": "str" # Optional. Gets the table endpoint. + "queue": "str", # Optional. Gets the queue + endpoint. + "table": "str" # Optional. Gets the table + endpoint. }, - "secondaryLocation": "str", # Optional. Gets the location of the geo replicated secondary for the storage account. Only available if the accountType is StandardGRS or StandardRAGRS. - "statusOfPrimary": "str", # Optional. Gets the status indicating whether the primary location of the storage account is available or unavailable. Possible values include: "Available", "Unavailable". - "statusOfSecondary": "str" # Optional. Gets the status indicating whether the secondary location of the storage account is available or unavailable. Only available if the accountType is StandardGRS or StandardRAGRS. Possible values include: "Available", "Unavailable". + "secondaryLocation": "str", # Optional. Gets the + location of the geo replicated secondary for the storage account. + Only available if the accountType is StandardGRS or StandardRAGRS. + "statusOfPrimary": "str", # Optional. Gets the + status indicating whether the primary location of the storage account + is available or unavailable. Possible values include: "Available", + "Unavailable". + "statusOfSecondary": "str" # Optional. Gets the + status indicating whether the secondary location of the storage + account is available or unavailable. Only available if the + accountType is StandardGRS or StandardRAGRS. Possible values include: + "Available", "Unavailable". }, "tags": { - "str": "str" # Optional. A set of tags. Resource tags. + "str": "str" # Optional. A set of tags. Resource + tags. }, "type": "str" # Optional. Resource type. } @@ -729,50 +835,81 @@ def build_list_by_resource_group_request( # response body for status code(s): 200 response.json() == { - "nextLink": "str", # Optional. Gets the link to the next set of results. Currently this will always be empty as the API does not support pagination. + "nextLink": "str", # Optional. Gets the link to the next set of results. + Currently this will always be empty as the API does not support pagination. "value": [ { "id": "str", # Optional. Resource Id. "location": "str", # Required. Resource location. "name": "str", # Optional. Resource name. "properties": { - "accountType": "str", # Optional. Gets the type of the storage account. Possible values include: "Standard_LRS", "Standard_ZRS", "Standard_GRS", "Standard_RAGRS", "Premium_LRS". - "creationTime": "2020-02-20 00:00:00", # Optional. Gets the creation date and time of the storage account in UTC. + "accountType": "str", # Optional. Gets the type of + the storage account. Possible values include: "Standard_LRS", + "Standard_ZRS", "Standard_GRS", "Standard_RAGRS", "Premium_LRS". + "creationTime": "2020-02-20 00:00:00", # Optional. + Gets the creation date and time of the storage account in UTC. "customDomain": { - "name": "str", # Optional. Gets or sets the custom domain name. Name is the CNAME source. - "useSubDomain": bool # Optional. Indicates whether indirect CName validation is enabled. Default value is false. This should only be set on updates. + "name": "str", # Optional. Gets or sets the + custom domain name. Name is the CNAME source. + "useSubDomain": bool # Optional. Indicates + whether indirect CName validation is enabled. Default value is + false. This should only be set on updates. }, - "lastGeoFailoverTime": "2020-02-20 00:00:00", # Optional. Gets the timestamp of the most recent instance of a failover to the secondary location. Only the most recent timestamp is retained. This element is not returned if there has never been a failover instance. Only available if the accountType is StandardGRS or StandardRAGRS. + "lastGeoFailoverTime": "2020-02-20 00:00:00", # + Optional. Gets the timestamp of the most recent instance of a + failover to the secondary location. Only the most recent timestamp is + retained. This element is not returned if there has never been a + failover instance. Only available if the accountType is StandardGRS + or StandardRAGRS. "primaryEndpoints": { "FooPoint": { "Bar.Point": { "RecursivePoint": ... } }, - "blob": "str", # Optional. Gets the blob endpoint. + "blob": "str", # Optional. Gets the blob + endpoint. "dummyEndPoint": ..., - "queue": "str", # Optional. Gets the queue endpoint. - "table": "str" # Optional. Gets the table endpoint. + "queue": "str", # Optional. Gets the queue + endpoint. + "table": "str" # Optional. Gets the table + endpoint. }, - "primaryLocation": "str", # Optional. Gets the location of the primary for the storage account. - "provisioningState": "str", # Optional. Gets the status of the storage account at the time the operation was called. Possible values include: "Creating", "ResolvingDNS", "Succeeded". + "primaryLocation": "str", # Optional. Gets the + location of the primary for the storage account. + "provisioningState": "str", # Optional. Gets the + status of the storage account at the time the operation was called. + Possible values include: "Creating", "ResolvingDNS", "Succeeded". "secondaryEndpoints": { "FooPoint": { "Bar.Point": { "RecursivePoint": ... } }, - "blob": "str", # Optional. Gets the blob endpoint. + "blob": "str", # Optional. Gets the blob + endpoint. "dummyEndPoint": ..., - "queue": "str", # Optional. Gets the queue endpoint. - "table": "str" # Optional. Gets the table endpoint. + "queue": "str", # Optional. Gets the queue + endpoint. + "table": "str" # Optional. Gets the table + endpoint. }, - "secondaryLocation": "str", # Optional. Gets the location of the geo replicated secondary for the storage account. Only available if the accountType is StandardGRS or StandardRAGRS. - "statusOfPrimary": "str", # Optional. Gets the status indicating whether the primary location of the storage account is available or unavailable. Possible values include: "Available", "Unavailable". - "statusOfSecondary": "str" # Optional. Gets the status indicating whether the secondary location of the storage account is available or unavailable. Only available if the accountType is StandardGRS or StandardRAGRS. Possible values include: "Available", "Unavailable". + "secondaryLocation": "str", # Optional. Gets the + location of the geo replicated secondary for the storage account. + Only available if the accountType is StandardGRS or StandardRAGRS. + "statusOfPrimary": "str", # Optional. Gets the + status indicating whether the primary location of the storage account + is available or unavailable. Possible values include: "Available", + "Unavailable". + "statusOfSecondary": "str" # Optional. Gets the + status indicating whether the secondary location of the storage + account is available or unavailable. Only available if the + accountType is StandardGRS or StandardRAGRS. Possible values include: + "Available", "Unavailable". }, "tags": { - "str": "str" # Optional. A set of tags. Resource tags. + "str": "str" # Optional. A set of tags. Resource + tags. }, "type": "str" # Optional. Resource type. } @@ -861,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' + 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/storage_accounts/_request_builders_py3.py b/test/azure/low-level/Expected/AcceptanceTests/StorageManagementClientLowLevel/storagelowlevel/rest/storage_accounts/_request_builders_py3.py index bca43bd8716..fa1db58fd4c 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 @@ -51,14 +51,20 @@ def build_check_name_availability_request( # JSON input template you can fill out and use as your body input. json = { "name": "str", # Required. - "type": "Microsoft.Storage/storageAccounts" # Optional. Default value is "Microsoft.Storage/storageAccounts". + "type": "Microsoft.Storage/storageAccounts" # Optional. Default value is + "Microsoft.Storage/storageAccounts". } # response body for status code(s): 200 response.json() == { - "message": "str", # Optional. Gets an error message explaining the Reason value in more detail. - "nameAvailable": bool, # Optional. Gets a boolean value that indicates whether the name is available for you to use. If true, the name is available. If false, the name has already been taken or invalid and cannot be used. - "reason": "str" # Optional. Gets the reason that a storage account name could not be used. The Reason element is only returned if NameAvailable is false. Possible values include: "AccountNameInvalid", "AlreadyExists". + "message": "str", # Optional. Gets an error message explaining the Reason + value in more detail. + "nameAvailable": bool, # Optional. Gets a boolean value that indicates + whether the name is available for you to use. If true, the name is available. If + false, the name has already been taken or invalid and cannot be used. + "reason": "str" # Optional. Gets the reason that a storage account name + could not be used. The Reason element is only returned if NameAvailable is false. + Possible values include: "AccountNameInvalid", "AlreadyExists". } """ @@ -135,7 +141,9 @@ def build_create_request( "location": "str", # Required. Resource location. "name": "str", # Optional. Resource name. "properties": { - "accountType": "str" # Optional. Gets or sets the account type. Possible values include: "Standard_LRS", "Standard_ZRS", "Standard_GRS", "Standard_RAGRS", "Premium_LRS". + "accountType": "str" # Optional. Gets or sets the account type. + Possible values include: "Standard_LRS", "Standard_ZRS", "Standard_GRS", + "Standard_RAGRS", "Premium_LRS". }, "tags": { "str": "str" # Optional. A set of tags. Resource tags. @@ -149,13 +157,23 @@ def build_create_request( "location": "str", # Required. Resource location. "name": "str", # Optional. Resource name. "properties": { - "accountType": "str", # Optional. Gets the type of the storage account. Possible values include: "Standard_LRS", "Standard_ZRS", "Standard_GRS", "Standard_RAGRS", "Premium_LRS". - "creationTime": "2020-02-20 00:00:00", # Optional. Gets the creation date and time of the storage account in UTC. + "accountType": "str", # Optional. Gets the type of the storage + account. Possible values include: "Standard_LRS", "Standard_ZRS", + "Standard_GRS", "Standard_RAGRS", "Premium_LRS". + "creationTime": "2020-02-20 00:00:00", # Optional. Gets the creation + date and time of the storage account in UTC. "customDomain": { - "name": "str", # Optional. Gets or sets the custom domain name. Name is the CNAME source. - "useSubDomain": bool # Optional. Indicates whether indirect CName validation is enabled. Default value is false. This should only be set on updates. + "name": "str", # Optional. Gets or sets the custom domain + name. Name is the CNAME source. + "useSubDomain": bool # Optional. Indicates whether indirect + CName validation is enabled. Default value is false. This should only be + set on updates. }, - "lastGeoFailoverTime": "2020-02-20 00:00:00", # Optional. Gets the timestamp of the most recent instance of a failover to the secondary location. Only the most recent timestamp is retained. This element is not returned if there has never been a failover instance. Only available if the accountType is StandardGRS or StandardRAGRS. + "lastGeoFailoverTime": "2020-02-20 00:00:00", # Optional. Gets the + timestamp of the most recent instance of a failover to the secondary + location. Only the most recent timestamp is retained. This element is not + returned if there has never been a failover instance. Only available if the + accountType is StandardGRS or StandardRAGRS. "primaryEndpoints": { "FooPoint": { "Bar.Point": { @@ -167,8 +185,11 @@ def build_create_request( "queue": "str", # Optional. Gets the queue endpoint. "table": "str" # Optional. Gets the table endpoint. }, - "primaryLocation": "str", # Optional. Gets the location of the primary for the storage account. - "provisioningState": "str", # Optional. Gets the status of the storage account at the time the operation was called. Possible values include: "Creating", "ResolvingDNS", "Succeeded". + "primaryLocation": "str", # Optional. Gets the location of the + primary for the storage account. + "provisioningState": "str", # Optional. Gets the status of the + storage account at the time the operation was called. Possible values + include: "Creating", "ResolvingDNS", "Succeeded". "secondaryEndpoints": { "FooPoint": { "Bar.Point": { @@ -180,9 +201,16 @@ def build_create_request( "queue": "str", # Optional. Gets the queue endpoint. "table": "str" # Optional. Gets the table endpoint. }, - "secondaryLocation": "str", # Optional. Gets the location of the geo replicated secondary for the storage account. Only available if the accountType is StandardGRS or StandardRAGRS. - "statusOfPrimary": "str", # Optional. Gets the status indicating whether the primary location of the storage account is available or unavailable. Possible values include: "Available", "Unavailable". - "statusOfSecondary": "str" # Optional. Gets the status indicating whether the secondary location of the storage account is available or unavailable. Only available if the accountType is StandardGRS or StandardRAGRS. Possible values include: "Available", "Unavailable". + "secondaryLocation": "str", # Optional. Gets the location of the geo + replicated secondary for the storage account. Only available if the + accountType is StandardGRS or StandardRAGRS. + "statusOfPrimary": "str", # Optional. Gets the status indicating + whether the primary location of the storage account is available or + unavailable. Possible values include: "Available", "Unavailable". + "statusOfSecondary": "str" # Optional. Gets the status indicating + whether the secondary location of the storage account is available or + unavailable. Only available if the accountType is StandardGRS or + StandardRAGRS. Possible values include: "Available", "Unavailable". }, "tags": { "str": "str" # Optional. A set of tags. Resource tags. @@ -196,7 +224,7 @@ def build_create_request( accept = "application/json, text/json" # Construct URL - url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}" + 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"), @@ -246,7 +274,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}" + 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"), @@ -295,13 +323,23 @@ def build_get_properties_request( "location": "str", # Required. Resource location. "name": "str", # Optional. Resource name. "properties": { - "accountType": "str", # Optional. Gets the type of the storage account. Possible values include: "Standard_LRS", "Standard_ZRS", "Standard_GRS", "Standard_RAGRS", "Premium_LRS". - "creationTime": "2020-02-20 00:00:00", # Optional. Gets the creation date and time of the storage account in UTC. + "accountType": "str", # Optional. Gets the type of the storage + account. Possible values include: "Standard_LRS", "Standard_ZRS", + "Standard_GRS", "Standard_RAGRS", "Premium_LRS". + "creationTime": "2020-02-20 00:00:00", # Optional. Gets the creation + date and time of the storage account in UTC. "customDomain": { - "name": "str", # Optional. Gets or sets the custom domain name. Name is the CNAME source. - "useSubDomain": bool # Optional. Indicates whether indirect CName validation is enabled. Default value is false. This should only be set on updates. + "name": "str", # Optional. Gets or sets the custom domain + name. Name is the CNAME source. + "useSubDomain": bool # Optional. Indicates whether indirect + CName validation is enabled. Default value is false. This should only be + set on updates. }, - "lastGeoFailoverTime": "2020-02-20 00:00:00", # Optional. Gets the timestamp of the most recent instance of a failover to the secondary location. Only the most recent timestamp is retained. This element is not returned if there has never been a failover instance. Only available if the accountType is StandardGRS or StandardRAGRS. + "lastGeoFailoverTime": "2020-02-20 00:00:00", # Optional. Gets the + timestamp of the most recent instance of a failover to the secondary + location. Only the most recent timestamp is retained. This element is not + returned if there has never been a failover instance. Only available if the + accountType is StandardGRS or StandardRAGRS. "primaryEndpoints": { "FooPoint": { "Bar.Point": { @@ -313,8 +351,11 @@ def build_get_properties_request( "queue": "str", # Optional. Gets the queue endpoint. "table": "str" # Optional. Gets the table endpoint. }, - "primaryLocation": "str", # Optional. Gets the location of the primary for the storage account. - "provisioningState": "str", # Optional. Gets the status of the storage account at the time the operation was called. Possible values include: "Creating", "ResolvingDNS", "Succeeded". + "primaryLocation": "str", # Optional. Gets the location of the + primary for the storage account. + "provisioningState": "str", # Optional. Gets the status of the + storage account at the time the operation was called. Possible values + include: "Creating", "ResolvingDNS", "Succeeded". "secondaryEndpoints": { "FooPoint": { "Bar.Point": { @@ -326,9 +367,16 @@ def build_get_properties_request( "queue": "str", # Optional. Gets the queue endpoint. "table": "str" # Optional. Gets the table endpoint. }, - "secondaryLocation": "str", # Optional. Gets the location of the geo replicated secondary for the storage account. Only available if the accountType is StandardGRS or StandardRAGRS. - "statusOfPrimary": "str", # Optional. Gets the status indicating whether the primary location of the storage account is available or unavailable. Possible values include: "Available", "Unavailable". - "statusOfSecondary": "str" # Optional. Gets the status indicating whether the secondary location of the storage account is available or unavailable. Only available if the accountType is StandardGRS or StandardRAGRS. Possible values include: "Available", "Unavailable". + "secondaryLocation": "str", # Optional. Gets the location of the geo + replicated secondary for the storage account. Only available if the + accountType is StandardGRS or StandardRAGRS. + "statusOfPrimary": "str", # Optional. Gets the status indicating + whether the primary location of the storage account is available or + unavailable. Possible values include: "Available", "Unavailable". + "statusOfSecondary": "str" # Optional. Gets the status indicating + whether the secondary location of the storage account is available or + unavailable. Only available if the accountType is StandardGRS or + StandardRAGRS. Possible values include: "Available", "Unavailable". }, "tags": { "str": "str" # Optional. A set of tags. Resource tags. @@ -341,7 +389,7 @@ def build_get_properties_request( accept = "application/json, text/json" # Construct URL - url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}" + 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"), @@ -412,10 +460,17 @@ def build_update_request( "location": "str", # Required. Resource location. "name": "str", # Optional. Resource name. "properties": { - "accountType": "str", # Optional. Gets or sets the account type. Note that StandardZRS and PremiumLRS accounts cannot be changed to other account types, and other account types cannot be changed to StandardZRS or PremiumLRS. Possible values include: "Standard_LRS", "Standard_ZRS", "Standard_GRS", "Standard_RAGRS", "Premium_LRS". + "accountType": "str", # Optional. Gets or sets the account type. + Note that StandardZRS and PremiumLRS accounts cannot be changed to other + account types, and other account types cannot be changed to StandardZRS or + PremiumLRS. Possible values include: "Standard_LRS", "Standard_ZRS", + "Standard_GRS", "Standard_RAGRS", "Premium_LRS". "customDomain": { - "name": "str", # Optional. Gets or sets the custom domain name. Name is the CNAME source. - "useSubDomain": bool # Optional. Indicates whether indirect CName validation is enabled. Default value is false. This should only be set on updates. + "name": "str", # Optional. Gets or sets the custom domain + name. Name is the CNAME source. + "useSubDomain": bool # Optional. Indicates whether indirect + CName validation is enabled. Default value is false. This should only be + set on updates. } }, "tags": { @@ -430,13 +485,23 @@ def build_update_request( "location": "str", # Required. Resource location. "name": "str", # Optional. Resource name. "properties": { - "accountType": "str", # Optional. Gets the type of the storage account. Possible values include: "Standard_LRS", "Standard_ZRS", "Standard_GRS", "Standard_RAGRS", "Premium_LRS". - "creationTime": "2020-02-20 00:00:00", # Optional. Gets the creation date and time of the storage account in UTC. + "accountType": "str", # Optional. Gets the type of the storage + account. Possible values include: "Standard_LRS", "Standard_ZRS", + "Standard_GRS", "Standard_RAGRS", "Premium_LRS". + "creationTime": "2020-02-20 00:00:00", # Optional. Gets the creation + date and time of the storage account in UTC. "customDomain": { - "name": "str", # Optional. Gets or sets the custom domain name. Name is the CNAME source. - "useSubDomain": bool # Optional. Indicates whether indirect CName validation is enabled. Default value is false. This should only be set on updates. + "name": "str", # Optional. Gets or sets the custom domain + name. Name is the CNAME source. + "useSubDomain": bool # Optional. Indicates whether indirect + CName validation is enabled. Default value is false. This should only be + set on updates. }, - "lastGeoFailoverTime": "2020-02-20 00:00:00", # Optional. Gets the timestamp of the most recent instance of a failover to the secondary location. Only the most recent timestamp is retained. This element is not returned if there has never been a failover instance. Only available if the accountType is StandardGRS or StandardRAGRS. + "lastGeoFailoverTime": "2020-02-20 00:00:00", # Optional. Gets the + timestamp of the most recent instance of a failover to the secondary + location. Only the most recent timestamp is retained. This element is not + returned if there has never been a failover instance. Only available if the + accountType is StandardGRS or StandardRAGRS. "primaryEndpoints": { "FooPoint": { "Bar.Point": { @@ -448,8 +513,11 @@ def build_update_request( "queue": "str", # Optional. Gets the queue endpoint. "table": "str" # Optional. Gets the table endpoint. }, - "primaryLocation": "str", # Optional. Gets the location of the primary for the storage account. - "provisioningState": "str", # Optional. Gets the status of the storage account at the time the operation was called. Possible values include: "Creating", "ResolvingDNS", "Succeeded". + "primaryLocation": "str", # Optional. Gets the location of the + primary for the storage account. + "provisioningState": "str", # Optional. Gets the status of the + storage account at the time the operation was called. Possible values + include: "Creating", "ResolvingDNS", "Succeeded". "secondaryEndpoints": { "FooPoint": { "Bar.Point": { @@ -461,9 +529,16 @@ def build_update_request( "queue": "str", # Optional. Gets the queue endpoint. "table": "str" # Optional. Gets the table endpoint. }, - "secondaryLocation": "str", # Optional. Gets the location of the geo replicated secondary for the storage account. Only available if the accountType is StandardGRS or StandardRAGRS. - "statusOfPrimary": "str", # Optional. Gets the status indicating whether the primary location of the storage account is available or unavailable. Possible values include: "Available", "Unavailable". - "statusOfSecondary": "str" # Optional. Gets the status indicating whether the secondary location of the storage account is available or unavailable. Only available if the accountType is StandardGRS or StandardRAGRS. Possible values include: "Available", "Unavailable". + "secondaryLocation": "str", # Optional. Gets the location of the geo + replicated secondary for the storage account. Only available if the + accountType is StandardGRS or StandardRAGRS. + "statusOfPrimary": "str", # Optional. Gets the status indicating + whether the primary location of the storage account is available or + unavailable. Possible values include: "Available", "Unavailable". + "statusOfSecondary": "str" # Optional. Gets the status indicating + whether the secondary location of the storage account is available or + unavailable. Only available if the accountType is StandardGRS or + StandardRAGRS. Possible values include: "Available", "Unavailable". }, "tags": { "str": "str" # Optional. A set of tags. Resource tags. @@ -477,7 +552,7 @@ def build_update_request( accept = "application/json, text/json" # Construct URL - url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}" + 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"), @@ -541,7 +616,7 @@ def build_list_keys_request( accept = "application/json, text/json" # Construct URL - url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/listKeys" + 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"), @@ -581,50 +656,81 @@ def build_list_request(subscription_id: str, **kwargs: Any) -> HttpRequest: # response body for status code(s): 200 response.json() == { - "nextLink": "str", # Optional. Gets the link to the next set of results. Currently this will always be empty as the API does not support pagination. + "nextLink": "str", # Optional. Gets the link to the next set of results. + Currently this will always be empty as the API does not support pagination. "value": [ { "id": "str", # Optional. Resource Id. "location": "str", # Required. Resource location. "name": "str", # Optional. Resource name. "properties": { - "accountType": "str", # Optional. Gets the type of the storage account. Possible values include: "Standard_LRS", "Standard_ZRS", "Standard_GRS", "Standard_RAGRS", "Premium_LRS". - "creationTime": "2020-02-20 00:00:00", # Optional. Gets the creation date and time of the storage account in UTC. + "accountType": "str", # Optional. Gets the type of + the storage account. Possible values include: "Standard_LRS", + "Standard_ZRS", "Standard_GRS", "Standard_RAGRS", "Premium_LRS". + "creationTime": "2020-02-20 00:00:00", # Optional. + Gets the creation date and time of the storage account in UTC. "customDomain": { - "name": "str", # Optional. Gets or sets the custom domain name. Name is the CNAME source. - "useSubDomain": bool # Optional. Indicates whether indirect CName validation is enabled. Default value is false. This should only be set on updates. + "name": "str", # Optional. Gets or sets the + custom domain name. Name is the CNAME source. + "useSubDomain": bool # Optional. Indicates + whether indirect CName validation is enabled. Default value is + false. This should only be set on updates. }, - "lastGeoFailoverTime": "2020-02-20 00:00:00", # Optional. Gets the timestamp of the most recent instance of a failover to the secondary location. Only the most recent timestamp is retained. This element is not returned if there has never been a failover instance. Only available if the accountType is StandardGRS or StandardRAGRS. + "lastGeoFailoverTime": "2020-02-20 00:00:00", # + Optional. Gets the timestamp of the most recent instance of a + failover to the secondary location. Only the most recent timestamp is + retained. This element is not returned if there has never been a + failover instance. Only available if the accountType is StandardGRS + or StandardRAGRS. "primaryEndpoints": { "FooPoint": { "Bar.Point": { "RecursivePoint": ... } }, - "blob": "str", # Optional. Gets the blob endpoint. + "blob": "str", # Optional. Gets the blob + endpoint. "dummyEndPoint": ..., - "queue": "str", # Optional. Gets the queue endpoint. - "table": "str" # Optional. Gets the table endpoint. + "queue": "str", # Optional. Gets the queue + endpoint. + "table": "str" # Optional. Gets the table + endpoint. }, - "primaryLocation": "str", # Optional. Gets the location of the primary for the storage account. - "provisioningState": "str", # Optional. Gets the status of the storage account at the time the operation was called. Possible values include: "Creating", "ResolvingDNS", "Succeeded". + "primaryLocation": "str", # Optional. Gets the + location of the primary for the storage account. + "provisioningState": "str", # Optional. Gets the + status of the storage account at the time the operation was called. + Possible values include: "Creating", "ResolvingDNS", "Succeeded". "secondaryEndpoints": { "FooPoint": { "Bar.Point": { "RecursivePoint": ... } }, - "blob": "str", # Optional. Gets the blob endpoint. + "blob": "str", # Optional. Gets the blob + endpoint. "dummyEndPoint": ..., - "queue": "str", # Optional. Gets the queue endpoint. - "table": "str" # Optional. Gets the table endpoint. + "queue": "str", # Optional. Gets the queue + endpoint. + "table": "str" # Optional. Gets the table + endpoint. }, - "secondaryLocation": "str", # Optional. Gets the location of the geo replicated secondary for the storage account. Only available if the accountType is StandardGRS or StandardRAGRS. - "statusOfPrimary": "str", # Optional. Gets the status indicating whether the primary location of the storage account is available or unavailable. Possible values include: "Available", "Unavailable". - "statusOfSecondary": "str" # Optional. Gets the status indicating whether the secondary location of the storage account is available or unavailable. Only available if the accountType is StandardGRS or StandardRAGRS. Possible values include: "Available", "Unavailable". + "secondaryLocation": "str", # Optional. Gets the + location of the geo replicated secondary for the storage account. + Only available if the accountType is StandardGRS or StandardRAGRS. + "statusOfPrimary": "str", # Optional. Gets the + status indicating whether the primary location of the storage account + is available or unavailable. Possible values include: "Available", + "Unavailable". + "statusOfSecondary": "str" # Optional. Gets the + status indicating whether the secondary location of the storage + account is available or unavailable. Only available if the + accountType is StandardGRS or StandardRAGRS. Possible values include: + "Available", "Unavailable". }, "tags": { - "str": "str" # Optional. A set of tags. Resource tags. + "str": "str" # Optional. A set of tags. Resource + tags. }, "type": "str" # Optional. Resource type. } @@ -676,50 +782,81 @@ def build_list_by_resource_group_request(resource_group_name: str, subscription_ # response body for status code(s): 200 response.json() == { - "nextLink": "str", # Optional. Gets the link to the next set of results. Currently this will always be empty as the API does not support pagination. + "nextLink": "str", # Optional. Gets the link to the next set of results. + Currently this will always be empty as the API does not support pagination. "value": [ { "id": "str", # Optional. Resource Id. "location": "str", # Required. Resource location. "name": "str", # Optional. Resource name. "properties": { - "accountType": "str", # Optional. Gets the type of the storage account. Possible values include: "Standard_LRS", "Standard_ZRS", "Standard_GRS", "Standard_RAGRS", "Premium_LRS". - "creationTime": "2020-02-20 00:00:00", # Optional. Gets the creation date and time of the storage account in UTC. + "accountType": "str", # Optional. Gets the type of + the storage account. Possible values include: "Standard_LRS", + "Standard_ZRS", "Standard_GRS", "Standard_RAGRS", "Premium_LRS". + "creationTime": "2020-02-20 00:00:00", # Optional. + Gets the creation date and time of the storage account in UTC. "customDomain": { - "name": "str", # Optional. Gets or sets the custom domain name. Name is the CNAME source. - "useSubDomain": bool # Optional. Indicates whether indirect CName validation is enabled. Default value is false. This should only be set on updates. + "name": "str", # Optional. Gets or sets the + custom domain name. Name is the CNAME source. + "useSubDomain": bool # Optional. Indicates + whether indirect CName validation is enabled. Default value is + false. This should only be set on updates. }, - "lastGeoFailoverTime": "2020-02-20 00:00:00", # Optional. Gets the timestamp of the most recent instance of a failover to the secondary location. Only the most recent timestamp is retained. This element is not returned if there has never been a failover instance. Only available if the accountType is StandardGRS or StandardRAGRS. + "lastGeoFailoverTime": "2020-02-20 00:00:00", # + Optional. Gets the timestamp of the most recent instance of a + failover to the secondary location. Only the most recent timestamp is + retained. This element is not returned if there has never been a + failover instance. Only available if the accountType is StandardGRS + or StandardRAGRS. "primaryEndpoints": { "FooPoint": { "Bar.Point": { "RecursivePoint": ... } }, - "blob": "str", # Optional. Gets the blob endpoint. + "blob": "str", # Optional. Gets the blob + endpoint. "dummyEndPoint": ..., - "queue": "str", # Optional. Gets the queue endpoint. - "table": "str" # Optional. Gets the table endpoint. + "queue": "str", # Optional. Gets the queue + endpoint. + "table": "str" # Optional. Gets the table + endpoint. }, - "primaryLocation": "str", # Optional. Gets the location of the primary for the storage account. - "provisioningState": "str", # Optional. Gets the status of the storage account at the time the operation was called. Possible values include: "Creating", "ResolvingDNS", "Succeeded". + "primaryLocation": "str", # Optional. Gets the + location of the primary for the storage account. + "provisioningState": "str", # Optional. Gets the + status of the storage account at the time the operation was called. + Possible values include: "Creating", "ResolvingDNS", "Succeeded". "secondaryEndpoints": { "FooPoint": { "Bar.Point": { "RecursivePoint": ... } }, - "blob": "str", # Optional. Gets the blob endpoint. + "blob": "str", # Optional. Gets the blob + endpoint. "dummyEndPoint": ..., - "queue": "str", # Optional. Gets the queue endpoint. - "table": "str" # Optional. Gets the table endpoint. + "queue": "str", # Optional. Gets the queue + endpoint. + "table": "str" # Optional. Gets the table + endpoint. }, - "secondaryLocation": "str", # Optional. Gets the location of the geo replicated secondary for the storage account. Only available if the accountType is StandardGRS or StandardRAGRS. - "statusOfPrimary": "str", # Optional. Gets the status indicating whether the primary location of the storage account is available or unavailable. Possible values include: "Available", "Unavailable". - "statusOfSecondary": "str" # Optional. Gets the status indicating whether the secondary location of the storage account is available or unavailable. Only available if the accountType is StandardGRS or StandardRAGRS. Possible values include: "Available", "Unavailable". + "secondaryLocation": "str", # Optional. Gets the + location of the geo replicated secondary for the storage account. + Only available if the accountType is StandardGRS or StandardRAGRS. + "statusOfPrimary": "str", # Optional. Gets the + status indicating whether the primary location of the storage account + is available or unavailable. Possible values include: "Available", + "Unavailable". + "statusOfSecondary": "str" # Optional. Gets the + status indicating whether the secondary location of the storage + account is available or unavailable. Only available if the + accountType is StandardGRS or StandardRAGRS. Possible values include: + "Available", "Unavailable". }, "tags": { - "str": "str" # Optional. A set of tags. Resource tags. + "str": "str" # Optional. A set of tags. Resource + tags. }, "type": "str" # Optional. Resource type. } @@ -806,7 +943,7 @@ def build_regenerate_key_request( accept = "application/json, text/json" # Construct URL - url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/regenerateKey" + 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 5f04bd532f6..b5ba2edd073 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 @@ -46,13 +46,19 @@ def build_list_request( response.json() == { "value": [ { - "currentValue": 0, # Optional. Gets the current count of the allocated resources in the subscription. - "limit": 0, # Optional. Gets the maximum count of the resources that can be allocated in the subscription. + "currentValue": 0, # Optional. Gets the current count of the + allocated resources in the subscription. + "limit": 0, # Optional. Gets the maximum count of the + resources that can be allocated in the subscription. "name": { - "localizedValue": "str", # Optional. Gets a localized string describing the resource name. - "value": "str" # Optional. Gets a string describing the resource name. + "localizedValue": "str", # Optional. Gets a + localized string describing the resource name. + "value": "str" # Optional. Gets a string describing + the resource name. }, - "unit": "str" # Optional. Gets the unit of measurement. Possible values include: "Count", "Bytes", "Seconds", "Percent", "CountsPerSecond", "BytesPerSecond". + "unit": "str" # Optional. Gets the unit of measurement. + Possible values include: "Count", "Bytes", "Seconds", "Percent", + "CountsPerSecond", "BytesPerSecond". } ] } 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 0d9bf3accd0..540bb27a0e5 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 @@ -37,13 +37,19 @@ def build_list_request(subscription_id: str, **kwargs: Any) -> HttpRequest: response.json() == { "value": [ { - "currentValue": 0, # Optional. Gets the current count of the allocated resources in the subscription. - "limit": 0, # Optional. Gets the maximum count of the resources that can be allocated in the subscription. + "currentValue": 0, # Optional. Gets the current count of the + allocated resources in the subscription. + "limit": 0, # Optional. Gets the maximum count of the + resources that can be allocated in the subscription. "name": { - "localizedValue": "str", # Optional. Gets a localized string describing the resource name. - "value": "str" # Optional. Gets a string describing the resource name. + "localizedValue": "str", # Optional. Gets a + localized string describing the resource name. + "value": "str" # Optional. Gets a string describing + the resource name. }, - "unit": "str" # Optional. Gets the unit of measurement. Possible values include: "Count", "Bytes", "Seconds", "Percent", "CountsPerSecond", "BytesPerSecond". + "unit": "str" # Optional. Gets the unit of measurement. + Possible values include: "Count", "Bytes", "Seconds", "Percent", + "CountsPerSecond", "BytesPerSecond". } ] } diff --git a/test/azure/low-level/Expected/AcceptanceTests/SubscriptionIdApiVersionLowLevel/subscriptionidapiversionlowlevel/_configuration.py b/test/azure/low-level/Expected/AcceptanceTests/SubscriptionIdApiVersionLowLevel/subscriptionidapiversionlowlevel/_configuration.py index b4cf87c9459..021657b2048 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/SubscriptionIdApiVersionLowLevel/subscriptionidapiversionlowlevel/_configuration.py +++ b/test/azure/low-level/Expected/AcceptanceTests/SubscriptionIdApiVersionLowLevel/subscriptionidapiversionlowlevel/_configuration.py @@ -19,7 +19,7 @@ from azure.core.credentials import TokenCredential -class MicrosoftAzureTestUrlConfiguration(Configuration): +class MicrosoftAzureTestUrlConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for MicrosoftAzureTestUrl. Note that all parameters used to create this instance are saved as instance @@ -29,7 +29,8 @@ class MicrosoftAzureTestUrlConfiguration(Configuration): :type subscription_id: str :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials.TokenCredential - :keyword api_version: Api Version. The default value is "2014-04-01-preview". Note that overriding this default value may result in unsupported behavior. + :keyword api_version: Api Version. The default value is "2014-04-01-preview". Note that + overriding this default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/test/azure/low-level/Expected/AcceptanceTests/SubscriptionIdApiVersionLowLevel/subscriptionidapiversionlowlevel/_microsoft_azure_test_url.py b/test/azure/low-level/Expected/AcceptanceTests/SubscriptionIdApiVersionLowLevel/subscriptionidapiversionlowlevel/_microsoft_azure_test_url.py index 91c2bc8e89f..ee8ac32083f 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/SubscriptionIdApiVersionLowLevel/subscriptionidapiversionlowlevel/_microsoft_azure_test_url.py +++ b/test/azure/low-level/Expected/AcceptanceTests/SubscriptionIdApiVersionLowLevel/subscriptionidapiversionlowlevel/_microsoft_azure_test_url.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Optional, TYPE_CHECKING +from typing import Any, TYPE_CHECKING from azure.core.rest import HttpRequest, HttpResponse from azure.mgmt.core import ARMPipelineClient diff --git a/test/azure/low-level/Expected/AcceptanceTests/SubscriptionIdApiVersionLowLevel/subscriptionidapiversionlowlevel/aio/_configuration.py b/test/azure/low-level/Expected/AcceptanceTests/SubscriptionIdApiVersionLowLevel/subscriptionidapiversionlowlevel/aio/_configuration.py index 0f36b5ad581..a06f9a1af6c 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/SubscriptionIdApiVersionLowLevel/subscriptionidapiversionlowlevel/aio/_configuration.py +++ b/test/azure/low-level/Expected/AcceptanceTests/SubscriptionIdApiVersionLowLevel/subscriptionidapiversionlowlevel/aio/_configuration.py @@ -19,7 +19,7 @@ from azure.core.credentials_async import AsyncTokenCredential -class MicrosoftAzureTestUrlConfiguration(Configuration): +class MicrosoftAzureTestUrlConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for MicrosoftAzureTestUrl. Note that all parameters used to create this instance are saved as instance @@ -29,7 +29,8 @@ class MicrosoftAzureTestUrlConfiguration(Configuration): :type subscription_id: str :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials_async.AsyncTokenCredential - :keyword api_version: Api Version. The default value is "2014-04-01-preview". Note that overriding this default value may result in unsupported behavior. + :keyword api_version: Api Version. The default value is "2014-04-01-preview". Note that + overriding this default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/test/azure/low-level/Expected/AcceptanceTests/SubscriptionIdApiVersionLowLevel/subscriptionidapiversionlowlevel/aio/_microsoft_azure_test_url.py b/test/azure/low-level/Expected/AcceptanceTests/SubscriptionIdApiVersionLowLevel/subscriptionidapiversionlowlevel/aio/_microsoft_azure_test_url.py index 57302663f01..1f57a7a66af 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/SubscriptionIdApiVersionLowLevel/subscriptionidapiversionlowlevel/aio/_microsoft_azure_test_url.py +++ b/test/azure/low-level/Expected/AcceptanceTests/SubscriptionIdApiVersionLowLevel/subscriptionidapiversionlowlevel/aio/_microsoft_azure_test_url.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional, TYPE_CHECKING +from typing import Any, Awaitable, TYPE_CHECKING from azure.core.rest import AsyncHttpResponse, HttpRequest from azure.mgmt.core import AsyncARMPipelineClient diff --git a/test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenInitialLowLevel/llcservicedriveninitiallowlevel/_configuration.py b/test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenInitialLowLevel/llcservicedriveninitiallowlevel/_configuration.py index a846c0d8781..784bfb700ff 100644 --- a/test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenInitialLowLevel/llcservicedriveninitiallowlevel/_configuration.py +++ b/test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenInitialLowLevel/llcservicedriveninitiallowlevel/_configuration.py @@ -14,7 +14,7 @@ from ._version import VERSION -class LLCClientConfiguration(Configuration): +class LLCClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for LLCClient. Note that all parameters used to create this instance are saved as instance diff --git a/test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenInitialLowLevel/llcservicedriveninitiallowlevel/_llc_client.py b/test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenInitialLowLevel/llcservicedriveninitiallowlevel/_llc_client.py index c4cb2e23a1c..510f9c1bfac 100644 --- a/test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenInitialLowLevel/llcservicedriveninitiallowlevel/_llc_client.py +++ b/test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenInitialLowLevel/llcservicedriveninitiallowlevel/_llc_client.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Optional, TYPE_CHECKING +from typing import Any, TYPE_CHECKING from azure.core import PipelineClient from azure.core.rest import HttpRequest, HttpResponse diff --git a/test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenInitialLowLevel/llcservicedriveninitiallowlevel/aio/_configuration.py b/test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenInitialLowLevel/llcservicedriveninitiallowlevel/aio/_configuration.py index 35bdf357a0c..1fcc6b383cf 100644 --- a/test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenInitialLowLevel/llcservicedriveninitiallowlevel/aio/_configuration.py +++ b/test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenInitialLowLevel/llcservicedriveninitiallowlevel/aio/_configuration.py @@ -14,7 +14,7 @@ from .._version import VERSION -class LLCClientConfiguration(Configuration): +class LLCClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for LLCClient. Note that all parameters used to create this instance are saved as instance diff --git a/test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenInitialLowLevel/llcservicedriveninitiallowlevel/aio/_llc_client.py b/test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenInitialLowLevel/llcservicedriveninitiallowlevel/aio/_llc_client.py index ec475f3a4e7..fb05aad6448 100644 --- a/test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenInitialLowLevel/llcservicedriveninitiallowlevel/aio/_llc_client.py +++ b/test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenInitialLowLevel/llcservicedriveninitiallowlevel/aio/_llc_client.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional, TYPE_CHECKING +from typing import Any, Awaitable, TYPE_CHECKING from azure.core import AsyncPipelineClient from azure.core.rest import AsyncHttpResponse, HttpRequest 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 1e6154c6f00..66c784b9c74 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 @@ -165,7 +165,7 @@ def build_post_parameters_request( # JSON input template you can fill out and use as your body input. json = { - "url": "str" # Required. + "url": "str" # Required. } """ diff --git a/test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneLowLevel/llcservicedrivenupdateonelowlevel/_configuration.py b/test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneLowLevel/llcservicedrivenupdateonelowlevel/_configuration.py index 3314e0125e8..d85a416422c 100644 --- a/test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneLowLevel/llcservicedrivenupdateonelowlevel/_configuration.py +++ b/test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneLowLevel/llcservicedrivenupdateonelowlevel/_configuration.py @@ -14,7 +14,7 @@ from ._version import VERSION -class LLCClientConfiguration(Configuration): +class LLCClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for LLCClient. Note that all parameters used to create this instance are saved as instance diff --git a/test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneLowLevel/llcservicedrivenupdateonelowlevel/_llc_client.py b/test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneLowLevel/llcservicedrivenupdateonelowlevel/_llc_client.py index 25f909d21fd..f1d3a192acc 100644 --- a/test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneLowLevel/llcservicedrivenupdateonelowlevel/_llc_client.py +++ b/test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneLowLevel/llcservicedrivenupdateonelowlevel/_llc_client.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Optional, TYPE_CHECKING +from typing import Any, TYPE_CHECKING from azure.core import PipelineClient from azure.core.rest import HttpRequest, HttpResponse diff --git a/test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneLowLevel/llcservicedrivenupdateonelowlevel/aio/_configuration.py b/test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneLowLevel/llcservicedrivenupdateonelowlevel/aio/_configuration.py index fdb5ddb9fba..1e241cc72df 100644 --- a/test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneLowLevel/llcservicedrivenupdateonelowlevel/aio/_configuration.py +++ b/test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneLowLevel/llcservicedrivenupdateonelowlevel/aio/_configuration.py @@ -14,7 +14,7 @@ from .._version import VERSION -class LLCClientConfiguration(Configuration): +class LLCClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for LLCClient. Note that all parameters used to create this instance are saved as instance diff --git a/test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneLowLevel/llcservicedrivenupdateonelowlevel/aio/_llc_client.py b/test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneLowLevel/llcservicedrivenupdateonelowlevel/aio/_llc_client.py index 50c0c7ccb14..63a33d1ef75 100644 --- a/test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneLowLevel/llcservicedrivenupdateonelowlevel/aio/_llc_client.py +++ b/test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneLowLevel/llcservicedrivenupdateonelowlevel/aio/_llc_client.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional, TYPE_CHECKING +from typing import Any, Awaitable, TYPE_CHECKING from azure.core import AsyncPipelineClient from azure.core.rest import AsyncHttpResponse, HttpRequest 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 2ae663a7223..9a2109deefd 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 @@ -12,7 +12,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Dict, IO, Optional, TypeVar, Union + from typing import Any, Dict, Optional, TypeVar, Union T = TypeVar("T") JSONType = Any 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 873f60cb325..4b6e6f57bfc 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 @@ -5,7 +5,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, Dict, IO, Optional, TypeVar, Union +from typing import Any, Dict, Optional, TypeVar, Union from azure.core.rest import HttpRequest from msrest import Serializer diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/AdditionalPropertiesLowLevel/additionalpropertieslowlevel/_additional_properties_client.py b/test/vanilla/low-level/Expected/AcceptanceTests/AdditionalPropertiesLowLevel/additionalpropertieslowlevel/_additional_properties_client.py index 801e1f129f6..9c859d5c8ae 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/AdditionalPropertiesLowLevel/additionalpropertieslowlevel/_additional_properties_client.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/AdditionalPropertiesLowLevel/additionalpropertieslowlevel/_additional_properties_client.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Optional, TYPE_CHECKING +from typing import Any, TYPE_CHECKING from azure.core import PipelineClient from azure.core.rest import HttpRequest, HttpResponse diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/AdditionalPropertiesLowLevel/additionalpropertieslowlevel/_configuration.py b/test/vanilla/low-level/Expected/AcceptanceTests/AdditionalPropertiesLowLevel/additionalpropertieslowlevel/_configuration.py index 109de7bc226..79377255703 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/AdditionalPropertiesLowLevel/additionalpropertieslowlevel/_configuration.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/AdditionalPropertiesLowLevel/additionalpropertieslowlevel/_configuration.py @@ -14,7 +14,7 @@ from ._version import VERSION -class AdditionalPropertiesClientConfiguration(Configuration): +class AdditionalPropertiesClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AdditionalPropertiesClient. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/AdditionalPropertiesLowLevel/additionalpropertieslowlevel/aio/_additional_properties_client.py b/test/vanilla/low-level/Expected/AcceptanceTests/AdditionalPropertiesLowLevel/additionalpropertieslowlevel/aio/_additional_properties_client.py index 6dbd57b980f..d72aee297f2 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/AdditionalPropertiesLowLevel/additionalpropertieslowlevel/aio/_additional_properties_client.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/AdditionalPropertiesLowLevel/additionalpropertieslowlevel/aio/_additional_properties_client.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional, TYPE_CHECKING +from typing import Any, Awaitable, TYPE_CHECKING from azure.core import AsyncPipelineClient from azure.core.rest import AsyncHttpResponse, HttpRequest diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/AdditionalPropertiesLowLevel/additionalpropertieslowlevel/aio/_configuration.py b/test/vanilla/low-level/Expected/AcceptanceTests/AdditionalPropertiesLowLevel/additionalpropertieslowlevel/aio/_configuration.py index c431b41cf3a..6957b41d9ba 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/AdditionalPropertiesLowLevel/additionalpropertieslowlevel/aio/_configuration.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/AdditionalPropertiesLowLevel/additionalpropertieslowlevel/aio/_configuration.py @@ -14,7 +14,7 @@ from .._version import VERSION -class AdditionalPropertiesClientConfiguration(Configuration): +class AdditionalPropertiesClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AdditionalPropertiesClient. Note that all parameters used to create this instance are saved as instance 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 ce195c06854..a05b5018079 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 @@ -47,14 +47,14 @@ def build_create_ap_true_request( # JSON input template you can fill out and use as your body input. json = { - "id": 0, # Required. + "id": 0, # Required. "name": "str", # Optional. "status": bool # Optional. } # response body for status code(s): 200 response.json() == { - "id": 0, # Required. + "id": 0, # Required. "name": "str", # Optional. "status": bool # Optional. } @@ -106,7 +106,7 @@ def build_create_cat_ap_true_request( # JSON input template you can fill out and use as your body input. json = { "friendly": bool, # Optional. - "id": 0, # Required. + "id": 0, # Required. "name": "str", # Optional. "status": bool # Optional. } @@ -114,7 +114,7 @@ def build_create_cat_ap_true_request( # response body for status code(s): 200 response.json() == { "friendly": bool, # Optional. - "id": 0, # Required. + "id": 0, # Required. "name": "str", # Optional. "status": bool # Optional. } @@ -165,14 +165,14 @@ def build_create_ap_object_request( # JSON input template you can fill out and use as your body input. json = { - "id": 0, # Required. + "id": 0, # Required. "name": "str", # Optional. "status": bool # Optional. } # response body for status code(s): 200 response.json() == { - "id": 0, # Required. + "id": 0, # Required. "name": "str", # Optional. "status": bool # Optional. } @@ -223,14 +223,14 @@ def build_create_ap_string_request( # JSON input template you can fill out and use as your body input. json = { - "id": 0, # Required. + "id": 0, # Required. "name": "str", # Optional. "status": bool # Optional. } # response body for status code(s): 200 response.json() == { - "id": 0, # Required. + "id": 0, # Required. "name": "str", # Optional. "status": bool # Optional. } @@ -281,14 +281,14 @@ def build_create_ap_in_properties_request( # JSON input template you can fill out and use as your body input. json = { - "id": 0, # Required. + "id": 0, # Required. "name": "str", # Optional. "status": bool # Optional. } # response body for status code(s): 200 response.json() == { - "id": 0, # Required. + "id": 0, # Required. "name": "str", # Optional. "status": bool # Optional. } @@ -339,22 +339,22 @@ def build_create_ap_in_properties_with_ap_string_request( # JSON input template you can fill out and use as your body input. json = { - "@odata.location": "str", # Required. + "@odata.location": "str", # Required. "additionalProperties": { "str": 0.0 # Optional. Dictionary of :code:``. }, - "id": 0, # Required. + "id": 0, # Required. "name": "str", # Optional. "status": bool # Optional. } # response body for status code(s): 200 response.json() == { - "@odata.location": "str", # Required. + "@odata.location": "str", # Required. "additionalProperties": { "str": 0.0 # Optional. Dictionary of :code:``. }, - "id": 0, # Required. + "id": 0, # Required. "name": "str", # Optional. "status": bool # Optional. } diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/AnythingLowLevel/anythinglowlevel/_anything_client.py b/test/vanilla/low-level/Expected/AcceptanceTests/AnythingLowLevel/anythinglowlevel/_anything_client.py index 558949fd767..0c2f0ae71a7 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/AnythingLowLevel/anythinglowlevel/_anything_client.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/AnythingLowLevel/anythinglowlevel/_anything_client.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Optional, TYPE_CHECKING +from typing import Any, TYPE_CHECKING from azure.core import PipelineClient from azure.core.rest import HttpRequest, HttpResponse @@ -21,7 +21,8 @@ class AnythingClient: - """Service client for testing basic anything types. Those schemas without types can be anything: primitive, object, array. + """Service client for testing basic anything types. Those schemas without types can be anything: + primitive, object, array. :keyword endpoint: Service URL. Default value is 'http://localhost:3000'. :paramtype endpoint: str diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/AnythingLowLevel/anythinglowlevel/_configuration.py b/test/vanilla/low-level/Expected/AcceptanceTests/AnythingLowLevel/anythinglowlevel/_configuration.py index 7579bd6ad06..a2d66e167b3 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/AnythingLowLevel/anythinglowlevel/_configuration.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/AnythingLowLevel/anythinglowlevel/_configuration.py @@ -14,7 +14,7 @@ from ._version import VERSION -class AnythingClientConfiguration(Configuration): +class AnythingClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AnythingClient. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/AnythingLowLevel/anythinglowlevel/aio/_anything_client.py b/test/vanilla/low-level/Expected/AcceptanceTests/AnythingLowLevel/anythinglowlevel/aio/_anything_client.py index 0f5cb8c686e..53380fb04a9 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/AnythingLowLevel/anythinglowlevel/aio/_anything_client.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/AnythingLowLevel/anythinglowlevel/aio/_anything_client.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional, TYPE_CHECKING +from typing import Any, Awaitable, TYPE_CHECKING from azure.core import AsyncPipelineClient from azure.core.rest import AsyncHttpResponse, HttpRequest @@ -21,7 +21,8 @@ class AnythingClient: - """Service client for testing basic anything types. Those schemas without types can be anything: primitive, object, array. + """Service client for testing basic anything types. Those schemas without types can be anything: + primitive, object, array. :keyword endpoint: Service URL. Default value is 'http://localhost:3000'. :paramtype endpoint: str diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/AnythingLowLevel/anythinglowlevel/aio/_configuration.py b/test/vanilla/low-level/Expected/AcceptanceTests/AnythingLowLevel/anythinglowlevel/aio/_configuration.py index b5720beca20..c2115fb2b46 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/AnythingLowLevel/anythinglowlevel/aio/_configuration.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/AnythingLowLevel/anythinglowlevel/aio/_configuration.py @@ -14,7 +14,7 @@ from .._version import VERSION -class AnythingClientConfiguration(Configuration): +class AnythingClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AnythingClient. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyArrayLowLevel/bodyarraylowlevel/_auto_rest_swagger_bat_array_service.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyArrayLowLevel/bodyarraylowlevel/_auto_rest_swagger_bat_array_service.py index 36e1176f16c..1cda72ca05e 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyArrayLowLevel/bodyarraylowlevel/_auto_rest_swagger_bat_array_service.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyArrayLowLevel/bodyarraylowlevel/_auto_rest_swagger_bat_array_service.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Optional, TYPE_CHECKING +from typing import Any, TYPE_CHECKING from azure.core import PipelineClient from azure.core.rest import HttpRequest, HttpResponse diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyArrayLowLevel/bodyarraylowlevel/_configuration.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyArrayLowLevel/bodyarraylowlevel/_configuration.py index 2f8438033fd..65295dce353 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyArrayLowLevel/bodyarraylowlevel/_configuration.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyArrayLowLevel/bodyarraylowlevel/_configuration.py @@ -14,7 +14,7 @@ from ._version import VERSION -class AutoRestSwaggerBATArrayServiceConfiguration(Configuration): +class AutoRestSwaggerBATArrayServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestSwaggerBATArrayService. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyArrayLowLevel/bodyarraylowlevel/aio/_auto_rest_swagger_bat_array_service.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyArrayLowLevel/bodyarraylowlevel/aio/_auto_rest_swagger_bat_array_service.py index 08686614200..c030702d245 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyArrayLowLevel/bodyarraylowlevel/aio/_auto_rest_swagger_bat_array_service.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyArrayLowLevel/bodyarraylowlevel/aio/_auto_rest_swagger_bat_array_service.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional, TYPE_CHECKING +from typing import Any, Awaitable, TYPE_CHECKING from azure.core import AsyncPipelineClient from azure.core.rest import AsyncHttpResponse, HttpRequest diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyArrayLowLevel/bodyarraylowlevel/aio/_configuration.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyArrayLowLevel/bodyarraylowlevel/aio/_configuration.py index 99fd3c7c6ab..8f8d31c319a 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyArrayLowLevel/bodyarraylowlevel/aio/_configuration.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyArrayLowLevel/bodyarraylowlevel/aio/_configuration.py @@ -14,7 +14,7 @@ from .._version import VERSION -class AutoRestSwaggerBATArrayServiceConfiguration(Configuration): +class AutoRestSwaggerBATArrayServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestSwaggerBATArrayService. Note that all parameters used to create this instance are saved as instance 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 3bf77d7a8be..c0be66f41e1 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 @@ -5,7 +5,6 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import datetime from typing import TYPE_CHECKING from azure.core.rest import HttpRequest @@ -13,7 +12,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Dict, List, Optional, TypeVar + from typing import Any, Dict, Optional, TypeVar T = TypeVar("T") JSONType = Any 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 1bae29ac3fd..06adf2a9540 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 @@ -5,8 +5,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import datetime -from typing import Any, Dict, List, Optional, TypeVar +from typing import Any, Dict, Optional, TypeVar from azure.core.rest import HttpRequest from msrest import Serializer diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyBinaryLowLevel/bodybinarylowlevel/_binarywithcontent_typeapplicationjson.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyBinaryLowLevel/bodybinarylowlevel/_binarywithcontent_typeapplicationjson.py index 75e5c18bd36..05daedcf71f 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyBinaryLowLevel/bodybinarylowlevel/_binarywithcontent_typeapplicationjson.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyBinaryLowLevel/bodybinarylowlevel/_binarywithcontent_typeapplicationjson.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Optional, TYPE_CHECKING +from typing import Any, TYPE_CHECKING from azure.core import PipelineClient from azure.core.rest import HttpRequest, HttpResponse diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyBinaryLowLevel/bodybinarylowlevel/_configuration.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyBinaryLowLevel/bodybinarylowlevel/_configuration.py index 4e167c6b166..72d1f0304aa 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyBinaryLowLevel/bodybinarylowlevel/_configuration.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyBinaryLowLevel/bodybinarylowlevel/_configuration.py @@ -14,7 +14,7 @@ from ._version import VERSION -class BinaryWithContentTypeApplicationJsonConfiguration(Configuration): +class BinaryWithContentTypeApplicationJsonConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for BinaryWithContentTypeApplicationJson. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyBinaryLowLevel/bodybinarylowlevel/aio/_binarywithcontent_typeapplicationjson.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyBinaryLowLevel/bodybinarylowlevel/aio/_binarywithcontent_typeapplicationjson.py index 4ad729a50e2..be44dcd7b25 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyBinaryLowLevel/bodybinarylowlevel/aio/_binarywithcontent_typeapplicationjson.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyBinaryLowLevel/bodybinarylowlevel/aio/_binarywithcontent_typeapplicationjson.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional, TYPE_CHECKING +from typing import Any, Awaitable, TYPE_CHECKING from azure.core import AsyncPipelineClient from azure.core.rest import AsyncHttpResponse, HttpRequest diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyBinaryLowLevel/bodybinarylowlevel/aio/_configuration.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyBinaryLowLevel/bodybinarylowlevel/aio/_configuration.py index 88da831735e..b3128d7c18b 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyBinaryLowLevel/bodybinarylowlevel/aio/_configuration.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyBinaryLowLevel/bodybinarylowlevel/aio/_configuration.py @@ -14,7 +14,7 @@ from .._version import VERSION -class BinaryWithContentTypeApplicationJsonConfiguration(Configuration): +class BinaryWithContentTypeApplicationJsonConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for BinaryWithContentTypeApplicationJson. Note that all parameters used to create this instance are saved as instance 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 d83f4b96f54..f27add5a51d 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 @@ -12,7 +12,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Dict, IO, Optional, TypeVar + from typing import Any, Dict, Optional, TypeVar T = TypeVar("T") JSONType = Any 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 d78c0e9bec8..6d87cbe4dd9 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 @@ -5,7 +5,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, Dict, IO, Optional, TypeVar +from typing import Any, Dict, Optional, TypeVar from azure.core.rest import HttpRequest from msrest import Serializer diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyBooleanLowLevel/bodybooleanlowlevel/_auto_rest_bool_test_service.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyBooleanLowLevel/bodybooleanlowlevel/_auto_rest_bool_test_service.py index df12c411e30..ade37d7b495 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyBooleanLowLevel/bodybooleanlowlevel/_auto_rest_bool_test_service.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyBooleanLowLevel/bodybooleanlowlevel/_auto_rest_bool_test_service.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Optional, TYPE_CHECKING +from typing import Any, TYPE_CHECKING from azure.core import PipelineClient from azure.core.rest import HttpRequest, HttpResponse diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyBooleanLowLevel/bodybooleanlowlevel/_configuration.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyBooleanLowLevel/bodybooleanlowlevel/_configuration.py index 29a044c6d32..7b8d0b2d571 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyBooleanLowLevel/bodybooleanlowlevel/_configuration.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyBooleanLowLevel/bodybooleanlowlevel/_configuration.py @@ -14,7 +14,7 @@ from ._version import VERSION -class AutoRestBoolTestServiceConfiguration(Configuration): +class AutoRestBoolTestServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestBoolTestService. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyBooleanLowLevel/bodybooleanlowlevel/aio/_auto_rest_bool_test_service.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyBooleanLowLevel/bodybooleanlowlevel/aio/_auto_rest_bool_test_service.py index e7da3cffc64..e9e12a78f2b 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyBooleanLowLevel/bodybooleanlowlevel/aio/_auto_rest_bool_test_service.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyBooleanLowLevel/bodybooleanlowlevel/aio/_auto_rest_bool_test_service.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional, TYPE_CHECKING +from typing import Any, Awaitable, TYPE_CHECKING from azure.core import AsyncPipelineClient from azure.core.rest import AsyncHttpResponse, HttpRequest diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyBooleanLowLevel/bodybooleanlowlevel/aio/_configuration.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyBooleanLowLevel/bodybooleanlowlevel/aio/_configuration.py index 759e32fbf2e..fd4d1a40235 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyBooleanLowLevel/bodybooleanlowlevel/aio/_configuration.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyBooleanLowLevel/bodybooleanlowlevel/aio/_configuration.py @@ -14,7 +14,7 @@ from .._version import VERSION -class AutoRestBoolTestServiceConfiguration(Configuration): +class AutoRestBoolTestServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestBoolTestService. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyByteLowLevel/bodybytelowlevel/_auto_rest_swagger_bat_byte_service.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyByteLowLevel/bodybytelowlevel/_auto_rest_swagger_bat_byte_service.py index f952d01421e..b67ac32a787 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyByteLowLevel/bodybytelowlevel/_auto_rest_swagger_bat_byte_service.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyByteLowLevel/bodybytelowlevel/_auto_rest_swagger_bat_byte_service.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Optional, TYPE_CHECKING +from typing import Any, TYPE_CHECKING from azure.core import PipelineClient from azure.core.rest import HttpRequest, HttpResponse diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyByteLowLevel/bodybytelowlevel/_configuration.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyByteLowLevel/bodybytelowlevel/_configuration.py index 8effad8b28f..94dface9e51 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyByteLowLevel/bodybytelowlevel/_configuration.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyByteLowLevel/bodybytelowlevel/_configuration.py @@ -14,7 +14,7 @@ from ._version import VERSION -class AutoRestSwaggerBATByteServiceConfiguration(Configuration): +class AutoRestSwaggerBATByteServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestSwaggerBATByteService. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyByteLowLevel/bodybytelowlevel/aio/_auto_rest_swagger_bat_byte_service.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyByteLowLevel/bodybytelowlevel/aio/_auto_rest_swagger_bat_byte_service.py index 3b89336f3e5..8e590184ce7 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyByteLowLevel/bodybytelowlevel/aio/_auto_rest_swagger_bat_byte_service.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyByteLowLevel/bodybytelowlevel/aio/_auto_rest_swagger_bat_byte_service.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional, TYPE_CHECKING +from typing import Any, Awaitable, TYPE_CHECKING from azure.core import AsyncPipelineClient from azure.core.rest import AsyncHttpResponse, HttpRequest diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyByteLowLevel/bodybytelowlevel/aio/_configuration.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyByteLowLevel/bodybytelowlevel/aio/_configuration.py index 9262696cc4f..5d92724f30f 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyByteLowLevel/bodybytelowlevel/aio/_configuration.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyByteLowLevel/bodybytelowlevel/aio/_configuration.py @@ -14,7 +14,7 @@ from .._version import VERSION -class AutoRestSwaggerBATByteServiceConfiguration(Configuration): +class AutoRestSwaggerBATByteServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestSwaggerBATByteService. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/_auto_rest_complex_test_service.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/_auto_rest_complex_test_service.py index ce37d6d8730..ded527ffe31 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/_auto_rest_complex_test_service.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/_auto_rest_complex_test_service.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Optional, TYPE_CHECKING +from typing import Any, TYPE_CHECKING from azure.core import PipelineClient from azure.core.rest import HttpRequest, HttpResponse diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/_configuration.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/_configuration.py index b8ad9ec301b..58cfca13cb2 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/_configuration.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/_configuration.py @@ -14,13 +14,14 @@ from ._version import VERSION -class AutoRestComplexTestServiceConfiguration(Configuration): +class AutoRestComplexTestServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestComplexTestService. Note that all parameters used to create this instance are saved as instance attributes. - :keyword api_version: Api Version. The default value is "2016-02-29". Note that overriding this default value may result in unsupported behavior. + :keyword api_version: Api Version. The default value is "2016-02-29". Note that overriding this + default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/aio/_auto_rest_complex_test_service.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/aio/_auto_rest_complex_test_service.py index 2a97e885343..df02c6fa4eb 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/aio/_auto_rest_complex_test_service.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/aio/_auto_rest_complex_test_service.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional, TYPE_CHECKING +from typing import Any, Awaitable, TYPE_CHECKING from azure.core import AsyncPipelineClient from azure.core.rest import AsyncHttpResponse, HttpRequest diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/aio/_configuration.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/aio/_configuration.py index 3a0eb727003..f056703e66f 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/aio/_configuration.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/bodycomplexlowlevel/aio/_configuration.py @@ -14,13 +14,14 @@ from .._version import VERSION -class AutoRestComplexTestServiceConfiguration(Configuration): +class AutoRestComplexTestServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestComplexTestService. Note that all parameters used to create this instance are saved as instance attributes. - :keyword api_version: Api Version. The default value is "2016-02-29". Note that overriding this default value may result in unsupported behavior. + :keyword api_version: Api Version. The default value is "2016-02-29". Note that overriding this + default value may result in unsupported behavior. :paramtype api_version: str """ 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 5b15facc270..69128a4efa2 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 @@ -40,9 +40,11 @@ def build_get_valid_request( # response body for status code(s): 200 response.json() == { - "color": "str", # Optional. Possible values include: "cyan", "Magenta", "YELLOW", "blacK". + "color": "str", # Optional. Possible values include: "cyan", "Magenta", + "YELLOW", "blacK". "id": 0, # Optional. Basic Id. - "name": "str" # Optional. Name property with a very long description that does not fit on a single line and a line break. + "name": "str" # Optional. Name property with a very long description that + does not fit on a single line and a line break. } """ @@ -87,9 +89,11 @@ def build_put_valid_request( # JSON input template you can fill out and use as your body input. json = { - "color": "str", # Optional. Possible values include: "cyan", "Magenta", "YELLOW", "blacK". + "color": "str", # Optional. Possible values include: "cyan", "Magenta", + "YELLOW", "blacK". "id": 0, # Optional. Basic Id. - "name": "str" # Optional. Name property with a very long description that does not fit on a single line and a line break. + "name": "str" # Optional. Name property with a very long description that + does not fit on a single line and a line break. } """ @@ -138,9 +142,11 @@ def build_get_invalid_request( # response body for status code(s): 200 response.json() == { - "color": "str", # Optional. Possible values include: "cyan", "Magenta", "YELLOW", "blacK". + "color": "str", # Optional. Possible values include: "cyan", "Magenta", + "YELLOW", "blacK". "id": 0, # Optional. Basic Id. - "name": "str" # Optional. Name property with a very long description that does not fit on a single line and a line break. + "name": "str" # Optional. Name property with a very long description that + does not fit on a single line and a line break. } """ @@ -179,9 +185,11 @@ def build_get_empty_request( # response body for status code(s): 200 response.json() == { - "color": "str", # Optional. Possible values include: "cyan", "Magenta", "YELLOW", "blacK". + "color": "str", # Optional. Possible values include: "cyan", "Magenta", + "YELLOW", "blacK". "id": 0, # Optional. Basic Id. - "name": "str" # Optional. Name property with a very long description that does not fit on a single line and a line break. + "name": "str" # Optional. Name property with a very long description that + does not fit on a single line and a line break. } """ @@ -220,9 +228,11 @@ def build_get_null_request( # response body for status code(s): 200 response.json() == { - "color": "str", # Optional. Possible values include: "cyan", "Magenta", "YELLOW", "blacK". + "color": "str", # Optional. Possible values include: "cyan", "Magenta", + "YELLOW", "blacK". "id": 0, # Optional. Basic Id. - "name": "str" # Optional. Name property with a very long description that does not fit on a single line and a line break. + "name": "str" # Optional. Name property with a very long description that + does not fit on a single line and a line break. } """ @@ -261,9 +271,11 @@ def build_get_not_provided_request( # response body for status code(s): 200 response.json() == { - "color": "str", # Optional. Possible values include: "cyan", "Magenta", "YELLOW", "blacK". + "color": "str", # Optional. Possible values include: "cyan", "Magenta", + "YELLOW", "blacK". "id": 0, # Optional. Basic Id. - "name": "str" # Optional. Name property with a very long description that does not fit on a single line and a line break. + "name": "str" # Optional. Name property with a very long description that + does not fit on a single line and a line break. } """ 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 92d925a69b1..424e6ae4cc2 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 @@ -32,9 +32,11 @@ def build_get_valid_request(**kwargs: Any) -> HttpRequest: # response body for status code(s): 200 response.json() == { - "color": "str", # Optional. Possible values include: "cyan", "Magenta", "YELLOW", "blacK". + "color": "str", # Optional. Possible values include: "cyan", "Magenta", + "YELLOW", "blacK". "id": 0, # Optional. Basic Id. - "name": "str" # Optional. Name property with a very long description that does not fit on a single line and a line break. + "name": "str" # Optional. Name property with a very long description that + does not fit on a single line and a line break. } """ @@ -71,9 +73,11 @@ def build_put_valid_request(*, json: JSONType = None, content: Any = None, **kwa # JSON input template you can fill out and use as your body input. json = { - "color": "str", # Optional. Possible values include: "cyan", "Magenta", "YELLOW", "blacK". + "color": "str", # Optional. Possible values include: "cyan", "Magenta", + "YELLOW", "blacK". "id": 0, # Optional. Basic Id. - "name": "str" # Optional. Name property with a very long description that does not fit on a single line and a line break. + "name": "str" # Optional. Name property with a very long description that + does not fit on a single line and a line break. } """ @@ -115,9 +119,11 @@ def build_get_invalid_request(**kwargs: Any) -> HttpRequest: # response body for status code(s): 200 response.json() == { - "color": "str", # Optional. Possible values include: "cyan", "Magenta", "YELLOW", "blacK". + "color": "str", # Optional. Possible values include: "cyan", "Magenta", + "YELLOW", "blacK". "id": 0, # Optional. Basic Id. - "name": "str" # Optional. Name property with a very long description that does not fit on a single line and a line break. + "name": "str" # Optional. Name property with a very long description that + does not fit on a single line and a line break. } """ @@ -148,9 +154,11 @@ def build_get_empty_request(**kwargs: Any) -> HttpRequest: # response body for status code(s): 200 response.json() == { - "color": "str", # Optional. Possible values include: "cyan", "Magenta", "YELLOW", "blacK". + "color": "str", # Optional. Possible values include: "cyan", "Magenta", + "YELLOW", "blacK". "id": 0, # Optional. Basic Id. - "name": "str" # Optional. Name property with a very long description that does not fit on a single line and a line break. + "name": "str" # Optional. Name property with a very long description that + does not fit on a single line and a line break. } """ @@ -181,9 +189,11 @@ def build_get_null_request(**kwargs: Any) -> HttpRequest: # response body for status code(s): 200 response.json() == { - "color": "str", # Optional. Possible values include: "cyan", "Magenta", "YELLOW", "blacK". + "color": "str", # Optional. Possible values include: "cyan", "Magenta", + "YELLOW", "blacK". "id": 0, # Optional. Basic Id. - "name": "str" # Optional. Name property with a very long description that does not fit on a single line and a line break. + "name": "str" # Optional. Name property with a very long description that + does not fit on a single line and a line break. } """ @@ -214,9 +224,11 @@ def build_get_not_provided_request(**kwargs: Any) -> HttpRequest: # response body for status code(s): 200 response.json() == { - "color": "str", # Optional. Possible values include: "cyan", "Magenta", "YELLOW", "blacK". + "color": "str", # Optional. Possible values include: "cyan", "Magenta", + "YELLOW", "blacK". "id": 0, # Optional. Basic Id. - "name": "str" # Optional. Name property with a very long description that does not fit on a single line and a line break. + "name": "str" # Optional. Name property with a very long description that + does not fit on a single line and a line break. } """ 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 229ef0e9bfd..3465edaac8f 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 @@ -40,7 +40,7 @@ def build_get_valid_request( # response body for status code(s): 200 response.json() == { - "length": 0.0, # Required. + "length": 0.0, # Required. "siblings": [ ... ], @@ -196,7 +196,7 @@ def build_put_valid_request( # JSON input template you can fill out and use as your body input. json = { - "length": 0.0, # Required. + "length": 0.0, # Required. "siblings": [ ... ], 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 92168701a71..cf70d20dd4c 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 @@ -40,7 +40,7 @@ def build_get_valid_request( # response body for status code(s): 200 response.json() == { - "length": 0.0, # Required. + "length": 0.0, # Required. "siblings": [ ... ], @@ -156,7 +156,7 @@ def build_put_valid_request( # JSON input template you can fill out and use as your body input. json = { - "length": 0.0, # Required. + "length": 0.0, # Required. "siblings": [ ... ], @@ -374,11 +374,11 @@ def build_get_complicated_request( # response body for status code(s): 200 response.json() == { "iswild": bool, # Optional. - "length": 0.0, # Required. + "length": 0.0, # Required. "location": "str", # Optional. "siblings": [ { - "length": 0.0, # Required. + "length": 0.0, # Required. "siblings": [ ... ], @@ -436,11 +436,11 @@ def build_put_complicated_request( # JSON input template you can fill out and use as your body input. json = { "iswild": bool, # Optional. - "length": 0.0, # Required. + "length": 0.0, # Required. "location": "str", # Optional. "siblings": [ { - "length": 0.0, # Required. + "length": 0.0, # Required. "siblings": [ ... ], @@ -501,11 +501,11 @@ def build_put_missing_discriminator_request( # JSON input template you can fill out and use as your body input. json = { "iswild": bool, # Optional. - "length": 0.0, # Required. + "length": 0.0, # Required. "location": "str", # Optional. "siblings": [ { - "length": 0.0, # Required. + "length": 0.0, # Required. "siblings": [ ... ], @@ -520,11 +520,11 @@ def build_put_missing_discriminator_request( # response body for status code(s): 200 response.json() == { "iswild": bool, # Optional. - "length": 0.0, # Required. + "length": 0.0, # Required. "location": "str", # Optional. "siblings": [ { - "length": 0.0, # Required. + "length": 0.0, # Required. "siblings": [ ... ], @@ -637,7 +637,7 @@ def build_put_valid_missing_required_request( # JSON input template you can fill out and use as your body input. json = { - "length": 0.0, # Required. + "length": 0.0, # Required. "siblings": [ ... ], 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 7d1ffdfadc4..b26281151ec 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 @@ -311,7 +311,8 @@ def build_get_double_request( # response body for status code(s): 200 response.json() == { "field1": 0.0, # Optional. - "field_56_zeros_after_the_dot_and_negative_zero_before_dot_and_this_is_a_long_field_name_on_purpose": 0.0 # Optional. + "field_56_zeros_after_the_dot_and_negative_zero_before_dot_and_this_is_a_long_field_name_on_purpose": + 0.0 # Optional. } """ @@ -359,7 +360,8 @@ def build_put_double_request( # JSON input template you can fill out and use as your body input. json = { "field1": 0.0, # Optional. - "field_56_zeros_after_the_dot_and_negative_zero_before_dot_and_this_is_a_long_field_name_on_purpose": 0.0 # Optional. + "field_56_zeros_after_the_dot_and_negative_zero_before_dot_and_this_is_a_long_field_name_on_purpose": + 0.0 # Optional. } """ 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 120b56cfbd2..0bfacc5d388 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 @@ -255,7 +255,8 @@ def build_get_double_request(**kwargs: Any) -> HttpRequest: # response body for status code(s): 200 response.json() == { "field1": 0.0, # Optional. - "field_56_zeros_after_the_dot_and_negative_zero_before_dot_and_this_is_a_long_field_name_on_purpose": 0.0 # Optional. + "field_56_zeros_after_the_dot_and_negative_zero_before_dot_and_this_is_a_long_field_name_on_purpose": + 0.0 # Optional. } """ @@ -295,7 +296,8 @@ def build_put_double_request(*, json: JSONType = None, content: Any = None, **kw # JSON input template you can fill out and use as your body input. json = { "field1": 0.0, # Optional. - "field_56_zeros_after_the_dot_and_negative_zero_before_dot_and_this_is_a_long_field_name_on_purpose": 0.0 # Optional. + "field_56_zeros_after_the_dot_and_negative_zero_before_dot_and_this_is_a_long_field_name_on_purpose": + 0.0 # Optional. } """ diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateLowLevel/bodydatelowlevel/_auto_rest_date_test_service.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateLowLevel/bodydatelowlevel/_auto_rest_date_test_service.py index 58b2b01ea27..61eef525516 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateLowLevel/bodydatelowlevel/_auto_rest_date_test_service.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateLowLevel/bodydatelowlevel/_auto_rest_date_test_service.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Optional, TYPE_CHECKING +from typing import Any, TYPE_CHECKING from azure.core import PipelineClient from azure.core.rest import HttpRequest, HttpResponse diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateLowLevel/bodydatelowlevel/_configuration.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateLowLevel/bodydatelowlevel/_configuration.py index ae4a2b37a46..f82c8c7ee22 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateLowLevel/bodydatelowlevel/_configuration.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateLowLevel/bodydatelowlevel/_configuration.py @@ -14,7 +14,7 @@ from ._version import VERSION -class AutoRestDateTestServiceConfiguration(Configuration): +class AutoRestDateTestServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestDateTestService. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateLowLevel/bodydatelowlevel/aio/_auto_rest_date_test_service.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateLowLevel/bodydatelowlevel/aio/_auto_rest_date_test_service.py index 458049255b1..427f3e82751 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateLowLevel/bodydatelowlevel/aio/_auto_rest_date_test_service.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateLowLevel/bodydatelowlevel/aio/_auto_rest_date_test_service.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional, TYPE_CHECKING +from typing import Any, Awaitable, TYPE_CHECKING from azure.core import AsyncPipelineClient from azure.core.rest import AsyncHttpResponse, HttpRequest diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateLowLevel/bodydatelowlevel/aio/_configuration.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateLowLevel/bodydatelowlevel/aio/_configuration.py index 4f71dfb033d..b6aa3ee8416 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateLowLevel/bodydatelowlevel/aio/_configuration.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateLowLevel/bodydatelowlevel/aio/_configuration.py @@ -14,7 +14,7 @@ from .._version import VERSION -class AutoRestDateTestServiceConfiguration(Configuration): +class AutoRestDateTestServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestDateTestService. Note that all parameters used to create this instance are saved as instance 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 07b7a99b764..104cdc4dc93 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 @@ -5,7 +5,6 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import datetime from typing import TYPE_CHECKING from azure.core.rest import HttpRequest 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 2a0dccc2823..8b92d98501a 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 @@ -5,7 +5,6 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import datetime from typing import Any, Dict, Optional, TypeVar from azure.core.rest import HttpRequest diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateTimeLowLevel/bodydatetimelowlevel/_auto_rest_date_time_test_service.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateTimeLowLevel/bodydatetimelowlevel/_auto_rest_date_time_test_service.py index cd6ce0f538b..6af20ec36d3 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateTimeLowLevel/bodydatetimelowlevel/_auto_rest_date_time_test_service.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateTimeLowLevel/bodydatetimelowlevel/_auto_rest_date_time_test_service.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Optional, TYPE_CHECKING +from typing import Any, TYPE_CHECKING from azure.core import PipelineClient from azure.core.rest import HttpRequest, HttpResponse diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateTimeLowLevel/bodydatetimelowlevel/_configuration.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateTimeLowLevel/bodydatetimelowlevel/_configuration.py index f4cb7c8e6ab..6eececda5b9 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateTimeLowLevel/bodydatetimelowlevel/_configuration.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateTimeLowLevel/bodydatetimelowlevel/_configuration.py @@ -14,7 +14,7 @@ from ._version import VERSION -class AutoRestDateTimeTestServiceConfiguration(Configuration): +class AutoRestDateTimeTestServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestDateTimeTestService. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateTimeLowLevel/bodydatetimelowlevel/aio/_auto_rest_date_time_test_service.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateTimeLowLevel/bodydatetimelowlevel/aio/_auto_rest_date_time_test_service.py index 1a0dfa1e0c8..1f09505ee9b 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateTimeLowLevel/bodydatetimelowlevel/aio/_auto_rest_date_time_test_service.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateTimeLowLevel/bodydatetimelowlevel/aio/_auto_rest_date_time_test_service.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional, TYPE_CHECKING +from typing import Any, Awaitable, TYPE_CHECKING from azure.core import AsyncPipelineClient from azure.core.rest import AsyncHttpResponse, HttpRequest diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateTimeLowLevel/bodydatetimelowlevel/aio/_configuration.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateTimeLowLevel/bodydatetimelowlevel/aio/_configuration.py index fece892264c..6d637375ab1 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateTimeLowLevel/bodydatetimelowlevel/aio/_configuration.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateTimeLowLevel/bodydatetimelowlevel/aio/_configuration.py @@ -14,7 +14,7 @@ from .._version import VERSION -class AutoRestDateTimeTestServiceConfiguration(Configuration): +class AutoRestDateTimeTestServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestDateTimeTestService. Note that all parameters used to create this instance are saved as instance 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 df8c0fc9092..00f98452ac5 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 @@ -5,7 +5,6 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import datetime from typing import TYPE_CHECKING from azure.core.rest import HttpRequest 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 9cc0e9cc74a..da7dc26d333 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 @@ -5,7 +5,6 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import datetime from typing import Any, Dict, Optional, TypeVar from azure.core.rest import HttpRequest diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateTimeRfc1123LowLevel/bodydatetimerfc1123lowlevel/_auto_rest_rfc1123_date_time_test_service.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateTimeRfc1123LowLevel/bodydatetimerfc1123lowlevel/_auto_rest_rfc1123_date_time_test_service.py index e373bf295c2..b5218786110 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateTimeRfc1123LowLevel/bodydatetimerfc1123lowlevel/_auto_rest_rfc1123_date_time_test_service.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateTimeRfc1123LowLevel/bodydatetimerfc1123lowlevel/_auto_rest_rfc1123_date_time_test_service.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Optional, TYPE_CHECKING +from typing import Any, TYPE_CHECKING from azure.core import PipelineClient from azure.core.rest import HttpRequest, HttpResponse diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateTimeRfc1123LowLevel/bodydatetimerfc1123lowlevel/_configuration.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateTimeRfc1123LowLevel/bodydatetimerfc1123lowlevel/_configuration.py index 30257aefa92..8987dad58ea 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateTimeRfc1123LowLevel/bodydatetimerfc1123lowlevel/_configuration.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateTimeRfc1123LowLevel/bodydatetimerfc1123lowlevel/_configuration.py @@ -14,7 +14,7 @@ from ._version import VERSION -class AutoRestRFC1123DateTimeTestServiceConfiguration(Configuration): +class AutoRestRFC1123DateTimeTestServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestRFC1123DateTimeTestService. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateTimeRfc1123LowLevel/bodydatetimerfc1123lowlevel/aio/_auto_rest_rfc1123_date_time_test_service.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateTimeRfc1123LowLevel/bodydatetimerfc1123lowlevel/aio/_auto_rest_rfc1123_date_time_test_service.py index 5aa42dd8cc1..f89ddf3e2d6 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateTimeRfc1123LowLevel/bodydatetimerfc1123lowlevel/aio/_auto_rest_rfc1123_date_time_test_service.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateTimeRfc1123LowLevel/bodydatetimerfc1123lowlevel/aio/_auto_rest_rfc1123_date_time_test_service.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional, TYPE_CHECKING +from typing import Any, Awaitable, TYPE_CHECKING from azure.core import AsyncPipelineClient from azure.core.rest import AsyncHttpResponse, HttpRequest diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateTimeRfc1123LowLevel/bodydatetimerfc1123lowlevel/aio/_configuration.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateTimeRfc1123LowLevel/bodydatetimerfc1123lowlevel/aio/_configuration.py index a5f8aa98c35..0ab8b3ec958 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateTimeRfc1123LowLevel/bodydatetimerfc1123lowlevel/aio/_configuration.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateTimeRfc1123LowLevel/bodydatetimerfc1123lowlevel/aio/_configuration.py @@ -14,7 +14,7 @@ from .._version import VERSION -class AutoRestRFC1123DateTimeTestServiceConfiguration(Configuration): +class AutoRestRFC1123DateTimeTestServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestRFC1123DateTimeTestService. Note that all parameters used to create this instance are saved as instance 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 8cbb8fbf046..ef3b82d44c5 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 @@ -5,7 +5,6 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import datetime from typing import TYPE_CHECKING from azure.core.rest import HttpRequest 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 7ca538db685..162f4530606 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 @@ -5,7 +5,6 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import datetime from typing import Any, Dict, Optional, TypeVar from azure.core.rest import HttpRequest diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyDictionaryLowLevel/bodydictionarylowlevel/_auto_rest_swagger_ba_tdictionary_service.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyDictionaryLowLevel/bodydictionarylowlevel/_auto_rest_swagger_ba_tdictionary_service.py index 3b67de22ccd..93adeeee215 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyDictionaryLowLevel/bodydictionarylowlevel/_auto_rest_swagger_ba_tdictionary_service.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyDictionaryLowLevel/bodydictionarylowlevel/_auto_rest_swagger_ba_tdictionary_service.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Optional, TYPE_CHECKING +from typing import Any, TYPE_CHECKING from azure.core import PipelineClient from azure.core.rest import HttpRequest, HttpResponse diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyDictionaryLowLevel/bodydictionarylowlevel/_configuration.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyDictionaryLowLevel/bodydictionarylowlevel/_configuration.py index 2969ee5a4ea..cff1e0e3d53 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyDictionaryLowLevel/bodydictionarylowlevel/_configuration.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyDictionaryLowLevel/bodydictionarylowlevel/_configuration.py @@ -14,7 +14,7 @@ from ._version import VERSION -class AutoRestSwaggerBATDictionaryServiceConfiguration(Configuration): +class AutoRestSwaggerBATDictionaryServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestSwaggerBATDictionaryService. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyDictionaryLowLevel/bodydictionarylowlevel/aio/_auto_rest_swagger_ba_tdictionary_service.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyDictionaryLowLevel/bodydictionarylowlevel/aio/_auto_rest_swagger_ba_tdictionary_service.py index 691552ec31e..c77ff2d7d14 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyDictionaryLowLevel/bodydictionarylowlevel/aio/_auto_rest_swagger_ba_tdictionary_service.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyDictionaryLowLevel/bodydictionarylowlevel/aio/_auto_rest_swagger_ba_tdictionary_service.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional, TYPE_CHECKING +from typing import Any, Awaitable, TYPE_CHECKING from azure.core import AsyncPipelineClient from azure.core.rest import AsyncHttpResponse, HttpRequest diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyDictionaryLowLevel/bodydictionarylowlevel/aio/_configuration.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyDictionaryLowLevel/bodydictionarylowlevel/aio/_configuration.py index 01218333453..7efa1013d5e 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyDictionaryLowLevel/bodydictionarylowlevel/aio/_configuration.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyDictionaryLowLevel/bodydictionarylowlevel/aio/_configuration.py @@ -14,7 +14,7 @@ from .._version import VERSION -class AutoRestSwaggerBATDictionaryServiceConfiguration(Configuration): +class AutoRestSwaggerBATDictionaryServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestSwaggerBATDictionaryService. Note that all parameters used to create this instance are saved as instance 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 5159bcaaa62..cf215ada322 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 @@ -5,7 +5,6 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import datetime from typing import TYPE_CHECKING from azure.core.rest import HttpRequest @@ -13,7 +12,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Dict, List, Optional, TypeVar + from typing import Any, Dict, Optional, TypeVar T = TypeVar("T") JSONType = Any 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 74a40ae3f2d..6cc9a70b30c 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 @@ -5,8 +5,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import datetime -from typing import Any, Dict, List, Optional, TypeVar +from typing import Any, Dict, Optional, TypeVar from azure.core.rest import HttpRequest from msrest import Serializer diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyDurationLowLevel/bodydurationlowlevel/_auto_rest_duration_test_service.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyDurationLowLevel/bodydurationlowlevel/_auto_rest_duration_test_service.py index 27b3e462369..014f8173a52 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyDurationLowLevel/bodydurationlowlevel/_auto_rest_duration_test_service.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyDurationLowLevel/bodydurationlowlevel/_auto_rest_duration_test_service.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Optional, TYPE_CHECKING +from typing import Any, TYPE_CHECKING from azure.core import PipelineClient from azure.core.rest import HttpRequest, HttpResponse diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyDurationLowLevel/bodydurationlowlevel/_configuration.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyDurationLowLevel/bodydurationlowlevel/_configuration.py index eebf56f42f2..d3e575e957c 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyDurationLowLevel/bodydurationlowlevel/_configuration.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyDurationLowLevel/bodydurationlowlevel/_configuration.py @@ -14,7 +14,7 @@ from ._version import VERSION -class AutoRestDurationTestServiceConfiguration(Configuration): +class AutoRestDurationTestServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestDurationTestService. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyDurationLowLevel/bodydurationlowlevel/aio/_auto_rest_duration_test_service.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyDurationLowLevel/bodydurationlowlevel/aio/_auto_rest_duration_test_service.py index d53c6fcfd31..704cb9d629c 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyDurationLowLevel/bodydurationlowlevel/aio/_auto_rest_duration_test_service.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyDurationLowLevel/bodydurationlowlevel/aio/_auto_rest_duration_test_service.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional, TYPE_CHECKING +from typing import Any, Awaitable, TYPE_CHECKING from azure.core import AsyncPipelineClient from azure.core.rest import AsyncHttpResponse, HttpRequest diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyDurationLowLevel/bodydurationlowlevel/aio/_configuration.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyDurationLowLevel/bodydurationlowlevel/aio/_configuration.py index f7cece514e6..029a04192bc 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyDurationLowLevel/bodydurationlowlevel/aio/_configuration.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyDurationLowLevel/bodydurationlowlevel/aio/_configuration.py @@ -14,7 +14,7 @@ from .._version import VERSION -class AutoRestDurationTestServiceConfiguration(Configuration): +class AutoRestDurationTestServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestDurationTestService. Note that all parameters used to create this instance are saved as instance 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 f3a13712c8e..396abf38448 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 @@ -5,7 +5,6 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import datetime from typing import TYPE_CHECKING from azure.core.rest import HttpRequest 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 3ed698a6462..83a739a799c 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 @@ -5,7 +5,6 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import datetime from typing import Any, Dict, Optional, TypeVar from azure.core.rest import HttpRequest diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyFileLowLevel/bodyfilelowlevel/_auto_rest_swagger_bat_file_service.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyFileLowLevel/bodyfilelowlevel/_auto_rest_swagger_bat_file_service.py index e79738cb7a6..823eb17a082 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyFileLowLevel/bodyfilelowlevel/_auto_rest_swagger_bat_file_service.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyFileLowLevel/bodyfilelowlevel/_auto_rest_swagger_bat_file_service.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Optional, TYPE_CHECKING +from typing import Any, TYPE_CHECKING from azure.core import PipelineClient from azure.core.rest import HttpRequest, HttpResponse diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyFileLowLevel/bodyfilelowlevel/_configuration.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyFileLowLevel/bodyfilelowlevel/_configuration.py index 593948e653e..9fe80719315 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyFileLowLevel/bodyfilelowlevel/_configuration.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyFileLowLevel/bodyfilelowlevel/_configuration.py @@ -14,7 +14,7 @@ from ._version import VERSION -class AutoRestSwaggerBATFileServiceConfiguration(Configuration): +class AutoRestSwaggerBATFileServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestSwaggerBATFileService. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyFileLowLevel/bodyfilelowlevel/aio/_auto_rest_swagger_bat_file_service.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyFileLowLevel/bodyfilelowlevel/aio/_auto_rest_swagger_bat_file_service.py index 8447261cfeb..f9885b1b257 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyFileLowLevel/bodyfilelowlevel/aio/_auto_rest_swagger_bat_file_service.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyFileLowLevel/bodyfilelowlevel/aio/_auto_rest_swagger_bat_file_service.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional, TYPE_CHECKING +from typing import Any, Awaitable, TYPE_CHECKING from azure.core import AsyncPipelineClient from azure.core.rest import AsyncHttpResponse, HttpRequest diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyFileLowLevel/bodyfilelowlevel/aio/_configuration.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyFileLowLevel/bodyfilelowlevel/aio/_configuration.py index 668abb62f8e..4ae048a7d95 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyFileLowLevel/bodyfilelowlevel/aio/_configuration.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyFileLowLevel/bodyfilelowlevel/aio/_configuration.py @@ -14,7 +14,7 @@ from .._version import VERSION -class AutoRestSwaggerBATFileServiceConfiguration(Configuration): +class AutoRestSwaggerBATFileServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestSwaggerBATFileService. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyFormDataLowLevel/bodyformdatalowlevel/_auto_rest_swagger_bat_form_data_service.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyFormDataLowLevel/bodyformdatalowlevel/_auto_rest_swagger_bat_form_data_service.py index be4e5229d53..6b10bd029fa 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyFormDataLowLevel/bodyformdatalowlevel/_auto_rest_swagger_bat_form_data_service.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyFormDataLowLevel/bodyformdatalowlevel/_auto_rest_swagger_bat_form_data_service.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Optional, TYPE_CHECKING +from typing import Any, TYPE_CHECKING from azure.core import PipelineClient from azure.core.rest import HttpRequest, HttpResponse diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyFormDataLowLevel/bodyformdatalowlevel/_configuration.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyFormDataLowLevel/bodyformdatalowlevel/_configuration.py index dc2b708c432..a1bbac2fc1b 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyFormDataLowLevel/bodyformdatalowlevel/_configuration.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyFormDataLowLevel/bodyformdatalowlevel/_configuration.py @@ -14,7 +14,7 @@ from ._version import VERSION -class AutoRestSwaggerBATFormDataServiceConfiguration(Configuration): +class AutoRestSwaggerBATFormDataServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestSwaggerBATFormDataService. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyFormDataLowLevel/bodyformdatalowlevel/aio/_auto_rest_swagger_bat_form_data_service.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyFormDataLowLevel/bodyformdatalowlevel/aio/_auto_rest_swagger_bat_form_data_service.py index a27548ee656..be96c833ca8 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyFormDataLowLevel/bodyformdatalowlevel/aio/_auto_rest_swagger_bat_form_data_service.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyFormDataLowLevel/bodyformdatalowlevel/aio/_auto_rest_swagger_bat_form_data_service.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional, TYPE_CHECKING +from typing import Any, Awaitable, TYPE_CHECKING from azure.core import AsyncPipelineClient from azure.core.rest import AsyncHttpResponse, HttpRequest diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyFormDataLowLevel/bodyformdatalowlevel/aio/_configuration.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyFormDataLowLevel/bodyformdatalowlevel/aio/_configuration.py index 6728a757294..c5eef4f228c 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyFormDataLowLevel/bodyformdatalowlevel/aio/_configuration.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyFormDataLowLevel/bodyformdatalowlevel/aio/_configuration.py @@ -14,7 +14,7 @@ from .._version import VERSION -class AutoRestSwaggerBATFormDataServiceConfiguration(Configuration): +class AutoRestSwaggerBATFormDataServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestSwaggerBATFormDataService. Note that all parameters used to create this instance are saved as instance 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 e891e73342b..2709852a13f 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 @@ -12,7 +12,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Dict, IO, List, Optional, TypeVar + from typing import Any, Dict, Optional, TypeVar T = TypeVar("T") JSONType = Any @@ -48,7 +48,8 @@ def build_upload_file_request( # multipart input template you can fill out and use as your `files` input. files = { "file_content": b'bytes', # File to upload. - "file_name": "str" # File name to upload. Name has to be spelled exactly as written here. + "file_name": "str" # File name to upload. Name has to be spelled exactly as + written here. } """ 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 de06ec4eb75..3e4cd860926 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 @@ -5,7 +5,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, Dict, IO, List, Optional, TypeVar +from typing import Any, Dict, Optional, TypeVar from azure.core.rest import HttpRequest from msrest import Serializer @@ -42,7 +42,8 @@ def build_upload_file_request( # multipart input template you can fill out and use as your `files` input. files = { "file_content": b'bytes', # File to upload. - "file_name": "str" # File name to upload. Name has to be spelled exactly as written here. + "file_name": "str" # File name to upload. Name has to be spelled exactly as + written here. } """ diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyFormUrlEncodedDataLowLevel/bodyformurlencodeddatalowlevel/_body_forms_data_url_encoded.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyFormUrlEncodedDataLowLevel/bodyformurlencodeddatalowlevel/_body_forms_data_url_encoded.py index a8c654d17e5..685aadae6a9 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyFormUrlEncodedDataLowLevel/bodyformurlencodeddatalowlevel/_body_forms_data_url_encoded.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyFormUrlEncodedDataLowLevel/bodyformurlencodeddatalowlevel/_body_forms_data_url_encoded.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Optional, TYPE_CHECKING +from typing import Any, TYPE_CHECKING from azure.core import PipelineClient from azure.core.rest import HttpRequest, HttpResponse diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyFormUrlEncodedDataLowLevel/bodyformurlencodeddatalowlevel/_configuration.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyFormUrlEncodedDataLowLevel/bodyformurlencodeddatalowlevel/_configuration.py index 837cbafae7a..38ea6b61030 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyFormUrlEncodedDataLowLevel/bodyformurlencodeddatalowlevel/_configuration.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyFormUrlEncodedDataLowLevel/bodyformurlencodeddatalowlevel/_configuration.py @@ -14,7 +14,7 @@ from ._version import VERSION -class BodyFormsDataURLEncodedConfiguration(Configuration): +class BodyFormsDataURLEncodedConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for BodyFormsDataURLEncoded. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyFormUrlEncodedDataLowLevel/bodyformurlencodeddatalowlevel/aio/_body_forms_data_url_encoded.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyFormUrlEncodedDataLowLevel/bodyformurlencodeddatalowlevel/aio/_body_forms_data_url_encoded.py index 14dbc3ed63c..6e8a7aac2af 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyFormUrlEncodedDataLowLevel/bodyformurlencodeddatalowlevel/aio/_body_forms_data_url_encoded.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyFormUrlEncodedDataLowLevel/bodyformurlencodeddatalowlevel/aio/_body_forms_data_url_encoded.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional, TYPE_CHECKING +from typing import Any, Awaitable, TYPE_CHECKING from azure.core import AsyncPipelineClient from azure.core.rest import AsyncHttpResponse, HttpRequest diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyFormUrlEncodedDataLowLevel/bodyformurlencodeddatalowlevel/aio/_configuration.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyFormUrlEncodedDataLowLevel/bodyformurlencodeddatalowlevel/aio/_configuration.py index 71cd7fc41ca..60d34b8149c 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyFormUrlEncodedDataLowLevel/bodyformurlencodeddatalowlevel/aio/_configuration.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyFormUrlEncodedDataLowLevel/bodyformurlencodeddatalowlevel/aio/_configuration.py @@ -14,7 +14,7 @@ from .._version import VERSION -class BodyFormsDataURLEncodedConfiguration(Configuration): +class BodyFormsDataURLEncodedConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for BodyFormsDataURLEncoded. Note that all parameters used to create this instance are saved as instance 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 f7ce39409bb..e93ef7b6fdb 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 @@ -56,8 +56,10 @@ def build_update_pet_with_form_request( data = { "name": "str", # Optional. Updated name of the pet. "pet_age": 0, # How many years is it old?. - "pet_food": "str", # Can take a value of meat, or fish, or plant. Possible values are: "meat", "fish", and "plant". - "pet_type": "str", # Can take a value of dog, or cat, or fish. Possible values are: "dog", "cat", and "fish". + "pet_food": "str", # Can take a value of meat, or fish, or plant. Possible + values are: "meat", "fish", and "plant". + "pet_type": "str", # Can take a value of dog, or cat, or fish. Possible + values are: "dog", "cat", and "fish". "status": "str" # Optional. Updated status of the pet. } """ @@ -111,8 +113,11 @@ def build_partial_constant_body_request( # form-encoded input template you can fill out and use as your `data` input. data = { - "access_token": "str", # AAD access token, mandatory when grant_type is access_token_refresh_token or access_token. - "grant_type": "access_token", # Default value is "access_token". Constant part of a formdata body. The default value is "access_token". Note that overriding this default value may result in unsupported behavior. + "access_token": "str", # AAD access token, mandatory when grant_type is + access_token_refresh_token or access_token. + "grant_type": "access_token", # Default value is "access_token". Constant + part of a formdata body. The default value is "access_token". Note that + overriding this default value may result in unsupported behavior. "service": "str" # Indicates the name of your Azure container registry. } """ 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 287370f80d7..c3b1691f45f 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 @@ -49,8 +49,10 @@ def build_update_pet_with_form_request( data = { "name": "str", # Optional. Updated name of the pet. "pet_age": 0, # How many years is it old?. - "pet_food": "str", # Can take a value of meat, or fish, or plant. Possible values are: "meat", "fish", and "plant". - "pet_type": "str", # Can take a value of dog, or cat, or fish. Possible values are: "dog", "cat", and "fish". + "pet_food": "str", # Can take a value of meat, or fish, or plant. Possible + values are: "meat", "fish", and "plant". + "pet_type": "str", # Can take a value of dog, or cat, or fish. Possible + values are: "dog", "cat", and "fish". "status": "str" # Optional. Updated status of the pet. } """ @@ -98,8 +100,11 @@ def build_partial_constant_body_request( # form-encoded input template you can fill out and use as your `data` input. data = { - "access_token": "str", # AAD access token, mandatory when grant_type is access_token_refresh_token or access_token. - "grant_type": "access_token", # Default value is "access_token". Constant part of a formdata body. The default value is "access_token". Note that overriding this default value may result in unsupported behavior. + "access_token": "str", # AAD access token, mandatory when grant_type is + access_token_refresh_token or access_token. + "grant_type": "access_token", # Default value is "access_token". Constant + part of a formdata body. The default value is "access_token". Note that + overriding this default value may result in unsupported behavior. "service": "str" # Indicates the name of your Azure container registry. } """ diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyIntegerLowLevel/bodyintegerlowlevel/_auto_rest_integer_test_service.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyIntegerLowLevel/bodyintegerlowlevel/_auto_rest_integer_test_service.py index 60816be5861..272757a2316 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyIntegerLowLevel/bodyintegerlowlevel/_auto_rest_integer_test_service.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyIntegerLowLevel/bodyintegerlowlevel/_auto_rest_integer_test_service.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Optional, TYPE_CHECKING +from typing import Any, TYPE_CHECKING from azure.core import PipelineClient from azure.core.rest import HttpRequest, HttpResponse diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyIntegerLowLevel/bodyintegerlowlevel/_configuration.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyIntegerLowLevel/bodyintegerlowlevel/_configuration.py index 486012b65e3..b87ccec77bd 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyIntegerLowLevel/bodyintegerlowlevel/_configuration.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyIntegerLowLevel/bodyintegerlowlevel/_configuration.py @@ -14,7 +14,7 @@ from ._version import VERSION -class AutoRestIntegerTestServiceConfiguration(Configuration): +class AutoRestIntegerTestServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestIntegerTestService. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyIntegerLowLevel/bodyintegerlowlevel/aio/_auto_rest_integer_test_service.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyIntegerLowLevel/bodyintegerlowlevel/aio/_auto_rest_integer_test_service.py index 1182b607314..2fc53410d67 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyIntegerLowLevel/bodyintegerlowlevel/aio/_auto_rest_integer_test_service.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyIntegerLowLevel/bodyintegerlowlevel/aio/_auto_rest_integer_test_service.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional, TYPE_CHECKING +from typing import Any, Awaitable, TYPE_CHECKING from azure.core import AsyncPipelineClient from azure.core.rest import AsyncHttpResponse, HttpRequest diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyIntegerLowLevel/bodyintegerlowlevel/aio/_configuration.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyIntegerLowLevel/bodyintegerlowlevel/aio/_configuration.py index 68ab8b27e32..5a760bb48ef 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyIntegerLowLevel/bodyintegerlowlevel/aio/_configuration.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyIntegerLowLevel/bodyintegerlowlevel/aio/_configuration.py @@ -14,7 +14,7 @@ from .._version import VERSION -class AutoRestIntegerTestServiceConfiguration(Configuration): +class AutoRestIntegerTestServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestIntegerTestService. Note that all parameters used to create this instance are saved as instance 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 e1ba10a58ac..2fc43e7399e 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 @@ -5,7 +5,6 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import datetime from typing import TYPE_CHECKING from azure.core.rest import HttpRequest 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 0840bfa4c71..6f2288dbf27 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 @@ -5,7 +5,6 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import datetime from typing import Any, Dict, Optional, TypeVar from azure.core.rest import HttpRequest diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyNumberLowLevel/bodynumberlowlevel/_auto_rest_number_test_service.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyNumberLowLevel/bodynumberlowlevel/_auto_rest_number_test_service.py index e97119d0a92..927a59d41af 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyNumberLowLevel/bodynumberlowlevel/_auto_rest_number_test_service.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyNumberLowLevel/bodynumberlowlevel/_auto_rest_number_test_service.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Optional, TYPE_CHECKING +from typing import Any, TYPE_CHECKING from azure.core import PipelineClient from azure.core.rest import HttpRequest, HttpResponse diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyNumberLowLevel/bodynumberlowlevel/_configuration.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyNumberLowLevel/bodynumberlowlevel/_configuration.py index 27ae3c7a63a..06b75f515c1 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyNumberLowLevel/bodynumberlowlevel/_configuration.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyNumberLowLevel/bodynumberlowlevel/_configuration.py @@ -14,7 +14,7 @@ from ._version import VERSION -class AutoRestNumberTestServiceConfiguration(Configuration): +class AutoRestNumberTestServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestNumberTestService. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyNumberLowLevel/bodynumberlowlevel/aio/_auto_rest_number_test_service.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyNumberLowLevel/bodynumberlowlevel/aio/_auto_rest_number_test_service.py index 90cd898c125..16e221ccf59 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyNumberLowLevel/bodynumberlowlevel/aio/_auto_rest_number_test_service.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyNumberLowLevel/bodynumberlowlevel/aio/_auto_rest_number_test_service.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional, TYPE_CHECKING +from typing import Any, Awaitable, TYPE_CHECKING from azure.core import AsyncPipelineClient from azure.core.rest import AsyncHttpResponse, HttpRequest diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyNumberLowLevel/bodynumberlowlevel/aio/_configuration.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyNumberLowLevel/bodynumberlowlevel/aio/_configuration.py index aa79cc51c32..40dac1b308b 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyNumberLowLevel/bodynumberlowlevel/aio/_configuration.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyNumberLowLevel/bodynumberlowlevel/aio/_configuration.py @@ -14,7 +14,7 @@ from .._version import VERSION -class AutoRestNumberTestServiceConfiguration(Configuration): +class AutoRestNumberTestServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestNumberTestService. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyStringLowLevel/bodystringlowlevel/_auto_rest_swagger_bat_service.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyStringLowLevel/bodystringlowlevel/_auto_rest_swagger_bat_service.py index ddf4fdcab81..318fbbe70cb 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyStringLowLevel/bodystringlowlevel/_auto_rest_swagger_bat_service.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyStringLowLevel/bodystringlowlevel/_auto_rest_swagger_bat_service.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Optional, TYPE_CHECKING +from typing import Any, TYPE_CHECKING from azure.core import PipelineClient from azure.core.rest import HttpRequest, HttpResponse diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyStringLowLevel/bodystringlowlevel/_configuration.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyStringLowLevel/bodystringlowlevel/_configuration.py index 97f7a19b775..1239968e001 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyStringLowLevel/bodystringlowlevel/_configuration.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyStringLowLevel/bodystringlowlevel/_configuration.py @@ -14,7 +14,7 @@ from ._version import VERSION -class AutoRestSwaggerBATServiceConfiguration(Configuration): +class AutoRestSwaggerBATServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestSwaggerBATService. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyStringLowLevel/bodystringlowlevel/aio/_auto_rest_swagger_bat_service.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyStringLowLevel/bodystringlowlevel/aio/_auto_rest_swagger_bat_service.py index 295170e4f4e..8a6286ccbe2 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyStringLowLevel/bodystringlowlevel/aio/_auto_rest_swagger_bat_service.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyStringLowLevel/bodystringlowlevel/aio/_auto_rest_swagger_bat_service.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional, TYPE_CHECKING +from typing import Any, Awaitable, TYPE_CHECKING from azure.core import AsyncPipelineClient from azure.core.rest import AsyncHttpResponse, HttpRequest diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyStringLowLevel/bodystringlowlevel/aio/_configuration.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyStringLowLevel/bodystringlowlevel/aio/_configuration.py index b78427e6b41..9f14e32ca57 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyStringLowLevel/bodystringlowlevel/aio/_configuration.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyStringLowLevel/bodystringlowlevel/aio/_configuration.py @@ -14,7 +14,7 @@ from .._version import VERSION -class AutoRestSwaggerBATServiceConfiguration(Configuration): +class AutoRestSwaggerBATServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestSwaggerBATService. Note that all parameters used to create this instance are saved as instance 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 2a5cc29e020..6b54bf90c60 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 @@ -209,7 +209,8 @@ def build_get_referenced_constant_request( # response body for status code(s): 200 response.json() == { - "ColorConstant": "green-color", # Default value is "green-color". Referenced Color Constant Description. Has constant value: "green-color". + "ColorConstant": "green-color", # Default value is "green-color". Referenced + Color Constant Description. Has constant value: "green-color". "field1": "str" # Optional. Sample string. } """ @@ -255,7 +256,8 @@ def build_put_referenced_constant_request( # JSON input template you can fill out and use as your body input. json = { - "ColorConstant": "green-color", # Default value is "green-color". Referenced Color Constant Description. Has constant value: "green-color". + "ColorConstant": "green-color", # Default value is "green-color". Referenced + Color Constant Description. Has constant value: "green-color". "field1": "str" # Optional. Sample string. } """ 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 c1f914ed1e6..62bd164edc3 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 @@ -169,7 +169,8 @@ def build_get_referenced_constant_request(**kwargs: Any) -> HttpRequest: # response body for status code(s): 200 response.json() == { - "ColorConstant": "green-color", # Default value is "green-color". Referenced Color Constant Description. Has constant value: "green-color". + "ColorConstant": "green-color", # Default value is "green-color". Referenced + Color Constant Description. Has constant value: "green-color". "field1": "str" # Optional. Sample string. } """ @@ -207,7 +208,8 @@ def build_put_referenced_constant_request(*, json: JSONType = None, content: Any # JSON input template you can fill out and use as your body input. json = { - "ColorConstant": "green-color", # Default value is "green-color". Referenced Color Constant Description. Has constant value: "green-color". + "ColorConstant": "green-color", # Default value is "green-color". Referenced + Color Constant Description. Has constant value: "green-color". "field1": "str" # Optional. Sample string. } """ diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyTimeLowLevel/bodytimelowlevel/_auto_rest_time_test_service.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyTimeLowLevel/bodytimelowlevel/_auto_rest_time_test_service.py index cc7535723b7..163fdc9d366 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyTimeLowLevel/bodytimelowlevel/_auto_rest_time_test_service.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyTimeLowLevel/bodytimelowlevel/_auto_rest_time_test_service.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Optional, TYPE_CHECKING +from typing import Any, TYPE_CHECKING from azure.core import PipelineClient from azure.core.rest import HttpRequest, HttpResponse diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyTimeLowLevel/bodytimelowlevel/_configuration.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyTimeLowLevel/bodytimelowlevel/_configuration.py index ddd9c651ac4..92c452e95b6 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyTimeLowLevel/bodytimelowlevel/_configuration.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyTimeLowLevel/bodytimelowlevel/_configuration.py @@ -14,7 +14,7 @@ from ._version import VERSION -class AutoRestTimeTestServiceConfiguration(Configuration): +class AutoRestTimeTestServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestTimeTestService. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyTimeLowLevel/bodytimelowlevel/aio/_auto_rest_time_test_service.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyTimeLowLevel/bodytimelowlevel/aio/_auto_rest_time_test_service.py index 44aeea4563a..cff5ec2676d 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyTimeLowLevel/bodytimelowlevel/aio/_auto_rest_time_test_service.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyTimeLowLevel/bodytimelowlevel/aio/_auto_rest_time_test_service.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional, TYPE_CHECKING +from typing import Any, Awaitable, TYPE_CHECKING from azure.core import AsyncPipelineClient from azure.core.rest import AsyncHttpResponse, HttpRequest diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyTimeLowLevel/bodytimelowlevel/aio/_configuration.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyTimeLowLevel/bodytimelowlevel/aio/_configuration.py index b77c2f46895..4cc72dc2ebf 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyTimeLowLevel/bodytimelowlevel/aio/_configuration.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyTimeLowLevel/bodytimelowlevel/aio/_configuration.py @@ -14,7 +14,7 @@ from .._version import VERSION -class AutoRestTimeTestServiceConfiguration(Configuration): +class AutoRestTimeTestServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestTimeTestService. Note that all parameters used to create this instance are saved as instance 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 3fbdd66b8f0..1f0bc38f3ee 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 @@ -5,7 +5,6 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import datetime from typing import TYPE_CHECKING from azure.core.rest import HttpRequest 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 8eba07037b0..f34ad22e998 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 @@ -5,7 +5,6 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import datetime from typing import Any, Dict, Optional, TypeVar from azure.core.rest import HttpRequest diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/ConstantsLowLevel/constantslowlevel/_auto_rest_swagger_constant_service.py b/test/vanilla/low-level/Expected/AcceptanceTests/ConstantsLowLevel/constantslowlevel/_auto_rest_swagger_constant_service.py index f314a2cfd6d..3f0bf7f2141 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/ConstantsLowLevel/constantslowlevel/_auto_rest_swagger_constant_service.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/ConstantsLowLevel/constantslowlevel/_auto_rest_swagger_constant_service.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Optional, TYPE_CHECKING +from typing import Any, TYPE_CHECKING from azure.core import PipelineClient from azure.core.rest import HttpRequest, HttpResponse diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/ConstantsLowLevel/constantslowlevel/_configuration.py b/test/vanilla/low-level/Expected/AcceptanceTests/ConstantsLowLevel/constantslowlevel/_configuration.py index dba2058bcc0..921890aeb1a 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/ConstantsLowLevel/constantslowlevel/_configuration.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/ConstantsLowLevel/constantslowlevel/_configuration.py @@ -14,17 +14,23 @@ from ._version import VERSION -class AutoRestSwaggerConstantServiceConfiguration(Configuration): +class AutoRestSwaggerConstantServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestSwaggerConstantService. Note that all parameters used to create this instance are saved as instance attributes. - :keyword header_constant: Constant header property on the client that is a required parameter for operation 'constants_putClientConstants'. The default value is True. Note that overriding this default value may result in unsupported behavior. + :keyword header_constant: Constant header property on the client that is a required parameter + for operation 'constants_putClientConstants'. The default value is True. Note that overriding + this default value may result in unsupported behavior. :paramtype header_constant: bool - :keyword query_constant: Constant query property on the client that is a required parameter for operation 'constants_putClientConstants'. The default value is 100. Note that overriding this default value may result in unsupported behavior. + :keyword query_constant: Constant query property on the client that is a required parameter for + operation 'constants_putClientConstants'. The default value is 100. Note that overriding this + default value may result in unsupported behavior. :paramtype query_constant: int - :keyword path_constant: Constant path property on the client that is a required parameter for operation 'constants_putClientConstants'. The default value is "path". Note that overriding this default value may result in unsupported behavior. + :keyword path_constant: Constant path property on the client that is a required parameter for + operation 'constants_putClientConstants'. The default value is "path". Note that overriding + this default value may result in unsupported behavior. :paramtype path_constant: str """ diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/ConstantsLowLevel/constantslowlevel/aio/_auto_rest_swagger_constant_service.py b/test/vanilla/low-level/Expected/AcceptanceTests/ConstantsLowLevel/constantslowlevel/aio/_auto_rest_swagger_constant_service.py index b188713e582..2a90b5d9ad3 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/ConstantsLowLevel/constantslowlevel/aio/_auto_rest_swagger_constant_service.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/ConstantsLowLevel/constantslowlevel/aio/_auto_rest_swagger_constant_service.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional, TYPE_CHECKING +from typing import Any, Awaitable, TYPE_CHECKING from azure.core import AsyncPipelineClient from azure.core.rest import AsyncHttpResponse, HttpRequest diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/ConstantsLowLevel/constantslowlevel/aio/_configuration.py b/test/vanilla/low-level/Expected/AcceptanceTests/ConstantsLowLevel/constantslowlevel/aio/_configuration.py index 0f10bc85b73..220039724e9 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/ConstantsLowLevel/constantslowlevel/aio/_configuration.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/ConstantsLowLevel/constantslowlevel/aio/_configuration.py @@ -14,17 +14,23 @@ from .._version import VERSION -class AutoRestSwaggerConstantServiceConfiguration(Configuration): +class AutoRestSwaggerConstantServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestSwaggerConstantService. Note that all parameters used to create this instance are saved as instance attributes. - :keyword header_constant: Constant header property on the client that is a required parameter for operation 'constants_putClientConstants'. The default value is True. Note that overriding this default value may result in unsupported behavior. + :keyword header_constant: Constant header property on the client that is a required parameter + for operation 'constants_putClientConstants'. The default value is True. Note that overriding + this default value may result in unsupported behavior. :paramtype header_constant: bool - :keyword query_constant: Constant query property on the client that is a required parameter for operation 'constants_putClientConstants'. The default value is 100. Note that overriding this default value may result in unsupported behavior. + :keyword query_constant: Constant query property on the client that is a required parameter for + operation 'constants_putClientConstants'. The default value is 100. Note that overriding this + default value may result in unsupported behavior. :paramtype query_constant: int - :keyword path_constant: Constant path property on the client that is a required parameter for operation 'constants_putClientConstants'. The default value is "path". Note that overriding this default value may result in unsupported behavior. + :keyword path_constant: Constant path property on the client that is a required parameter for + operation 'constants_putClientConstants'. The default value is "path". Note that overriding + this default value may result in unsupported behavior. :paramtype path_constant: str """ diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/CustomBaseUriLowLevel/custombaseurllowlevel/_configuration.py b/test/vanilla/low-level/Expected/AcceptanceTests/CustomBaseUriLowLevel/custombaseurllowlevel/_configuration.py index 128274f962d..8d1336c7464 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/CustomBaseUriLowLevel/custombaseurllowlevel/_configuration.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/CustomBaseUriLowLevel/custombaseurllowlevel/_configuration.py @@ -14,7 +14,7 @@ from ._version import VERSION -class AutoRestParameterizedHostTestClientConfiguration(Configuration): +class AutoRestParameterizedHostTestClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestParameterizedHostTestClient. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/CustomBaseUriLowLevel/custombaseurllowlevel/aio/_configuration.py b/test/vanilla/low-level/Expected/AcceptanceTests/CustomBaseUriLowLevel/custombaseurllowlevel/aio/_configuration.py index cf7cbb01aaf..54699ce96b9 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/CustomBaseUriLowLevel/custombaseurllowlevel/aio/_configuration.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/CustomBaseUriLowLevel/custombaseurllowlevel/aio/_configuration.py @@ -14,7 +14,7 @@ from .._version import VERSION -class AutoRestParameterizedHostTestClientConfiguration(Configuration): +class AutoRestParameterizedHostTestClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestParameterizedHostTestClient. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/CustomBaseUriMoreOptionsLowLevel/custombaseurlmoreoptionslowlevel/_configuration.py b/test/vanilla/low-level/Expected/AcceptanceTests/CustomBaseUriMoreOptionsLowLevel/custombaseurlmoreoptionslowlevel/_configuration.py index 81ffb7c8afa..d3f3509bb69 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/CustomBaseUriMoreOptionsLowLevel/custombaseurlmoreoptionslowlevel/_configuration.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/CustomBaseUriMoreOptionsLowLevel/custombaseurlmoreoptionslowlevel/_configuration.py @@ -14,7 +14,9 @@ from ._version import VERSION -class AutoRestParameterizedCustomHostTestClientConfiguration(Configuration): +class AutoRestParameterizedCustomHostTestClientConfiguration( + Configuration +): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestParameterizedCustomHostTestClient. Note that all parameters used to create this instance are saved as instance @@ -22,7 +24,8 @@ class AutoRestParameterizedCustomHostTestClientConfiguration(Configuration): :param subscription_id: The subscription id with value 'test12'. :type subscription_id: str - :param dns_suffix: A string value that is used as a global part of the parameterized host. Default value 'host'. + :param dns_suffix: A string value that is used as a global part of the parameterized host. + Default value 'host'. :type dns_suffix: str """ diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/CustomBaseUriMoreOptionsLowLevel/custombaseurlmoreoptionslowlevel/aio/_configuration.py b/test/vanilla/low-level/Expected/AcceptanceTests/CustomBaseUriMoreOptionsLowLevel/custombaseurlmoreoptionslowlevel/aio/_configuration.py index b99c9e62730..da0209e9a1f 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/CustomBaseUriMoreOptionsLowLevel/custombaseurlmoreoptionslowlevel/aio/_configuration.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/CustomBaseUriMoreOptionsLowLevel/custombaseurlmoreoptionslowlevel/aio/_configuration.py @@ -14,7 +14,9 @@ from .._version import VERSION -class AutoRestParameterizedCustomHostTestClientConfiguration(Configuration): +class AutoRestParameterizedCustomHostTestClientConfiguration( + Configuration +): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestParameterizedCustomHostTestClient. Note that all parameters used to create this instance are saved as instance @@ -22,7 +24,8 @@ class AutoRestParameterizedCustomHostTestClientConfiguration(Configuration): :param subscription_id: The subscription id with value 'test12'. :type subscription_id: str - :param dns_suffix: A string value that is used as a global part of the parameterized host. Default value 'host'. + :param dns_suffix: A string value that is used as a global part of the parameterized host. + Default value 'host'. :type dns_suffix: str """ diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/ExtensibleEnumsLowLevel/extensibleenumsswaggerlowlevel/_configuration.py b/test/vanilla/low-level/Expected/AcceptanceTests/ExtensibleEnumsLowLevel/extensibleenumsswaggerlowlevel/_configuration.py index db48107b56a..98dc7e482c5 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/ExtensibleEnumsLowLevel/extensibleenumsswaggerlowlevel/_configuration.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/ExtensibleEnumsLowLevel/extensibleenumsswaggerlowlevel/_configuration.py @@ -14,7 +14,7 @@ from ._version import VERSION -class PetStoreIncConfiguration(Configuration): +class PetStoreIncConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for PetStoreInc. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/ExtensibleEnumsLowLevel/extensibleenumsswaggerlowlevel/_pet_store_inc.py b/test/vanilla/low-level/Expected/AcceptanceTests/ExtensibleEnumsLowLevel/extensibleenumsswaggerlowlevel/_pet_store_inc.py index eb655843b0d..18bda65ed49 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/ExtensibleEnumsLowLevel/extensibleenumsswaggerlowlevel/_pet_store_inc.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/ExtensibleEnumsLowLevel/extensibleenumsswaggerlowlevel/_pet_store_inc.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Optional, TYPE_CHECKING +from typing import Any, TYPE_CHECKING from azure.core import PipelineClient from azure.core.rest import HttpRequest, HttpResponse diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/ExtensibleEnumsLowLevel/extensibleenumsswaggerlowlevel/aio/_configuration.py b/test/vanilla/low-level/Expected/AcceptanceTests/ExtensibleEnumsLowLevel/extensibleenumsswaggerlowlevel/aio/_configuration.py index f20dc3de00b..dbcf37bdcd3 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/ExtensibleEnumsLowLevel/extensibleenumsswaggerlowlevel/aio/_configuration.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/ExtensibleEnumsLowLevel/extensibleenumsswaggerlowlevel/aio/_configuration.py @@ -14,7 +14,7 @@ from .._version import VERSION -class PetStoreIncConfiguration(Configuration): +class PetStoreIncConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for PetStoreInc. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/ExtensibleEnumsLowLevel/extensibleenumsswaggerlowlevel/aio/_pet_store_inc.py b/test/vanilla/low-level/Expected/AcceptanceTests/ExtensibleEnumsLowLevel/extensibleenumsswaggerlowlevel/aio/_pet_store_inc.py index 25317d3b57b..54a95ae9e35 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/ExtensibleEnumsLowLevel/extensibleenumsswaggerlowlevel/aio/_pet_store_inc.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/ExtensibleEnumsLowLevel/extensibleenumsswaggerlowlevel/aio/_pet_store_inc.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional, TYPE_CHECKING +from typing import Any, Awaitable, TYPE_CHECKING from azure.core import AsyncPipelineClient from azure.core.rest import AsyncHttpResponse, HttpRequest 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 72c4cf6e6f9..6af5fc065bc 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 @@ -46,7 +46,9 @@ def build_get_by_pet_id_request( # response body for status code(s): 200 response.json() == { - "DaysOfWeek": "Friday", # Optional. Default value is "Friday". Type of Pet. Possible values include: "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday". Default value: "Friday". + "DaysOfWeek": "Friday", # Optional. Default value is "Friday". Type of Pet. + Possible values include: "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", + "Saturday", "Sunday". Default value: "Friday". "IntEnum": "str", # Required. Possible values include: "1", "2", "3". "name": "str" # Optional. name. } @@ -98,14 +100,18 @@ def build_add_pet_request( # JSON input template you can fill out and use as your body input. json = { - "DaysOfWeek": "Friday", # Optional. Default value is "Friday". Type of Pet. Possible values include: "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday". Default value: "Friday". + "DaysOfWeek": "Friday", # Optional. Default value is "Friday". Type of Pet. + Possible values include: "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", + "Saturday", "Sunday". Default value: "Friday". "IntEnum": "str", # Required. Possible values include: "1", "2", "3". "name": "str" # Optional. name. } # response body for status code(s): 200 response.json() == { - "DaysOfWeek": "Friday", # Optional. Default value is "Friday". Type of Pet. Possible values include: "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday". Default value: "Friday". + "DaysOfWeek": "Friday", # Optional. Default value is "Friday". Type of Pet. + Possible values include: "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", + "Saturday", "Sunday". Default value: "Friday". "IntEnum": "str", # Required. Possible values include: "1", "2", "3". "name": "str" # Optional. name. } 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 a8143ebdb13..a2c1f0a2dc3 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 @@ -37,7 +37,9 @@ def build_get_by_pet_id_request(pet_id: str, **kwargs: Any) -> HttpRequest: # response body for status code(s): 200 response.json() == { - "DaysOfWeek": "Friday", # Optional. Default value is "Friday". Type of Pet. Possible values include: "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday". Default value: "Friday". + "DaysOfWeek": "Friday", # Optional. Default value is "Friday". Type of Pet. + Possible values include: "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", + "Saturday", "Sunday". Default value: "Friday". "IntEnum": "str", # Required. Possible values include: "1", "2", "3". "name": "str" # Optional. name. } @@ -81,14 +83,18 @@ def build_add_pet_request(*, json: JSONType = None, content: Any = None, **kwarg # JSON input template you can fill out and use as your body input. json = { - "DaysOfWeek": "Friday", # Optional. Default value is "Friday". Type of Pet. Possible values include: "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday". Default value: "Friday". + "DaysOfWeek": "Friday", # Optional. Default value is "Friday". Type of Pet. + Possible values include: "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", + "Saturday", "Sunday". Default value: "Friday". "IntEnum": "str", # Required. Possible values include: "1", "2", "3". "name": "str" # Optional. name. } # response body for status code(s): 200 response.json() == { - "DaysOfWeek": "Friday", # Optional. Default value is "Friday". Type of Pet. Possible values include: "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday". Default value: "Friday". + "DaysOfWeek": "Friday", # Optional. Default value is "Friday". Type of Pet. + Possible values include: "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", + "Saturday", "Sunday". Default value: "Friday". "IntEnum": "str", # Required. Possible values include: "1", "2", "3". "name": "str" # Optional. name. } diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/HeaderLowLevel/headerlowlevel/_auto_rest_swagger_bat_header_service.py b/test/vanilla/low-level/Expected/AcceptanceTests/HeaderLowLevel/headerlowlevel/_auto_rest_swagger_bat_header_service.py index 7dc53768937..655f402584b 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/HeaderLowLevel/headerlowlevel/_auto_rest_swagger_bat_header_service.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/HeaderLowLevel/headerlowlevel/_auto_rest_swagger_bat_header_service.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Optional, TYPE_CHECKING +from typing import Any, TYPE_CHECKING from azure.core import PipelineClient from azure.core.rest import HttpRequest, HttpResponse diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/HeaderLowLevel/headerlowlevel/_configuration.py b/test/vanilla/low-level/Expected/AcceptanceTests/HeaderLowLevel/headerlowlevel/_configuration.py index ba4c2d7dbf9..fefd719aa05 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/HeaderLowLevel/headerlowlevel/_configuration.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/HeaderLowLevel/headerlowlevel/_configuration.py @@ -14,7 +14,7 @@ from ._version import VERSION -class AutoRestSwaggerBATHeaderServiceConfiguration(Configuration): +class AutoRestSwaggerBATHeaderServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestSwaggerBATHeaderService. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/HeaderLowLevel/headerlowlevel/aio/_auto_rest_swagger_bat_header_service.py b/test/vanilla/low-level/Expected/AcceptanceTests/HeaderLowLevel/headerlowlevel/aio/_auto_rest_swagger_bat_header_service.py index 91c547ee739..1968b2fb63d 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/HeaderLowLevel/headerlowlevel/aio/_auto_rest_swagger_bat_header_service.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/HeaderLowLevel/headerlowlevel/aio/_auto_rest_swagger_bat_header_service.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional, TYPE_CHECKING +from typing import Any, Awaitable, TYPE_CHECKING from azure.core import AsyncPipelineClient from azure.core.rest import AsyncHttpResponse, HttpRequest diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/HeaderLowLevel/headerlowlevel/aio/_configuration.py b/test/vanilla/low-level/Expected/AcceptanceTests/HeaderLowLevel/headerlowlevel/aio/_configuration.py index d7e96d2334c..04c790d0397 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/HeaderLowLevel/headerlowlevel/aio/_configuration.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/HeaderLowLevel/headerlowlevel/aio/_configuration.py @@ -14,7 +14,7 @@ from .._version import VERSION -class AutoRestSwaggerBATHeaderServiceConfiguration(Configuration): +class AutoRestSwaggerBATHeaderServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestSwaggerBATHeaderService. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/httpinfrastructurelowlevel/_auto_rest_http_infrastructure_test_service.py b/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/httpinfrastructurelowlevel/_auto_rest_http_infrastructure_test_service.py index 2db00606ea1..a6ad799bc2e 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/httpinfrastructurelowlevel/_auto_rest_http_infrastructure_test_service.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/httpinfrastructurelowlevel/_auto_rest_http_infrastructure_test_service.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Optional, TYPE_CHECKING +from typing import Any, TYPE_CHECKING from azure.core import PipelineClient from azure.core.rest import HttpRequest, HttpResponse diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/httpinfrastructurelowlevel/_configuration.py b/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/httpinfrastructurelowlevel/_configuration.py index e88462f94c8..71776ec85fd 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/httpinfrastructurelowlevel/_configuration.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/httpinfrastructurelowlevel/_configuration.py @@ -14,7 +14,7 @@ from ._version import VERSION -class AutoRestHttpInfrastructureTestServiceConfiguration(Configuration): +class AutoRestHttpInfrastructureTestServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestHttpInfrastructureTestService. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/httpinfrastructurelowlevel/aio/_auto_rest_http_infrastructure_test_service.py b/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/httpinfrastructurelowlevel/aio/_auto_rest_http_infrastructure_test_service.py index bdf64648b3f..ee63812a533 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/httpinfrastructurelowlevel/aio/_auto_rest_http_infrastructure_test_service.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/httpinfrastructurelowlevel/aio/_auto_rest_http_infrastructure_test_service.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional, TYPE_CHECKING +from typing import Any, Awaitable, TYPE_CHECKING from azure.core import AsyncPipelineClient from azure.core.rest import AsyncHttpResponse, HttpRequest diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/httpinfrastructurelowlevel/aio/_configuration.py b/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/httpinfrastructurelowlevel/aio/_configuration.py index 3e8df985edb..cae367ee2b7 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/httpinfrastructurelowlevel/aio/_configuration.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/httpinfrastructurelowlevel/aio/_configuration.py @@ -14,7 +14,7 @@ from .._version import VERSION -class AutoRestHttpInfrastructureTestServiceConfiguration(Configuration): +class AutoRestHttpInfrastructureTestServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestHttpInfrastructureTestService. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/IncorrectErrorResponseLowLevel/incorrecterrorresponselowlevel/_configuration.py b/test/vanilla/low-level/Expected/AcceptanceTests/IncorrectErrorResponseLowLevel/incorrecterrorresponselowlevel/_configuration.py index 3d38c91d7f8..848911b2ef4 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/IncorrectErrorResponseLowLevel/incorrecterrorresponselowlevel/_configuration.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/IncorrectErrorResponseLowLevel/incorrecterrorresponselowlevel/_configuration.py @@ -14,7 +14,7 @@ from ._version import VERSION -class IncorrectReturnedErrorModelConfiguration(Configuration): +class IncorrectReturnedErrorModelConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for IncorrectReturnedErrorModel. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/IncorrectErrorResponseLowLevel/incorrecterrorresponselowlevel/_incorrect_returned_error_model.py b/test/vanilla/low-level/Expected/AcceptanceTests/IncorrectErrorResponseLowLevel/incorrecterrorresponselowlevel/_incorrect_returned_error_model.py index 063941fadd1..eb85a29dde5 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/IncorrectErrorResponseLowLevel/incorrecterrorresponselowlevel/_incorrect_returned_error_model.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/IncorrectErrorResponseLowLevel/incorrecterrorresponselowlevel/_incorrect_returned_error_model.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Optional, TYPE_CHECKING +from typing import Any, TYPE_CHECKING from azure.core import PipelineClient from azure.core.rest import HttpRequest, HttpResponse @@ -21,7 +21,8 @@ class IncorrectReturnedErrorModel: - """Test to see when throwing an HttpResponseError whether we swallow error model deserialization errors. + """Test to see when throwing an HttpResponseError whether we swallow error model deserialization + errors. :keyword endpoint: Service URL. Default value is 'http://localhost:3000'. :paramtype endpoint: str diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/IncorrectErrorResponseLowLevel/incorrecterrorresponselowlevel/aio/_configuration.py b/test/vanilla/low-level/Expected/AcceptanceTests/IncorrectErrorResponseLowLevel/incorrecterrorresponselowlevel/aio/_configuration.py index 556842de3fd..1b670d174d9 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/IncorrectErrorResponseLowLevel/incorrecterrorresponselowlevel/aio/_configuration.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/IncorrectErrorResponseLowLevel/incorrecterrorresponselowlevel/aio/_configuration.py @@ -14,7 +14,7 @@ from .._version import VERSION -class IncorrectReturnedErrorModelConfiguration(Configuration): +class IncorrectReturnedErrorModelConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for IncorrectReturnedErrorModel. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/IncorrectErrorResponseLowLevel/incorrecterrorresponselowlevel/aio/_incorrect_returned_error_model.py b/test/vanilla/low-level/Expected/AcceptanceTests/IncorrectErrorResponseLowLevel/incorrecterrorresponselowlevel/aio/_incorrect_returned_error_model.py index b740bb63c7f..961b9e4a2cf 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/IncorrectErrorResponseLowLevel/incorrecterrorresponselowlevel/aio/_incorrect_returned_error_model.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/IncorrectErrorResponseLowLevel/incorrecterrorresponselowlevel/aio/_incorrect_returned_error_model.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional, TYPE_CHECKING +from typing import Any, Awaitable, TYPE_CHECKING from azure.core import AsyncPipelineClient from azure.core.rest import AsyncHttpResponse, HttpRequest @@ -21,7 +21,8 @@ class IncorrectReturnedErrorModel: - """Test to see when throwing an HttpResponseError whether we swallow error model deserialization errors. + """Test to see when throwing an HttpResponseError whether we swallow error model deserialization + errors. :keyword endpoint: Service URL. Default value is 'http://localhost:3000'. :paramtype endpoint: str diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/MediaTypesLowLevel/mediatypeslowlevel/_configuration.py b/test/vanilla/low-level/Expected/AcceptanceTests/MediaTypesLowLevel/mediatypeslowlevel/_configuration.py index eba56985c57..3628a4a853e 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/MediaTypesLowLevel/mediatypeslowlevel/_configuration.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/MediaTypesLowLevel/mediatypeslowlevel/_configuration.py @@ -14,7 +14,7 @@ from ._version import VERSION -class MediaTypesClientConfiguration(Configuration): +class MediaTypesClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for MediaTypesClient. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/MediaTypesLowLevel/mediatypeslowlevel/_media_types_client.py b/test/vanilla/low-level/Expected/AcceptanceTests/MediaTypesLowLevel/mediatypeslowlevel/_media_types_client.py index 3593c9a66f4..7e22878b053 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/MediaTypesLowLevel/mediatypeslowlevel/_media_types_client.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/MediaTypesLowLevel/mediatypeslowlevel/_media_types_client.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Optional, TYPE_CHECKING +from typing import Any, TYPE_CHECKING from azure.core import PipelineClient from azure.core.rest import HttpRequest, HttpResponse diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/MediaTypesLowLevel/mediatypeslowlevel/aio/_configuration.py b/test/vanilla/low-level/Expected/AcceptanceTests/MediaTypesLowLevel/mediatypeslowlevel/aio/_configuration.py index 4048232998c..ac6169f2c7c 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/MediaTypesLowLevel/mediatypeslowlevel/aio/_configuration.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/MediaTypesLowLevel/mediatypeslowlevel/aio/_configuration.py @@ -14,7 +14,7 @@ from .._version import VERSION -class MediaTypesClientConfiguration(Configuration): +class MediaTypesClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for MediaTypesClient. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/MediaTypesLowLevel/mediatypeslowlevel/aio/_media_types_client.py b/test/vanilla/low-level/Expected/AcceptanceTests/MediaTypesLowLevel/mediatypeslowlevel/aio/_media_types_client.py index 0c5adde84c1..a926efb33de 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/MediaTypesLowLevel/mediatypeslowlevel/aio/_media_types_client.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/MediaTypesLowLevel/mediatypeslowlevel/aio/_media_types_client.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional, TYPE_CHECKING +from typing import Any, Awaitable, TYPE_CHECKING from azure.core import AsyncPipelineClient from azure.core.rest import AsyncHttpResponse, HttpRequest 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 88d9af91073..9d5c665ea34 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 @@ -12,7 +12,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Dict, IO, Optional, TypeVar, Union + from typing import Any, Dict, Optional, TypeVar, Union T = TypeVar("T") JSONType = Any 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 e093284d80c..98ff27b5565 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 @@ -5,7 +5,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, Dict, IO, Optional, TypeVar, Union +from typing import Any, Dict, Optional, TypeVar, Union from azure.core.rest import HttpRequest from msrest import Serializer diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/MergePatchJsonLowLevel/mergepatchjsonlowlevel/_configuration.py b/test/vanilla/low-level/Expected/AcceptanceTests/MergePatchJsonLowLevel/mergepatchjsonlowlevel/_configuration.py index b31020fdb87..561421f9619 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/MergePatchJsonLowLevel/mergepatchjsonlowlevel/_configuration.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/MergePatchJsonLowLevel/mergepatchjsonlowlevel/_configuration.py @@ -14,7 +14,7 @@ from ._version import VERSION -class MergePatchJsonClientConfiguration(Configuration): +class MergePatchJsonClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for MergePatchJsonClient. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/MergePatchJsonLowLevel/mergepatchjsonlowlevel/_merge_patch_json_client.py b/test/vanilla/low-level/Expected/AcceptanceTests/MergePatchJsonLowLevel/mergepatchjsonlowlevel/_merge_patch_json_client.py index 8352217a63b..85e2b8ac89e 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/MergePatchJsonLowLevel/mergepatchjsonlowlevel/_merge_patch_json_client.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/MergePatchJsonLowLevel/mergepatchjsonlowlevel/_merge_patch_json_client.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Optional, TYPE_CHECKING +from typing import Any, TYPE_CHECKING from azure.core import PipelineClient from azure.core.rest import HttpRequest, HttpResponse diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/MergePatchJsonLowLevel/mergepatchjsonlowlevel/aio/_configuration.py b/test/vanilla/low-level/Expected/AcceptanceTests/MergePatchJsonLowLevel/mergepatchjsonlowlevel/aio/_configuration.py index 89b78fceea2..2b49cb02c75 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/MergePatchJsonLowLevel/mergepatchjsonlowlevel/aio/_configuration.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/MergePatchJsonLowLevel/mergepatchjsonlowlevel/aio/_configuration.py @@ -14,7 +14,7 @@ from .._version import VERSION -class MergePatchJsonClientConfiguration(Configuration): +class MergePatchJsonClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for MergePatchJsonClient. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/MergePatchJsonLowLevel/mergepatchjsonlowlevel/aio/_merge_patch_json_client.py b/test/vanilla/low-level/Expected/AcceptanceTests/MergePatchJsonLowLevel/mergepatchjsonlowlevel/aio/_merge_patch_json_client.py index 9c5dece37e4..96acce0a586 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/MergePatchJsonLowLevel/mergepatchjsonlowlevel/aio/_merge_patch_json_client.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/MergePatchJsonLowLevel/mergepatchjsonlowlevel/aio/_merge_patch_json_client.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional, TYPE_CHECKING +from typing import Any, Awaitable, TYPE_CHECKING from azure.core import AsyncPipelineClient from azure.core.rest import AsyncHttpResponse, HttpRequest diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/ModelFlatteningLowLevel/modelflatteninglowlevel/_auto_rest_resource_flattening_test_service.py b/test/vanilla/low-level/Expected/AcceptanceTests/ModelFlatteningLowLevel/modelflatteninglowlevel/_auto_rest_resource_flattening_test_service.py index 7342b94dc44..ab40f7c7fc8 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/ModelFlatteningLowLevel/modelflatteninglowlevel/_auto_rest_resource_flattening_test_service.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/ModelFlatteningLowLevel/modelflatteninglowlevel/_auto_rest_resource_flattening_test_service.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Optional, TYPE_CHECKING +from typing import Any, TYPE_CHECKING from azure.core import PipelineClient from azure.core.rest import HttpRequest, HttpResponse diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/ModelFlatteningLowLevel/modelflatteninglowlevel/_configuration.py b/test/vanilla/low-level/Expected/AcceptanceTests/ModelFlatteningLowLevel/modelflatteninglowlevel/_configuration.py index bc7007dfa73..7244a93c346 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/ModelFlatteningLowLevel/modelflatteninglowlevel/_configuration.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/ModelFlatteningLowLevel/modelflatteninglowlevel/_configuration.py @@ -14,7 +14,7 @@ from ._version import VERSION -class AutoRestResourceFlatteningTestServiceConfiguration(Configuration): +class AutoRestResourceFlatteningTestServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestResourceFlatteningTestService. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/ModelFlatteningLowLevel/modelflatteninglowlevel/aio/_auto_rest_resource_flattening_test_service.py b/test/vanilla/low-level/Expected/AcceptanceTests/ModelFlatteningLowLevel/modelflatteninglowlevel/aio/_auto_rest_resource_flattening_test_service.py index cf325edc0b2..13dc22b34f5 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/ModelFlatteningLowLevel/modelflatteninglowlevel/aio/_auto_rest_resource_flattening_test_service.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/ModelFlatteningLowLevel/modelflatteninglowlevel/aio/_auto_rest_resource_flattening_test_service.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional, TYPE_CHECKING +from typing import Any, Awaitable, TYPE_CHECKING from azure.core import AsyncPipelineClient from azure.core.rest import AsyncHttpResponse, HttpRequest diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/ModelFlatteningLowLevel/modelflatteninglowlevel/aio/_configuration.py b/test/vanilla/low-level/Expected/AcceptanceTests/ModelFlatteningLowLevel/modelflatteninglowlevel/aio/_configuration.py index c4cc1600aaf..73c510afe25 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/ModelFlatteningLowLevel/modelflatteninglowlevel/aio/_configuration.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/ModelFlatteningLowLevel/modelflatteninglowlevel/aio/_configuration.py @@ -14,7 +14,7 @@ from .._version import VERSION -class AutoRestResourceFlatteningTestServiceConfiguration(Configuration): +class AutoRestResourceFlatteningTestServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestResourceFlatteningTestService. Note that all parameters used to create this instance are saved as instance 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 32fab5cd388..f6b1407e34a 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 @@ -14,7 +14,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Dict, List, Optional, TypeVar + from typing import Any, Dict, Optional, TypeVar T = TypeVar("T") JSONType = Any @@ -54,7 +54,8 @@ def build_put_array_request( "location": "str", # Optional. Resource Location. "name": "str", # Optional. Resource Name. "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -107,11 +108,15 @@ def build_get_array_request( "properties": { "p.name": "str", # Optional. "provisioningState": "str", # Optional. - "provisioningStateValues": "str", # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str", # Optional. Possible + values include: "Succeeded", "Failed", "canceled", "Accepted", + "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", + "OK". "type": "str" # Optional. }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -262,11 +267,15 @@ def build_put_dictionary_request( "properties": { "p.name": "str", # Optional. "provisioningState": "str", # Optional. - "provisioningStateValues": "str", # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str", # Optional. Possible + values include: "Succeeded", "Failed", "canceled", "Accepted", + "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", + "OK". "type": "str" # Optional. }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -319,11 +328,15 @@ def build_get_dictionary_request( "properties": { "p.name": "str", # Optional. "provisioningState": "str", # Optional. - "provisioningStateValues": "str", # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str", # Optional. Possible + values include: "Succeeded", "Failed", "canceled", "Accepted", + "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", + "OK". "type": "str" # Optional. }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -379,11 +392,15 @@ def build_put_resource_collection_request( "properties": { "p.name": "str", # Optional. "provisioningState": "str", # Optional. - "provisioningStateValues": "str", # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str", # Optional. + Possible values include: "Succeeded", "Failed", "canceled", + "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", + "Deleted", "OK". "type": "str" # Optional. }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary + of :code:``. }, "type": "str" # Optional. Resource Type. } @@ -394,13 +411,20 @@ def build_put_resource_collection_request( "location": "str", # Optional. Resource Location. "name": "str", # Optional. Resource Name. "properties": { - "p.name": "str", # Optional. Dictionary of :code:``. - "provisioningState": "str", # Optional. Dictionary of :code:``. - "provisioningStateValues": "str", # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". - "type": "str" # Optional. Dictionary of :code:``. + "p.name": "str", # Optional. Dictionary of + :code:``. + "provisioningState": "str", # Optional. Dictionary + of :code:``. + "provisioningStateValues": "str", # Optional. + Possible values include: "Succeeded", "Failed", "canceled", + "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", + "Deleted", "OK". + "type": "str" # Optional. Dictionary of + :code:``. }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary + of :code:``. }, "type": "str" # Optional. Resource Type. } @@ -412,11 +436,15 @@ def build_put_resource_collection_request( "properties": { "p.name": "str", # Optional. Flattened product. "provisioningState": "str", # Optional. Flattened product. - "provisioningStateValues": "str", # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str", # Optional. Possible + values include: "Succeeded", "Failed", "canceled", "Accepted", + "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", + "OK". "type": "str" # Optional. Flattened product. }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -470,11 +498,15 @@ def build_get_resource_collection_request( "properties": { "p.name": "str", # Optional. "provisioningState": "str", # Optional. - "provisioningStateValues": "str", # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str", # Optional. + Possible values include: "Succeeded", "Failed", "canceled", + "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", + "Deleted", "OK". "type": "str" # Optional. }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary + of :code:``. }, "type": "str" # Optional. Resource Type. } @@ -485,13 +517,20 @@ def build_get_resource_collection_request( "location": "str", # Optional. Resource Location. "name": "str", # Optional. Resource Name. "properties": { - "p.name": "str", # Optional. Dictionary of :code:``. - "provisioningState": "str", # Optional. Dictionary of :code:``. - "provisioningStateValues": "str", # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". - "type": "str" # Optional. Dictionary of :code:``. + "p.name": "str", # Optional. Dictionary of + :code:``. + "provisioningState": "str", # Optional. Dictionary + of :code:``. + "provisioningStateValues": "str", # Optional. + Possible values include: "Succeeded", "Failed", "canceled", + "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", + "Deleted", "OK". + "type": "str" # Optional. Dictionary of + :code:``. }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary + of :code:``. }, "type": "str" # Optional. Resource Type. } @@ -503,11 +542,15 @@ def build_get_resource_collection_request( "properties": { "p.name": "str", # Optional. Flattened product. "provisioningState": "str", # Optional. Flattened product. - "provisioningStateValues": "str", # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str", # Optional. Possible + values include: "Succeeded", "Failed", "canceled", "Accepted", + "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", + "OK". "type": "str" # Optional. Flattened product. }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -556,10 +599,14 @@ def build_put_simple_product_request( # JSON input template you can fill out and use as your body input. json = { "base_product_description": "str", # Optional. Description of product. - "base_product_id": "str", # Required. Unique identifier representing a specific product for a given latitude & longitude. For example, uberX in San Francisco will have a different product_id than uberX in Los Angeles. + "base_product_id": "str", # Required. Unique identifier representing a + specific product for a given latitude & longitude. For example, uberX in San + Francisco will have a different product_id than uberX in Los Angeles. "details": { - "max_product_capacity": "Large", # Default value is "Large". Capacity of product. For example, 4 people. Has constant value: "Large". - "max_product_display_name": "str", # Required. Display name of product. + "max_product_capacity": "Large", # Default value is "Large". + Capacity of product. For example, 4 people. Has constant value: "Large". + "max_product_display_name": "str", # Required. Display name of + product. "max_product_image": { "@odata.value": "str", # Optional. URL value. "generic_value": "str" # Optional. Generic URL value. @@ -570,10 +617,14 @@ def build_put_simple_product_request( # response body for status code(s): 200 response.json() == { "base_product_description": "str", # Optional. Description of product. - "base_product_id": "str", # Required. Unique identifier representing a specific product for a given latitude & longitude. For example, uberX in San Francisco will have a different product_id than uberX in Los Angeles. + "base_product_id": "str", # Required. Unique identifier representing a + specific product for a given latitude & longitude. For example, uberX in San + Francisco will have a different product_id than uberX in Los Angeles. "details": { - "max_product_capacity": "Large", # Default value is "Large". Capacity of product. For example, 4 people. Has constant value: "Large". - "max_product_display_name": "str", # Required. Display name of product. + "max_product_capacity": "Large", # Default value is "Large". + Capacity of product. For example, 4 people. Has constant value: "Large". + "max_product_display_name": "str", # Required. Display name of + product. "max_product_image": { "@odata.value": "str", # Optional. URL value. "generic_value": "str" # Optional. Generic URL value. @@ -628,10 +679,14 @@ def build_post_flattened_simple_product_request( # JSON input template you can fill out and use as your body input. json = { "base_product_description": "str", # Optional. Description of product. - "base_product_id": "str", # Required. Unique identifier representing a specific product for a given latitude & longitude. For example, uberX in San Francisco will have a different product_id than uberX in Los Angeles. + "base_product_id": "str", # Required. Unique identifier representing a + specific product for a given latitude & longitude. For example, uberX in San + Francisco will have a different product_id than uberX in Los Angeles. "details": { - "max_product_capacity": "Large", # Default value is "Large". Capacity of product. For example, 4 people. Has constant value: "Large". - "max_product_display_name": "str", # Required. Display name of product. + "max_product_capacity": "Large", # Default value is "Large". + Capacity of product. For example, 4 people. Has constant value: "Large". + "max_product_display_name": "str", # Required. Display name of + product. "max_product_image": { "@odata.value": "str", # Optional. URL value. "generic_value": "str" # Optional. Generic URL value. @@ -642,10 +697,14 @@ def build_post_flattened_simple_product_request( # response body for status code(s): 200 response.json() == { "base_product_description": "str", # Optional. Description of product. - "base_product_id": "str", # Required. Unique identifier representing a specific product for a given latitude & longitude. For example, uberX in San Francisco will have a different product_id than uberX in Los Angeles. + "base_product_id": "str", # Required. Unique identifier representing a + specific product for a given latitude & longitude. For example, uberX in San + Francisco will have a different product_id than uberX in Los Angeles. "details": { - "max_product_capacity": "Large", # Default value is "Large". Capacity of product. For example, 4 people. Has constant value: "Large". - "max_product_display_name": "str", # Required. Display name of product. + "max_product_capacity": "Large", # Default value is "Large". + Capacity of product. For example, 4 people. Has constant value: "Large". + "max_product_display_name": "str", # Required. Display name of + product. "max_product_image": { "@odata.value": "str", # Optional. URL value. "generic_value": "str" # Optional. Generic URL value. @@ -703,10 +762,14 @@ def build_put_simple_product_with_grouping_request( # JSON input template you can fill out and use as your body input. json = { "base_product_description": "str", # Optional. Description of product. - "base_product_id": "str", # Required. Unique identifier representing a specific product for a given latitude & longitude. For example, uberX in San Francisco will have a different product_id than uberX in Los Angeles. + "base_product_id": "str", # Required. Unique identifier representing a + specific product for a given latitude & longitude. For example, uberX in San + Francisco will have a different product_id than uberX in Los Angeles. "details": { - "max_product_capacity": "Large", # Default value is "Large". Capacity of product. For example, 4 people. Has constant value: "Large". - "max_product_display_name": "str", # Required. Display name of product. + "max_product_capacity": "Large", # Default value is "Large". + Capacity of product. For example, 4 people. Has constant value: "Large". + "max_product_display_name": "str", # Required. Display name of + product. "max_product_image": { "@odata.value": "str", # Optional. URL value. "generic_value": "str" # Optional. Generic URL value. @@ -717,10 +780,14 @@ def build_put_simple_product_with_grouping_request( # response body for status code(s): 200 response.json() == { "base_product_description": "str", # Optional. Description of product. - "base_product_id": "str", # Required. Unique identifier representing a specific product for a given latitude & longitude. For example, uberX in San Francisco will have a different product_id than uberX in Los Angeles. + "base_product_id": "str", # Required. Unique identifier representing a + specific product for a given latitude & longitude. For example, uberX in San + Francisco will have a different product_id than uberX in Los Angeles. "details": { - "max_product_capacity": "Large", # Default value is "Large". Capacity of product. For example, 4 people. Has constant value: "Large". - "max_product_display_name": "str", # Required. Display name of product. + "max_product_capacity": "Large", # Default value is "Large". + Capacity of product. For example, 4 people. Has constant value: "Large". + "max_product_display_name": "str", # Required. Display name of + product. "max_product_image": { "@odata.value": "str", # Optional. URL value. "generic_value": "str" # Optional. Generic URL value. 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 3fb13fe18ff..ed1a3102cd7 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 @@ -5,7 +5,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, Dict, List, Optional, TypeVar +from typing import Any, Dict, Optional, TypeVar from azure.core.rest import HttpRequest from msrest import Serializer @@ -46,7 +46,8 @@ def build_put_array_request(*, json: JSONType = None, content: Any = None, **kwa "location": "str", # Optional. Resource Location. "name": "str", # Optional. Resource Name. "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -91,11 +92,15 @@ def build_get_array_request(**kwargs: Any) -> HttpRequest: "properties": { "p.name": "str", # Optional. "provisioningState": "str", # Optional. - "provisioningStateValues": "str", # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str", # Optional. Possible + values include: "Succeeded", "Failed", "canceled", "Accepted", + "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", + "OK". "type": "str" # Optional. }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -222,11 +227,15 @@ def build_put_dictionary_request(*, json: JSONType = None, content: Any = None, "properties": { "p.name": "str", # Optional. "provisioningState": "str", # Optional. - "provisioningStateValues": "str", # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str", # Optional. Possible + values include: "Succeeded", "Failed", "canceled", "Accepted", + "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", + "OK". "type": "str" # Optional. }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -271,11 +280,15 @@ def build_get_dictionary_request(**kwargs: Any) -> HttpRequest: "properties": { "p.name": "str", # Optional. "provisioningState": "str", # Optional. - "provisioningStateValues": "str", # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str", # Optional. Possible + values include: "Succeeded", "Failed", "canceled", "Accepted", + "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", + "OK". "type": "str" # Optional. }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -323,11 +336,15 @@ def build_put_resource_collection_request(*, json: JSONType = None, content: Any "properties": { "p.name": "str", # Optional. "provisioningState": "str", # Optional. - "provisioningStateValues": "str", # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str", # Optional. + Possible values include: "Succeeded", "Failed", "canceled", + "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", + "Deleted", "OK". "type": "str" # Optional. }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary + of :code:``. }, "type": "str" # Optional. Resource Type. } @@ -338,13 +355,20 @@ def build_put_resource_collection_request(*, json: JSONType = None, content: Any "location": "str", # Optional. Resource Location. "name": "str", # Optional. Resource Name. "properties": { - "p.name": "str", # Optional. Dictionary of :code:``. - "provisioningState": "str", # Optional. Dictionary of :code:``. - "provisioningStateValues": "str", # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". - "type": "str" # Optional. Dictionary of :code:``. + "p.name": "str", # Optional. Dictionary of + :code:``. + "provisioningState": "str", # Optional. Dictionary + of :code:``. + "provisioningStateValues": "str", # Optional. + Possible values include: "Succeeded", "Failed", "canceled", + "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", + "Deleted", "OK". + "type": "str" # Optional. Dictionary of + :code:``. }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary + of :code:``. }, "type": "str" # Optional. Resource Type. } @@ -356,11 +380,15 @@ def build_put_resource_collection_request(*, json: JSONType = None, content: Any "properties": { "p.name": "str", # Optional. Flattened product. "provisioningState": "str", # Optional. Flattened product. - "provisioningStateValues": "str", # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str", # Optional. Possible + values include: "Succeeded", "Failed", "canceled", "Accepted", + "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", + "OK". "type": "str" # Optional. Flattened product. }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -406,11 +434,15 @@ def build_get_resource_collection_request(**kwargs: Any) -> HttpRequest: "properties": { "p.name": "str", # Optional. "provisioningState": "str", # Optional. - "provisioningStateValues": "str", # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str", # Optional. + Possible values include: "Succeeded", "Failed", "canceled", + "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", + "Deleted", "OK". "type": "str" # Optional. }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary + of :code:``. }, "type": "str" # Optional. Resource Type. } @@ -421,13 +453,20 @@ def build_get_resource_collection_request(**kwargs: Any) -> HttpRequest: "location": "str", # Optional. Resource Location. "name": "str", # Optional. Resource Name. "properties": { - "p.name": "str", # Optional. Dictionary of :code:``. - "provisioningState": "str", # Optional. Dictionary of :code:``. - "provisioningStateValues": "str", # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". - "type": "str" # Optional. Dictionary of :code:``. + "p.name": "str", # Optional. Dictionary of + :code:``. + "provisioningState": "str", # Optional. Dictionary + of :code:``. + "provisioningStateValues": "str", # Optional. + Possible values include: "Succeeded", "Failed", "canceled", + "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", + "Deleted", "OK". + "type": "str" # Optional. Dictionary of + :code:``. }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary + of :code:``. }, "type": "str" # Optional. Resource Type. } @@ -439,11 +478,15 @@ def build_get_resource_collection_request(**kwargs: Any) -> HttpRequest: "properties": { "p.name": "str", # Optional. Flattened product. "provisioningState": "str", # Optional. Flattened product. - "provisioningStateValues": "str", # Optional. Possible values include: "Succeeded", "Failed", "canceled", "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "OK". + "provisioningStateValues": "str", # Optional. Possible + values include: "Succeeded", "Failed", "canceled", "Accepted", + "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", + "OK". "type": "str" # Optional. Flattened product. }, "tags": { - "str": "str" # Optional. A set of tags. Dictionary of :code:``. + "str": "str" # Optional. A set of tags. Dictionary of + :code:``. }, "type": "str" # Optional. Resource Type. } @@ -484,10 +527,14 @@ def build_put_simple_product_request(*, json: JSONType = None, content: Any = No # JSON input template you can fill out and use as your body input. json = { "base_product_description": "str", # Optional. Description of product. - "base_product_id": "str", # Required. Unique identifier representing a specific product for a given latitude & longitude. For example, uberX in San Francisco will have a different product_id than uberX in Los Angeles. + "base_product_id": "str", # Required. Unique identifier representing a + specific product for a given latitude & longitude. For example, uberX in San + Francisco will have a different product_id than uberX in Los Angeles. "details": { - "max_product_capacity": "Large", # Default value is "Large". Capacity of product. For example, 4 people. Has constant value: "Large". - "max_product_display_name": "str", # Required. Display name of product. + "max_product_capacity": "Large", # Default value is "Large". + Capacity of product. For example, 4 people. Has constant value: "Large". + "max_product_display_name": "str", # Required. Display name of + product. "max_product_image": { "@odata.value": "str", # Optional. URL value. "generic_value": "str" # Optional. Generic URL value. @@ -498,10 +545,14 @@ def build_put_simple_product_request(*, json: JSONType = None, content: Any = No # response body for status code(s): 200 response.json() == { "base_product_description": "str", # Optional. Description of product. - "base_product_id": "str", # Required. Unique identifier representing a specific product for a given latitude & longitude. For example, uberX in San Francisco will have a different product_id than uberX in Los Angeles. + "base_product_id": "str", # Required. Unique identifier representing a + specific product for a given latitude & longitude. For example, uberX in San + Francisco will have a different product_id than uberX in Los Angeles. "details": { - "max_product_capacity": "Large", # Default value is "Large". Capacity of product. For example, 4 people. Has constant value: "Large". - "max_product_display_name": "str", # Required. Display name of product. + "max_product_capacity": "Large", # Default value is "Large". + Capacity of product. For example, 4 people. Has constant value: "Large". + "max_product_display_name": "str", # Required. Display name of + product. "max_product_image": { "@odata.value": "str", # Optional. URL value. "generic_value": "str" # Optional. Generic URL value. @@ -550,10 +601,14 @@ def build_post_flattened_simple_product_request( # JSON input template you can fill out and use as your body input. json = { "base_product_description": "str", # Optional. Description of product. - "base_product_id": "str", # Required. Unique identifier representing a specific product for a given latitude & longitude. For example, uberX in San Francisco will have a different product_id than uberX in Los Angeles. + "base_product_id": "str", # Required. Unique identifier representing a + specific product for a given latitude & longitude. For example, uberX in San + Francisco will have a different product_id than uberX in Los Angeles. "details": { - "max_product_capacity": "Large", # Default value is "Large". Capacity of product. For example, 4 people. Has constant value: "Large". - "max_product_display_name": "str", # Required. Display name of product. + "max_product_capacity": "Large", # Default value is "Large". + Capacity of product. For example, 4 people. Has constant value: "Large". + "max_product_display_name": "str", # Required. Display name of + product. "max_product_image": { "@odata.value": "str", # Optional. URL value. "generic_value": "str" # Optional. Generic URL value. @@ -564,10 +619,14 @@ def build_post_flattened_simple_product_request( # response body for status code(s): 200 response.json() == { "base_product_description": "str", # Optional. Description of product. - "base_product_id": "str", # Required. Unique identifier representing a specific product for a given latitude & longitude. For example, uberX in San Francisco will have a different product_id than uberX in Los Angeles. + "base_product_id": "str", # Required. Unique identifier representing a + specific product for a given latitude & longitude. For example, uberX in San + Francisco will have a different product_id than uberX in Los Angeles. "details": { - "max_product_capacity": "Large", # Default value is "Large". Capacity of product. For example, 4 people. Has constant value: "Large". - "max_product_display_name": "str", # Required. Display name of product. + "max_product_capacity": "Large", # Default value is "Large". + Capacity of product. For example, 4 people. Has constant value: "Large". + "max_product_display_name": "str", # Required. Display name of + product. "max_product_image": { "@odata.value": "str", # Optional. URL value. "generic_value": "str" # Optional. Generic URL value. @@ -618,10 +677,14 @@ def build_put_simple_product_with_grouping_request( # JSON input template you can fill out and use as your body input. json = { "base_product_description": "str", # Optional. Description of product. - "base_product_id": "str", # Required. Unique identifier representing a specific product for a given latitude & longitude. For example, uberX in San Francisco will have a different product_id than uberX in Los Angeles. + "base_product_id": "str", # Required. Unique identifier representing a + specific product for a given latitude & longitude. For example, uberX in San + Francisco will have a different product_id than uberX in Los Angeles. "details": { - "max_product_capacity": "Large", # Default value is "Large". Capacity of product. For example, 4 people. Has constant value: "Large". - "max_product_display_name": "str", # Required. Display name of product. + "max_product_capacity": "Large", # Default value is "Large". + Capacity of product. For example, 4 people. Has constant value: "Large". + "max_product_display_name": "str", # Required. Display name of + product. "max_product_image": { "@odata.value": "str", # Optional. URL value. "generic_value": "str" # Optional. Generic URL value. @@ -632,10 +695,14 @@ def build_put_simple_product_with_grouping_request( # response body for status code(s): 200 response.json() == { "base_product_description": "str", # Optional. Description of product. - "base_product_id": "str", # Required. Unique identifier representing a specific product for a given latitude & longitude. For example, uberX in San Francisco will have a different product_id than uberX in Los Angeles. + "base_product_id": "str", # Required. Unique identifier representing a + specific product for a given latitude & longitude. For example, uberX in San + Francisco will have a different product_id than uberX in Los Angeles. "details": { - "max_product_capacity": "Large", # Default value is "Large". Capacity of product. For example, 4 people. Has constant value: "Large". - "max_product_display_name": "str", # Required. Display name of product. + "max_product_capacity": "Large", # Default value is "Large". + Capacity of product. For example, 4 people. Has constant value: "Large". + "max_product_display_name": "str", # Required. Display name of + product. "max_product_image": { "@odata.value": "str", # Optional. URL value. "generic_value": "str" # Optional. Generic URL value. diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/MultipleInheritanceLowLevel/multipleinheritancelowlevel/_configuration.py b/test/vanilla/low-level/Expected/AcceptanceTests/MultipleInheritanceLowLevel/multipleinheritancelowlevel/_configuration.py index 16c67d7a275..9cce3269685 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/MultipleInheritanceLowLevel/multipleinheritancelowlevel/_configuration.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/MultipleInheritanceLowLevel/multipleinheritancelowlevel/_configuration.py @@ -14,7 +14,7 @@ from ._version import VERSION -class MultipleInheritanceServiceClientConfiguration(Configuration): +class MultipleInheritanceServiceClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for MultipleInheritanceServiceClient. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/MultipleInheritanceLowLevel/multipleinheritancelowlevel/_multiple_inheritance_service_client.py b/test/vanilla/low-level/Expected/AcceptanceTests/MultipleInheritanceLowLevel/multipleinheritancelowlevel/_multiple_inheritance_service_client.py index 4809b059262..620fb524a22 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/MultipleInheritanceLowLevel/multipleinheritancelowlevel/_multiple_inheritance_service_client.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/MultipleInheritanceLowLevel/multipleinheritancelowlevel/_multiple_inheritance_service_client.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Optional, TYPE_CHECKING +from typing import Any, TYPE_CHECKING from azure.core import PipelineClient from azure.core.rest import HttpRequest, HttpResponse diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/MultipleInheritanceLowLevel/multipleinheritancelowlevel/aio/_configuration.py b/test/vanilla/low-level/Expected/AcceptanceTests/MultipleInheritanceLowLevel/multipleinheritancelowlevel/aio/_configuration.py index 795387844ed..8e8d260c441 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/MultipleInheritanceLowLevel/multipleinheritancelowlevel/aio/_configuration.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/MultipleInheritanceLowLevel/multipleinheritancelowlevel/aio/_configuration.py @@ -14,7 +14,7 @@ from .._version import VERSION -class MultipleInheritanceServiceClientConfiguration(Configuration): +class MultipleInheritanceServiceClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for MultipleInheritanceServiceClient. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/MultipleInheritanceLowLevel/multipleinheritancelowlevel/aio/_multiple_inheritance_service_client.py b/test/vanilla/low-level/Expected/AcceptanceTests/MultipleInheritanceLowLevel/multipleinheritancelowlevel/aio/_multiple_inheritance_service_client.py index 4a972cb5cd9..71f738ef6f9 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/MultipleInheritanceLowLevel/multipleinheritancelowlevel/aio/_multiple_inheritance_service_client.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/MultipleInheritanceLowLevel/multipleinheritancelowlevel/aio/_multiple_inheritance_service_client.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional, TYPE_CHECKING +from typing import Any, Awaitable, TYPE_CHECKING from azure.core import AsyncPipelineClient from azure.core.rest import AsyncHttpResponse, HttpRequest 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 044e0ec718e..d42b3b08306 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 @@ -42,7 +42,7 @@ def build_get_horse_request( # response body for status code(s): 200 response.json() == { "isAShowHorse": bool, # Optional. - "name": "str" # Required. + "name": "str" # Required. } """ @@ -88,7 +88,7 @@ def build_put_horse_request( # JSON input template you can fill out and use as your body input. json = { "isAShowHorse": bool, # Optional. - "name": "str" # Required. + "name": "str" # Required. } """ @@ -131,7 +131,7 @@ def build_get_pet_request( # response body for status code(s): 200 response.json() == { - "name": "str" # Required. + "name": "str" # Required. } """ @@ -176,7 +176,7 @@ def build_put_pet_request( # JSON input template you can fill out and use as your body input. json = { - "name": "str" # Required. + "name": "str" # Required. } """ @@ -312,7 +312,7 @@ def build_get_cat_request( "hisses": bool, # Optional. "likesMilk": bool, # Optional. "meows": bool, # Optional. - "name": "str" # Required. + "name": "str" # Required. } """ @@ -362,7 +362,7 @@ def build_put_cat_request( "hisses": bool, # Optional. "likesMilk": bool, # Optional. "meows": bool, # Optional. - "name": "str" # Required. + "name": "str" # Required. } """ @@ -410,7 +410,7 @@ def build_get_kitten_request( "hisses": bool, # Optional. "likesMilk": bool, # Optional. "meows": bool, # Optional. - "name": "str" # Required. + "name": "str" # Required. } """ @@ -462,7 +462,7 @@ def build_put_kitten_request( "hisses": bool, # Optional. "likesMilk": bool, # Optional. "meows": bool, # Optional. - "name": "str" # Required. + "name": "str" # Required. } """ diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/NonStringEnumsLowLevel/nonstringenumslowlevel/_configuration.py b/test/vanilla/low-level/Expected/AcceptanceTests/NonStringEnumsLowLevel/nonstringenumslowlevel/_configuration.py index de2a150d4e9..ee742dc5863 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/NonStringEnumsLowLevel/nonstringenumslowlevel/_configuration.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/NonStringEnumsLowLevel/nonstringenumslowlevel/_configuration.py @@ -14,7 +14,7 @@ from ._version import VERSION -class NonStringEnumsClientConfiguration(Configuration): +class NonStringEnumsClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for NonStringEnumsClient. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/NonStringEnumsLowLevel/nonstringenumslowlevel/_non_string_enums_client.py b/test/vanilla/low-level/Expected/AcceptanceTests/NonStringEnumsLowLevel/nonstringenumslowlevel/_non_string_enums_client.py index ffe5cd23861..367e766cabf 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/NonStringEnumsLowLevel/nonstringenumslowlevel/_non_string_enums_client.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/NonStringEnumsLowLevel/nonstringenumslowlevel/_non_string_enums_client.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Optional, TYPE_CHECKING +from typing import Any, TYPE_CHECKING from azure.core import PipelineClient from azure.core.rest import HttpRequest, HttpResponse diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/NonStringEnumsLowLevel/nonstringenumslowlevel/aio/_configuration.py b/test/vanilla/low-level/Expected/AcceptanceTests/NonStringEnumsLowLevel/nonstringenumslowlevel/aio/_configuration.py index 7daa742b2c9..148880bd3ec 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/NonStringEnumsLowLevel/nonstringenumslowlevel/aio/_configuration.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/NonStringEnumsLowLevel/nonstringenumslowlevel/aio/_configuration.py @@ -14,7 +14,7 @@ from .._version import VERSION -class NonStringEnumsClientConfiguration(Configuration): +class NonStringEnumsClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for NonStringEnumsClient. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/NonStringEnumsLowLevel/nonstringenumslowlevel/aio/_non_string_enums_client.py b/test/vanilla/low-level/Expected/AcceptanceTests/NonStringEnumsLowLevel/nonstringenumslowlevel/aio/_non_string_enums_client.py index d32b67cbe09..b5a75c8b0fe 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/NonStringEnumsLowLevel/nonstringenumslowlevel/aio/_non_string_enums_client.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/NonStringEnumsLowLevel/nonstringenumslowlevel/aio/_non_string_enums_client.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional, TYPE_CHECKING +from typing import Any, Awaitable, TYPE_CHECKING from azure.core import AsyncPipelineClient from azure.core.rest import AsyncHttpResponse, HttpRequest diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/ObjectTypeLowLevel/objecttypelowlevel/_configuration.py b/test/vanilla/low-level/Expected/AcceptanceTests/ObjectTypeLowLevel/objecttypelowlevel/_configuration.py index d1a68d81dd5..5a4c1636f8b 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/ObjectTypeLowLevel/objecttypelowlevel/_configuration.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/ObjectTypeLowLevel/objecttypelowlevel/_configuration.py @@ -14,7 +14,7 @@ from ._version import VERSION -class ObjectTypeClientConfiguration(Configuration): +class ObjectTypeClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for ObjectTypeClient. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/ObjectTypeLowLevel/objecttypelowlevel/_object_type_client.py b/test/vanilla/low-level/Expected/AcceptanceTests/ObjectTypeLowLevel/objecttypelowlevel/_object_type_client.py index 14f95eca158..8ce7c98ffae 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/ObjectTypeLowLevel/objecttypelowlevel/_object_type_client.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/ObjectTypeLowLevel/objecttypelowlevel/_object_type_client.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Optional, TYPE_CHECKING +from typing import Any, TYPE_CHECKING from azure.core import PipelineClient from azure.core.rest import HttpRequest, HttpResponse diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/ObjectTypeLowLevel/objecttypelowlevel/aio/_configuration.py b/test/vanilla/low-level/Expected/AcceptanceTests/ObjectTypeLowLevel/objecttypelowlevel/aio/_configuration.py index 5c8877fc3b9..8e6db9a7d20 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/ObjectTypeLowLevel/objecttypelowlevel/aio/_configuration.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/ObjectTypeLowLevel/objecttypelowlevel/aio/_configuration.py @@ -14,7 +14,7 @@ from .._version import VERSION -class ObjectTypeClientConfiguration(Configuration): +class ObjectTypeClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for ObjectTypeClient. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/ObjectTypeLowLevel/objecttypelowlevel/aio/_object_type_client.py b/test/vanilla/low-level/Expected/AcceptanceTests/ObjectTypeLowLevel/objecttypelowlevel/aio/_object_type_client.py index cf2e42b3458..451f12276fd 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/ObjectTypeLowLevel/objecttypelowlevel/aio/_object_type_client.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/ObjectTypeLowLevel/objecttypelowlevel/aio/_object_type_client.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional, TYPE_CHECKING +from typing import Any, Awaitable, TYPE_CHECKING from azure.core import AsyncPipelineClient from azure.core.rest import AsyncHttpResponse, HttpRequest diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/ParameterFlatteningLowLevel/parameterflatteninglowlevel/_auto_rest_parameter_flattening.py b/test/vanilla/low-level/Expected/AcceptanceTests/ParameterFlatteningLowLevel/parameterflatteninglowlevel/_auto_rest_parameter_flattening.py index 6791b4cc950..2dde4a63a62 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/ParameterFlatteningLowLevel/parameterflatteninglowlevel/_auto_rest_parameter_flattening.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/ParameterFlatteningLowLevel/parameterflatteninglowlevel/_auto_rest_parameter_flattening.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Optional, TYPE_CHECKING +from typing import Any, TYPE_CHECKING from azure.core import PipelineClient from azure.core.rest import HttpRequest, HttpResponse diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/ParameterFlatteningLowLevel/parameterflatteninglowlevel/_configuration.py b/test/vanilla/low-level/Expected/AcceptanceTests/ParameterFlatteningLowLevel/parameterflatteninglowlevel/_configuration.py index 8d4039139ce..3fe06c6bd8e 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/ParameterFlatteningLowLevel/parameterflatteninglowlevel/_configuration.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/ParameterFlatteningLowLevel/parameterflatteninglowlevel/_configuration.py @@ -14,7 +14,7 @@ from ._version import VERSION -class AutoRestParameterFlatteningConfiguration(Configuration): +class AutoRestParameterFlatteningConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestParameterFlattening. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/ParameterFlatteningLowLevel/parameterflatteninglowlevel/aio/_auto_rest_parameter_flattening.py b/test/vanilla/low-level/Expected/AcceptanceTests/ParameterFlatteningLowLevel/parameterflatteninglowlevel/aio/_auto_rest_parameter_flattening.py index 2be90274afb..76aa9553e44 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/ParameterFlatteningLowLevel/parameterflatteninglowlevel/aio/_auto_rest_parameter_flattening.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/ParameterFlatteningLowLevel/parameterflatteninglowlevel/aio/_auto_rest_parameter_flattening.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional, TYPE_CHECKING +from typing import Any, Awaitable, TYPE_CHECKING from azure.core import AsyncPipelineClient from azure.core.rest import AsyncHttpResponse, HttpRequest diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/ParameterFlatteningLowLevel/parameterflatteninglowlevel/aio/_configuration.py b/test/vanilla/low-level/Expected/AcceptanceTests/ParameterFlatteningLowLevel/parameterflatteninglowlevel/aio/_configuration.py index 2def2fa1a10..5bcb4b1198f 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/ParameterFlatteningLowLevel/parameterflatteninglowlevel/aio/_configuration.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/ParameterFlatteningLowLevel/parameterflatteninglowlevel/aio/_configuration.py @@ -14,7 +14,7 @@ from .._version import VERSION -class AutoRestParameterFlatteningConfiguration(Configuration): +class AutoRestParameterFlatteningConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestParameterFlattening. Note that all parameters used to create this instance are saved as instance 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 187bb655295..f41796ec03e 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 @@ -56,7 +56,8 @@ def build_update_request( # JSON input template you can fill out and use as your body input. json = { "tags": { - "str": "str" # Required. A set of tags. A description about the set of tags. + "str": "str" # Required. A set of tags. A description about the set + of tags. } } """ 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 1a8557a3095..45a36e5b545 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 @@ -48,7 +48,8 @@ def build_update_request( # JSON input template you can fill out and use as your body input. json = { "tags": { - "str": "str" # Required. A set of tags. A description about the set of tags. + "str": "str" # Required. A set of tags. A description about the set + of tags. } } """ diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/ParameterizedEndpointLowLevel/parameterizedendpointlowlevel/_configuration.py b/test/vanilla/low-level/Expected/AcceptanceTests/ParameterizedEndpointLowLevel/parameterizedendpointlowlevel/_configuration.py index dc30b496cc3..d67331e9db2 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/ParameterizedEndpointLowLevel/parameterizedendpointlowlevel/_configuration.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/ParameterizedEndpointLowLevel/parameterizedendpointlowlevel/_configuration.py @@ -14,7 +14,7 @@ from ._version import VERSION -class ParmaterizedEndpointClientConfiguration(Configuration): +class ParmaterizedEndpointClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for ParmaterizedEndpointClient. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/ParameterizedEndpointLowLevel/parameterizedendpointlowlevel/_parmaterized_endpoint_client.py b/test/vanilla/low-level/Expected/AcceptanceTests/ParameterizedEndpointLowLevel/parameterizedendpointlowlevel/_parmaterized_endpoint_client.py index 00e07b046e7..959f697827e 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/ParameterizedEndpointLowLevel/parameterizedendpointlowlevel/_parmaterized_endpoint_client.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/ParameterizedEndpointLowLevel/parameterizedendpointlowlevel/_parmaterized_endpoint_client.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Optional, TYPE_CHECKING +from typing import Any, TYPE_CHECKING from azure.core import PipelineClient from azure.core.rest import HttpRequest, HttpResponse diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/ParameterizedEndpointLowLevel/parameterizedendpointlowlevel/aio/_configuration.py b/test/vanilla/low-level/Expected/AcceptanceTests/ParameterizedEndpointLowLevel/parameterizedendpointlowlevel/aio/_configuration.py index ea820d0034b..96ac0e13f69 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/ParameterizedEndpointLowLevel/parameterizedendpointlowlevel/aio/_configuration.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/ParameterizedEndpointLowLevel/parameterizedendpointlowlevel/aio/_configuration.py @@ -14,7 +14,7 @@ from .._version import VERSION -class ParmaterizedEndpointClientConfiguration(Configuration): +class ParmaterizedEndpointClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for ParmaterizedEndpointClient. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/ParameterizedEndpointLowLevel/parameterizedendpointlowlevel/aio/_parmaterized_endpoint_client.py b/test/vanilla/low-level/Expected/AcceptanceTests/ParameterizedEndpointLowLevel/parameterizedendpointlowlevel/aio/_parmaterized_endpoint_client.py index d7c8ab8fef0..a7b28a61030 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/ParameterizedEndpointLowLevel/parameterizedendpointlowlevel/aio/_parmaterized_endpoint_client.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/ParameterizedEndpointLowLevel/parameterizedendpointlowlevel/aio/_parmaterized_endpoint_client.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional, TYPE_CHECKING +from typing import Any, Awaitable, TYPE_CHECKING from azure.core import AsyncPipelineClient from azure.core.rest import AsyncHttpResponse, HttpRequest diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/ReportLowLevel/reportlowlevel/_auto_rest_report_service.py b/test/vanilla/low-level/Expected/AcceptanceTests/ReportLowLevel/reportlowlevel/_auto_rest_report_service.py index c44b3888d82..268472e2d6e 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/ReportLowLevel/reportlowlevel/_auto_rest_report_service.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/ReportLowLevel/reportlowlevel/_auto_rest_report_service.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Optional, TYPE_CHECKING +from typing import Any, TYPE_CHECKING from azure.core import PipelineClient from azure.core.rest import HttpRequest, HttpResponse diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/ReportLowLevel/reportlowlevel/_configuration.py b/test/vanilla/low-level/Expected/AcceptanceTests/ReportLowLevel/reportlowlevel/_configuration.py index ac1fc82cda4..ffc083a4bc1 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/ReportLowLevel/reportlowlevel/_configuration.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/ReportLowLevel/reportlowlevel/_configuration.py @@ -14,7 +14,7 @@ from ._version import VERSION -class AutoRestReportServiceConfiguration(Configuration): +class AutoRestReportServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestReportService. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/ReportLowLevel/reportlowlevel/aio/_auto_rest_report_service.py b/test/vanilla/low-level/Expected/AcceptanceTests/ReportLowLevel/reportlowlevel/aio/_auto_rest_report_service.py index 9e44601b422..993753e6700 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/ReportLowLevel/reportlowlevel/aio/_auto_rest_report_service.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/ReportLowLevel/reportlowlevel/aio/_auto_rest_report_service.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional, TYPE_CHECKING +from typing import Any, Awaitable, TYPE_CHECKING from azure.core import AsyncPipelineClient from azure.core.rest import AsyncHttpResponse, HttpRequest diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/ReportLowLevel/reportlowlevel/aio/_configuration.py b/test/vanilla/low-level/Expected/AcceptanceTests/ReportLowLevel/reportlowlevel/aio/_configuration.py index 0b086b995d9..deffe2972cc 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/ReportLowLevel/reportlowlevel/aio/_configuration.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/ReportLowLevel/reportlowlevel/aio/_configuration.py @@ -14,7 +14,7 @@ from .._version import VERSION -class AutoRestReportServiceConfiguration(Configuration): +class AutoRestReportServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestReportService. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/RequiredOptionalLowLevel/requiredoptionallowlevel/_configuration.py b/test/vanilla/low-level/Expected/AcceptanceTests/RequiredOptionalLowLevel/requiredoptionallowlevel/_configuration.py index 08eb585b33d..ee771e1d313 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/RequiredOptionalLowLevel/requiredoptionallowlevel/_configuration.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/RequiredOptionalLowLevel/requiredoptionallowlevel/_configuration.py @@ -14,7 +14,7 @@ from ._version import VERSION -class AutoRestRequiredOptionalTestServiceConfiguration(Configuration): +class AutoRestRequiredOptionalTestServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestRequiredOptionalTestService. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/RequiredOptionalLowLevel/requiredoptionallowlevel/aio/_configuration.py b/test/vanilla/low-level/Expected/AcceptanceTests/RequiredOptionalLowLevel/requiredoptionallowlevel/aio/_configuration.py index 2a219b5169e..7e8ed6d197f 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/RequiredOptionalLowLevel/requiredoptionallowlevel/aio/_configuration.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/RequiredOptionalLowLevel/requiredoptionallowlevel/aio/_configuration.py @@ -14,7 +14,7 @@ from .._version import VERSION -class AutoRestRequiredOptionalTestServiceConfiguration(Configuration): +class AutoRestRequiredOptionalTestServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestRequiredOptionalTestService. Note that all parameters used to create this instance are saved as instance 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 4b9c1a0a36d..9ed3559bdee 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 @@ -12,7 +12,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Dict, IO, List, Optional, TypeVar + from typing import Any, Dict, List, Optional, TypeVar T = TypeVar("T") JSONType = Any @@ -218,7 +218,7 @@ def build_post_required_integer_property_request( # JSON input template you can fill out and use as your body input. json = { - "value": 0 # Required. + "value": 0 # Required. } """ @@ -486,7 +486,7 @@ def build_post_required_string_property_request( # JSON input template you can fill out and use as your body input. json = { - "value": "str" # Required. + "value": "str" # Required. } """ @@ -659,7 +659,7 @@ def build_post_required_class_parameter_request( # JSON input template you can fill out and use as your body input. json = { - "id": 0, # Required. + "id": 0, # Required. "name": "str" # Optional. } """ @@ -709,7 +709,7 @@ def build_post_optional_class_parameter_request( # JSON input template you can fill out and use as your body input. json = { - "id": 0, # Required. + "id": 0, # Required. "name": "str" # Optional. } """ @@ -761,8 +761,8 @@ def build_post_required_class_property_request( # JSON input template you can fill out and use as your body input. json = { "value": { - "id": 0, # Required. - "name": "str" # Optional. Required. + "id": 0, # Required. + "name": "str" # Optional. Required. } } """ @@ -813,7 +813,7 @@ def build_post_optional_class_property_request( # JSON input template you can fill out and use as your body input. json = { "value": { - "id": 0, # Required. + "id": 0, # Required. "name": "str" # Optional. } } @@ -965,7 +965,7 @@ def build_post_required_array_property_request( # JSON input template you can fill out and use as your body input. json = { "value": [ - "str" # Required. + "str" # Required. ] } """ 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 cd4cb16c46b..2717bd56398 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 @@ -5,7 +5,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, Dict, IO, List, Optional, TypeVar +from typing import Any, Dict, List, Optional, TypeVar from azure.core.rest import HttpRequest from msrest import Serializer 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 c90a8231701..23d56492ded 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 @@ -14,7 +14,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Dict, IO, Optional, TypeVar + from typing import Any, Dict, Optional, TypeVar T = TypeVar("T") JSONType = Any 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 6e4cebbdead..bbcf8d81c4a 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 @@ -5,7 +5,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, Dict, IO, Optional, TypeVar +from typing import Any, Dict, Optional, TypeVar from azure.core.rest import HttpRequest from msrest import Serializer diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/ReservedWordsLowLevel/reservedwordslowlevel/_configuration.py b/test/vanilla/low-level/Expected/AcceptanceTests/ReservedWordsLowLevel/reservedwordslowlevel/_configuration.py index 58f4688d8d6..e6f40d7e00e 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/ReservedWordsLowLevel/reservedwordslowlevel/_configuration.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/ReservedWordsLowLevel/reservedwordslowlevel/_configuration.py @@ -14,7 +14,7 @@ from ._version import VERSION -class ReservedWordsClientConfiguration(Configuration): +class ReservedWordsClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for ReservedWordsClient. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/ReservedWordsLowLevel/reservedwordslowlevel/_reserved_words_client.py b/test/vanilla/low-level/Expected/AcceptanceTests/ReservedWordsLowLevel/reservedwordslowlevel/_reserved_words_client.py index 4f3aeaf3bef..21dcd902379 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/ReservedWordsLowLevel/reservedwordslowlevel/_reserved_words_client.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/ReservedWordsLowLevel/reservedwordslowlevel/_reserved_words_client.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Optional, TYPE_CHECKING +from typing import Any, TYPE_CHECKING from azure.core import PipelineClient from azure.core.rest import HttpRequest, HttpResponse diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/ReservedWordsLowLevel/reservedwordslowlevel/aio/_configuration.py b/test/vanilla/low-level/Expected/AcceptanceTests/ReservedWordsLowLevel/reservedwordslowlevel/aio/_configuration.py index b3c39889d49..14375a5d2f6 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/ReservedWordsLowLevel/reservedwordslowlevel/aio/_configuration.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/ReservedWordsLowLevel/reservedwordslowlevel/aio/_configuration.py @@ -14,7 +14,7 @@ from .._version import VERSION -class ReservedWordsClientConfiguration(Configuration): +class ReservedWordsClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for ReservedWordsClient. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/ReservedWordsLowLevel/reservedwordslowlevel/aio/_reserved_words_client.py b/test/vanilla/low-level/Expected/AcceptanceTests/ReservedWordsLowLevel/reservedwordslowlevel/aio/_reserved_words_client.py index d49c53102fe..cf8df2f0982 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/ReservedWordsLowLevel/reservedwordslowlevel/aio/_reserved_words_client.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/ReservedWordsLowLevel/reservedwordslowlevel/aio/_reserved_words_client.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional, TYPE_CHECKING +from typing import Any, Awaitable, TYPE_CHECKING from azure.core import AsyncPipelineClient from azure.core.rest import AsyncHttpResponse, HttpRequest 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 0d9932de97a..8d108b88779 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 @@ -12,7 +12,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Dict, IO, Optional, TypeVar + from typing import Any, Dict, Optional, TypeVar T = TypeVar("T") JSONType = Any 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 4c54c60efe1..1998c0232af 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,7 +5,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, Dict, IO, Optional, TypeVar +from typing import Any, Dict, Optional, TypeVar from azure.core.rest import HttpRequest from msrest import Serializer diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/UrlLowLevel/urllowlevel/_configuration.py b/test/vanilla/low-level/Expected/AcceptanceTests/UrlLowLevel/urllowlevel/_configuration.py index f1e4b947ee5..d2b30d23315 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/UrlLowLevel/urllowlevel/_configuration.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/UrlLowLevel/urllowlevel/_configuration.py @@ -14,7 +14,7 @@ from ._version import VERSION -class AutoRestUrlTestServiceConfiguration(Configuration): +class AutoRestUrlTestServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestUrlTestService. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/UrlLowLevel/urllowlevel/aio/_configuration.py b/test/vanilla/low-level/Expected/AcceptanceTests/UrlLowLevel/urllowlevel/aio/_configuration.py index e5a929b5629..48b8c2ec5b0 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/UrlLowLevel/urllowlevel/aio/_configuration.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/UrlLowLevel/urllowlevel/aio/_configuration.py @@ -14,7 +14,7 @@ from .._version import VERSION -class AutoRestUrlTestServiceConfiguration(Configuration): +class AutoRestUrlTestServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestUrlTestService. Note that all parameters used to create this instance are saved as instance 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 fc0ead87511..dc9356dbee1 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' + 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' + 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' + 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' + 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/path_items/_request_builders_py3.py b/test/vanilla/low-level/Expected/AcceptanceTests/UrlLowLevel/urllowlevel/rest/path_items/_request_builders_py3.py index 5f271976d87..f18ea5e7e1d 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,7 +53,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" + 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"), @@ -118,7 +118,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" + 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"), @@ -183,7 +183,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" + 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"), @@ -247,7 +247,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" + 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/UrlMultiCollectionFormatLowLevel/urlmulticollectionformatlowlevel/_auto_rest_url_mutli_collection_format_test_service.py b/test/vanilla/low-level/Expected/AcceptanceTests/UrlMultiCollectionFormatLowLevel/urlmulticollectionformatlowlevel/_auto_rest_url_mutli_collection_format_test_service.py index 97c01b02d4e..6663c8a2724 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/UrlMultiCollectionFormatLowLevel/urlmulticollectionformatlowlevel/_auto_rest_url_mutli_collection_format_test_service.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/UrlMultiCollectionFormatLowLevel/urlmulticollectionformatlowlevel/_auto_rest_url_mutli_collection_format_test_service.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Optional, TYPE_CHECKING +from typing import Any, TYPE_CHECKING from azure.core import PipelineClient from azure.core.rest import HttpRequest, HttpResponse diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/UrlMultiCollectionFormatLowLevel/urlmulticollectionformatlowlevel/_configuration.py b/test/vanilla/low-level/Expected/AcceptanceTests/UrlMultiCollectionFormatLowLevel/urlmulticollectionformatlowlevel/_configuration.py index 48a6a8e6163..651fc8e1c1a 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/UrlMultiCollectionFormatLowLevel/urlmulticollectionformatlowlevel/_configuration.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/UrlMultiCollectionFormatLowLevel/urlmulticollectionformatlowlevel/_configuration.py @@ -14,7 +14,9 @@ from ._version import VERSION -class AutoRestUrlMutliCollectionFormatTestServiceConfiguration(Configuration): +class AutoRestUrlMutliCollectionFormatTestServiceConfiguration( + Configuration +): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestUrlMutliCollectionFormatTestService. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/UrlMultiCollectionFormatLowLevel/urlmulticollectionformatlowlevel/aio/_auto_rest_url_mutli_collection_format_test_service.py b/test/vanilla/low-level/Expected/AcceptanceTests/UrlMultiCollectionFormatLowLevel/urlmulticollectionformatlowlevel/aio/_auto_rest_url_mutli_collection_format_test_service.py index 237de794da0..c8c86cd0afe 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/UrlMultiCollectionFormatLowLevel/urlmulticollectionformatlowlevel/aio/_auto_rest_url_mutli_collection_format_test_service.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/UrlMultiCollectionFormatLowLevel/urlmulticollectionformatlowlevel/aio/_auto_rest_url_mutli_collection_format_test_service.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional, TYPE_CHECKING +from typing import Any, Awaitable, TYPE_CHECKING from azure.core import AsyncPipelineClient from azure.core.rest import AsyncHttpResponse, HttpRequest diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/UrlMultiCollectionFormatLowLevel/urlmulticollectionformatlowlevel/aio/_configuration.py b/test/vanilla/low-level/Expected/AcceptanceTests/UrlMultiCollectionFormatLowLevel/urlmulticollectionformatlowlevel/aio/_configuration.py index 30b9cb9fe74..51186d27106 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/UrlMultiCollectionFormatLowLevel/urlmulticollectionformatlowlevel/aio/_configuration.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/UrlMultiCollectionFormatLowLevel/urlmulticollectionformatlowlevel/aio/_configuration.py @@ -14,7 +14,9 @@ from .._version import VERSION -class AutoRestUrlMutliCollectionFormatTestServiceConfiguration(Configuration): +class AutoRestUrlMutliCollectionFormatTestServiceConfiguration( + Configuration +): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestUrlMutliCollectionFormatTestService. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/ValidationLowLevel/validationlowlevel/_auto_rest_validation_test.py b/test/vanilla/low-level/Expected/AcceptanceTests/ValidationLowLevel/validationlowlevel/_auto_rest_validation_test.py index 0b34decbf20..79a233cbf8d 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/ValidationLowLevel/validationlowlevel/_auto_rest_validation_test.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/ValidationLowLevel/validationlowlevel/_auto_rest_validation_test.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Optional, TYPE_CHECKING +from typing import Any, TYPE_CHECKING from azure.core import PipelineClient from azure.core.rest import HttpRequest, HttpResponse diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/ValidationLowLevel/validationlowlevel/_configuration.py b/test/vanilla/low-level/Expected/AcceptanceTests/ValidationLowLevel/validationlowlevel/_configuration.py index b204dd9e5a3..a9856ab1ed8 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/ValidationLowLevel/validationlowlevel/_configuration.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/ValidationLowLevel/validationlowlevel/_configuration.py @@ -14,7 +14,7 @@ from ._version import VERSION -class AutoRestValidationTestConfiguration(Configuration): +class AutoRestValidationTestConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestValidationTest. Note that all parameters used to create this instance are saved as instance @@ -22,7 +22,8 @@ class AutoRestValidationTestConfiguration(Configuration): :param subscription_id: Subscription ID. :type subscription_id: str - :keyword api_version: Api Version. The default value is "1.0.0". Note that overriding this default value may result in unsupported behavior. + :keyword api_version: Api Version. The default value is "1.0.0". Note that overriding this + default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/ValidationLowLevel/validationlowlevel/aio/_auto_rest_validation_test.py b/test/vanilla/low-level/Expected/AcceptanceTests/ValidationLowLevel/validationlowlevel/aio/_auto_rest_validation_test.py index dffe62c7b5e..8fec5db1118 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/ValidationLowLevel/validationlowlevel/aio/_auto_rest_validation_test.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/ValidationLowLevel/validationlowlevel/aio/_auto_rest_validation_test.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional, TYPE_CHECKING +from typing import Any, Awaitable, TYPE_CHECKING from azure.core import AsyncPipelineClient from azure.core.rest import AsyncHttpResponse, HttpRequest diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/ValidationLowLevel/validationlowlevel/aio/_configuration.py b/test/vanilla/low-level/Expected/AcceptanceTests/ValidationLowLevel/validationlowlevel/aio/_configuration.py index b94ec5a513f..c5cf575016b 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/ValidationLowLevel/validationlowlevel/aio/_configuration.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/ValidationLowLevel/validationlowlevel/aio/_configuration.py @@ -14,7 +14,7 @@ from .._version import VERSION -class AutoRestValidationTestConfiguration(Configuration): +class AutoRestValidationTestConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestValidationTest. Note that all parameters used to create this instance are saved as instance @@ -22,7 +22,8 @@ class AutoRestValidationTestConfiguration(Configuration): :param subscription_id: Subscription ID. :type subscription_id: str - :keyword api_version: Api Version. The default value is "1.0.0". Note that overriding this default value may result in unsupported behavior. + :keyword api_version: Api Version. The default value is "1.0.0". Note that overriding this + default value may result in unsupported behavior. :paramtype api_version: str """ 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 e66abafa14d..8dfe5edd53c 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 @@ -53,18 +53,25 @@ def build_validation_of_method_parameters_request( response.json() == { "capacity": 0, # Optional. Non required int betwen 0 and 100 exclusive. "child": { - "constProperty": "constant", # Default value is "constant". Constant string. Has constant value: "constant". + "constProperty": "constant", # Default value is "constant". Constant + string. Has constant value: "constant". "count": 0 # Optional. Count. }, "constChild": { - "constProperty": "constant", # Default value is "constant". Constant string. Has constant value: "constant". - "constProperty2": "constant2" # Default value is "constant2". Constant string2. Has constant value: "constant2". + "constProperty": "constant", # Default value is "constant". Constant + string. Has constant value: "constant". + "constProperty2": "constant2" # Default value is "constant2". + Constant string2. Has constant value: "constant2". }, "constInt": 0, # Default value is 0. Constant int. Has constant value: 0. - "constString": "constant", # Default value is "constant". Constant string. Has constant value: "constant". - "constStringAsEnum": "constant_string_as_enum", # Optional. Default value is "constant_string_as_enum". Constant string as Enum. The only acceptable values to pass in are None and "constant_string_as_enum". The default value is None. + "constString": "constant", # Default value is "constant". Constant string. + Has constant value: "constant". + "constStringAsEnum": "constant_string_as_enum", # Optional. Default value is + "constant_string_as_enum". Constant string as Enum. The only acceptable values to + pass in are None and "constant_string_as_enum". The default value is None. "display_names": [ - "str" # Optional. Non required array of unique items from 0 to 6 elements. + "str" # Optional. Non required array of unique items from 0 to 6 + elements. ], "image": "str" # Optional. Image URL representing the product. } @@ -136,18 +143,25 @@ def build_validation_of_body_request( json = { "capacity": 0, # Optional. Non required int betwen 0 and 100 exclusive. "child": { - "constProperty": "constant", # Default value is "constant". Constant string. Has constant value: "constant". + "constProperty": "constant", # Default value is "constant". Constant + string. Has constant value: "constant". "count": 0 # Optional. Count. }, "constChild": { - "constProperty": "constant", # Default value is "constant". Constant string. Has constant value: "constant". - "constProperty2": "constant2" # Default value is "constant2". Constant string2. Has constant value: "constant2". + "constProperty": "constant", # Default value is "constant". Constant + string. Has constant value: "constant". + "constProperty2": "constant2" # Default value is "constant2". + Constant string2. Has constant value: "constant2". }, "constInt": 0, # Default value is 0. Constant int. Has constant value: 0. - "constString": "constant", # Default value is "constant". Constant string. Has constant value: "constant". - "constStringAsEnum": "constant_string_as_enum", # Optional. Default value is "constant_string_as_enum". Constant string as Enum. The only acceptable values to pass in are None and "constant_string_as_enum". The default value is None. + "constString": "constant", # Default value is "constant". Constant string. + Has constant value: "constant". + "constStringAsEnum": "constant_string_as_enum", # Optional. Default value is + "constant_string_as_enum". Constant string as Enum. The only acceptable values to + pass in are None and "constant_string_as_enum". The default value is None. "display_names": [ - "str" # Optional. Non required array of unique items from 0 to 6 elements. + "str" # Optional. Non required array of unique items from 0 to 6 + elements. ], "image": "str" # Optional. Image URL representing the product. } @@ -156,18 +170,25 @@ def build_validation_of_body_request( response.json() == { "capacity": 0, # Optional. Non required int betwen 0 and 100 exclusive. "child": { - "constProperty": "constant", # Default value is "constant". Constant string. Has constant value: "constant". + "constProperty": "constant", # Default value is "constant". Constant + string. Has constant value: "constant". "count": 0 # Optional. Count. }, "constChild": { - "constProperty": "constant", # Default value is "constant". Constant string. Has constant value: "constant". - "constProperty2": "constant2" # Default value is "constant2". Constant string2. Has constant value: "constant2". + "constProperty": "constant", # Default value is "constant". Constant + string. Has constant value: "constant". + "constProperty2": "constant2" # Default value is "constant2". + Constant string2. Has constant value: "constant2". }, "constInt": 0, # Default value is 0. Constant int. Has constant value: 0. - "constString": "constant", # Default value is "constant". Constant string. Has constant value: "constant". - "constStringAsEnum": "constant_string_as_enum", # Optional. Default value is "constant_string_as_enum". Constant string as Enum. The only acceptable values to pass in are None and "constant_string_as_enum". The default value is None. + "constString": "constant", # Default value is "constant". Constant string. + Has constant value: "constant". + "constStringAsEnum": "constant_string_as_enum", # Optional. Default value is + "constant_string_as_enum". Constant string as Enum. The only acceptable values to + pass in are None and "constant_string_as_enum". The default value is None. "display_names": [ - "str" # Optional. Non required array of unique items from 0 to 6 elements. + "str" # Optional. Non required array of unique items from 0 to 6 + elements. ], "image": "str" # Optional. Image URL representing the product. } @@ -271,18 +292,25 @@ def build_post_with_constant_in_body_request( json = { "capacity": 0, # Optional. Non required int betwen 0 and 100 exclusive. "child": { - "constProperty": "constant", # Default value is "constant". Constant string. Has constant value: "constant". + "constProperty": "constant", # Default value is "constant". Constant + string. Has constant value: "constant". "count": 0 # Optional. Count. }, "constChild": { - "constProperty": "constant", # Default value is "constant". Constant string. Has constant value: "constant". - "constProperty2": "constant2" # Default value is "constant2". Constant string2. Has constant value: "constant2". + "constProperty": "constant", # Default value is "constant". Constant + string. Has constant value: "constant". + "constProperty2": "constant2" # Default value is "constant2". + Constant string2. Has constant value: "constant2". }, "constInt": 0, # Default value is 0. Constant int. Has constant value: 0. - "constString": "constant", # Default value is "constant". Constant string. Has constant value: "constant". - "constStringAsEnum": "constant_string_as_enum", # Optional. Default value is "constant_string_as_enum". Constant string as Enum. The only acceptable values to pass in are None and "constant_string_as_enum". The default value is None. + "constString": "constant", # Default value is "constant". Constant string. + Has constant value: "constant". + "constStringAsEnum": "constant_string_as_enum", # Optional. Default value is + "constant_string_as_enum". Constant string as Enum. The only acceptable values to + pass in are None and "constant_string_as_enum". The default value is None. "display_names": [ - "str" # Optional. Non required array of unique items from 0 to 6 elements. + "str" # Optional. Non required array of unique items from 0 to 6 + elements. ], "image": "str" # Optional. Image URL representing the product. } @@ -291,18 +319,25 @@ def build_post_with_constant_in_body_request( response.json() == { "capacity": 0, # Optional. Non required int betwen 0 and 100 exclusive. "child": { - "constProperty": "constant", # Default value is "constant". Constant string. Has constant value: "constant". + "constProperty": "constant", # Default value is "constant". Constant + string. Has constant value: "constant". "count": 0 # Optional. Count. }, "constChild": { - "constProperty": "constant", # Default value is "constant". Constant string. Has constant value: "constant". - "constProperty2": "constant2" # Default value is "constant2". Constant string2. Has constant value: "constant2". + "constProperty": "constant", # Default value is "constant". Constant + string. Has constant value: "constant". + "constProperty2": "constant2" # Default value is "constant2". + Constant string2. Has constant value: "constant2". }, "constInt": 0, # Default value is 0. Constant int. Has constant value: 0. - "constString": "constant", # Default value is "constant". Constant string. Has constant value: "constant". - "constStringAsEnum": "constant_string_as_enum", # Optional. Default value is "constant_string_as_enum". Constant string as Enum. The only acceptable values to pass in are None and "constant_string_as_enum". The default value is None. + "constString": "constant", # Default value is "constant". Constant string. + Has constant value: "constant". + "constStringAsEnum": "constant_string_as_enum", # Optional. Default value is + "constant_string_as_enum". Constant string as Enum. The only acceptable values to + pass in are None and "constant_string_as_enum". The default value is None. "display_names": [ - "str" # Optional. Non required array of unique items from 0 to 6 elements. + "str" # Optional. Non required array of unique items from 0 to 6 + elements. ], "image": "str" # Optional. Image URL representing the product. } 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 0073c6020bc..e6adfd9f341 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 @@ -44,18 +44,25 @@ def build_validation_of_method_parameters_request( response.json() == { "capacity": 0, # Optional. Non required int betwen 0 and 100 exclusive. "child": { - "constProperty": "constant", # Default value is "constant". Constant string. Has constant value: "constant". + "constProperty": "constant", # Default value is "constant". Constant + string. Has constant value: "constant". "count": 0 # Optional. Count. }, "constChild": { - "constProperty": "constant", # Default value is "constant". Constant string. Has constant value: "constant". - "constProperty2": "constant2" # Default value is "constant2". Constant string2. Has constant value: "constant2". + "constProperty": "constant", # Default value is "constant". Constant + string. Has constant value: "constant". + "constProperty2": "constant2" # Default value is "constant2". + Constant string2. Has constant value: "constant2". }, "constInt": 0, # Default value is 0. Constant int. Has constant value: 0. - "constString": "constant", # Default value is "constant". Constant string. Has constant value: "constant". - "constStringAsEnum": "constant_string_as_enum", # Optional. Default value is "constant_string_as_enum". Constant string as Enum. The only acceptable values to pass in are None and "constant_string_as_enum". The default value is None. + "constString": "constant", # Default value is "constant". Constant string. + Has constant value: "constant". + "constStringAsEnum": "constant_string_as_enum", # Optional. Default value is + "constant_string_as_enum". Constant string as Enum. The only acceptable values to + pass in are None and "constant_string_as_enum". The default value is None. "display_names": [ - "str" # Optional. Non required array of unique items from 0 to 6 elements. + "str" # Optional. Non required array of unique items from 0 to 6 + elements. ], "image": "str" # Optional. Image URL representing the product. } @@ -125,18 +132,25 @@ def build_validation_of_body_request( json = { "capacity": 0, # Optional. Non required int betwen 0 and 100 exclusive. "child": { - "constProperty": "constant", # Default value is "constant". Constant string. Has constant value: "constant". + "constProperty": "constant", # Default value is "constant". Constant + string. Has constant value: "constant". "count": 0 # Optional. Count. }, "constChild": { - "constProperty": "constant", # Default value is "constant". Constant string. Has constant value: "constant". - "constProperty2": "constant2" # Default value is "constant2". Constant string2. Has constant value: "constant2". + "constProperty": "constant", # Default value is "constant". Constant + string. Has constant value: "constant". + "constProperty2": "constant2" # Default value is "constant2". + Constant string2. Has constant value: "constant2". }, "constInt": 0, # Default value is 0. Constant int. Has constant value: 0. - "constString": "constant", # Default value is "constant". Constant string. Has constant value: "constant". - "constStringAsEnum": "constant_string_as_enum", # Optional. Default value is "constant_string_as_enum". Constant string as Enum. The only acceptable values to pass in are None and "constant_string_as_enum". The default value is None. + "constString": "constant", # Default value is "constant". Constant string. + Has constant value: "constant". + "constStringAsEnum": "constant_string_as_enum", # Optional. Default value is + "constant_string_as_enum". Constant string as Enum. The only acceptable values to + pass in are None and "constant_string_as_enum". The default value is None. "display_names": [ - "str" # Optional. Non required array of unique items from 0 to 6 elements. + "str" # Optional. Non required array of unique items from 0 to 6 + elements. ], "image": "str" # Optional. Image URL representing the product. } @@ -145,18 +159,25 @@ def build_validation_of_body_request( response.json() == { "capacity": 0, # Optional. Non required int betwen 0 and 100 exclusive. "child": { - "constProperty": "constant", # Default value is "constant". Constant string. Has constant value: "constant". + "constProperty": "constant", # Default value is "constant". Constant + string. Has constant value: "constant". "count": 0 # Optional. Count. }, "constChild": { - "constProperty": "constant", # Default value is "constant". Constant string. Has constant value: "constant". - "constProperty2": "constant2" # Default value is "constant2". Constant string2. Has constant value: "constant2". + "constProperty": "constant", # Default value is "constant". Constant + string. Has constant value: "constant". + "constProperty2": "constant2" # Default value is "constant2". + Constant string2. Has constant value: "constant2". }, "constInt": 0, # Default value is 0. Constant int. Has constant value: 0. - "constString": "constant", # Default value is "constant". Constant string. Has constant value: "constant". - "constStringAsEnum": "constant_string_as_enum", # Optional. Default value is "constant_string_as_enum". Constant string as Enum. The only acceptable values to pass in are None and "constant_string_as_enum". The default value is None. + "constString": "constant", # Default value is "constant". Constant string. + Has constant value: "constant". + "constStringAsEnum": "constant_string_as_enum", # Optional. Default value is + "constant_string_as_enum". Constant string as Enum. The only acceptable values to + pass in are None and "constant_string_as_enum". The default value is None. "display_names": [ - "str" # Optional. Non required array of unique items from 0 to 6 elements. + "str" # Optional. Non required array of unique items from 0 to 6 + elements. ], "image": "str" # Optional. Image URL representing the product. } @@ -250,18 +271,25 @@ def build_post_with_constant_in_body_request( json = { "capacity": 0, # Optional. Non required int betwen 0 and 100 exclusive. "child": { - "constProperty": "constant", # Default value is "constant". Constant string. Has constant value: "constant". + "constProperty": "constant", # Default value is "constant". Constant + string. Has constant value: "constant". "count": 0 # Optional. Count. }, "constChild": { - "constProperty": "constant", # Default value is "constant". Constant string. Has constant value: "constant". - "constProperty2": "constant2" # Default value is "constant2". Constant string2. Has constant value: "constant2". + "constProperty": "constant", # Default value is "constant". Constant + string. Has constant value: "constant". + "constProperty2": "constant2" # Default value is "constant2". + Constant string2. Has constant value: "constant2". }, "constInt": 0, # Default value is 0. Constant int. Has constant value: 0. - "constString": "constant", # Default value is "constant". Constant string. Has constant value: "constant". - "constStringAsEnum": "constant_string_as_enum", # Optional. Default value is "constant_string_as_enum". Constant string as Enum. The only acceptable values to pass in are None and "constant_string_as_enum". The default value is None. + "constString": "constant", # Default value is "constant". Constant string. + Has constant value: "constant". + "constStringAsEnum": "constant_string_as_enum", # Optional. Default value is + "constant_string_as_enum". Constant string as Enum. The only acceptable values to + pass in are None and "constant_string_as_enum". The default value is None. "display_names": [ - "str" # Optional. Non required array of unique items from 0 to 6 elements. + "str" # Optional. Non required array of unique items from 0 to 6 + elements. ], "image": "str" # Optional. Image URL representing the product. } @@ -270,18 +298,25 @@ def build_post_with_constant_in_body_request( response.json() == { "capacity": 0, # Optional. Non required int betwen 0 and 100 exclusive. "child": { - "constProperty": "constant", # Default value is "constant". Constant string. Has constant value: "constant". + "constProperty": "constant", # Default value is "constant". Constant + string. Has constant value: "constant". "count": 0 # Optional. Count. }, "constChild": { - "constProperty": "constant", # Default value is "constant". Constant string. Has constant value: "constant". - "constProperty2": "constant2" # Default value is "constant2". Constant string2. Has constant value: "constant2". + "constProperty": "constant", # Default value is "constant". Constant + string. Has constant value: "constant". + "constProperty2": "constant2" # Default value is "constant2". + Constant string2. Has constant value: "constant2". }, "constInt": 0, # Default value is 0. Constant int. Has constant value: 0. - "constString": "constant", # Default value is "constant". Constant string. Has constant value: "constant". - "constStringAsEnum": "constant_string_as_enum", # Optional. Default value is "constant_string_as_enum". Constant string as Enum. The only acceptable values to pass in are None and "constant_string_as_enum". The default value is None. + "constString": "constant", # Default value is "constant". Constant string. + Has constant value: "constant". + "constStringAsEnum": "constant_string_as_enum", # Optional. Default value is + "constant_string_as_enum". Constant string as Enum. The only acceptable values to + pass in are None and "constant_string_as_enum". The default value is None. "display_names": [ - "str" # Optional. Non required array of unique items from 0 to 6 elements. + "str" # Optional. Non required array of unique items from 0 to 6 + elements. ], "image": "str" # Optional. Image URL representing the product. } diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/XmlLowLevel/xmlservicelowlevel/_auto_rest_swagger_batxml_service.py b/test/vanilla/low-level/Expected/AcceptanceTests/XmlLowLevel/xmlservicelowlevel/_auto_rest_swagger_batxml_service.py index fe54fc782f5..9038b8ed5e9 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/XmlLowLevel/xmlservicelowlevel/_auto_rest_swagger_batxml_service.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/XmlLowLevel/xmlservicelowlevel/_auto_rest_swagger_batxml_service.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Optional, TYPE_CHECKING +from typing import Any, TYPE_CHECKING from azure.core import PipelineClient from azure.core.rest import HttpRequest, HttpResponse diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/XmlLowLevel/xmlservicelowlevel/_configuration.py b/test/vanilla/low-level/Expected/AcceptanceTests/XmlLowLevel/xmlservicelowlevel/_configuration.py index e476b3c8743..ff5722e2a21 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/XmlLowLevel/xmlservicelowlevel/_configuration.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/XmlLowLevel/xmlservicelowlevel/_configuration.py @@ -14,7 +14,7 @@ from ._version import VERSION -class AutoRestSwaggerBATXMLServiceConfiguration(Configuration): +class AutoRestSwaggerBATXMLServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestSwaggerBATXMLService. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/XmlLowLevel/xmlservicelowlevel/aio/_auto_rest_swagger_batxml_service.py b/test/vanilla/low-level/Expected/AcceptanceTests/XmlLowLevel/xmlservicelowlevel/aio/_auto_rest_swagger_batxml_service.py index 2c94288d04c..f756fdbb542 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/XmlLowLevel/xmlservicelowlevel/aio/_auto_rest_swagger_batxml_service.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/XmlLowLevel/xmlservicelowlevel/aio/_auto_rest_swagger_batxml_service.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional, TYPE_CHECKING +from typing import Any, Awaitable, TYPE_CHECKING from azure.core import AsyncPipelineClient from azure.core.rest import AsyncHttpResponse, HttpRequest diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/XmlLowLevel/xmlservicelowlevel/aio/_configuration.py b/test/vanilla/low-level/Expected/AcceptanceTests/XmlLowLevel/xmlservicelowlevel/aio/_configuration.py index 8cd31cae2e5..c6d89c576de 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/XmlLowLevel/xmlservicelowlevel/aio/_configuration.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/XmlLowLevel/xmlservicelowlevel/aio/_configuration.py @@ -14,7 +14,7 @@ from .._version import VERSION -class AutoRestSwaggerBATXMLServiceConfiguration(Configuration): +class AutoRestSwaggerBATXMLServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestSwaggerBATXMLService. Note that all parameters used to create this instance are saved as instance 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 1b6070cf96d..c3d50e7e710 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 @@ -12,7 +12,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Dict, List, Optional, TypeVar + from typing import Any, Dict, Optional, TypeVar T = TypeVar("T") JSONType = Any @@ -559,7 +559,8 @@ def build_get_root_list_request( # response body for status code(s): 200 response.json() == [ { - "expiration": "2020-02-20 00:00:00", # Optional. The time at which you should reconsider eating this banana. + "expiration": "2020-02-20 00:00:00", # Optional. The time at which + you should reconsider eating this banana. "flavor": "str", # Optional. "name": "str" # Optional. } @@ -638,7 +639,8 @@ def build_get_root_list_single_item_request( # response body for status code(s): 200 response.json() == [ { - "expiration": "2020-02-20 00:00:00", # Optional. The time at which you should reconsider eating this banana. + "expiration": "2020-02-20 00:00:00", # Optional. The time at which + you should reconsider eating this banana. "flavor": "str", # Optional. "name": "str" # Optional. } @@ -717,7 +719,8 @@ def build_get_empty_root_list_request( # response body for status code(s): 200 response.json() == [ { - "expiration": "2020-02-20 00:00:00", # Optional. The time at which you should reconsider eating this banana. + "expiration": "2020-02-20 00:00:00", # Optional. The time at which + you should reconsider eating this banana. "flavor": "str", # Optional. "name": "str" # Optional. } @@ -795,7 +798,8 @@ def build_get_empty_child_element_request( # response body for status code(s): 200 response.json() == { - "expiration": "2020-02-20 00:00:00", # Optional. The time at which you should reconsider eating this banana. + "expiration": "2020-02-20 00:00:00", # Optional. The time at which you + should reconsider eating this banana. "flavor": "str", # Optional. "name": "str" # Optional. } @@ -878,24 +882,29 @@ def build_list_containers_request( "Containers": [ { "Metadata": { - "str": "str" # Optional. Dictionary of :code:``. + "str": "str" # Optional. Dictionary of + :code:``. }, - "Name": "str", # Required. + "Name": "str", # Required. "Properties": { - "Etag": "str", # Required. - "Last-Modified": "2020-02-20 00:00:00", # Required. - "LeaseDuration": "str", # Optional. Possible values include: "infinite", "fixed". - "LeaseState": "str", # Optional. Possible values include: "available", "leased", "expired", "breaking", "broken". - "LeaseStatus": "str", # Optional. Possible values include: "locked", "unlocked". - "PublicAccess": "str" # Optional. Possible values include: "container", "blob". + "Etag": "str", # Required. + "Last-Modified": "2020-02-20 00:00:00", # Required. + "LeaseDuration": "str", # Optional. Possible values + include: "infinite", "fixed". + "LeaseState": "str", # Optional. Possible values + include: "available", "leased", "expired", "breaking", "broken". + "LeaseStatus": "str", # Optional. Possible values + include: "locked", "unlocked". + "PublicAccess": "str" # Optional. Possible values + include: "container", "blob". } } ], "Marker": "str", # Optional. - "MaxResults": 0, # Required. - "NextMarker": "str", # Required. - "Prefix": "str", # Required. - "ServiceEndpoint": "str" # Required. + "MaxResults": 0, # Required. + "NextMarker": "str", # Required. + "Prefix": "str", # Required. + "ServiceEndpoint": "str" # Required. } """ @@ -949,45 +958,80 @@ def build_get_service_properties_request( response.json() == { "Cors": [ { - "AllowedHeaders": "str", # Required. the request headers that the origin domain may specify on the CORS request. - "AllowedMethods": "str", # Required. The methods (HTTP request verbs) that the origin domain may use for a CORS request. (comma separated). - "AllowedOrigins": "str", # Required. The origin domains that are permitted to make a request against the storage service via CORS. The origin domain is the domain from which the request originates. Note that the origin must be an exact case-sensitive match with the origin that the user age sends to the service. You can also use the wildcard character '*' to allow all origin domains to make requests via CORS. - "ExposedHeaders": "str", # Required. The response headers that may be sent in the response to the CORS request and exposed by the browser to the request issuer. - "MaxAgeInSeconds": 0 # Required. The maximum amount time that a browser should cache the preflight OPTIONS request. + "AllowedHeaders": "str", # Required. the request headers + that the origin domain may specify on the CORS request. + "AllowedMethods": "str", # Required. The methods (HTTP + request verbs) that the origin domain may use for a CORS request. (comma + separated). + "AllowedOrigins": "str", # Required. The origin domains that + are permitted to make a request against the storage service via CORS. The + origin domain is the domain from which the request originates. Note that + the origin must be an exact case-sensitive match with the origin that the + user age sends to the service. You can also use the wildcard character + '*' to allow all origin domains to make requests via CORS. + "ExposedHeaders": "str", # Required. The response headers + that may be sent in the response to the CORS request and exposed by the + browser to the request issuer. + "MaxAgeInSeconds": 0 # Required. The maximum amount time + that a browser should cache the preflight OPTIONS request. } ], - "DefaultServiceVersion": "str", # Optional. The default version to use for requests to the Blob service if an incoming request's version is not specified. Possible values include version 2008-10-27 and all more recent versions. + "DefaultServiceVersion": "str", # Optional. The default version to use for + requests to the Blob service if an incoming request's version is not specified. + Possible values include version 2008-10-27 and all more recent versions. "DeleteRetentionPolicy": { - "Days": 0, # Optional. Indicates the number of days that metrics or logging or soft-deleted data should be retained. All data older than this value will be deleted. - "Enabled": bool # Required. Indicates whether a retention policy is enabled for the storage service. + "Days": 0, # Optional. Indicates the number of days that metrics or + logging or soft-deleted data should be retained. All data older than this + value will be deleted. + "Enabled": bool # Required. Indicates whether a retention policy is + enabled for the storage service. }, "HourMetrics": { - "Enabled": bool, # Required. Indicates whether metrics are enabled for the Blob service. - "IncludeAPIs": bool, # Optional. Indicates whether metrics should generate summary statistics for called API operations. + "Enabled": bool, # Required. Indicates whether metrics are enabled + for the Blob service. + "IncludeAPIs": bool, # Optional. Indicates whether metrics should + generate summary statistics for called API operations. "RetentionPolicy": { - "Days": 0, # Optional. Indicates the number of days that metrics or logging or soft-deleted data should be retained. All data older than this value will be deleted. - "Enabled": bool # Required. Indicates whether a retention policy is enabled for the storage service. + "Days": 0, # Optional. Indicates the number of days that + metrics or logging or soft-deleted data should be retained. All data + older than this value will be deleted. + "Enabled": bool # Required. Indicates whether a retention + policy is enabled for the storage service. }, - "Version": "str" # Optional. The version of Storage Analytics to configure. + "Version": "str" # Optional. The version of Storage Analytics to + configure. }, "Logging": { - "Delete": bool, # Required. Indicates whether all delete requests should be logged. - "Read": bool, # Required. Indicates whether all read requests should be logged. + "Delete": bool, # Required. Indicates whether all delete requests + should be logged. + "Read": bool, # Required. Indicates whether all read requests should + be logged. "RetentionPolicy": { - "Days": 0, # Optional. Indicates the number of days that metrics or logging or soft-deleted data should be retained. All data older than this value will be deleted. - "Enabled": bool # Required. Indicates whether a retention policy is enabled for the storage service. + "Days": 0, # Optional. Indicates the number of days that + metrics or logging or soft-deleted data should be retained. All data + older than this value will be deleted. + "Enabled": bool # Required. Indicates whether a retention + policy is enabled for the storage service. }, - "Version": "str", # Required. The version of Storage Analytics to configure. - "Write": bool # Required. Indicates whether all write requests should be logged. + "Version": "str", # Required. The version of Storage Analytics to + configure. + "Write": bool # Required. Indicates whether all write requests + should be logged. }, "MinuteMetrics": { - "Enabled": bool, # Required. Indicates whether metrics are enabled for the Blob service. - "IncludeAPIs": bool, # Optional. Indicates whether metrics should generate summary statistics for called API operations. + "Enabled": bool, # Required. Indicates whether metrics are enabled + for the Blob service. + "IncludeAPIs": bool, # Optional. Indicates whether metrics should + generate summary statistics for called API operations. "RetentionPolicy": { - "Days": 0, # Optional. Indicates the number of days that metrics or logging or soft-deleted data should be retained. All data older than this value will be deleted. - "Enabled": bool # Required. Indicates whether a retention policy is enabled for the storage service. + "Days": 0, # Optional. Indicates the number of days that + metrics or logging or soft-deleted data should be retained. All data + older than this value will be deleted. + "Enabled": bool # Required. Indicates whether a retention + policy is enabled for the storage service. }, - "Version": "str" # Optional. The version of Storage Analytics to configure. + "Version": "str" # Optional. The version of Storage Analytics to + configure. } } """ @@ -1094,9 +1138,12 @@ def build_get_acls_request( response.json() == [ { "AccessPolicy": { - "Expiry": "2020-02-20 00:00:00", # Required. the date-time the policy expires. - "Permission": "str", # Required. the permissions for the acl policy. - "Start": "2020-02-20 00:00:00" # Required. the date-time the policy is active. + "Expiry": "2020-02-20 00:00:00", # Required. the date-time + the policy expires. + "Permission": "str", # Required. the permissions for the acl + policy. + "Start": "2020-02-20 00:00:00" # Required. the date-time the + policy is active. }, "Id": "str" # Required. a unique id. } @@ -1206,56 +1253,87 @@ def build_list_blobs_request( "Blobs": { "Blob": [ { - "Deleted": bool, # Required. + "Deleted": bool, # Required. "Metadata": { - "str": "str" # Optional. Dictionary of :code:``. + "str": "str" # Optional. Dictionary of + :code:``. }, - "Name": "str", # Required. + "Name": "str", # Required. "Properties": { - "AccessTier": "str", # Optional. Possible values include: "P4", "P6", "P10", "P20", "P30", "P40", "P50", "Hot", "Cool", "Archive". - "AccessTierInferred": bool, # Optional. Required. Properties of a blob. - "ArchiveStatus": "str", # Optional. Possible values include: "rehydrate-pending-to-hot", "rehydrate-pending-to-cool". - "BlobType": "str", # Optional. Possible values include: "BlockBlob", "PageBlob", "AppendBlob". - "Cache-Control": "str", # Optional. Required. Properties of a blob. - "Content-Disposition": "str", # Optional. Required. Properties of a blob. - "Content-Encoding": "str", # Optional. Required. Properties of a blob. - "Content-Language": "str", # Optional. Required. Properties of a blob. - "Content-Length": 0.0, # Optional. Size in bytes. - "Content-MD5": "str", # Optional. Required. Properties of a blob. - "Content-Type": "str", # Optional. Required. Properties of a blob. - "CopyCompletionTime": "2020-02-20 00:00:00", # Optional. Required. Properties of a blob. - "CopyId": "str", # Optional. Required. Properties of a blob. - "CopyProgress": "str", # Optional. Required. Properties of a blob. - "CopySource": "str", # Optional. Required. Properties of a blob. - "CopyStatus": "str", # Optional. Possible values include: "pending", "success", "aborted", "failed". - "CopyStatusDescription": "str", # Optional. Required. Properties of a blob. - "DeletedTime": "2020-02-20 00:00:00", # Optional. Required. Properties of a blob. - "DestinationSnapshot": "str", # Optional. Required. Properties of a blob. - "Etag": "str", # Required. - "IncrementalCopy": bool, # Optional. Required. Properties of a blob. - "Last-Modified": "2020-02-20 00:00:00", # Required. - "LeaseDuration": "str", # Optional. Possible values include: "infinite", "fixed". - "LeaseState": "str", # Optional. Possible values include: "available", "leased", "expired", "breaking", "broken". - "LeaseStatus": "str", # Optional. Possible values include: "locked", "unlocked". - "RemainingRetentionDays": 0, # Optional. Required. Properties of a blob. - "ServerEncrypted": bool, # Optional. Required. Properties of a blob. - "x-ms-blob-sequence-number": 0 # Optional. Required. Properties of a blob. + "AccessTier": "str", # Optional. Possible + values include: "P4", "P6", "P10", "P20", "P30", "P40", "P50", + "Hot", "Cool", "Archive". + "AccessTierInferred": bool, # Optional. + Required. Properties of a blob. + "ArchiveStatus": "str", # Optional. Possible + values include: "rehydrate-pending-to-hot", + "rehydrate-pending-to-cool". + "BlobType": "str", # Optional. Possible + values include: "BlockBlob", "PageBlob", "AppendBlob". + "Cache-Control": "str", # Optional. + Required. Properties of a blob. + "Content-Disposition": "str", # Optional. + Required. Properties of a blob. + "Content-Encoding": "str", # Optional. + Required. Properties of a blob. + "Content-Language": "str", # Optional. + Required. Properties of a blob. + "Content-Length": 0.0, # Optional. Size in + bytes. + "Content-MD5": "str", # Optional. Required. + Properties of a blob. + "Content-Type": "str", # Optional. Required. + Properties of a blob. + "CopyCompletionTime": "2020-02-20 00:00:00", + # Optional. Required. Properties of a blob. + "CopyId": "str", # Optional. Required. + Properties of a blob. + "CopyProgress": "str", # Optional. Required. + Properties of a blob. + "CopySource": "str", # Optional. Required. + Properties of a blob. + "CopyStatus": "str", # Optional. Possible + values include: "pending", "success", "aborted", "failed". + "CopyStatusDescription": "str", # Optional. + Required. Properties of a blob. + "DeletedTime": "2020-02-20 00:00:00", # + Optional. Required. Properties of a blob. + "DestinationSnapshot": "str", # Optional. + Required. Properties of a blob. + "Etag": "str", # Required. + "IncrementalCopy": bool, # Optional. + Required. Properties of a blob. + "Last-Modified": "2020-02-20 00:00:00", # + Required. + "LeaseDuration": "str", # Optional. Possible + values include: "infinite", "fixed". + "LeaseState": "str", # Optional. Possible + values include: "available", "leased", "expired", "breaking", + "broken". + "LeaseStatus": "str", # Optional. Possible + values include: "locked", "unlocked". + "RemainingRetentionDays": 0, # Optional. + Required. Properties of a blob. + "ServerEncrypted": bool, # Optional. + Required. Properties of a blob. + "x-ms-blob-sequence-number": 0 # Optional. + Required. Properties of a blob. }, - "Snapshot": "str" # Required. + "Snapshot": "str" # Required. } ], "BlobPrefix": [ { - "Name": "str" # Required. + "Name": "str" # Required. } ] }, - "ContainerName": "str", # Required. - "Delimiter": "str", # Required. - "Marker": "str", # Required. - "MaxResults": 0, # Required. - "NextMarker": "str", # Required. - "Prefix": "str", # Required. + "ContainerName": "str", # Required. + "Delimiter": "str", # Required. + "Marker": "str", # Required. + "MaxResults": 0, # Required. + "NextMarker": "str", # Required. + "Prefix": "str", # Required. "ServiceEndpoint": "str" # Optional. } """ 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 348818da987..28d39d795b8 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 @@ -5,7 +5,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, Dict, List, Optional, TypeVar +from typing import Any, Dict, Optional, TypeVar from azure.core.rest import HttpRequest from msrest import Serializer @@ -448,7 +448,8 @@ def build_get_root_list_request(**kwargs: Any) -> HttpRequest: # response body for status code(s): 200 response.json() == [ { - "expiration": "2020-02-20 00:00:00", # Optional. The time at which you should reconsider eating this banana. + "expiration": "2020-02-20 00:00:00", # Optional. The time at which + you should reconsider eating this banana. "flavor": "str", # Optional. "name": "str" # Optional. } @@ -511,7 +512,8 @@ def build_get_root_list_single_item_request(**kwargs: Any) -> HttpRequest: # response body for status code(s): 200 response.json() == [ { - "expiration": "2020-02-20 00:00:00", # Optional. The time at which you should reconsider eating this banana. + "expiration": "2020-02-20 00:00:00", # Optional. The time at which + you should reconsider eating this banana. "flavor": "str", # Optional. "name": "str" # Optional. } @@ -574,7 +576,8 @@ def build_get_empty_root_list_request(**kwargs: Any) -> HttpRequest: # response body for status code(s): 200 response.json() == [ { - "expiration": "2020-02-20 00:00:00", # Optional. The time at which you should reconsider eating this banana. + "expiration": "2020-02-20 00:00:00", # Optional. The time at which + you should reconsider eating this banana. "flavor": "str", # Optional. "name": "str" # Optional. } @@ -636,7 +639,8 @@ def build_get_empty_child_element_request(**kwargs: Any) -> HttpRequest: # response body for status code(s): 200 response.json() == { - "expiration": "2020-02-20 00:00:00", # Optional. The time at which you should reconsider eating this banana. + "expiration": "2020-02-20 00:00:00", # Optional. The time at which you + should reconsider eating this banana. "flavor": "str", # Optional. "name": "str" # Optional. } @@ -703,16 +707,21 @@ def build_list_containers_request(**kwargs: Any) -> HttpRequest: "Containers": [ { "Metadata": { - "str": "str" # Optional. Dictionary of :code:``. + "str": "str" # Optional. Dictionary of + :code:``. }, "Name": "str", # Required. "Properties": { "Etag": "str", # Required. "Last-Modified": "2020-02-20 00:00:00", # Required. - "LeaseDuration": "str", # Optional. Possible values include: "infinite", "fixed". - "LeaseState": "str", # Optional. Possible values include: "available", "leased", "expired", "breaking", "broken". - "LeaseStatus": "str", # Optional. Possible values include: "locked", "unlocked". - "PublicAccess": "str" # Optional. Possible values include: "container", "blob". + "LeaseDuration": "str", # Optional. Possible values + include: "infinite", "fixed". + "LeaseState": "str", # Optional. Possible values + include: "available", "leased", "expired", "breaking", "broken". + "LeaseStatus": "str", # Optional. Possible values + include: "locked", "unlocked". + "PublicAccess": "str" # Optional. Possible values + include: "container", "blob". } } ], @@ -765,45 +774,80 @@ def build_get_service_properties_request(**kwargs: Any) -> HttpRequest: response.json() == { "Cors": [ { - "AllowedHeaders": "str", # Required. the request headers that the origin domain may specify on the CORS request. - "AllowedMethods": "str", # Required. The methods (HTTP request verbs) that the origin domain may use for a CORS request. (comma separated). - "AllowedOrigins": "str", # Required. The origin domains that are permitted to make a request against the storage service via CORS. The origin domain is the domain from which the request originates. Note that the origin must be an exact case-sensitive match with the origin that the user age sends to the service. You can also use the wildcard character '*' to allow all origin domains to make requests via CORS. - "ExposedHeaders": "str", # Required. The response headers that may be sent in the response to the CORS request and exposed by the browser to the request issuer. - "MaxAgeInSeconds": 0 # Required. The maximum amount time that a browser should cache the preflight OPTIONS request. + "AllowedHeaders": "str", # Required. the request headers + that the origin domain may specify on the CORS request. + "AllowedMethods": "str", # Required. The methods (HTTP + request verbs) that the origin domain may use for a CORS request. (comma + separated). + "AllowedOrigins": "str", # Required. The origin domains that + are permitted to make a request against the storage service via CORS. The + origin domain is the domain from which the request originates. Note that + the origin must be an exact case-sensitive match with the origin that the + user age sends to the service. You can also use the wildcard character + '*' to allow all origin domains to make requests via CORS. + "ExposedHeaders": "str", # Required. The response headers + that may be sent in the response to the CORS request and exposed by the + browser to the request issuer. + "MaxAgeInSeconds": 0 # Required. The maximum amount time + that a browser should cache the preflight OPTIONS request. } ], - "DefaultServiceVersion": "str", # Optional. The default version to use for requests to the Blob service if an incoming request's version is not specified. Possible values include version 2008-10-27 and all more recent versions. + "DefaultServiceVersion": "str", # Optional. The default version to use for + requests to the Blob service if an incoming request's version is not specified. + Possible values include version 2008-10-27 and all more recent versions. "DeleteRetentionPolicy": { - "Days": 0, # Optional. Indicates the number of days that metrics or logging or soft-deleted data should be retained. All data older than this value will be deleted. - "Enabled": bool # Required. Indicates whether a retention policy is enabled for the storage service. + "Days": 0, # Optional. Indicates the number of days that metrics or + logging or soft-deleted data should be retained. All data older than this + value will be deleted. + "Enabled": bool # Required. Indicates whether a retention policy is + enabled for the storage service. }, "HourMetrics": { - "Enabled": bool, # Required. Indicates whether metrics are enabled for the Blob service. - "IncludeAPIs": bool, # Optional. Indicates whether metrics should generate summary statistics for called API operations. + "Enabled": bool, # Required. Indicates whether metrics are enabled + for the Blob service. + "IncludeAPIs": bool, # Optional. Indicates whether metrics should + generate summary statistics for called API operations. "RetentionPolicy": { - "Days": 0, # Optional. Indicates the number of days that metrics or logging or soft-deleted data should be retained. All data older than this value will be deleted. - "Enabled": bool # Required. Indicates whether a retention policy is enabled for the storage service. + "Days": 0, # Optional. Indicates the number of days that + metrics or logging or soft-deleted data should be retained. All data + older than this value will be deleted. + "Enabled": bool # Required. Indicates whether a retention + policy is enabled for the storage service. }, - "Version": "str" # Optional. The version of Storage Analytics to configure. + "Version": "str" # Optional. The version of Storage Analytics to + configure. }, "Logging": { - "Delete": bool, # Required. Indicates whether all delete requests should be logged. - "Read": bool, # Required. Indicates whether all read requests should be logged. + "Delete": bool, # Required. Indicates whether all delete requests + should be logged. + "Read": bool, # Required. Indicates whether all read requests should + be logged. "RetentionPolicy": { - "Days": 0, # Optional. Indicates the number of days that metrics or logging or soft-deleted data should be retained. All data older than this value will be deleted. - "Enabled": bool # Required. Indicates whether a retention policy is enabled for the storage service. + "Days": 0, # Optional. Indicates the number of days that + metrics or logging or soft-deleted data should be retained. All data + older than this value will be deleted. + "Enabled": bool # Required. Indicates whether a retention + policy is enabled for the storage service. }, - "Version": "str", # Required. The version of Storage Analytics to configure. - "Write": bool # Required. Indicates whether all write requests should be logged. + "Version": "str", # Required. The version of Storage Analytics to + configure. + "Write": bool # Required. Indicates whether all write requests + should be logged. }, "MinuteMetrics": { - "Enabled": bool, # Required. Indicates whether metrics are enabled for the Blob service. - "IncludeAPIs": bool, # Optional. Indicates whether metrics should generate summary statistics for called API operations. + "Enabled": bool, # Required. Indicates whether metrics are enabled + for the Blob service. + "IncludeAPIs": bool, # Optional. Indicates whether metrics should + generate summary statistics for called API operations. "RetentionPolicy": { - "Days": 0, # Optional. Indicates the number of days that metrics or logging or soft-deleted data should be retained. All data older than this value will be deleted. - "Enabled": bool # Required. Indicates whether a retention policy is enabled for the storage service. + "Days": 0, # Optional. Indicates the number of days that + metrics or logging or soft-deleted data should be retained. All data + older than this value will be deleted. + "Enabled": bool # Required. Indicates whether a retention + policy is enabled for the storage service. }, - "Version": "str" # Optional. The version of Storage Analytics to configure. + "Version": "str" # Optional. The version of Storage Analytics to + configure. } } """ @@ -894,9 +938,12 @@ def build_get_acls_request(**kwargs: Any) -> HttpRequest: response.json() == [ { "AccessPolicy": { - "Expiry": "2020-02-20 00:00:00", # Required. the date-time the policy expires. - "Permission": "str", # Required. the permissions for the acl policy. - "Start": "2020-02-20 00:00:00" # Required. the date-time the policy is active. + "Expiry": "2020-02-20 00:00:00", # Required. the date-time + the policy expires. + "Permission": "str", # Required. the permissions for the acl + policy. + "Start": "2020-02-20 00:00:00" # Required. the date-time the + policy is active. }, "Id": "str" # Required. a unique id. } @@ -992,38 +1039,69 @@ def build_list_blobs_request(**kwargs: Any) -> HttpRequest: { "Deleted": bool, # Required. "Metadata": { - "str": "str" # Optional. Dictionary of :code:``. + "str": "str" # Optional. Dictionary of + :code:``. }, "Name": "str", # Required. "Properties": { - "AccessTier": "str", # Optional. Possible values include: "P4", "P6", "P10", "P20", "P30", "P40", "P50", "Hot", "Cool", "Archive". - "AccessTierInferred": bool, # Optional. Required. Properties of a blob. - "ArchiveStatus": "str", # Optional. Possible values include: "rehydrate-pending-to-hot", "rehydrate-pending-to-cool". - "BlobType": "str", # Optional. Possible values include: "BlockBlob", "PageBlob", "AppendBlob". - "Cache-Control": "str", # Optional. Required. Properties of a blob. - "Content-Disposition": "str", # Optional. Required. Properties of a blob. - "Content-Encoding": "str", # Optional. Required. Properties of a blob. - "Content-Language": "str", # Optional. Required. Properties of a blob. - "Content-Length": 0.0, # Optional. Size in bytes. - "Content-MD5": "str", # Optional. Required. Properties of a blob. - "Content-Type": "str", # Optional. Required. Properties of a blob. - "CopyCompletionTime": "2020-02-20 00:00:00", # Optional. Required. Properties of a blob. - "CopyId": "str", # Optional. Required. Properties of a blob. - "CopyProgress": "str", # Optional. Required. Properties of a blob. - "CopySource": "str", # Optional. Required. Properties of a blob. - "CopyStatus": "str", # Optional. Possible values include: "pending", "success", "aborted", "failed". - "CopyStatusDescription": "str", # Optional. Required. Properties of a blob. - "DeletedTime": "2020-02-20 00:00:00", # Optional. Required. Properties of a blob. - "DestinationSnapshot": "str", # Optional. Required. Properties of a blob. + "AccessTier": "str", # Optional. Possible + values include: "P4", "P6", "P10", "P20", "P30", "P40", "P50", + "Hot", "Cool", "Archive". + "AccessTierInferred": bool, # Optional. + Required. Properties of a blob. + "ArchiveStatus": "str", # Optional. Possible + values include: "rehydrate-pending-to-hot", + "rehydrate-pending-to-cool". + "BlobType": "str", # Optional. Possible + values include: "BlockBlob", "PageBlob", "AppendBlob". + "Cache-Control": "str", # Optional. + Required. Properties of a blob. + "Content-Disposition": "str", # Optional. + Required. Properties of a blob. + "Content-Encoding": "str", # Optional. + Required. Properties of a blob. + "Content-Language": "str", # Optional. + Required. Properties of a blob. + "Content-Length": 0.0, # Optional. Size in + bytes. + "Content-MD5": "str", # Optional. Required. + Properties of a blob. + "Content-Type": "str", # Optional. Required. + Properties of a blob. + "CopyCompletionTime": "2020-02-20 00:00:00", + # Optional. Required. Properties of a blob. + "CopyId": "str", # Optional. Required. + Properties of a blob. + "CopyProgress": "str", # Optional. Required. + Properties of a blob. + "CopySource": "str", # Optional. Required. + Properties of a blob. + "CopyStatus": "str", # Optional. Possible + values include: "pending", "success", "aborted", "failed". + "CopyStatusDescription": "str", # Optional. + Required. Properties of a blob. + "DeletedTime": "2020-02-20 00:00:00", # + Optional. Required. Properties of a blob. + "DestinationSnapshot": "str", # Optional. + Required. Properties of a blob. "Etag": "str", # Required. - "IncrementalCopy": bool, # Optional. Required. Properties of a blob. - "Last-Modified": "2020-02-20 00:00:00", # Required. - "LeaseDuration": "str", # Optional. Possible values include: "infinite", "fixed". - "LeaseState": "str", # Optional. Possible values include: "available", "leased", "expired", "breaking", "broken". - "LeaseStatus": "str", # Optional. Possible values include: "locked", "unlocked". - "RemainingRetentionDays": 0, # Optional. Required. Properties of a blob. - "ServerEncrypted": bool, # Optional. Required. Properties of a blob. - "x-ms-blob-sequence-number": 0 # Optional. Required. Properties of a blob. + "IncrementalCopy": bool, # Optional. + Required. Properties of a blob. + "Last-Modified": "2020-02-20 00:00:00", # + Required. + "LeaseDuration": "str", # Optional. Possible + values include: "infinite", "fixed". + "LeaseState": "str", # Optional. Possible + values include: "available", "leased", "expired", "breaking", + "broken". + "LeaseStatus": "str", # Optional. Possible + values include: "locked", "unlocked". + "RemainingRetentionDays": 0, # Optional. + Required. Properties of a blob. + "ServerEncrypted": bool, # Optional. + Required. Properties of a blob. + "x-ms-blob-sequence-number": 0 # Optional. + Required. Properties of a blob. }, "Snapshot": "str" # Required. } diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/XmsErrorResponseLowLevel/xmserrorresponselowlevel/_configuration.py b/test/vanilla/low-level/Expected/AcceptanceTests/XmsErrorResponseLowLevel/xmserrorresponselowlevel/_configuration.py index 15ca43a7317..d8bbf515bf2 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/XmsErrorResponseLowLevel/xmserrorresponselowlevel/_configuration.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/XmsErrorResponseLowLevel/xmserrorresponselowlevel/_configuration.py @@ -14,7 +14,7 @@ from ._version import VERSION -class XMSErrorResponseExtensionsConfiguration(Configuration): +class XMSErrorResponseExtensionsConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for XMSErrorResponseExtensions. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/XmsErrorResponseLowLevel/xmserrorresponselowlevel/_xms_error_response_extensions.py b/test/vanilla/low-level/Expected/AcceptanceTests/XmsErrorResponseLowLevel/xmserrorresponselowlevel/_xms_error_response_extensions.py index 657439ae470..99fd4503d08 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/XmsErrorResponseLowLevel/xmserrorresponselowlevel/_xms_error_response_extensions.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/XmsErrorResponseLowLevel/xmserrorresponselowlevel/_xms_error_response_extensions.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Optional, TYPE_CHECKING +from typing import Any, TYPE_CHECKING from azure.core import PipelineClient from azure.core.rest import HttpRequest, HttpResponse diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/XmsErrorResponseLowLevel/xmserrorresponselowlevel/aio/_configuration.py b/test/vanilla/low-level/Expected/AcceptanceTests/XmsErrorResponseLowLevel/xmserrorresponselowlevel/aio/_configuration.py index 6f7dc1e94db..95f1b3c4181 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/XmsErrorResponseLowLevel/xmserrorresponselowlevel/aio/_configuration.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/XmsErrorResponseLowLevel/xmserrorresponselowlevel/aio/_configuration.py @@ -14,7 +14,7 @@ from .._version import VERSION -class XMSErrorResponseExtensionsConfiguration(Configuration): +class XMSErrorResponseExtensionsConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for XMSErrorResponseExtensions. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/XmsErrorResponseLowLevel/xmserrorresponselowlevel/aio/_xms_error_response_extensions.py b/test/vanilla/low-level/Expected/AcceptanceTests/XmsErrorResponseLowLevel/xmserrorresponselowlevel/aio/_xms_error_response_extensions.py index 186346173a7..c6d548dca5e 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/XmsErrorResponseLowLevel/xmserrorresponselowlevel/aio/_xms_error_response_extensions.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/XmsErrorResponseLowLevel/xmserrorresponselowlevel/aio/_xms_error_response_extensions.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional, TYPE_CHECKING +from typing import Any, Awaitable, TYPE_CHECKING from azure.core import AsyncPipelineClient from azure.core.rest import AsyncHttpResponse, HttpRequest From 0548e3d25ac2d7e0f1182b85f48abfab21525c77 Mon Sep 17 00:00:00 2001 From: iscai-msft Date: Thu, 27 Jan 2022 16:56:18 -0500 Subject: [PATCH 2/2] regen legacy --- .../sample/_auto_rest_head_test_service.py | 2 +- .../key/credential/sample/_configuration.py | 2 +- .../aio/_auto_rest_head_test_service.py | 2 +- .../credential/sample/aio/_configuration.py | 2 +- .../operations/_http_success_operations.py | 23 +- .../operations/_http_success_operations.py | 23 +- .../sample/_auto_rest_head_test_service.py | 2 +- .../azure/basic/sample/_configuration.py | 2 +- .../aio/_auto_rest_head_test_service.py | 2 +- .../azure/basic/sample/aio/_configuration.py | 2 +- .../operations/_http_success_operations.py | 23 +- .../operations/_http_success_operations.py | 23 +- .../azure/directives/sample/_configuration.py | 2 +- .../sample/_polling_paging_example.py | 2 +- .../directives/sample/aio/_configuration.py | 2 +- .../sample/aio/_polling_paging_example.py | 2 +- .../_polling_paging_example_operations.py | 22 +- .../_polling_paging_example_operations.py | 22 +- .../sample/_auto_rest_head_test_service.py | 2 +- .../azure/mgmt/sample/_configuration.py | 2 +- .../aio/_auto_rest_head_test_service.py | 2 +- .../azure/mgmt/sample/aio/_configuration.py | 2 +- .../operations/_http_success_operations.py | 23 +- .../operations/_http_success_operations.py | 23 +- .../multiapi/sample/v1/_configuration.py | 5 +- .../sample/v1/_multiapi_service_client.py | 2 +- .../multiapi/sample/v1/aio/_configuration.py | 5 +- .../sample/v1/aio/_multiapi_service_client.py | 2 +- .../_multiapi_service_client_operations.py | 48 ++- .../_operation_group_one_operations.py | 11 +- .../_multiapi_service_client_operations.py | 48 ++- .../_operation_group_one_operations.py | 11 +- .../multiapi/sample/v2/_configuration.py | 5 +- .../sample/v2/_multiapi_service_client.py | 2 +- .../multiapi/sample/v2/aio/_configuration.py | 5 +- .../sample/v2/aio/_multiapi_service_client.py | 2 +- .../_multiapi_service_client_operations.py | 17 +- .../_operation_group_one_operations.py | 17 +- .../_operation_group_two_operations.py | 11 +- .../_multiapi_service_client_operations.py | 17 +- .../_operation_group_one_operations.py | 17 +- .../_operation_group_two_operations.py | 11 +- .../multiapi/sample/v3/_configuration.py | 5 +- .../sample/v3/_multiapi_service_client.py | 2 +- .../multiapi/sample/v3/aio/_configuration.py | 5 +- .../sample/v3/aio/_multiapi_service_client.py | 2 +- .../_multiapi_service_client_operations.py | 17 +- .../_operation_group_one_operations.py | 11 +- .../_operation_group_two_operations.py | 17 +- .../_multiapi_service_client_operations.py | 17 +- .../_operation_group_one_operations.py | 11 +- .../_operation_group_two_operations.py | 17 +- .../_auto_rest_duration_test_service.py | 2 +- .../bodyduration/_configuration.py | 2 +- .../aio/_auto_rest_duration_test_service.py | 2 +- .../bodyduration/aio/_configuration.py | 2 +- .../aio/operations/_duration_operations.py | 21 +- .../operations/_duration_operations.py | 21 +- ...to_rest_parameter_grouping_test_service.py | 2 +- .../azureparametergrouping/_configuration.py | 2 +- ...to_rest_parameter_grouping_test_service.py | 2 +- .../aio/_configuration.py | 2 +- .../_parameter_grouping_operations.py | 25 +- .../_parameter_grouping_operations.py | 25 +- .../_auto_rest_report_service_for_azure.py | 2 +- .../AzureReport/azurereport/_configuration.py | 2 +- .../_auto_rest_report_service_for_azure.py | 2 +- .../azurereport/aio/_configuration.py | 2 +- ...est_report_service_for_azure_operations.py | 9 +- ...est_report_service_for_azure_operations.py | 9 +- ...st_azure_special_parameters_test_client.py | 4 +- .../azurespecialproperties/_configuration.py | 10 +- ...st_azure_special_parameters_test_client.py | 4 +- .../aio/_configuration.py | 10 +- .../_api_version_default_operations.py | 21 +- .../_api_version_local_operations.py | 21 +- .../aio/operations/_header_operations.py | 17 +- .../aio/operations/_odata_operations.py | 9 +- .../_skip_url_encoding_operations.py | 33 +- ..._subscription_in_credentials_operations.py | 25 +- .../_subscription_in_method_operations.py | 21 +- .../_xms_client_request_id_operations.py | 13 +- .../_api_version_default_operations.py | 23 +- .../_api_version_local_operations.py | 21 +- .../operations/_header_operations.py | 17 +- .../operations/_odata_operations.py | 9 +- .../_skip_url_encoding_operations.py | 33 +- ..._subscription_in_credentials_operations.py | 33 +- .../_subscription_in_method_operations.py | 27 +- .../_xms_client_request_id_operations.py | 13 +- .../custombaseurl/_configuration.py | 2 +- .../custombaseurl/aio/_configuration.py | 2 +- .../aio/operations/_paths_operations.py | 9 +- .../operations/_paths_operations.py | 9 +- .../_auto_rest_paging_test_service.py | 2 +- .../custompollerpager/_configuration.py | 2 +- .../aio/_auto_rest_paging_test_service.py | 2 +- .../custompollerpager/aio/_configuration.py | 2 +- .../aio/operations/_paging_operations.py | 121 ++++-- .../operations/_paging_operations.py | 121 ++++-- .../custombaseurlpaging/_configuration.py | 4 +- .../custombaseurlpaging/aio/_configuration.py | 4 +- .../aio/operations/_paging_operations.py | 14 +- .../operations/_paging_operations.py | 13 +- .../Head/head/_auto_rest_head_test_service.py | 2 +- .../Head/head/_configuration.py | 2 +- .../head/aio/_auto_rest_head_test_service.py | 2 +- .../Head/head/aio/_configuration.py | 2 +- .../operations/_http_success_operations.py | 17 +- .../operations/_http_success_operations.py | 17 +- .../_auto_rest_head_exception_test_service.py | 2 +- .../headexceptions/_configuration.py | 2 +- .../_auto_rest_head_exception_test_service.py | 2 +- .../headexceptions/aio/_configuration.py | 2 +- .../operations/_head_exception_operations.py | 17 +- .../operations/_head_exception_operations.py | 17 +- .../_auto_rest_head_test_service.py | 2 +- .../_configuration.py | 2 +- .../aio/_auto_rest_head_test_service.py | 2 +- .../aio/_configuration.py | 2 +- .../operations/_http_success_operations.py | 17 +- .../operations/_http_success_operations.py | 17 +- ...est_long_running_operation_test_service.py | 2 +- .../AcceptanceTests/Lro/lro/_configuration.py | 4 +- ...est_long_running_operation_test_service.py | 2 +- .../Lro/lro/aio/_configuration.py | 4 +- .../_lr_os_custom_header_operations.py | 41 +- .../aio/operations/_lro_retrys_operations.py | 68 +-- .../lro/aio/operations/_lros_operations.py | 403 ++++++++++-------- .../lro/aio/operations/_lrosads_operations.py | 241 ++++++----- .../_lr_os_custom_header_operations.py | 41 +- .../lro/operations/_lro_retrys_operations.py | 68 +-- .../Lro/lro/operations/_lros_operations.py | 403 ++++++++++-------- .../Lro/lro/operations/_lrosads_operations.py | 241 ++++++----- .../_configuration.py | 5 +- .../aio/_configuration.py | 5 +- ...with_paramaterized_endpoints_operations.py | 23 +- ...with_paramaterized_endpoints_operations.py | 23 +- .../paging/_auto_rest_paging_test_service.py | 2 +- .../Paging/paging/_configuration.py | 2 +- .../aio/_auto_rest_paging_test_service.py | 2 +- .../Paging/paging/aio/_configuration.py | 2 +- .../aio/operations/_paging_operations.py | 85 ++-- .../paging/operations/_paging_operations.py | 85 ++-- .../storage/_configuration.py | 8 +- .../storage/_storage_management_client.py | 2 +- .../storage/aio/_configuration.py | 8 +- .../storage/aio/_storage_management_client.py | 2 +- .../_storage_accounts_operations.py | 46 +- .../aio/operations/_usage_operations.py | 9 +- .../_storage_accounts_operations.py | 60 ++- .../storage/operations/_usage_operations.py | 9 +- .../_configuration.py | 5 +- .../_microsoft_azure_test_url.py | 2 +- .../aio/_configuration.py | 5 +- .../aio/_microsoft_azure_test_url.py | 2 +- .../aio/operations/_group_operations.py | 9 +- .../operations/_group_operations.py | 9 +- .../Multiapi/multiapi/v0/_configuration.py | 5 +- .../multiapi/v0/_multiapi_service_client.py | 2 +- .../multiapi/v0/aio/_configuration.py | 5 +- .../v0/aio/_multiapi_service_client.py | 2 +- .../_operation_group_one_operations.py | 11 +- .../_operation_group_one_operations.py | 11 +- .../Multiapi/multiapi/v1/_configuration.py | 5 +- .../multiapi/v1/_multiapi_service_client.py | 2 +- .../multiapi/v1/aio/_configuration.py | 5 +- .../v1/aio/_multiapi_service_client.py | 2 +- .../_multiapi_service_client_operations.py | 48 ++- .../_operation_group_one_operations.py | 11 +- .../_multiapi_service_client_operations.py | 48 ++- .../_operation_group_one_operations.py | 11 +- .../Multiapi/multiapi/v2/_configuration.py | 5 +- .../multiapi/v2/_multiapi_service_client.py | 2 +- .../multiapi/v2/aio/_configuration.py | 5 +- .../v2/aio/_multiapi_service_client.py | 2 +- .../_multiapi_service_client_operations.py | 17 +- .../_operation_group_one_operations.py | 17 +- .../_operation_group_two_operations.py | 11 +- .../_multiapi_service_client_operations.py | 17 +- .../_operation_group_one_operations.py | 17 +- .../_operation_group_two_operations.py | 11 +- .../Multiapi/multiapi/v3/_configuration.py | 5 +- .../multiapi/v3/_multiapi_service_client.py | 2 +- .../multiapi/v3/aio/_configuration.py | 5 +- .../v3/aio/_multiapi_service_client.py | 2 +- .../_multiapi_service_client_operations.py | 17 +- .../_operation_group_one_operations.py | 11 +- .../_operation_group_two_operations.py | 17 +- .../_multiapi_service_client_operations.py | 17 +- .../_operation_group_one_operations.py | 11 +- .../_operation_group_two_operations.py | 17 +- .../v1/_configuration.py | 5 +- .../v1/_multiapi_service_client.py | 2 +- .../v1/aio/_configuration.py | 5 +- .../v1/aio/_multiapi_service_client.py | 2 +- .../_multiapi_service_client_operations.py | 48 ++- .../_operation_group_one_operations.py | 11 +- .../_multiapi_service_client_operations.py | 48 ++- .../_operation_group_one_operations.py | 11 +- .../v2/_configuration.py | 5 +- .../v2/_multiapi_service_client.py | 2 +- .../v2/aio/_configuration.py | 5 +- .../v2/aio/_multiapi_service_client.py | 2 +- .../_multiapi_service_client_operations.py | 17 +- .../_operation_group_one_operations.py | 17 +- .../_operation_group_two_operations.py | 11 +- .../_multiapi_service_client_operations.py | 17 +- .../_operation_group_one_operations.py | 17 +- .../_operation_group_two_operations.py | 11 +- .../v3/_configuration.py | 5 +- .../v3/_multiapi_service_client.py | 2 +- .../v3/aio/_configuration.py | 5 +- .../v3/aio/_multiapi_service_client.py | 2 +- .../_multiapi_service_client_operations.py | 17 +- .../_operation_group_one_operations.py | 11 +- .../_operation_group_two_operations.py | 17 +- .../_multiapi_service_client_operations.py | 17 +- .../_operation_group_one_operations.py | 11 +- .../_operation_group_two_operations.py | 17 +- .../v1/_configuration.py | 5 +- .../v1/aio/_configuration.py | 5 +- ...stom_base_url_service_client_operations.py | 11 +- ...stom_base_url_service_client_operations.py | 11 +- .../v2/_configuration.py | 5 +- .../v2/aio/_configuration.py | 5 +- ...stom_base_url_service_client_operations.py | 11 +- ...stom_base_url_service_client_operations.py | 11 +- .../multiapidataplane/v1/_configuration.py | 5 +- .../v1/_multiapi_service_client.py | 2 +- .../v1/aio/_configuration.py | 5 +- .../v1/aio/_multiapi_service_client.py | 2 +- .../_multiapi_service_client_operations.py | 48 ++- .../_operation_group_one_operations.py | 11 +- .../_multiapi_service_client_operations.py | 48 ++- .../_operation_group_one_operations.py | 11 +- .../multiapidataplane/v2/_configuration.py | 5 +- .../v2/_multiapi_service_client.py | 2 +- .../v2/aio/_configuration.py | 5 +- .../v2/aio/_multiapi_service_client.py | 2 +- .../_multiapi_service_client_operations.py | 17 +- .../_operation_group_one_operations.py | 17 +- .../_operation_group_two_operations.py | 11 +- .../_multiapi_service_client_operations.py | 17 +- .../_operation_group_one_operations.py | 17 +- .../_operation_group_two_operations.py | 11 +- .../multiapidataplane/v3/_configuration.py | 5 +- .../v3/_multiapi_service_client.py | 2 +- .../v3/aio/_configuration.py | 5 +- .../v3/aio/_multiapi_service_client.py | 2 +- .../_multiapi_service_client_operations.py | 17 +- .../_operation_group_one_operations.py | 11 +- .../_operation_group_two_operations.py | 17 +- .../_multiapi_service_client_operations.py | 17 +- .../_operation_group_one_operations.py | 11 +- .../_operation_group_two_operations.py | 17 +- .../multiapinoasync/v1/_configuration.py | 5 +- .../v1/_multiapi_service_client.py | 2 +- .../_multiapi_service_client_operations.py | 48 ++- .../_operation_group_one_operations.py | 11 +- .../multiapinoasync/v2/_configuration.py | 5 +- .../v2/_multiapi_service_client.py | 2 +- .../_multiapi_service_client_operations.py | 17 +- .../_operation_group_one_operations.py | 17 +- .../_operation_group_two_operations.py | 11 +- .../multiapinoasync/v3/_configuration.py | 5 +- .../v3/_multiapi_service_client.py | 2 +- .../_multiapi_service_client_operations.py | 17 +- .../_operation_group_one_operations.py | 11 +- .../_operation_group_two_operations.py | 17 +- .../submodule/v1/_configuration.py | 5 +- .../submodule/v1/_multiapi_service_client.py | 2 +- .../submodule/v1/aio/_configuration.py | 5 +- .../v1/aio/_multiapi_service_client.py | 2 +- .../_multiapi_service_client_operations.py | 48 ++- .../_operation_group_one_operations.py | 11 +- .../_multiapi_service_client_operations.py | 48 ++- .../_operation_group_one_operations.py | 11 +- .../submodule/v2/_configuration.py | 5 +- .../submodule/v2/_multiapi_service_client.py | 2 +- .../submodule/v2/aio/_configuration.py | 5 +- .../v2/aio/_multiapi_service_client.py | 2 +- .../_multiapi_service_client_operations.py | 17 +- .../_operation_group_one_operations.py | 17 +- .../_operation_group_two_operations.py | 11 +- .../_multiapi_service_client_operations.py | 17 +- .../_operation_group_one_operations.py | 17 +- .../_operation_group_two_operations.py | 11 +- .../submodule/v3/_configuration.py | 5 +- .../submodule/v3/_multiapi_service_client.py | 2 +- .../submodule/v3/aio/_configuration.py | 5 +- .../v3/aio/_multiapi_service_client.py | 2 +- .../_multiapi_service_client_operations.py | 17 +- .../_operation_group_one_operations.py | 11 +- .../_operation_group_two_operations.py | 17 +- .../_multiapi_service_client_operations.py | 17 +- .../_operation_group_one_operations.py | 11 +- .../_operation_group_two_operations.py | 17 +- .../_additional_properties_client.py | 2 +- .../additionalproperties/_configuration.py | 2 +- .../aio/_additional_properties_client.py | 2 +- .../aio/_configuration.py | 2 +- .../aio/operations/_pets_operations.py | 29 +- .../operations/_pets_operations.py | 29 +- .../Anything/anything/_anything_client.py | 5 +- .../Anything/anything/_configuration.py | 2 +- .../Anything/anything/aio/_anything_client.py | 5 +- .../Anything/anything/aio/_configuration.py | 2 +- .../operations/_anything_client_operations.py | 29 +- .../operations/_anything_client_operations.py | 29 +- .../_auto_rest_swagger_bat_array_service.py | 2 +- .../BodyArray/bodyarray/_configuration.py | 2 +- .../_auto_rest_swagger_bat_array_service.py | 2 +- .../BodyArray/bodyarray/aio/_configuration.py | 2 +- .../aio/operations/_array_operations.py | 283 ++++++++---- .../bodyarray/operations/_array_operations.py | 283 ++++++++---- .../_auto_rest_swagger_bat_array_service.py | 2 +- .../vanilla/body/array/_configuration.py | 2 +- .../_auto_rest_swagger_bat_array_service.py | 2 +- .../vanilla/body/array/aio/_configuration.py | 2 +- .../array/aio/operations/_array_operations.py | 283 ++++++++---- .../array/operations/_array_operations.py | 283 ++++++++---- .../_auto_rest_swagger_bat_array_service.py | 2 +- .../_configuration.py | 2 +- .../_auto_rest_swagger_bat_array_service.py | 2 +- .../aio/_configuration.py | 2 +- .../aio/operations/_array_operations.py | 283 ++++++++---- .../operations/_array_operations.py | 283 ++++++++---- .../operations/_array_operations_py3.py | 283 ++++++++---- .../_binarywithcontent_typeapplicationjson.py | 2 +- .../BodyBinary/bodybinary/_configuration.py | 2 +- .../_binarywithcontent_typeapplicationjson.py | 2 +- .../bodybinary/aio/_configuration.py | 2 +- .../aio/operations/_upload_operations.py | 13 +- .../operations/_upload_operations.py | 13 +- .../_auto_rest_bool_test_service.py | 2 +- .../BodyBoolean/bodyboolean/_configuration.py | 2 +- .../aio/_auto_rest_bool_test_service.py | 2 +- .../bodyboolean/aio/_configuration.py | 2 +- .../aio/operations/_bool_operations.py | 29 +- .../operations/_bool_operations.py | 29 +- .../_auto_rest_swagger_bat_byte_service.py | 2 +- .../BodyByte/bodybyte/_configuration.py | 2 +- .../_auto_rest_swagger_bat_byte_service.py | 2 +- .../BodyByte/bodybyte/aio/_configuration.py | 2 +- .../aio/operations/_byte_operations.py | 25 +- .../bodybyte/operations/_byte_operations.py | 25 +- .../bodybytewithpackagename/_class_name.py | 2 +- .../bodybytewithpackagename/_configuration.py | 2 +- .../aio/_class_name.py | 2 +- .../aio/_configuration.py | 2 +- .../aio/operations/_byte_operations.py | 25 +- .../operations/_byte_operations.py | 25 +- .../_auto_rest_complex_test_service.py | 4 +- .../BodyComplex/bodycomplex/_configuration.py | 5 +- .../aio/_auto_rest_complex_test_service.py | 4 +- .../bodycomplex/aio/_configuration.py | 5 +- .../aio/operations/_array_operations.py | 25 +- .../aio/operations/_basic_operations.py | 29 +- .../aio/operations/_dictionary_operations.py | 29 +- .../operations/_flattencomplex_operations.py | 9 +- .../aio/operations/_inheritance_operations.py | 13 +- .../_polymorphicrecursive_operations.py | 13 +- .../operations/_polymorphism_operations.py | 41 +- .../aio/operations/_primitive_operations.py | 95 +++-- .../_readonlyproperty_operations.py | 13 +- .../operations/_array_operations.py | 25 +- .../operations/_basic_operations.py | 29 +- .../operations/_dictionary_operations.py | 29 +- .../operations/_flattencomplex_operations.py | 9 +- .../operations/_inheritance_operations.py | 13 +- .../_polymorphicrecursive_operations.py | 13 +- .../operations/_polymorphism_operations.py | 41 +- .../operations/_primitive_operations.py | 95 +++-- .../_readonlyproperty_operations.py | 13 +- .../_auto_rest_complex_test_service.py | 4 +- .../bodycomplexpython3only/_configuration.py | 5 +- .../aio/_auto_rest_complex_test_service.py | 4 +- .../aio/_configuration.py | 5 +- .../aio/operations/_array_operations.py | 25 +- .../aio/operations/_basic_operations.py | 29 +- .../aio/operations/_dictionary_operations.py | 29 +- .../operations/_flattencomplex_operations.py | 9 +- .../aio/operations/_inheritance_operations.py | 13 +- .../_polymorphicrecursive_operations.py | 13 +- .../operations/_polymorphism_operations.py | 41 +- .../aio/operations/_primitive_operations.py | 95 +++-- .../_readonlyproperty_operations.py | 13 +- .../operations/_array_operations.py | 25 +- .../operations/_basic_operations.py | 29 +- .../operations/_dictionary_operations.py | 29 +- .../operations/_flattencomplex_operations.py | 9 +- .../operations/_inheritance_operations.py | 13 +- .../_polymorphicrecursive_operations.py | 13 +- .../operations/_polymorphism_operations.py | 41 +- .../operations/_primitive_operations.py | 95 +++-- .../_readonlyproperty_operations.py | 13 +- .../bodydate/_auto_rest_date_test_service.py | 2 +- .../BodyDate/bodydate/_configuration.py | 2 +- .../aio/_auto_rest_date_test_service.py | 2 +- .../BodyDate/bodydate/aio/_configuration.py | 2 +- .../aio/operations/_date_operations.py | 37 +- .../bodydate/operations/_date_operations.py | 37 +- .../_auto_rest_date_time_test_service.py | 2 +- .../bodydatetime/_configuration.py | 2 +- .../aio/_auto_rest_date_time_test_service.py | 2 +- .../bodydatetime/aio/_configuration.py | 2 +- .../aio/operations/_datetime_operations.py | 95 +++-- .../operations/_datetime_operations.py | 95 +++-- ...uto_rest_rfc1123_date_time_test_service.py | 2 +- .../bodydatetimerfc1123/_configuration.py | 2 +- ...uto_rest_rfc1123_date_time_test_service.py | 2 +- .../bodydatetimerfc1123/aio/_configuration.py | 2 +- .../operations/_datetimerfc1123_operations.py | 41 +- .../operations/_datetimerfc1123_operations.py | 41 +- ...uto_rest_swagger_ba_tdictionary_service.py | 2 +- .../bodydictionary/_configuration.py | 2 +- ...uto_rest_swagger_ba_tdictionary_service.py | 2 +- .../bodydictionary/aio/_configuration.py | 2 +- .../aio/operations/_dictionary_operations.py | 267 +++++++++--- .../operations/_dictionary_operations.py | 267 +++++++++--- .../_auto_rest_duration_test_service.py | 2 +- .../bodyduration/_configuration.py | 2 +- .../aio/_auto_rest_duration_test_service.py | 2 +- .../bodyduration/aio/_configuration.py | 2 +- .../aio/operations/_duration_operations.py | 21 +- .../operations/_duration_operations.py | 21 +- .../_auto_rest_swagger_bat_file_service.py | 2 +- .../BodyFile/bodyfile/_configuration.py | 2 +- .../_auto_rest_swagger_bat_file_service.py | 2 +- .../BodyFile/bodyfile/aio/_configuration.py | 2 +- .../aio/operations/_files_operations.py | 17 +- .../bodyfile/operations/_files_operations.py | 17 +- ...auto_rest_swagger_bat_form_data_service.py | 2 +- .../bodyformdata/_configuration.py | 2 +- ...auto_rest_swagger_bat_form_data_service.py | 2 +- .../bodyformdata/aio/_configuration.py | 2 +- .../aio/operations/_formdata_operations.py | 17 +- .../operations/_formdata_operations.py | 17 +- .../_body_forms_data_url_encoded.py | 2 +- .../bodyformurlencodeddata/_configuration.py | 2 +- .../aio/_body_forms_data_url_encoded.py | 2 +- .../aio/_configuration.py | 2 +- .../_formdataurlencoded_operations.py | 13 +- .../_formdataurlencoded_operations.py | 13 +- .../_auto_rest_integer_test_service.py | 2 +- .../BodyInteger/bodyinteger/_configuration.py | 2 +- .../aio/_auto_rest_integer_test_service.py | 2 +- .../bodyinteger/aio/_configuration.py | 2 +- .../aio/operations/_int_operations.py | 61 ++- .../bodyinteger/operations/_int_operations.py | 61 ++- .../_auto_rest_number_test_service.py | 2 +- .../BodyNumber/bodynumber/_configuration.py | 2 +- .../aio/_auto_rest_number_test_service.py | 2 +- .../bodynumber/aio/_configuration.py | 2 +- .../aio/operations/_number_operations.py | 103 +++-- .../operations/_number_operations.py | 103 +++-- .../_auto_rest_swagger_bat_service.py | 2 +- .../BodyString/bodystring/_configuration.py | 2 +- .../aio/_auto_rest_swagger_bat_service.py | 2 +- .../bodystring/aio/_configuration.py | 2 +- .../aio/operations/_enum_operations.py | 29 +- .../aio/operations/_string_operations.py | 57 ++- .../bodystring/operations/_enum_operations.py | 29 +- .../operations/_string_operations.py | 57 ++- .../bodytime/_auto_rest_time_test_service.py | 2 +- .../BodyTime/bodytime/_configuration.py | 2 +- .../aio/_auto_rest_time_test_service.py | 2 +- .../BodyTime/bodytime/aio/_configuration.py | 2 +- .../aio/operations/_time_operations.py | 13 +- .../bodytime/operations/_time_operations.py | 13 +- .../_auto_rest_swagger_constant_service.py | 2 +- .../Constants/constants/_configuration.py | 14 +- .../_auto_rest_swagger_constant_service.py | 2 +- .../Constants/constants/aio/_configuration.py | 14 +- .../aio/operations/_contants_operations.py | 73 +++- .../operations/_contants_operations.py | 73 +++- .../custombaseurl/_configuration.py | 2 +- .../custombaseurl/aio/_configuration.py | 2 +- .../aio/operations/_paths_operations.py | 9 +- .../operations/_paths_operations.py | 9 +- .../_configuration.py | 7 +- .../aio/_configuration.py | 7 +- .../aio/operations/_paths_operations.py | 9 +- .../operations/_paths_operations.py | 9 +- .../extensibleenumsswagger/_configuration.py | 2 +- .../extensibleenumsswagger/_pet_store_inc.py | 2 +- .../aio/_configuration.py | 2 +- .../aio/_pet_store_inc.py | 2 +- .../aio/operations/_pet_operations.py | 13 +- .../operations/_pet_operations.py | 13 +- .../_auto_rest_swagger_bat_header_service.py | 2 +- .../Header/header/_configuration.py | 2 +- .../_auto_rest_swagger_bat_header_service.py | 2 +- .../Header/header/aio/_configuration.py | 2 +- .../aio/operations/_header_operations.py | 123 ++++-- .../header/operations/_header_operations.py | 123 ++++-- ...o_rest_http_infrastructure_test_service.py | 4 +- .../Http/httpinfrastructure/_configuration.py | 2 +- ...o_rest_http_infrastructure_test_service.py | 4 +- .../httpinfrastructure/aio/_configuration.py | 2 +- .../_http_client_failure_operations.py | 111 +++-- .../operations/_http_failure_operations.py | 17 +- .../operations/_http_redirects_operations.py | 69 ++- .../aio/operations/_http_retry_operations.py | 41 +- .../_http_server_failure_operations.py | 21 +- .../operations/_http_success_operations.py | 81 +++- .../_multiple_responses_operations.py | 143 +++++-- .../_http_client_failure_operations.py | 111 +++-- .../operations/_http_failure_operations.py | 17 +- .../operations/_http_redirects_operations.py | 69 ++- .../operations/_http_retry_operations.py | 41 +- .../_http_server_failure_operations.py | 21 +- .../operations/_http_success_operations.py | 81 +++- .../_multiple_responses_operations.py | 143 +++++-- .../incorrecterrorresponse/_configuration.py | 2 +- .../_incorrect_returned_error_model.py | 5 +- .../aio/_configuration.py | 2 +- .../aio/_incorrect_returned_error_model.py | 5 +- ...correct_returned_error_model_operations.py | 9 +- ...correct_returned_error_model_operations.py | 9 +- .../MediaTypes/mediatypes/_configuration.py | 2 +- .../mediatypes/_media_types_client.py | 2 +- .../mediatypes/aio/_configuration.py | 2 +- .../mediatypes/aio/_media_types_client.py | 2 +- .../_media_types_client_operations.py | 29 +- .../_media_types_client_operations.py | 29 +- .../mergepatchjson/_configuration.py | 2 +- .../_merge_patch_json_client.py | 2 +- .../mergepatchjson/aio/_configuration.py | 2 +- .../aio/_merge_patch_json_client.py | 2 +- .../_merge_patch_json_client_operations.py | 9 +- .../_merge_patch_json_client_operations.py | 9 +- ...o_rest_resource_flattening_test_service.py | 2 +- .../modelflattening/_configuration.py | 2 +- ...o_rest_resource_flattening_test_service.py | 2 +- .../modelflattening/aio/_configuration.py | 2 +- ...urce_flattening_test_service_operations.py | 49 ++- ...urce_flattening_test_service_operations.py | 49 ++- .../multipleinheritance/_configuration.py | 2 +- .../_multiple_inheritance_service_client.py | 2 +- .../multipleinheritance/aio/_configuration.py | 2 +- .../_multiple_inheritance_service_client.py | 2 +- ...e_inheritance_service_client_operations.py | 45 +- ...e_inheritance_service_client_operations.py | 45 +- .../nonstringenums/_configuration.py | 2 +- .../_non_string_enums_client.py | 2 +- .../nonstringenums/aio/_configuration.py | 2 +- .../aio/_non_string_enums_client.py | 2 +- .../aio/operations/_float_operations.py | 13 +- .../aio/operations/_int_operations.py | 13 +- .../operations/_float_operations.py | 13 +- .../operations/_int_operations.py | 13 +- .../ObjectType/objecttype/_configuration.py | 2 +- .../objecttype/_object_type_client.py | 2 +- .../objecttype/aio/_configuration.py | 2 +- .../objecttype/aio/_object_type_client.py | 2 +- .../_object_type_client_operations.py | 13 +- .../_object_type_client_operations.py | 13 +- .../_auto_rest_parameter_flattening.py | 2 +- .../parameterflattening/_configuration.py | 2 +- .../aio/_auto_rest_parameter_flattening.py | 2 +- .../parameterflattening/aio/_configuration.py | 2 +- .../_availability_sets_operations.py | 9 +- .../_availability_sets_operations.py | 9 +- .../parameterizedendpoint/_configuration.py | 2 +- .../aio/_configuration.py | 2 +- ...parmaterized_endpoint_client_operations.py | 9 +- ...parmaterized_endpoint_client_operations.py | 9 +- .../report/_auto_rest_report_service.py | 2 +- .../Report/report/_configuration.py | 2 +- .../report/aio/_auto_rest_report_service.py | 2 +- .../Report/report/aio/_configuration.py | 2 +- .../_auto_rest_report_service_operations.py | 13 +- .../_auto_rest_report_service_operations.py | 13 +- .../requiredoptional/_configuration.py | 2 +- .../requiredoptional/aio/_configuration.py | 2 +- .../aio/operations/_explicit_operations.py | 103 +++-- .../aio/operations/_implicit_operations.py | 37 +- .../operations/_explicit_operations.py | 103 +++-- .../operations/_implicit_operations.py | 37 +- .../reservedwords/_configuration.py | 2 +- .../reservedwords/_reserved_words_client.py | 2 +- .../reservedwords/aio/_configuration.py | 2 +- .../aio/_reserved_words_client.py | 2 +- .../_import_operations_operations.py | 9 +- .../_reserved_words_client_operations.py | 21 +- .../_import_operations_operations.py | 9 +- .../_reserved_words_client_operations.py | 21 +- .../AcceptanceTests/Url/url/_configuration.py | 2 +- .../Url/url/aio/_configuration.py | 2 +- .../aio/operations/_path_items_operations.py | 21 +- .../url/aio/operations/_paths_operations.py | 115 +++-- .../url/aio/operations/_queries_operations.py | 147 +++++-- .../url/operations/_path_items_operations.py | 29 +- .../Url/url/operations/_paths_operations.py | 119 ++++-- .../Url/url/operations/_queries_operations.py | 147 +++++-- ...rl_mutli_collection_format_test_service.py | 2 +- .../_configuration.py | 4 +- ...rl_mutli_collection_format_test_service.py | 2 +- .../aio/_configuration.py | 4 +- .../aio/operations/_queries_operations.py | 17 +- .../operations/_queries_operations.py | 17 +- .../validation/_auto_rest_validation_test.py | 2 +- .../Validation/validation/_configuration.py | 5 +- .../aio/_auto_rest_validation_test.py | 2 +- .../validation/aio/_configuration.py | 5 +- .../_auto_rest_validation_test_operations.py | 21 +- .../_auto_rest_validation_test_operations.py | 21 +- .../_auto_rest_swagger_batxml_service.py | 2 +- .../Xml/xmlservice/_configuration.py | 2 +- .../aio/_auto_rest_swagger_batxml_service.py | 2 +- .../Xml/xmlservice/aio/_configuration.py | 2 +- .../aio/operations/_xml_operations.py | 143 +++++-- .../xmlservice/operations/_xml_operations.py | 143 +++++-- .../xmserrorresponse/_configuration.py | 2 +- .../_xms_error_response_extensions.py | 2 +- .../xmserrorresponse/aio/_configuration.py | 2 +- .../aio/_xms_error_response_extensions.py | 2 +- .../aio/operations/_pet_operations.py | 17 +- .../operations/_pet_operations.py | 17 +- 621 files changed, 9164 insertions(+), 4354 deletions(-) diff --git a/docs/samples/specification/azure_key_credential/generated/azure/key/credential/sample/_auto_rest_head_test_service.py b/docs/samples/specification/azure_key_credential/generated/azure/key/credential/sample/_auto_rest_head_test_service.py index f713bf7049d..5acb3311102 100644 --- a/docs/samples/specification/azure_key_credential/generated/azure/key/credential/sample/_auto_rest_head_test_service.py +++ b/docs/samples/specification/azure_key_credential/generated/azure/key/credential/sample/_auto_rest_head_test_service.py @@ -17,7 +17,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Dict, Optional + from typing import Any, Dict from azure.core.credentials import AzureKeyCredential from azure.core.rest import HttpRequest, HttpResponse diff --git a/docs/samples/specification/azure_key_credential/generated/azure/key/credential/sample/_configuration.py b/docs/samples/specification/azure_key_credential/generated/azure/key/credential/sample/_configuration.py index 0c078e3bc0a..93e8ddb5991 100644 --- a/docs/samples/specification/azure_key_credential/generated/azure/key/credential/sample/_configuration.py +++ b/docs/samples/specification/azure_key_credential/generated/azure/key/credential/sample/_configuration.py @@ -20,7 +20,7 @@ from azure.core.credentials import AzureKeyCredential -class AutoRestHeadTestServiceConfiguration(Configuration): +class AutoRestHeadTestServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestHeadTestService. Note that all parameters used to create this instance are saved as instance diff --git a/docs/samples/specification/azure_key_credential/generated/azure/key/credential/sample/aio/_auto_rest_head_test_service.py b/docs/samples/specification/azure_key_credential/generated/azure/key/credential/sample/aio/_auto_rest_head_test_service.py index 2f7e5641698..e9bd56903bd 100644 --- a/docs/samples/specification/azure_key_credential/generated/azure/key/credential/sample/aio/_auto_rest_head_test_service.py +++ b/docs/samples/specification/azure_key_credential/generated/azure/key/credential/sample/aio/_auto_rest_head_test_service.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional, TYPE_CHECKING +from typing import Any, Awaitable, TYPE_CHECKING from azure.core import AsyncPipelineClient from azure.core.credentials import AzureKeyCredential diff --git a/docs/samples/specification/azure_key_credential/generated/azure/key/credential/sample/aio/_configuration.py b/docs/samples/specification/azure_key_credential/generated/azure/key/credential/sample/aio/_configuration.py index a083186545b..24eb69f4096 100644 --- a/docs/samples/specification/azure_key_credential/generated/azure/key/credential/sample/aio/_configuration.py +++ b/docs/samples/specification/azure_key_credential/generated/azure/key/credential/sample/aio/_configuration.py @@ -15,7 +15,7 @@ from .._version import VERSION -class AutoRestHeadTestServiceConfiguration(Configuration): +class AutoRestHeadTestServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestHeadTestService. Note that all parameters used to create this instance are saved as instance 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 0e3f3f07c62..8f242475fd9 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse @@ -63,7 +62,11 @@ async def head200( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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, 404]: @@ -101,7 +104,11 @@ async def head204( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [204, 404]: @@ -139,7 +146,11 @@ async def head404( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [204, 404]: 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 d439759101d..110aa76ffe3 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse @@ -20,7 +19,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar + from typing import Any, Callable, Dict, Optional, TypeVar T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -114,7 +113,11 @@ def head200( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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, 404]: @@ -153,7 +156,11 @@ def head204( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [204, 404]: @@ -192,7 +199,11 @@ def head404( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [204, 404]: diff --git a/docs/samples/specification/basic/generated/azure/basic/sample/_auto_rest_head_test_service.py b/docs/samples/specification/basic/generated/azure/basic/sample/_auto_rest_head_test_service.py index 4177fead376..1442ace7def 100644 --- a/docs/samples/specification/basic/generated/azure/basic/sample/_auto_rest_head_test_service.py +++ b/docs/samples/specification/basic/generated/azure/basic/sample/_auto_rest_head_test_service.py @@ -17,7 +17,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Dict, Optional + from typing import Any, Dict from azure.core.rest import HttpRequest, HttpResponse diff --git a/docs/samples/specification/basic/generated/azure/basic/sample/_configuration.py b/docs/samples/specification/basic/generated/azure/basic/sample/_configuration.py index 5bcc364b7cd..177e17de72f 100644 --- a/docs/samples/specification/basic/generated/azure/basic/sample/_configuration.py +++ b/docs/samples/specification/basic/generated/azure/basic/sample/_configuration.py @@ -18,7 +18,7 @@ from typing import Any -class AutoRestHeadTestServiceConfiguration(Configuration): +class AutoRestHeadTestServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestHeadTestService. Note that all parameters used to create this instance are saved as instance diff --git a/docs/samples/specification/basic/generated/azure/basic/sample/aio/_auto_rest_head_test_service.py b/docs/samples/specification/basic/generated/azure/basic/sample/aio/_auto_rest_head_test_service.py index fdea0675c1c..5a36b5e9d47 100644 --- a/docs/samples/specification/basic/generated/azure/basic/sample/aio/_auto_rest_head_test_service.py +++ b/docs/samples/specification/basic/generated/azure/basic/sample/aio/_auto_rest_head_test_service.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional, TYPE_CHECKING +from typing import Any, Awaitable, TYPE_CHECKING from azure.core import AsyncPipelineClient from azure.core.rest import AsyncHttpResponse, HttpRequest diff --git a/docs/samples/specification/basic/generated/azure/basic/sample/aio/_configuration.py b/docs/samples/specification/basic/generated/azure/basic/sample/aio/_configuration.py index 7e46511ac0b..2d2f08e863a 100644 --- a/docs/samples/specification/basic/generated/azure/basic/sample/aio/_configuration.py +++ b/docs/samples/specification/basic/generated/azure/basic/sample/aio/_configuration.py @@ -14,7 +14,7 @@ from .._version import VERSION -class AutoRestHeadTestServiceConfiguration(Configuration): +class AutoRestHeadTestServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestHeadTestService. Note that all parameters used to create this instance are saved as instance 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 0e3f3f07c62..8f242475fd9 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse @@ -63,7 +62,11 @@ async def head200( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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, 404]: @@ -101,7 +104,11 @@ async def head204( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [204, 404]: @@ -139,7 +146,11 @@ async def head404( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [204, 404]: 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 d439759101d..110aa76ffe3 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse @@ -20,7 +19,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar + from typing import Any, Callable, Dict, Optional, TypeVar T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -114,7 +113,11 @@ def head200( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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, 404]: @@ -153,7 +156,11 @@ def head204( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [204, 404]: @@ -192,7 +199,11 @@ def head404( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [204, 404]: diff --git a/docs/samples/specification/directives/generated/azure/directives/sample/_configuration.py b/docs/samples/specification/directives/generated/azure/directives/sample/_configuration.py index 54d68458231..ba6eb9dc80f 100644 --- a/docs/samples/specification/directives/generated/azure/directives/sample/_configuration.py +++ b/docs/samples/specification/directives/generated/azure/directives/sample/_configuration.py @@ -18,7 +18,7 @@ from typing import Any -class PollingPagingExampleConfiguration(Configuration): +class PollingPagingExampleConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for PollingPagingExample. Note that all parameters used to create this instance are saved as instance diff --git a/docs/samples/specification/directives/generated/azure/directives/sample/_polling_paging_example.py b/docs/samples/specification/directives/generated/azure/directives/sample/_polling_paging_example.py index e9f089c23b4..21f2c3d13eb 100644 --- a/docs/samples/specification/directives/generated/azure/directives/sample/_polling_paging_example.py +++ b/docs/samples/specification/directives/generated/azure/directives/sample/_polling_paging_example.py @@ -18,7 +18,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Optional + from typing import Any from azure.core.rest import HttpRequest, HttpResponse diff --git a/docs/samples/specification/directives/generated/azure/directives/sample/aio/_configuration.py b/docs/samples/specification/directives/generated/azure/directives/sample/aio/_configuration.py index f48b2dc0827..61a30b50d65 100644 --- a/docs/samples/specification/directives/generated/azure/directives/sample/aio/_configuration.py +++ b/docs/samples/specification/directives/generated/azure/directives/sample/aio/_configuration.py @@ -14,7 +14,7 @@ from .._version import VERSION -class PollingPagingExampleConfiguration(Configuration): +class PollingPagingExampleConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for PollingPagingExample. Note that all parameters used to create this instance are saved as instance diff --git a/docs/samples/specification/directives/generated/azure/directives/sample/aio/_polling_paging_example.py b/docs/samples/specification/directives/generated/azure/directives/sample/aio/_polling_paging_example.py index 63a4d9e626d..59164814b3d 100644 --- a/docs/samples/specification/directives/generated/azure/directives/sample/aio/_polling_paging_example.py +++ b/docs/samples/specification/directives/generated/azure/directives/sample/aio/_polling_paging_example.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional +from typing import Any, Awaitable from azure.core import AsyncPipelineClient from azure.core.rest import AsyncHttpResponse, HttpRequest 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 069e374924b..206af0b29e0 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar, Union -import warnings +from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar, Union from azure.core.async_paging import AsyncList from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error @@ -53,7 +52,11 @@ async def _basic_polling_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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, 204]: @@ -96,7 +99,7 @@ async def begin_basic_polling( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] - polling = kwargs.pop('polling', True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop('cls', None) # type: ClsType["_models.Product"] lro_delay = kwargs.pop( 'polling_interval', @@ -130,8 +133,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output ) - else: - return AsyncCustomPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncCustomPoller(self._client, raw_result, get_long_running_output, polling_method) begin_basic_polling.metadata = {'url': '/basic/polling'} # type: ignore @@ -181,7 +183,11 @@ async def extract_data(pipeline_response): async def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 e66accd9423..22762872465 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse @@ -23,7 +22,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar, Union + from typing import Any, Callable, Dict, Iterable, Optional, TypeVar, Union T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -104,7 +103,11 @@ def _basic_polling_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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, 204]: @@ -147,7 +150,7 @@ def begin_basic_polling( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] - polling = kwargs.pop('polling', True) # type: Union[bool, azure.core.polling.PollingMethod] + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] cls = kwargs.pop('cls', None) # type: ClsType["_models.Product"] lro_delay = kwargs.pop( 'polling_interval', @@ -181,8 +184,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output ) - else: - return CustomPoller(self._client, raw_result, get_long_running_output, polling_method) + return CustomPoller(self._client, raw_result, get_long_running_output, polling_method) begin_basic_polling.metadata = {'url': '/basic/polling'} # type: ignore @@ -233,7 +235,11 @@ def extract_data(pipeline_response): def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/docs/samples/specification/management/generated/azure/mgmt/sample/_auto_rest_head_test_service.py b/docs/samples/specification/management/generated/azure/mgmt/sample/_auto_rest_head_test_service.py index 1b5177a2631..86d0611545f 100644 --- a/docs/samples/specification/management/generated/azure/mgmt/sample/_auto_rest_head_test_service.py +++ b/docs/samples/specification/management/generated/azure/mgmt/sample/_auto_rest_head_test_service.py @@ -17,7 +17,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Dict, Optional + from typing import Any, Dict from azure.core.credentials import TokenCredential from azure.core.rest import HttpRequest, HttpResponse diff --git a/docs/samples/specification/management/generated/azure/mgmt/sample/_configuration.py b/docs/samples/specification/management/generated/azure/mgmt/sample/_configuration.py index 705b8163edb..db4eeeafa5a 100644 --- a/docs/samples/specification/management/generated/azure/mgmt/sample/_configuration.py +++ b/docs/samples/specification/management/generated/azure/mgmt/sample/_configuration.py @@ -21,7 +21,7 @@ from azure.core.credentials import TokenCredential -class AutoRestHeadTestServiceConfiguration(Configuration): +class AutoRestHeadTestServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestHeadTestService. Note that all parameters used to create this instance are saved as instance diff --git a/docs/samples/specification/management/generated/azure/mgmt/sample/aio/_auto_rest_head_test_service.py b/docs/samples/specification/management/generated/azure/mgmt/sample/aio/_auto_rest_head_test_service.py index a9661ead7c9..5d77e42627b 100644 --- a/docs/samples/specification/management/generated/azure/mgmt/sample/aio/_auto_rest_head_test_service.py +++ b/docs/samples/specification/management/generated/azure/mgmt/sample/aio/_auto_rest_head_test_service.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional, TYPE_CHECKING +from typing import Any, Awaitable, TYPE_CHECKING from azure.core.rest import AsyncHttpResponse, HttpRequest from azure.mgmt.core import AsyncARMPipelineClient diff --git a/docs/samples/specification/management/generated/azure/mgmt/sample/aio/_configuration.py b/docs/samples/specification/management/generated/azure/mgmt/sample/aio/_configuration.py index 666f4a20d94..2b2707fd554 100644 --- a/docs/samples/specification/management/generated/azure/mgmt/sample/aio/_configuration.py +++ b/docs/samples/specification/management/generated/azure/mgmt/sample/aio/_configuration.py @@ -19,7 +19,7 @@ from azure.core.credentials_async import AsyncTokenCredential -class AutoRestHeadTestServiceConfiguration(Configuration): +class AutoRestHeadTestServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestHeadTestService. Note that all parameters used to create this instance are saved as instance 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 3de2b6afda7..614687053ae 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse @@ -64,7 +63,11 @@ async def head200( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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, 404]: @@ -103,7 +106,11 @@ async def head204( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [204, 404]: @@ -142,7 +149,11 @@ async def head404( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [204, 404]: 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 6b1f352feb8..20ac9f413f2 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse @@ -21,7 +20,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar + from typing import Any, Callable, Dict, Optional, TypeVar T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -115,7 +114,11 @@ def head200( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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, 404]: @@ -155,7 +158,11 @@ def head204( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [204, 404]: @@ -195,7 +202,11 @@ def head404( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [204, 404]: diff --git a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v1/_configuration.py b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v1/_configuration.py index 059c153122f..3cd59d5a2b6 100644 --- a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v1/_configuration.py +++ b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v1/_configuration.py @@ -20,7 +20,7 @@ VERSION = "unknown" -class MultiapiServiceClientConfiguration(Configuration): +class MultiapiServiceClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for MultiapiServiceClient. Note that all parameters used to create this instance are saved as instance @@ -28,7 +28,8 @@ class MultiapiServiceClientConfiguration(Configuration): :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials.TokenCredential - :keyword api_version: Api Version. The default value is "1.0.0". Note that overriding this default value may result in unsupported behavior. + :keyword api_version: Api Version. The default value is "1.0.0". Note that overriding this + default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v1/_multiapi_service_client.py b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v1/_multiapi_service_client.py index 723516952c7..6612085aeef 100644 --- a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v1/_multiapi_service_client.py +++ b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v1/_multiapi_service_client.py @@ -18,7 +18,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Optional + from typing import Any from azure.core.credentials import TokenCredential from azure.core.rest import HttpRequest, HttpResponse diff --git a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v1/aio/_configuration.py b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v1/aio/_configuration.py index f500f5b4ae9..91b58402d4b 100644 --- a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v1/aio/_configuration.py +++ b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v1/aio/_configuration.py @@ -18,7 +18,7 @@ VERSION = "unknown" -class MultiapiServiceClientConfiguration(Configuration): +class MultiapiServiceClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for MultiapiServiceClient. Note that all parameters used to create this instance are saved as instance @@ -26,7 +26,8 @@ class MultiapiServiceClientConfiguration(Configuration): :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials_async.AsyncTokenCredential - :keyword api_version: Api Version. The default value is "1.0.0". Note that overriding this default value may result in unsupported behavior. + :keyword api_version: Api Version. The default value is "1.0.0". Note that overriding this + default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v1/aio/_multiapi_service_client.py b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v1/aio/_multiapi_service_client.py index db9ea584bc7..21aa146c06c 100644 --- a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v1/aio/_multiapi_service_client.py +++ b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v1/aio/_multiapi_service_client.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional, TYPE_CHECKING +from typing import Any, Awaitable, TYPE_CHECKING from azure.core.rest import AsyncHttpResponse, HttpRequest from azure.mgmt.core import AsyncARMPipelineClient 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 b825af6cd57..c0e06f6eba5 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar, Union -import warnings +from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar, Union from azure.core.async_paging import AsyncItemPaged, AsyncList from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error @@ -64,7 +63,11 @@ async def test_one( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -104,7 +107,11 @@ async def _test_lro_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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, 204]: @@ -147,7 +154,7 @@ async def begin_test_lro( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] - polling = kwargs.pop('polling', True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop('cls', None) # type: ClsType["_models.Product"] lro_delay = kwargs.pop( 'polling_interval', @@ -181,8 +188,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_test_lro.metadata = {'url': '/multiapi/lro'} # type: ignore @@ -213,7 +219,11 @@ async def _test_lro_and_paging_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -308,7 +318,11 @@ async def extract_data(pipeline_response): async def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -318,7 +332,7 @@ async def get_next(next_link=None): return pipeline_response - polling = kwargs.pop('polling', True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop('cls', None) # type: ClsType["_models.PagingResult"] lro_delay = kwargs.pop( 'polling_interval', @@ -338,8 +352,7 @@ def get_long_running_output(pipeline_response): async def internal_get_next(next_link=None): if next_link is None: return pipeline_response - else: - return await get_next(next_link) + return await get_next(next_link) return AsyncItemPaged( internal_get_next, extract_data @@ -355,8 +368,7 @@ async def internal_get_next(next_link=None): client=self._client, deserialization_callback=get_long_running_output ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_test_lro_and_paging.metadata = {'url': '/multiapi/lroAndPaging'} # type: ignore @@ -393,7 +405,11 @@ async def test_different_calls( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 3a321b8fde2..0e464be80e1 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse @@ -72,7 +71,11 @@ async def test_two( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 adc3f38146e..8c029f8c926 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.paging import ItemPaged @@ -25,7 +24,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar, Union + from typing import Any, Callable, Dict, Iterable, Optional, TypeVar, Union T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -187,7 +186,11 @@ def test_one( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -228,7 +231,11 @@ def _test_lro_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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, 204]: @@ -271,7 +278,7 @@ def begin_test_lro( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] - polling = kwargs.pop('polling', True) # type: Union[bool, azure.core.polling.PollingMethod] + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] cls = kwargs.pop('cls', None) # type: ClsType["_models.Product"] lro_delay = kwargs.pop( 'polling_interval', @@ -305,8 +312,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_test_lro.metadata = {'url': '/multiapi/lro'} # type: ignore @@ -338,7 +344,11 @@ def _test_lro_and_paging_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -434,7 +444,11 @@ def extract_data(pipeline_response): def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -444,7 +458,7 @@ def get_next(next_link=None): return pipeline_response - polling = kwargs.pop('polling', True) # type: Union[bool, azure.core.polling.PollingMethod] + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] cls = kwargs.pop('cls', None) # type: ClsType["_models.PagingResult"] lro_delay = kwargs.pop( 'polling_interval', @@ -464,8 +478,7 @@ def get_long_running_output(pipeline_response): def internal_get_next(next_link=None): if next_link is None: return pipeline_response - else: - return get_next(next_link) + return get_next(next_link) return ItemPaged( internal_get_next, extract_data @@ -481,8 +494,7 @@ def internal_get_next(next_link=None): client=self._client, deserialization_callback=get_long_running_output ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_test_lro_and_paging.metadata = {'url': '/multiapi/lroAndPaging'} # type: ignore @@ -520,7 +532,11 @@ def test_different_calls( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 41e4a4abbba..92c032e0f22 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse @@ -22,7 +21,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar + from typing import Any, Callable, Dict, Optional, TypeVar T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -108,7 +107,11 @@ def test_two( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v2/_configuration.py b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v2/_configuration.py index 61ff653fdf8..4654f164dee 100644 --- a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v2/_configuration.py +++ b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v2/_configuration.py @@ -20,7 +20,7 @@ VERSION = "unknown" -class MultiapiServiceClientConfiguration(Configuration): +class MultiapiServiceClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for MultiapiServiceClient. Note that all parameters used to create this instance are saved as instance @@ -28,7 +28,8 @@ class MultiapiServiceClientConfiguration(Configuration): :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials.TokenCredential - :keyword api_version: Api Version. The default value is "2.0.0". Note that overriding this default value may result in unsupported behavior. + :keyword api_version: Api Version. The default value is "2.0.0". Note that overriding this + default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v2/_multiapi_service_client.py b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v2/_multiapi_service_client.py index 509ad1b3541..12c93f62a94 100644 --- a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v2/_multiapi_service_client.py +++ b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v2/_multiapi_service_client.py @@ -18,7 +18,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Optional + from typing import Any from azure.core.credentials import TokenCredential from azure.core.rest import HttpRequest, HttpResponse diff --git a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v2/aio/_configuration.py b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v2/aio/_configuration.py index 891fd33c477..bf6fc9dfc21 100644 --- a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v2/aio/_configuration.py +++ b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v2/aio/_configuration.py @@ -18,7 +18,7 @@ VERSION = "unknown" -class MultiapiServiceClientConfiguration(Configuration): +class MultiapiServiceClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for MultiapiServiceClient. Note that all parameters used to create this instance are saved as instance @@ -26,7 +26,8 @@ class MultiapiServiceClientConfiguration(Configuration): :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials_async.AsyncTokenCredential - :keyword api_version: Api Version. The default value is "2.0.0". Note that overriding this default value may result in unsupported behavior. + :keyword api_version: Api Version. The default value is "2.0.0". Note that overriding this + default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v2/aio/_multiapi_service_client.py b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v2/aio/_multiapi_service_client.py index 037f6a1f696..aa5485e3383 100644 --- a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v2/aio/_multiapi_service_client.py +++ b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v2/aio/_multiapi_service_client.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional, TYPE_CHECKING +from typing import Any, Awaitable, TYPE_CHECKING from azure.core.rest import AsyncHttpResponse, HttpRequest from azure.mgmt.core import AsyncARMPipelineClient 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 66198c36ac9..2ffc334eb1c 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse @@ -60,7 +59,11 @@ async def test_one( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -114,7 +117,11 @@ async def test_different_calls( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 54f314c6f44..2a937989f62 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse @@ -82,7 +81,11 @@ async def test_two( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -128,7 +131,11 @@ async def test_three( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 1b75581e7d8..e403a5f2430 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse @@ -76,7 +75,11 @@ async def test_four( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 44d62d0889e..690faa8c4ce 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse @@ -22,7 +21,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar + from typing import Any, Callable, Dict, Optional, TypeVar T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -133,7 +132,11 @@ def test_one( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -188,7 +191,11 @@ def test_different_calls( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 bcf91f04c76..f0868b0019f 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse @@ -22,7 +21,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar + from typing import Any, Callable, Dict, Optional, TypeVar T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -148,7 +147,11 @@ def test_two( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -195,7 +198,11 @@ def test_three( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 4348ec03f0c..b538d6eb530 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse @@ -22,7 +21,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar + from typing import Any, Callable, Dict, Optional, TypeVar T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -114,7 +113,11 @@ def test_four( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v3/_configuration.py b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v3/_configuration.py index f249f39bc78..9714f36ee4a 100644 --- a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v3/_configuration.py +++ b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v3/_configuration.py @@ -20,7 +20,7 @@ VERSION = "unknown" -class MultiapiServiceClientConfiguration(Configuration): +class MultiapiServiceClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for MultiapiServiceClient. Note that all parameters used to create this instance are saved as instance @@ -28,7 +28,8 @@ class MultiapiServiceClientConfiguration(Configuration): :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials.TokenCredential - :keyword api_version: Api Version. The default value is "3.0.0". Note that overriding this default value may result in unsupported behavior. + :keyword api_version: Api Version. The default value is "3.0.0". Note that overriding this + default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v3/_multiapi_service_client.py b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v3/_multiapi_service_client.py index 7918c40f881..e335f2dd96b 100644 --- a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v3/_multiapi_service_client.py +++ b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v3/_multiapi_service_client.py @@ -18,7 +18,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Optional + from typing import Any from azure.core.credentials import TokenCredential from azure.core.rest import HttpRequest, HttpResponse diff --git a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v3/aio/_configuration.py b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v3/aio/_configuration.py index 791da53e03b..74750a46bca 100644 --- a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v3/aio/_configuration.py +++ b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v3/aio/_configuration.py @@ -18,7 +18,7 @@ VERSION = "unknown" -class MultiapiServiceClientConfiguration(Configuration): +class MultiapiServiceClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for MultiapiServiceClient. Note that all parameters used to create this instance are saved as instance @@ -26,7 +26,8 @@ class MultiapiServiceClientConfiguration(Configuration): :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials_async.AsyncTokenCredential - :keyword api_version: Api Version. The default value is "3.0.0". Note that overriding this default value may result in unsupported behavior. + :keyword api_version: Api Version. The default value is "3.0.0". Note that overriding this + default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v3/aio/_multiapi_service_client.py b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v3/aio/_multiapi_service_client.py index efaa4973eb1..93b798c0b97 100644 --- a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v3/aio/_multiapi_service_client.py +++ b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v3/aio/_multiapi_service_client.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional, TYPE_CHECKING +from typing import Any, Awaitable, TYPE_CHECKING from azure.core.rest import AsyncHttpResponse, HttpRequest from azure.mgmt.core import AsyncARMPipelineClient 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 5c8091aac9b..d1d2fb329b5 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar from azure.core.async_paging import AsyncItemPaged, AsyncList from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error @@ -72,7 +71,11 @@ async def extract_data(pipeline_response): async def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -127,7 +130,11 @@ async def test_different_calls( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 ba3586e11ab..53e084d678b 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse @@ -82,7 +81,11 @@ async def test_two( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 79ee4685ef4..e1290f4dd90 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, IO, Optional, TypeVar, Union -import warnings +from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse @@ -94,7 +93,11 @@ async def test_four( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -136,7 +139,11 @@ async def test_five( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 1daa9d6d7db..1fea5bc2ef6 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.paging import ItemPaged @@ -23,7 +22,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar + from typing import Any, Callable, Dict, Iterable, Optional, TypeVar T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -135,7 +134,11 @@ def extract_data(pipeline_response): def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -191,7 +194,11 @@ def test_different_calls( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 63f57d4ab65..db0b4afb127 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse @@ -22,7 +21,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar + from typing import Any, Callable, Dict, Optional, TypeVar T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -121,7 +120,11 @@ def test_two( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 7650e1be197..76c46796345 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse @@ -22,7 +21,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, IO, Optional, TypeVar, Union + from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -160,7 +159,11 @@ def test_four( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -203,7 +206,11 @@ def test_five( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/test/azure/legacy/Expected/AcceptanceTests/AzureBodyDuration/bodyduration/_auto_rest_duration_test_service.py b/test/azure/legacy/Expected/AcceptanceTests/AzureBodyDuration/bodyduration/_auto_rest_duration_test_service.py index 58cce5ae7e9..d0a64a7fa0a 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/AzureBodyDuration/bodyduration/_auto_rest_duration_test_service.py +++ b/test/azure/legacy/Expected/AcceptanceTests/AzureBodyDuration/bodyduration/_auto_rest_duration_test_service.py @@ -18,7 +18,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Optional + from typing import Any from azure.core.rest import HttpRequest, HttpResponse diff --git a/test/azure/legacy/Expected/AcceptanceTests/AzureBodyDuration/bodyduration/_configuration.py b/test/azure/legacy/Expected/AcceptanceTests/AzureBodyDuration/bodyduration/_configuration.py index 8b18f16d3f2..134f68d4bef 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/AzureBodyDuration/bodyduration/_configuration.py +++ b/test/azure/legacy/Expected/AcceptanceTests/AzureBodyDuration/bodyduration/_configuration.py @@ -18,7 +18,7 @@ from typing import Any -class AutoRestDurationTestServiceConfiguration(Configuration): +class AutoRestDurationTestServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestDurationTestService. Note that all parameters used to create this instance are saved as instance diff --git a/test/azure/legacy/Expected/AcceptanceTests/AzureBodyDuration/bodyduration/aio/_auto_rest_duration_test_service.py b/test/azure/legacy/Expected/AcceptanceTests/AzureBodyDuration/bodyduration/aio/_auto_rest_duration_test_service.py index d870240475e..31bdb4d087d 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/AzureBodyDuration/bodyduration/aio/_auto_rest_duration_test_service.py +++ b/test/azure/legacy/Expected/AcceptanceTests/AzureBodyDuration/bodyduration/aio/_auto_rest_duration_test_service.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional +from typing import Any, Awaitable from azure.core import AsyncPipelineClient from azure.core.rest import AsyncHttpResponse, HttpRequest diff --git a/test/azure/legacy/Expected/AcceptanceTests/AzureBodyDuration/bodyduration/aio/_configuration.py b/test/azure/legacy/Expected/AcceptanceTests/AzureBodyDuration/bodyduration/aio/_configuration.py index f7cece514e6..029a04192bc 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/AzureBodyDuration/bodyduration/aio/_configuration.py +++ b/test/azure/legacy/Expected/AcceptanceTests/AzureBodyDuration/bodyduration/aio/_configuration.py @@ -14,7 +14,7 @@ from .._version import VERSION -class AutoRestDurationTestServiceConfiguration(Configuration): +class AutoRestDurationTestServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestDurationTestService. Note that all parameters used to create this instance are saved as instance diff --git a/test/azure/legacy/Expected/AcceptanceTests/AzureBodyDuration/bodyduration/aio/operations/_duration_operations.py b/test/azure/legacy/Expected/AcceptanceTests/AzureBodyDuration/bodyduration/aio/operations/_duration_operations.py index c5e046e5f25..eb92012dbcb 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/AzureBodyDuration/bodyduration/aio/operations/_duration_operations.py +++ b/test/azure/legacy/Expected/AcceptanceTests/AzureBodyDuration/bodyduration/aio/operations/_duration_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -6,9 +7,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import datetime -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ( ClientAuthenticationError, @@ -76,7 +75,9 @@ async def get_null(self, **kwargs: Any) -> Optional[datetime.timedelta]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -120,7 +121,9 @@ async def put_positive_duration(self, duration_body: datetime.timedelta, **kwarg request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -152,7 +155,9 @@ async def get_positive_duration(self, **kwargs: Any) -> datetime.timedelta: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -188,7 +193,9 @@ async def get_invalid(self, **kwargs: Any) -> datetime.timedelta: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 e1dce8db854..128e21e33c1 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -6,9 +7,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import datetime -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ( ClientAuthenticationError, @@ -28,7 +27,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar + from typing import Any, Callable, Dict, Optional, TypeVar T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -165,7 +164,9 @@ def get_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -214,7 +215,9 @@ def put_positive_duration( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -249,7 +252,9 @@ def get_positive_duration( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -288,7 +293,9 @@ def get_invalid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/test/azure/legacy/Expected/AcceptanceTests/AzureParameterGrouping/azureparametergrouping/_auto_rest_parameter_grouping_test_service.py b/test/azure/legacy/Expected/AcceptanceTests/AzureParameterGrouping/azureparametergrouping/_auto_rest_parameter_grouping_test_service.py index 9d0d7adca25..09beb6ee406 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/AzureParameterGrouping/azureparametergrouping/_auto_rest_parameter_grouping_test_service.py +++ b/test/azure/legacy/Expected/AcceptanceTests/AzureParameterGrouping/azureparametergrouping/_auto_rest_parameter_grouping_test_service.py @@ -18,7 +18,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Optional + from typing import Any from azure.core.rest import HttpRequest, HttpResponse diff --git a/test/azure/legacy/Expected/AcceptanceTests/AzureParameterGrouping/azureparametergrouping/_configuration.py b/test/azure/legacy/Expected/AcceptanceTests/AzureParameterGrouping/azureparametergrouping/_configuration.py index 2cf9f087e57..6e6a9c0b115 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/AzureParameterGrouping/azureparametergrouping/_configuration.py +++ b/test/azure/legacy/Expected/AcceptanceTests/AzureParameterGrouping/azureparametergrouping/_configuration.py @@ -18,7 +18,7 @@ from typing import Any -class AutoRestParameterGroupingTestServiceConfiguration(Configuration): +class AutoRestParameterGroupingTestServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestParameterGroupingTestService. Note that all parameters used to create this instance are saved as instance diff --git a/test/azure/legacy/Expected/AcceptanceTests/AzureParameterGrouping/azureparametergrouping/aio/_auto_rest_parameter_grouping_test_service.py b/test/azure/legacy/Expected/AcceptanceTests/AzureParameterGrouping/azureparametergrouping/aio/_auto_rest_parameter_grouping_test_service.py index 9eeaa841dd5..c0b28e4bf09 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/AzureParameterGrouping/azureparametergrouping/aio/_auto_rest_parameter_grouping_test_service.py +++ b/test/azure/legacy/Expected/AcceptanceTests/AzureParameterGrouping/azureparametergrouping/aio/_auto_rest_parameter_grouping_test_service.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional +from typing import Any, Awaitable from azure.core import AsyncPipelineClient from azure.core.rest import AsyncHttpResponse, HttpRequest diff --git a/test/azure/legacy/Expected/AcceptanceTests/AzureParameterGrouping/azureparametergrouping/aio/_configuration.py b/test/azure/legacy/Expected/AcceptanceTests/AzureParameterGrouping/azureparametergrouping/aio/_configuration.py index 41cfe947cb7..86d1c745c39 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/AzureParameterGrouping/azureparametergrouping/aio/_configuration.py +++ b/test/azure/legacy/Expected/AcceptanceTests/AzureParameterGrouping/azureparametergrouping/aio/_configuration.py @@ -14,7 +14,7 @@ from .._version import VERSION -class AutoRestParameterGroupingTestServiceConfiguration(Configuration): +class AutoRestParameterGroupingTestServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestParameterGroupingTestService. Note that all parameters used to create this instance are saved as instance diff --git a/test/azure/legacy/Expected/AcceptanceTests/AzureParameterGrouping/azureparametergrouping/aio/operations/_parameter_grouping_operations.py b/test/azure/legacy/Expected/AcceptanceTests/AzureParameterGrouping/azureparametergrouping/aio/operations/_parameter_grouping_operations.py index 75a117c2811..81f8f112358 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/AzureParameterGrouping/azureparametergrouping/aio/operations/_parameter_grouping_operations.py +++ b/test/azure/legacy/Expected/AcceptanceTests/AzureParameterGrouping/azureparametergrouping/aio/operations/_parameter_grouping_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ( ClientAuthenticationError, @@ -101,7 +100,9 @@ async def post_required( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -148,7 +149,9 @@ async def post_optional( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -197,7 +200,9 @@ async def post_reserved_words( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -256,7 +261,9 @@ async def post_multi_param_groups( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -300,7 +307,9 @@ async def post_shared_parameter_group_object( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 f119c5063e4..59e4370a5ea 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ( ClientAuthenticationError, @@ -27,7 +26,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar + from typing import Any, Callable, Dict, Optional, TypeVar T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -272,7 +271,9 @@ def post_required( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -320,7 +321,9 @@ def post_optional( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -368,7 +371,9 @@ def post_reserved_words( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -426,7 +431,9 @@ def post_multi_param_groups( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -473,7 +480,9 @@ def post_shared_parameter_group_object( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/test/azure/legacy/Expected/AcceptanceTests/AzureReport/azurereport/_auto_rest_report_service_for_azure.py b/test/azure/legacy/Expected/AcceptanceTests/AzureReport/azurereport/_auto_rest_report_service_for_azure.py index aae1b24a7b7..a0895c0f10c 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/AzureReport/azurereport/_auto_rest_report_service_for_azure.py +++ b/test/azure/legacy/Expected/AcceptanceTests/AzureReport/azurereport/_auto_rest_report_service_for_azure.py @@ -18,7 +18,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Optional + from typing import Any from azure.core.rest import HttpRequest, HttpResponse diff --git a/test/azure/legacy/Expected/AcceptanceTests/AzureReport/azurereport/_configuration.py b/test/azure/legacy/Expected/AcceptanceTests/AzureReport/azurereport/_configuration.py index c358d080144..e57b85968bb 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/AzureReport/azurereport/_configuration.py +++ b/test/azure/legacy/Expected/AcceptanceTests/AzureReport/azurereport/_configuration.py @@ -18,7 +18,7 @@ from typing import Any -class AutoRestReportServiceForAzureConfiguration(Configuration): +class AutoRestReportServiceForAzureConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestReportServiceForAzure. Note that all parameters used to create this instance are saved as instance diff --git a/test/azure/legacy/Expected/AcceptanceTests/AzureReport/azurereport/aio/_auto_rest_report_service_for_azure.py b/test/azure/legacy/Expected/AcceptanceTests/AzureReport/azurereport/aio/_auto_rest_report_service_for_azure.py index 05f1b7f0e79..0711ec1e024 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/AzureReport/azurereport/aio/_auto_rest_report_service_for_azure.py +++ b/test/azure/legacy/Expected/AcceptanceTests/AzureReport/azurereport/aio/_auto_rest_report_service_for_azure.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional +from typing import Any, Awaitable from azure.core import AsyncPipelineClient from azure.core.rest import AsyncHttpResponse, HttpRequest diff --git a/test/azure/legacy/Expected/AcceptanceTests/AzureReport/azurereport/aio/_configuration.py b/test/azure/legacy/Expected/AcceptanceTests/AzureReport/azurereport/aio/_configuration.py index 0a75f8ad29c..d5789eafc0d 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/AzureReport/azurereport/aio/_configuration.py +++ b/test/azure/legacy/Expected/AcceptanceTests/AzureReport/azurereport/aio/_configuration.py @@ -14,7 +14,7 @@ from .._version import VERSION -class AutoRestReportServiceForAzureConfiguration(Configuration): +class AutoRestReportServiceForAzureConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestReportServiceForAzure. Note that all parameters used to create this instance are saved as instance diff --git a/test/azure/legacy/Expected/AcceptanceTests/AzureReport/azurereport/aio/operations/_auto_rest_report_service_for_azure_operations.py b/test/azure/legacy/Expected/AcceptanceTests/AzureReport/azurereport/aio/operations/_auto_rest_report_service_for_azure_operations.py index e0b7fba1dd2..ca227f66426 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/AzureReport/azurereport/aio/operations/_auto_rest_report_service_for_azure_operations.py +++ b/test/azure/legacy/Expected/AcceptanceTests/AzureReport/azurereport/aio/operations/_auto_rest_report_service_for_azure_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ( ClientAuthenticationError, @@ -54,7 +53,9 @@ async def get_report(self, qualifier: Optional[str] = None, **kwargs: Any) -> Di request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 8bacca5285d..1d38430906f 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ( ClientAuthenticationError, @@ -27,7 +26,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar + from typing import Any, Callable, Dict, Optional, TypeVar T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -94,7 +93,9 @@ def get_report( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/_auto_rest_azure_special_parameters_test_client.py b/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/_auto_rest_azure_special_parameters_test_client.py index 29a56aa13e5..9927ad0876f 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/_auto_rest_azure_special_parameters_test_client.py +++ b/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/_auto_rest_azure_special_parameters_test_client.py @@ -27,13 +27,13 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Optional + from typing import Any from azure.core.credentials import TokenCredential from azure.core.rest import HttpRequest, HttpResponse -class AutoRestAzureSpecialParametersTestClient(object): +class AutoRestAzureSpecialParametersTestClient(object): # pylint: disable=too-many-instance-attributes """Test Infrastructure for AutoRest. :ivar xms_client_request_id: XMsClientRequestIdOperations operations diff --git a/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/_configuration.py b/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/_configuration.py index c7f0e210297..9f7683338ed 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/_configuration.py +++ b/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/_configuration.py @@ -21,7 +21,9 @@ from azure.core.credentials import TokenCredential -class AutoRestAzureSpecialParametersTestClientConfiguration(Configuration): +class AutoRestAzureSpecialParametersTestClientConfiguration( + Configuration +): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestAzureSpecialParametersTestClient. Note that all parameters used to create this instance are saved as instance @@ -29,9 +31,11 @@ class AutoRestAzureSpecialParametersTestClientConfiguration(Configuration): :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials.TokenCredential - :param subscription_id: The subscription id, which appears in the path, always modeled in credentials. The value is always '1234-5678-9012-3456'. + :param subscription_id: The subscription id, which appears in the path, always modeled in + credentials. The value is always '1234-5678-9012-3456'. :type subscription_id: str - :keyword api_version: Api Version. The default value is "2015-07-01-preview". Note that overriding this default value may result in unsupported behavior. + :keyword api_version: Api Version. The default value is "2015-07-01-preview". Note that + overriding this default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/_auto_rest_azure_special_parameters_test_client.py b/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/_auto_rest_azure_special_parameters_test_client.py index babc555c0b8..f50ad2baeaf 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/_auto_rest_azure_special_parameters_test_client.py +++ b/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/_auto_rest_azure_special_parameters_test_client.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional, TYPE_CHECKING +from typing import Any, Awaitable, TYPE_CHECKING from azure.core.rest import AsyncHttpResponse, HttpRequest from azure.mgmt.core import AsyncARMPipelineClient @@ -31,7 +31,7 @@ from azure.core.credentials_async import AsyncTokenCredential -class AutoRestAzureSpecialParametersTestClient: +class AutoRestAzureSpecialParametersTestClient: # pylint: disable=too-many-instance-attributes """Test Infrastructure for AutoRest. :ivar xms_client_request_id: XMsClientRequestIdOperations operations diff --git a/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/_configuration.py b/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/_configuration.py index 7b171acb8f2..801d9840037 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/_configuration.py +++ b/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/_configuration.py @@ -19,7 +19,9 @@ from azure.core.credentials_async import AsyncTokenCredential -class AutoRestAzureSpecialParametersTestClientConfiguration(Configuration): +class AutoRestAzureSpecialParametersTestClientConfiguration( + Configuration +): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestAzureSpecialParametersTestClient. Note that all parameters used to create this instance are saved as instance @@ -27,9 +29,11 @@ class AutoRestAzureSpecialParametersTestClientConfiguration(Configuration): :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials_async.AsyncTokenCredential - :param subscription_id: The subscription id, which appears in the path, always modeled in credentials. The value is always '1234-5678-9012-3456'. + :param subscription_id: The subscription id, which appears in the path, always modeled in + credentials. The value is always '1234-5678-9012-3456'. :type subscription_id: str - :keyword api_version: Api Version. The default value is "2015-07-01-preview". Note that overriding this default value may result in unsupported behavior. + :keyword api_version: Api Version. The default value is "2015-07-01-preview". Note that + overriding this default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_api_version_default_operations.py b/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_api_version_default_operations.py index 3a443d8cc13..9e5df777202 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_api_version_default_operations.py +++ b/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_api_version_default_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ( ClientAuthenticationError, @@ -79,7 +78,9 @@ async def get_method_global_valid(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -114,7 +115,9 @@ async def get_method_global_not_provided_valid(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -149,7 +152,9 @@ async def get_path_global_valid(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -184,7 +189,9 @@ async def get_swagger_global_valid(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_api_version_local_operations.py b/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_api_version_local_operations.py index 07c2d3102fa..3a60ebf27ca 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_api_version_local_operations.py +++ b/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_api_version_local_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ( ClientAuthenticationError, @@ -82,7 +81,9 @@ async def get_method_local_valid(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -118,7 +119,9 @@ async def get_method_local_null(self, api_version: Optional[str] = None, **kwarg request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -156,7 +159,9 @@ async def get_path_local_valid(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -195,7 +200,9 @@ async def get_swagger_local_valid(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_header_operations.py b/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_header_operations.py index 620766d309c..ad1e6b23982 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_header_operations.py +++ b/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_header_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ( ClientAuthenticationError, @@ -78,7 +77,9 @@ async def custom_named_request_id(self, foo_client_request_id: str, **kwargs: An request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -126,7 +127,9 @@ async def custom_named_request_id_param_grouping( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -164,7 +167,9 @@ async def custom_named_request_id_head(self, foo_client_request_id: str, **kwarg request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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, 404]: diff --git a/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_odata_operations.py b/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_odata_operations.py index 7a6a20af769..630f6d467b1 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_odata_operations.py +++ b/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_odata_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ( ClientAuthenticationError, @@ -82,7 +81,9 @@ async def get_with_filter( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_skip_url_encoding_operations.py b/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_skip_url_encoding_operations.py index 6e8e312111c..6fda8fdf0ef 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_skip_url_encoding_operations.py +++ b/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_skip_url_encoding_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ( ClientAuthenticationError, @@ -82,7 +81,9 @@ async def get_method_path_valid(self, unencoded_path_param: str, **kwargs: Any) request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -117,7 +118,9 @@ async def get_path_valid(self, unencoded_path_param: str, **kwargs: Any) -> None request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -156,7 +159,9 @@ async def get_swagger_path_valid(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -191,7 +196,9 @@ async def get_method_query_valid(self, q1: str, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -226,7 +233,9 @@ async def get_method_query_null(self, q1: Optional[str] = None, **kwargs: Any) - request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -261,7 +270,9 @@ async def get_path_query_valid(self, q1: str, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -300,7 +311,9 @@ async def get_swagger_query_valid(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_subscription_in_credentials_operations.py b/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_subscription_in_credentials_operations.py index 9706ac28e7b..baad0e99db4 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_subscription_in_credentials_operations.py +++ b/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_subscription_in_credentials_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ( ClientAuthenticationError, @@ -79,7 +78,9 @@ async def post_method_global_valid(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -113,7 +114,9 @@ async def post_method_global_null(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -150,7 +153,9 @@ async def post_method_global_not_provided_valid(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -184,7 +189,9 @@ async def post_path_global_valid(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -218,7 +225,9 @@ async def post_swagger_global_valid(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_subscription_in_method_operations.py b/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_subscription_in_method_operations.py index ffaf8cc4fad..12e78a23934 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_subscription_in_method_operations.py +++ b/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_subscription_in_method_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ( ClientAuthenticationError, @@ -81,7 +80,9 @@ async def post_method_local_valid(self, subscription_id: str, **kwargs: Any) -> request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -118,7 +119,9 @@ async def post_method_local_null(self, subscription_id: str, **kwargs: Any) -> N request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -154,7 +157,9 @@ async def post_path_local_valid(self, subscription_id: str, **kwargs: Any) -> No request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -191,7 +196,9 @@ async def post_swagger_local_valid(self, subscription_id: str, **kwargs: Any) -> request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_xms_client_request_id_operations.py b/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_xms_client_request_id_operations.py index 5174ddc0bd0..4b073913fbd 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_xms_client_request_id_operations.py +++ b/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_xms_client_request_id_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ( ClientAuthenticationError, @@ -72,7 +71,9 @@ async def get(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -108,7 +109,9 @@ async def param_get(self, x_ms_client_request_id: str, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 1163bd46364..9ee5d2a97ee 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ( ClientAuthenticationError, @@ -28,7 +27,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar + from typing import Any, Callable, Dict, Optional, TypeVar T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -71,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') + 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] @@ -191,7 +190,9 @@ def get_method_global_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -229,7 +230,9 @@ def get_method_global_not_provided_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -267,7 +270,9 @@ def get_path_global_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -305,7 +310,9 @@ def get_swagger_global_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 fae72678d01..a7f84c760c9 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ( ClientAuthenticationError, @@ -28,7 +27,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar + from typing import Any, Callable, Dict, Optional, TypeVar T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -195,7 +194,9 @@ def get_method_local_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -236,7 +237,9 @@ def get_method_local_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -277,7 +280,9 @@ def get_path_local_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -319,7 +324,9 @@ def get_swagger_local_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 650ac5b5ebc..4fce9e5c027 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ( ClientAuthenticationError, @@ -28,7 +27,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar + from typing import Any, Callable, Dict, Optional, TypeVar T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -154,7 +153,9 @@ def custom_named_request_id( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -203,7 +204,9 @@ def custom_named_request_id_param_grouping( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -246,7 +249,9 @@ def custom_named_request_id_head( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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, 404]: 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 a4a847619f0..44509762465 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ( ClientAuthenticationError, @@ -28,7 +27,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar + from typing import Any, Callable, Dict, Optional, TypeVar T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -127,7 +126,9 @@ def get_with_filter( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 b1b9a36e280..1cad5a9cfd2 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ( ClientAuthenticationError, @@ -28,7 +27,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar + from typing import Any, Callable, Dict, Optional, TypeVar T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -273,7 +272,9 @@ def get_method_path_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -313,7 +314,9 @@ def get_path_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -355,7 +358,9 @@ def get_swagger_path_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -395,7 +400,9 @@ def get_method_query_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -435,7 +442,9 @@ def get_method_query_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -475,7 +484,9 @@ def get_path_query_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -517,7 +528,9 @@ def get_swagger_query_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 f0aa0ced3bf..21c69470be7 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ( ClientAuthenticationError, @@ -28,7 +27,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar + from typing import Any, Callable, Dict, Optional, TypeVar T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -43,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}') + 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'), } @@ -97,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}') + 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'), } @@ -128,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}') + 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'), } @@ -154,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}') + 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'), } @@ -219,7 +218,9 @@ def post_method_global_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -256,7 +257,9 @@ def post_method_global_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -296,7 +299,9 @@ def post_method_global_not_provided_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -333,7 +338,9 @@ def post_path_global_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -370,7 +377,9 @@ def post_swagger_global_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 681af1166d8..0defab44275 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ( ClientAuthenticationError, @@ -28,7 +27,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar + from typing import Any, Callable, Dict, Optional, TypeVar T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -43,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}') + 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'), } @@ -95,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}') + 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'), } @@ -121,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}') + 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'), } @@ -191,7 +190,9 @@ def post_method_local_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -233,7 +234,9 @@ def post_method_local_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -274,7 +277,9 @@ def post_path_local_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -316,7 +321,9 @@ def post_swagger_local_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 dbc05f10c50..25642febf07 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ( ClientAuthenticationError, @@ -28,7 +27,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar + from typing import Any, Callable, Dict, Optional, TypeVar T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -118,7 +117,9 @@ def get( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -159,7 +160,9 @@ def param_get( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/test/azure/legacy/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/_configuration.py b/test/azure/legacy/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/_configuration.py index 164a6df014a..054bd122156 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/_configuration.py +++ b/test/azure/legacy/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/_configuration.py @@ -18,7 +18,7 @@ from typing import Any -class AutoRestParameterizedHostTestClientConfiguration(Configuration): +class AutoRestParameterizedHostTestClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestParameterizedHostTestClient. Note that all parameters used to create this instance are saved as instance diff --git a/test/azure/legacy/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/aio/_configuration.py b/test/azure/legacy/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/aio/_configuration.py index cf7cbb01aaf..54699ce96b9 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/aio/_configuration.py +++ b/test/azure/legacy/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/aio/_configuration.py @@ -14,7 +14,7 @@ from .._version import VERSION -class AutoRestParameterizedHostTestClientConfiguration(Configuration): +class AutoRestParameterizedHostTestClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestParameterizedHostTestClient. Note that all parameters used to create this instance are saved as instance diff --git a/test/azure/legacy/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/aio/operations/_paths_operations.py b/test/azure/legacy/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/aio/operations/_paths_operations.py index 14c724b05ec..1a153118780 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/aio/operations/_paths_operations.py +++ b/test/azure/legacy/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/aio/operations/_paths_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ( ClientAuthenticationError, @@ -76,7 +75,9 @@ async def get_empty(self, account_name: str, **kwargs: Any) -> None: } request.url = self._client.format_url(request.url, **path_format_arguments) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 05f2bebe9bf..664c8c47974 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ( ClientAuthenticationError, @@ -27,7 +26,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar + from typing import Any, Callable, Dict, Optional, TypeVar T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -107,7 +106,9 @@ def get_empty( } request.url = self._client.format_url(request.url, **path_format_arguments) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/test/azure/legacy/Expected/AcceptanceTests/CustomPollerPager/custompollerpager/_auto_rest_paging_test_service.py b/test/azure/legacy/Expected/AcceptanceTests/CustomPollerPager/custompollerpager/_auto_rest_paging_test_service.py index c7f066723a8..7ccca7d36f8 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/CustomPollerPager/custompollerpager/_auto_rest_paging_test_service.py +++ b/test/azure/legacy/Expected/AcceptanceTests/CustomPollerPager/custompollerpager/_auto_rest_paging_test_service.py @@ -18,7 +18,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Optional + from typing import Any from azure.core.credentials import TokenCredential from azure.core.rest import HttpRequest, HttpResponse diff --git a/test/azure/legacy/Expected/AcceptanceTests/CustomPollerPager/custompollerpager/_configuration.py b/test/azure/legacy/Expected/AcceptanceTests/CustomPollerPager/custompollerpager/_configuration.py index 94afe8e1aeb..1b42c417c2e 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/CustomPollerPager/custompollerpager/_configuration.py +++ b/test/azure/legacy/Expected/AcceptanceTests/CustomPollerPager/custompollerpager/_configuration.py @@ -21,7 +21,7 @@ from azure.core.credentials import TokenCredential -class AutoRestPagingTestServiceConfiguration(Configuration): +class AutoRestPagingTestServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestPagingTestService. Note that all parameters used to create this instance are saved as instance diff --git a/test/azure/legacy/Expected/AcceptanceTests/CustomPollerPager/custompollerpager/aio/_auto_rest_paging_test_service.py b/test/azure/legacy/Expected/AcceptanceTests/CustomPollerPager/custompollerpager/aio/_auto_rest_paging_test_service.py index fdc8a6b5375..c7f119acfb7 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/CustomPollerPager/custompollerpager/aio/_auto_rest_paging_test_service.py +++ b/test/azure/legacy/Expected/AcceptanceTests/CustomPollerPager/custompollerpager/aio/_auto_rest_paging_test_service.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional, TYPE_CHECKING +from typing import Any, Awaitable, TYPE_CHECKING from azure.core.rest import AsyncHttpResponse, HttpRequest from azure.mgmt.core import AsyncARMPipelineClient diff --git a/test/azure/legacy/Expected/AcceptanceTests/CustomPollerPager/custompollerpager/aio/_configuration.py b/test/azure/legacy/Expected/AcceptanceTests/CustomPollerPager/custompollerpager/aio/_configuration.py index 7fc60100893..56642917d39 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/CustomPollerPager/custompollerpager/aio/_configuration.py +++ b/test/azure/legacy/Expected/AcceptanceTests/CustomPollerPager/custompollerpager/aio/_configuration.py @@ -19,7 +19,7 @@ from azure.core.credentials_async import AsyncTokenCredential -class AutoRestPagingTestServiceConfiguration(Configuration): +class AutoRestPagingTestServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestPagingTestService. Note that all parameters used to create this instance are saved as instance 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 3297f3a9504..a0108397a87 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar, Union -import warnings +from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar, Union from azure.core.async_paging import AsyncItemPaged, AsyncList from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error @@ -95,7 +94,11 @@ async def extract_data(pipeline_response): async def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -156,7 +159,11 @@ async def extract_data(pipeline_response): async def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -218,7 +225,11 @@ async def extract_data(pipeline_response): async def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -280,7 +291,11 @@ async def extract_data(pipeline_response): async def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -364,7 +379,11 @@ async def extract_data(pipeline_response): async def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -439,7 +458,11 @@ async def extract_data(pipeline_response): async def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -523,7 +546,11 @@ async def extract_data(pipeline_response): async def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -613,7 +640,11 @@ async def extract_data(pipeline_response): async def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -675,7 +706,11 @@ async def extract_data(pipeline_response): async def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -737,7 +772,11 @@ async def extract_data(pipeline_response): async def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -798,7 +837,11 @@ async def extract_data(pipeline_response): async def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -859,7 +902,11 @@ async def extract_data(pipeline_response): async def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -920,7 +967,11 @@ async def extract_data(pipeline_response): async def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -992,7 +1043,11 @@ async def extract_data(pipeline_response): async def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1071,7 +1126,11 @@ async def extract_data(pipeline_response): async def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1113,7 +1172,11 @@ async def _get_multiple_pages_lro_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202]: @@ -1209,7 +1272,11 @@ async def extract_data(pipeline_response): async def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1219,7 +1286,7 @@ async def get_next(next_link=None): return pipeline_response - polling = kwargs.pop('polling', True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop('cls', None) # type: ClsType["_models.ProductResult"] lro_delay = kwargs.pop( 'polling_interval', @@ -1239,8 +1306,7 @@ def get_long_running_output(pipeline_response): async def internal_get_next(next_link=None): if next_link is None: return pipeline_response - else: - return await get_next(next_link) + return await get_next(next_link) return AsyncItemPaged( internal_get_next, extract_data @@ -1256,8 +1322,7 @@ async def internal_get_next(next_link=None): client=self._client, deserialization_callback=get_long_running_output ) - else: - return AsyncCustomPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncCustomPoller(self._client, raw_result, get_long_running_output, polling_method) begin_get_multiple_pages_lro.metadata = {'url': '/paging/multiple/lro'} # type: ignore @@ -1311,7 +1376,11 @@ async def extract_data(pipeline_response): async def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 553e2a9e4f8..969a0eeffab 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.paging import ItemPaged @@ -26,7 +25,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar, Union + from typing import Any, Callable, Dict, Iterable, Optional, TypeVar, Union T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -621,7 +620,11 @@ def extract_data(pipeline_response): def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -683,7 +686,11 @@ def extract_data(pipeline_response): def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -745,7 +752,11 @@ def extract_data(pipeline_response): def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -808,7 +819,11 @@ def extract_data(pipeline_response): def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -893,7 +908,11 @@ def extract_data(pipeline_response): def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -969,7 +988,11 @@ def extract_data(pipeline_response): def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1054,7 +1077,11 @@ def extract_data(pipeline_response): def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1145,7 +1172,11 @@ def extract_data(pipeline_response): def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1208,7 +1239,11 @@ def extract_data(pipeline_response): def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1271,7 +1306,11 @@ def extract_data(pipeline_response): def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1333,7 +1372,11 @@ def extract_data(pipeline_response): def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1395,7 +1438,11 @@ def extract_data(pipeline_response): def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1457,7 +1504,11 @@ def extract_data(pipeline_response): def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1530,7 +1581,11 @@ def extract_data(pipeline_response): def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1610,7 +1665,11 @@ def extract_data(pipeline_response): def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1653,7 +1712,11 @@ def _get_multiple_pages_lro_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202]: @@ -1750,7 +1813,11 @@ def extract_data(pipeline_response): def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1760,7 +1827,7 @@ def get_next(next_link=None): return pipeline_response - polling = kwargs.pop('polling', True) # type: Union[bool, azure.core.polling.PollingMethod] + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] cls = kwargs.pop('cls', None) # type: ClsType["_models.ProductResult"] lro_delay = kwargs.pop( 'polling_interval', @@ -1780,8 +1847,7 @@ def get_long_running_output(pipeline_response): def internal_get_next(next_link=None): if next_link is None: return pipeline_response - else: - return get_next(next_link) + return get_next(next_link) return ItemPaged( internal_get_next, extract_data @@ -1797,8 +1863,7 @@ def internal_get_next(next_link=None): client=self._client, deserialization_callback=get_long_running_output ) - else: - return CustomPoller(self._client, raw_result, get_long_running_output, polling_method) + return CustomPoller(self._client, raw_result, get_long_running_output, polling_method) begin_get_multiple_pages_lro.metadata = {'url': '/paging/multiple/lro'} # type: ignore @@ -1853,7 +1918,11 @@ def extract_data(pipeline_response): def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/test/azure/legacy/Expected/AcceptanceTests/CustomUrlPaging/custombaseurlpaging/_configuration.py b/test/azure/legacy/Expected/AcceptanceTests/CustomUrlPaging/custombaseurlpaging/_configuration.py index 398bc62fc82..f4f48b9ce88 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/CustomUrlPaging/custombaseurlpaging/_configuration.py +++ b/test/azure/legacy/Expected/AcceptanceTests/CustomUrlPaging/custombaseurlpaging/_configuration.py @@ -18,7 +18,9 @@ from typing import Any -class AutoRestParameterizedHostTestPagingClientConfiguration(Configuration): +class AutoRestParameterizedHostTestPagingClientConfiguration( + Configuration +): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestParameterizedHostTestPagingClient. Note that all parameters used to create this instance are saved as instance diff --git a/test/azure/legacy/Expected/AcceptanceTests/CustomUrlPaging/custombaseurlpaging/aio/_configuration.py b/test/azure/legacy/Expected/AcceptanceTests/CustomUrlPaging/custombaseurlpaging/aio/_configuration.py index 6e56dacdfc7..70d4ecdd326 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/CustomUrlPaging/custombaseurlpaging/aio/_configuration.py +++ b/test/azure/legacy/Expected/AcceptanceTests/CustomUrlPaging/custombaseurlpaging/aio/_configuration.py @@ -14,7 +14,9 @@ from .._version import VERSION -class AutoRestParameterizedHostTestPagingClientConfiguration(Configuration): +class AutoRestParameterizedHostTestPagingClientConfiguration( + Configuration +): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestParameterizedHostTestPagingClient. Note that all parameters used to create this instance are saved as instance diff --git a/test/azure/legacy/Expected/AcceptanceTests/CustomUrlPaging/custombaseurlpaging/aio/operations/_paging_operations.py b/test/azure/legacy/Expected/AcceptanceTests/CustomUrlPaging/custombaseurlpaging/aio/operations/_paging_operations.py index 23e564fc4e7..e30b0f596cc 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/CustomUrlPaging/custombaseurlpaging/aio/operations/_paging_operations.py +++ b/test/azure/legacy/Expected/AcceptanceTests/CustomUrlPaging/custombaseurlpaging/aio/operations/_paging_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar from azure.core.async_paging import AsyncItemPaged, AsyncList from azure.core.exceptions import ( @@ -21,7 +20,6 @@ from azure.core.pipeline.transport import AsyncHttpResponse from azure.core.rest import HttpRequest from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async from ... import models as _models from ..._vendor import _convert_request @@ -115,7 +113,9 @@ async def extract_data(pipeline_response): async def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -183,7 +183,9 @@ async def extract_data(pipeline_response): async def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 abf6d27f657..d303433c721 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ( ClientAuthenticationError, @@ -28,7 +27,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar + from typing import Any, Callable, Dict, Iterable, Optional, TypeVar T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -188,7 +187,9 @@ def extract_data(pipeline_response): def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -259,7 +260,9 @@ def extract_data(pipeline_response): def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/test/azure/legacy/Expected/AcceptanceTests/Head/head/_auto_rest_head_test_service.py b/test/azure/legacy/Expected/AcceptanceTests/Head/head/_auto_rest_head_test_service.py index d38d3571914..f0b8f71d7d6 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/Head/head/_auto_rest_head_test_service.py +++ b/test/azure/legacy/Expected/AcceptanceTests/Head/head/_auto_rest_head_test_service.py @@ -17,7 +17,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Dict, Optional + from typing import Any, Dict from azure.core.credentials import TokenCredential from azure.core.rest import HttpRequest, HttpResponse diff --git a/test/azure/legacy/Expected/AcceptanceTests/Head/head/_configuration.py b/test/azure/legacy/Expected/AcceptanceTests/Head/head/_configuration.py index bcd7be90add..059fae5aa30 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/Head/head/_configuration.py +++ b/test/azure/legacy/Expected/AcceptanceTests/Head/head/_configuration.py @@ -21,7 +21,7 @@ from azure.core.credentials import TokenCredential -class AutoRestHeadTestServiceConfiguration(Configuration): +class AutoRestHeadTestServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestHeadTestService. Note that all parameters used to create this instance are saved as instance diff --git a/test/azure/legacy/Expected/AcceptanceTests/Head/head/aio/_auto_rest_head_test_service.py b/test/azure/legacy/Expected/AcceptanceTests/Head/head/aio/_auto_rest_head_test_service.py index 0da13b90d7c..b5816e0734f 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/Head/head/aio/_auto_rest_head_test_service.py +++ b/test/azure/legacy/Expected/AcceptanceTests/Head/head/aio/_auto_rest_head_test_service.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional, TYPE_CHECKING +from typing import Any, Awaitable, TYPE_CHECKING from azure.core.rest import AsyncHttpResponse, HttpRequest from azure.mgmt.core import AsyncARMPipelineClient diff --git a/test/azure/legacy/Expected/AcceptanceTests/Head/head/aio/_configuration.py b/test/azure/legacy/Expected/AcceptanceTests/Head/head/aio/_configuration.py index 39324636276..c70f8eb34d9 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/Head/head/aio/_configuration.py +++ b/test/azure/legacy/Expected/AcceptanceTests/Head/head/aio/_configuration.py @@ -19,7 +19,7 @@ from azure.core.credentials_async import AsyncTokenCredential -class AutoRestHeadTestServiceConfiguration(Configuration): +class AutoRestHeadTestServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestHeadTestService. Note that all parameters used to create this instance are saved as instance diff --git a/test/azure/legacy/Expected/AcceptanceTests/Head/head/aio/operations/_http_success_operations.py b/test/azure/legacy/Expected/AcceptanceTests/Head/head/aio/operations/_http_success_operations.py index 26624cdc979..c8660913cf7 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/Head/head/aio/operations/_http_success_operations.py +++ b/test/azure/legacy/Expected/AcceptanceTests/Head/head/aio/operations/_http_success_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ( ClientAuthenticationError, @@ -66,7 +65,9 @@ async def head200(self, **kwargs: Any) -> bool: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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, 404]: @@ -98,7 +99,9 @@ async def head204(self, **kwargs: Any) -> bool: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [204, 404]: @@ -130,7 +133,9 @@ async def head404(self, **kwargs: Any) -> bool: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [204, 404]: 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 b3721f84520..e99151c6b1e 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ( ClientAuthenticationError, @@ -27,7 +26,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar + from typing import Any, Callable, Dict, Optional, TypeVar T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -118,7 +117,9 @@ def head200( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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, 404]: @@ -153,7 +154,9 @@ def head204( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [204, 404]: @@ -188,7 +191,9 @@ def head404( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [204, 404]: diff --git a/test/azure/legacy/Expected/AcceptanceTests/HeadExceptions/headexceptions/_auto_rest_head_exception_test_service.py b/test/azure/legacy/Expected/AcceptanceTests/HeadExceptions/headexceptions/_auto_rest_head_exception_test_service.py index c9ffd741209..9adc3194e9b 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/HeadExceptions/headexceptions/_auto_rest_head_exception_test_service.py +++ b/test/azure/legacy/Expected/AcceptanceTests/HeadExceptions/headexceptions/_auto_rest_head_exception_test_service.py @@ -17,7 +17,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Dict, Optional + from typing import Any, Dict from azure.core.credentials import TokenCredential from azure.core.rest import HttpRequest, HttpResponse diff --git a/test/azure/legacy/Expected/AcceptanceTests/HeadExceptions/headexceptions/_configuration.py b/test/azure/legacy/Expected/AcceptanceTests/HeadExceptions/headexceptions/_configuration.py index b741cfdb349..54ecdfa65ba 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/HeadExceptions/headexceptions/_configuration.py +++ b/test/azure/legacy/Expected/AcceptanceTests/HeadExceptions/headexceptions/_configuration.py @@ -21,7 +21,7 @@ from azure.core.credentials import TokenCredential -class AutoRestHeadExceptionTestServiceConfiguration(Configuration): +class AutoRestHeadExceptionTestServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestHeadExceptionTestService. Note that all parameters used to create this instance are saved as instance diff --git a/test/azure/legacy/Expected/AcceptanceTests/HeadExceptions/headexceptions/aio/_auto_rest_head_exception_test_service.py b/test/azure/legacy/Expected/AcceptanceTests/HeadExceptions/headexceptions/aio/_auto_rest_head_exception_test_service.py index a9d744e67ac..a5c73395c93 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/HeadExceptions/headexceptions/aio/_auto_rest_head_exception_test_service.py +++ b/test/azure/legacy/Expected/AcceptanceTests/HeadExceptions/headexceptions/aio/_auto_rest_head_exception_test_service.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional, TYPE_CHECKING +from typing import Any, Awaitable, TYPE_CHECKING from azure.core.rest import AsyncHttpResponse, HttpRequest from azure.mgmt.core import AsyncARMPipelineClient diff --git a/test/azure/legacy/Expected/AcceptanceTests/HeadExceptions/headexceptions/aio/_configuration.py b/test/azure/legacy/Expected/AcceptanceTests/HeadExceptions/headexceptions/aio/_configuration.py index ec5596c8202..cac7a3ff8c9 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/HeadExceptions/headexceptions/aio/_configuration.py +++ b/test/azure/legacy/Expected/AcceptanceTests/HeadExceptions/headexceptions/aio/_configuration.py @@ -19,7 +19,7 @@ from azure.core.credentials_async import AsyncTokenCredential -class AutoRestHeadExceptionTestServiceConfiguration(Configuration): +class AutoRestHeadExceptionTestServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestHeadExceptionTestService. Note that all parameters used to create this instance are saved as instance diff --git a/test/azure/legacy/Expected/AcceptanceTests/HeadExceptions/headexceptions/aio/operations/_head_exception_operations.py b/test/azure/legacy/Expected/AcceptanceTests/HeadExceptions/headexceptions/aio/operations/_head_exception_operations.py index 3e53419d50a..c0422291ca6 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/HeadExceptions/headexceptions/aio/operations/_head_exception_operations.py +++ b/test/azure/legacy/Expected/AcceptanceTests/HeadExceptions/headexceptions/aio/operations/_head_exception_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ( ClientAuthenticationError, @@ -66,7 +65,9 @@ async def head200(self, **kwargs: Any) -> bool: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -98,7 +99,9 @@ async def head204(self, **kwargs: Any) -> bool: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [204]: @@ -130,7 +133,9 @@ async def head404(self, **kwargs: Any) -> bool: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [204]: 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 af8a18fc957..03d423518f7 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ( ClientAuthenticationError, @@ -27,7 +26,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar + from typing import Any, Callable, Dict, Optional, TypeVar T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -118,7 +117,9 @@ def head200( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -153,7 +154,9 @@ def head204( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [204]: @@ -188,7 +191,9 @@ def head404( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [204]: diff --git a/test/azure/legacy/Expected/AcceptanceTests/HeadWithAzureKeyCredentialPolicy/headwithazurekeycredentialpolicy/_auto_rest_head_test_service.py b/test/azure/legacy/Expected/AcceptanceTests/HeadWithAzureKeyCredentialPolicy/headwithazurekeycredentialpolicy/_auto_rest_head_test_service.py index 8060d160646..f92487d8d81 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/HeadWithAzureKeyCredentialPolicy/headwithazurekeycredentialpolicy/_auto_rest_head_test_service.py +++ b/test/azure/legacy/Expected/AcceptanceTests/HeadWithAzureKeyCredentialPolicy/headwithazurekeycredentialpolicy/_auto_rest_head_test_service.py @@ -17,7 +17,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Dict, Optional + from typing import Any, Dict from azure.core.credentials import AzureKeyCredential from azure.core.rest import HttpRequest, HttpResponse diff --git a/test/azure/legacy/Expected/AcceptanceTests/HeadWithAzureKeyCredentialPolicy/headwithazurekeycredentialpolicy/_configuration.py b/test/azure/legacy/Expected/AcceptanceTests/HeadWithAzureKeyCredentialPolicy/headwithazurekeycredentialpolicy/_configuration.py index e8c3ad914f3..d7ca9c83888 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/HeadWithAzureKeyCredentialPolicy/headwithazurekeycredentialpolicy/_configuration.py +++ b/test/azure/legacy/Expected/AcceptanceTests/HeadWithAzureKeyCredentialPolicy/headwithazurekeycredentialpolicy/_configuration.py @@ -21,7 +21,7 @@ from azure.core.credentials import AzureKeyCredential -class AutoRestHeadTestServiceConfiguration(Configuration): +class AutoRestHeadTestServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestHeadTestService. Note that all parameters used to create this instance are saved as instance diff --git a/test/azure/legacy/Expected/AcceptanceTests/HeadWithAzureKeyCredentialPolicy/headwithazurekeycredentialpolicy/aio/_auto_rest_head_test_service.py b/test/azure/legacy/Expected/AcceptanceTests/HeadWithAzureKeyCredentialPolicy/headwithazurekeycredentialpolicy/aio/_auto_rest_head_test_service.py index c659000aef4..640ddbab15c 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/HeadWithAzureKeyCredentialPolicy/headwithazurekeycredentialpolicy/aio/_auto_rest_head_test_service.py +++ b/test/azure/legacy/Expected/AcceptanceTests/HeadWithAzureKeyCredentialPolicy/headwithazurekeycredentialpolicy/aio/_auto_rest_head_test_service.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional, TYPE_CHECKING +from typing import Any, Awaitable, TYPE_CHECKING from azure.core.credentials import AzureKeyCredential from azure.core.rest import AsyncHttpResponse, HttpRequest diff --git a/test/azure/legacy/Expected/AcceptanceTests/HeadWithAzureKeyCredentialPolicy/headwithazurekeycredentialpolicy/aio/_configuration.py b/test/azure/legacy/Expected/AcceptanceTests/HeadWithAzureKeyCredentialPolicy/headwithazurekeycredentialpolicy/aio/_configuration.py index 1dc96b9adbb..4ba4a344e53 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/HeadWithAzureKeyCredentialPolicy/headwithazurekeycredentialpolicy/aio/_configuration.py +++ b/test/azure/legacy/Expected/AcceptanceTests/HeadWithAzureKeyCredentialPolicy/headwithazurekeycredentialpolicy/aio/_configuration.py @@ -16,7 +16,7 @@ from .._version import VERSION -class AutoRestHeadTestServiceConfiguration(Configuration): +class AutoRestHeadTestServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestHeadTestService. Note that all parameters used to create this instance are saved as instance diff --git a/test/azure/legacy/Expected/AcceptanceTests/HeadWithAzureKeyCredentialPolicy/headwithazurekeycredentialpolicy/aio/operations/_http_success_operations.py b/test/azure/legacy/Expected/AcceptanceTests/HeadWithAzureKeyCredentialPolicy/headwithazurekeycredentialpolicy/aio/operations/_http_success_operations.py index 26624cdc979..c8660913cf7 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/HeadWithAzureKeyCredentialPolicy/headwithazurekeycredentialpolicy/aio/operations/_http_success_operations.py +++ b/test/azure/legacy/Expected/AcceptanceTests/HeadWithAzureKeyCredentialPolicy/headwithazurekeycredentialpolicy/aio/operations/_http_success_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ( ClientAuthenticationError, @@ -66,7 +65,9 @@ async def head200(self, **kwargs: Any) -> bool: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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, 404]: @@ -98,7 +99,9 @@ async def head204(self, **kwargs: Any) -> bool: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [204, 404]: @@ -130,7 +133,9 @@ async def head404(self, **kwargs: Any) -> bool: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [204, 404]: 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 b3721f84520..e99151c6b1e 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ( ClientAuthenticationError, @@ -27,7 +26,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar + from typing import Any, Callable, Dict, Optional, TypeVar T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -118,7 +117,9 @@ def head200( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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, 404]: @@ -153,7 +154,9 @@ def head204( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [204, 404]: @@ -188,7 +191,9 @@ def head404( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [204, 404]: diff --git a/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/_auto_rest_long_running_operation_test_service.py b/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/_auto_rest_long_running_operation_test_service.py index bb96b36e2aa..9029eb9dbd6 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/_auto_rest_long_running_operation_test_service.py +++ b/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/_auto_rest_long_running_operation_test_service.py @@ -18,7 +18,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Optional + from typing import Any from azure.core.credentials import TokenCredential from azure.core.rest import HttpRequest, HttpResponse diff --git a/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/_configuration.py b/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/_configuration.py index 477e4e43927..7bb8301e182 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/_configuration.py +++ b/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/_configuration.py @@ -21,7 +21,9 @@ from azure.core.credentials import TokenCredential -class AutoRestLongRunningOperationTestServiceConfiguration(Configuration): +class AutoRestLongRunningOperationTestServiceConfiguration( + Configuration +): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestLongRunningOperationTestService. Note that all parameters used to create this instance are saved as instance diff --git a/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/aio/_auto_rest_long_running_operation_test_service.py b/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/aio/_auto_rest_long_running_operation_test_service.py index b8a74c73c1f..c8411b9c351 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/aio/_auto_rest_long_running_operation_test_service.py +++ b/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/aio/_auto_rest_long_running_operation_test_service.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional, TYPE_CHECKING +from typing import Any, Awaitable, TYPE_CHECKING from azure.core.rest import AsyncHttpResponse, HttpRequest from azure.mgmt.core import AsyncARMPipelineClient diff --git a/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/aio/_configuration.py b/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/aio/_configuration.py index 1fc0cf77ca3..95cdfa836ad 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/aio/_configuration.py +++ b/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/aio/_configuration.py @@ -19,7 +19,9 @@ from azure.core.credentials_async import AsyncTokenCredential -class AutoRestLongRunningOperationTestServiceConfiguration(Configuration): +class AutoRestLongRunningOperationTestServiceConfiguration( + Configuration +): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestLongRunningOperationTestService. Note that all parameters used to create this instance are saved as instance diff --git a/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/aio/operations/_lr_os_custom_header_operations.py b/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/aio/operations/_lr_os_custom_header_operations.py index 240304f465d..98469f25027 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/aio/operations/_lr_os_custom_header_operations.py +++ b/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/aio/operations/_lr_os_custom_header_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar, Union from azure.core.exceptions import ( ClientAuthenticationError, @@ -81,7 +80,9 @@ async def _put_async_retry_succeeded_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -129,7 +130,7 @@ async def begin_put_async_retry_succeeded( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -166,8 +167,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_put_async_retry_succeeded.metadata = {"url": "/lro/customheader/putasync/retry/succeeded"} # type: ignore @@ -193,7 +193,9 @@ async def _put201_creating_succeeded200_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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, 201]: @@ -238,7 +240,7 @@ async def begin_put201_creating_succeeded200( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -268,8 +270,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_put201_creating_succeeded200.metadata = {"url": "/lro/customheader/put/201/creating/succeeded/200"} # type: ignore @@ -293,7 +294,9 @@ async def _post202_retry200_initial(self, product: Optional["_models.Product"] = request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202]: @@ -332,7 +335,7 @@ async def begin_post202_retry200( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop("cls", None) # type: ClsType[None] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -359,8 +362,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_post202_retry200.metadata = {"url": "/lro/customheader/post/202/retry/200"} # type: ignore @@ -386,7 +388,9 @@ async def _post_async_retry_succeeded_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202]: @@ -429,7 +433,7 @@ async def begin_post_async_retry_succeeded( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop("cls", None) # type: ClsType[None] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -456,7 +460,6 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_post_async_retry_succeeded.metadata = {"url": "/lro/customheader/postasync/retry/succeeded"} # type: ignore diff --git a/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/aio/operations/_lro_retrys_operations.py b/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/aio/operations/_lro_retrys_operations.py index 72b4b1f5445..41391dfe6af 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/aio/operations/_lro_retrys_operations.py +++ b/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/aio/operations/_lro_retrys_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar, Union from azure.core.exceptions import ( ClientAuthenticationError, @@ -84,7 +83,9 @@ async def _put201_creating_succeeded200_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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, 201]: @@ -128,7 +129,7 @@ async def begin_put201_creating_succeeded200( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -158,8 +159,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_put201_creating_succeeded200.metadata = {"url": "/lro/retryerror/put/201/creating/succeeded/200"} # type: ignore @@ -185,7 +185,9 @@ async def _put_async_relative_retry_succeeded_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -232,7 +234,7 @@ async def begin_put_async_relative_retry_succeeded( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -269,8 +271,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_put_async_relative_retry_succeeded.metadata = {"url": "/lro/retryerror/putasync/retry/succeeded"} # type: ignore @@ -285,7 +286,9 @@ async def _delete_provisioning202_accepted200_succeeded_initial(self, **kwargs: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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, 202]: @@ -330,7 +333,7 @@ async def begin_delete_provisioning202_accepted200_succeeded( :rtype: ~azure.core.polling.AsyncLROPoller[~lro.models.Product] :raises: ~azure.core.exceptions.HttpResponseError """ - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -360,8 +363,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_delete_provisioning202_accepted200_succeeded.metadata = {"url": "/lro/retryerror/delete/provisioning/202/accepted/200/succeeded"} # type: ignore @@ -376,7 +378,9 @@ async def _delete202_retry200_initial(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202]: @@ -409,7 +413,7 @@ async def begin_delete202_retry200(self, **kwargs: Any) -> AsyncLROPoller[None]: :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises: ~azure.core.exceptions.HttpResponseError """ - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop("cls", None) # type: ClsType[None] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -434,8 +438,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_delete202_retry200.metadata = {"url": "/lro/retryerror/delete/202/retry/200"} # type: ignore @@ -450,7 +453,9 @@ async def _delete_async_relative_retry_succeeded_initial(self, **kwargs: Any) -> request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202]: @@ -486,7 +491,7 @@ async def begin_delete_async_relative_retry_succeeded(self, **kwargs: Any) -> As :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises: ~azure.core.exceptions.HttpResponseError """ - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop("cls", None) # type: ClsType[None] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -511,8 +516,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_delete_async_relative_retry_succeeded.metadata = {"url": "/lro/retryerror/deleteasync/retry/succeeded"} # type: ignore @@ -536,7 +540,9 @@ async def _post202_retry200_initial(self, product: Optional["_models.Product"] = request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202]: @@ -574,7 +580,7 @@ async def begin_post202_retry200( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop("cls", None) # type: ClsType[None] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -601,8 +607,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_post202_retry200.metadata = {"url": "/lro/retryerror/post/202/retry/200"} # type: ignore @@ -628,7 +633,9 @@ async def _post_async_relative_retry_succeeded_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202]: @@ -670,7 +677,7 @@ async def begin_post_async_relative_retry_succeeded( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop("cls", None) # type: ClsType[None] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -697,7 +704,6 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_post_async_relative_retry_succeeded.metadata = {"url": "/lro/retryerror/postasync/retry/succeeded"} # type: ignore diff --git a/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/aio/operations/_lros_operations.py b/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/aio/operations/_lros_operations.py index dfcccd521bd..7ee1711e786 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/aio/operations/_lros_operations.py +++ b/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/aio/operations/_lros_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, List, Optional, TypeVar, Union -import warnings +from typing import Any, Callable, Dict, List, Optional, TypeVar, Union from azure.core.exceptions import ( ClientAuthenticationError, @@ -77,7 +76,7 @@ ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] -class LROsOperations: +class LROsOperations: # pylint: disable=too-many-public-methods """LROsOperations async operations. You should not instantiate this class directly. Instead, you should create a Client instance that @@ -121,7 +120,9 @@ async def _put200_succeeded_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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, 204]: @@ -162,7 +163,7 @@ async def begin_put200_succeeded( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -192,8 +193,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_put200_succeeded.metadata = {"url": "/lro/put/200/succeeded"} # type: ignore @@ -219,7 +219,9 @@ async def _patch200_succeeded_ignore_headers_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -263,7 +265,7 @@ async def begin_patch200_succeeded_ignore_headers( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -298,8 +300,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_patch200_succeeded_ignore_headers.metadata = {"url": "/lro/patch/200/succeeded/ignoreheaders"} # type: ignore @@ -325,7 +326,9 @@ async def _patch201_retry_with_async_header_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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, 201]: @@ -372,7 +375,7 @@ async def begin_patch201_retry_with_async_header( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -404,8 +407,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_patch201_retry_with_async_header.metadata = {"url": "/lro/patch/201/retry/onlyAsyncHeader"} # type: ignore @@ -431,7 +433,9 @@ async def _patch202_retry_with_async_and_location_header_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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, 202]: @@ -480,7 +484,7 @@ async def begin_patch202_retry_with_async_and_location_header( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -510,8 +514,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_patch202_retry_with_async_and_location_header.metadata = {"url": "/lro/patch/202/retry/asyncAndLocationHeader"} # type: ignore @@ -537,7 +540,9 @@ async def _put201_succeeded_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [201]: @@ -576,7 +581,7 @@ async def begin_put201_succeeded( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -606,8 +611,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_put201_succeeded.metadata = {"url": "/lro/put/201/succeeded"} # type: ignore @@ -622,7 +626,9 @@ async def _post202_list_initial(self, **kwargs: Any) -> Optional[List["_models.P request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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, 202]: @@ -665,7 +671,7 @@ async def begin_post202_list(self, **kwargs: Any) -> AsyncLROPoller[List["_model :rtype: ~azure.core.polling.AsyncLROPoller[list[~lro.models.Product]] :raises: ~azure.core.exceptions.HttpResponseError """ - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop("cls", None) # type: ClsType[List["_models.Product"]] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -693,8 +699,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_post202_list.metadata = {"url": "/lro/list"} # type: ignore @@ -720,7 +725,9 @@ async def _put200_succeeded_no_state_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -759,7 +766,7 @@ async def begin_put200_succeeded_no_state( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -789,8 +796,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_put200_succeeded_no_state.metadata = {"url": "/lro/put/200/succeeded/nostate"} # type: ignore @@ -816,7 +822,9 @@ async def _put202_retry200_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202]: @@ -856,7 +864,7 @@ async def begin_put202_retry200( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -886,8 +894,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_put202_retry200.metadata = {"url": "/lro/put/202/retry/200"} # type: ignore @@ -913,7 +920,9 @@ async def _put201_creating_succeeded200_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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, 201]: @@ -957,7 +966,7 @@ async def begin_put201_creating_succeeded200( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -987,8 +996,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_put201_creating_succeeded200.metadata = {"url": "/lro/put/201/creating/succeeded/200"} # type: ignore @@ -1014,7 +1022,9 @@ async def _put200_updating_succeeded204_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1054,7 +1064,7 @@ async def begin_put200_updating_succeeded204( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -1084,8 +1094,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_put200_updating_succeeded204.metadata = {"url": "/lro/put/200/updating/succeeded/200"} # type: ignore @@ -1111,7 +1120,9 @@ async def _put201_creating_failed200_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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, 201]: @@ -1155,7 +1166,7 @@ async def begin_put201_creating_failed200( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -1185,8 +1196,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_put201_creating_failed200.metadata = {"url": "/lro/put/201/created/failed/200"} # type: ignore @@ -1212,7 +1222,9 @@ async def _put200_acceptedcanceled200_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1252,7 +1264,7 @@ async def begin_put200_acceptedcanceled200( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -1282,8 +1294,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_put200_acceptedcanceled200.metadata = {"url": "/lro/put/200/accepted/canceled/200"} # type: ignore @@ -1309,7 +1320,9 @@ async def _put_no_header_in_retry_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202]: @@ -1351,7 +1364,7 @@ async def begin_put_no_header_in_retry( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -1384,8 +1397,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_put_no_header_in_retry.metadata = {"url": "/lro/put/noheader/202/200"} # type: ignore @@ -1411,7 +1423,9 @@ async def _put_async_retry_succeeded_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1458,7 +1472,7 @@ async def begin_put_async_retry_succeeded( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -1495,8 +1509,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_put_async_retry_succeeded.metadata = {"url": "/lro/putasync/retry/succeeded"} # type: ignore @@ -1522,7 +1535,9 @@ async def _put_async_no_retry_succeeded_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1568,7 +1583,7 @@ async def begin_put_async_no_retry_succeeded( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -1604,8 +1619,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_put_async_no_retry_succeeded.metadata = {"url": "/lro/putasync/noretry/succeeded"} # type: ignore @@ -1631,7 +1645,9 @@ async def _put_async_retry_failed_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1678,7 +1694,7 @@ async def begin_put_async_retry_failed( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -1715,8 +1731,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_put_async_retry_failed.metadata = {"url": "/lro/putasync/retry/failed"} # type: ignore @@ -1742,7 +1757,9 @@ async def _put_async_no_retrycanceled_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1788,7 +1805,7 @@ async def begin_put_async_no_retrycanceled( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -1824,8 +1841,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_put_async_no_retrycanceled.metadata = {"url": "/lro/putasync/noretry/canceled"} # type: ignore @@ -1851,7 +1867,9 @@ async def _put_async_no_header_in_retry_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [201]: @@ -1896,7 +1914,7 @@ async def begin_put_async_no_header_in_retry( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -1931,8 +1949,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_put_async_no_header_in_retry.metadata = {"url": "/lro/putasync/noheader/201/200"} # type: ignore @@ -1956,7 +1973,9 @@ async def _put_non_resource_initial(self, sku: Optional["_models.Sku"] = None, * request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202]: @@ -1993,7 +2012,7 @@ async def begin_put_non_resource( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop("cls", None) # type: ClsType["_models.Sku"] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -2023,8 +2042,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_put_non_resource.metadata = {"url": "/lro/putnonresource/202/200"} # type: ignore @@ -2050,7 +2068,9 @@ async def _put_async_non_resource_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202]: @@ -2087,7 +2107,7 @@ async def begin_put_async_non_resource( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop("cls", None) # type: ClsType["_models.Sku"] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -2117,8 +2137,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_put_async_non_resource.metadata = {"url": "/lro/putnonresourceasync/202/200"} # type: ignore @@ -2145,7 +2164,9 @@ async def _put_sub_resource_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202]: @@ -2183,7 +2204,7 @@ async def begin_put_sub_resource( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop("cls", None) # type: ClsType["_models.SubProduct"] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -2213,8 +2234,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_put_sub_resource.metadata = {"url": "/lro/putsubresource/202/200"} # type: ignore @@ -2241,7 +2261,9 @@ async def _put_async_sub_resource_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202]: @@ -2279,7 +2301,7 @@ async def begin_put_async_sub_resource( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop("cls", None) # type: ClsType["_models.SubProduct"] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -2309,8 +2331,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_put_async_sub_resource.metadata = {"url": "/lro/putsubresourceasync/202/200"} # type: ignore @@ -2325,7 +2346,9 @@ async def _delete_provisioning202_accepted200_succeeded_initial(self, **kwargs: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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, 202]: @@ -2370,7 +2393,7 @@ async def begin_delete_provisioning202_accepted200_succeeded( :rtype: ~azure.core.polling.AsyncLROPoller[~lro.models.Product] :raises: ~azure.core.exceptions.HttpResponseError """ - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -2400,8 +2423,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_delete_provisioning202_accepted200_succeeded.metadata = {"url": "/lro/delete/provisioning/202/accepted/200/succeeded"} # type: ignore @@ -2416,7 +2438,9 @@ async def _delete_provisioning202_deleting_failed200_initial(self, **kwargs: Any request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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, 202]: @@ -2459,7 +2483,7 @@ async def begin_delete_provisioning202_deleting_failed200(self, **kwargs: Any) - :rtype: ~azure.core.polling.AsyncLROPoller[~lro.models.Product] :raises: ~azure.core.exceptions.HttpResponseError """ - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -2487,8 +2511,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_delete_provisioning202_deleting_failed200.metadata = {"url": "/lro/delete/provisioning/202/deleting/200/failed"} # type: ignore @@ -2503,7 +2526,9 @@ async def _delete_provisioning202_deletingcanceled200_initial(self, **kwargs: An request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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, 202]: @@ -2548,7 +2573,7 @@ async def begin_delete_provisioning202_deletingcanceled200( :rtype: ~azure.core.polling.AsyncLROPoller[~lro.models.Product] :raises: ~azure.core.exceptions.HttpResponseError """ - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -2576,8 +2601,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_delete_provisioning202_deletingcanceled200.metadata = {"url": "/lro/delete/provisioning/202/deleting/200/canceled"} # type: ignore @@ -2592,7 +2616,9 @@ async def _delete204_succeeded_initial(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [204]: @@ -2620,7 +2646,7 @@ async def begin_delete204_succeeded(self, **kwargs: Any) -> AsyncLROPoller[None] :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises: ~azure.core.exceptions.HttpResponseError """ - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop("cls", None) # type: ClsType[None] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -2645,8 +2671,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_delete204_succeeded.metadata = {"url": "/lro/delete/204/succeeded"} # type: ignore @@ -2661,7 +2686,9 @@ async def _delete202_retry200_initial(self, **kwargs: Any) -> Optional["_models. request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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, 202]: @@ -2702,7 +2729,7 @@ async def begin_delete202_retry200(self, **kwargs: Any) -> AsyncLROPoller["_mode :rtype: ~azure.core.polling.AsyncLROPoller[~lro.models.Product] :raises: ~azure.core.exceptions.HttpResponseError """ - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -2730,8 +2757,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_delete202_retry200.metadata = {"url": "/lro/delete/202/retry/200"} # type: ignore @@ -2746,7 +2772,9 @@ async def _delete202_no_retry204_initial(self, **kwargs: Any) -> Optional["_mode request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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, 202]: @@ -2787,7 +2815,7 @@ async def begin_delete202_no_retry204(self, **kwargs: Any) -> AsyncLROPoller["_m :rtype: ~azure.core.polling.AsyncLROPoller[~lro.models.Product] :raises: ~azure.core.exceptions.HttpResponseError """ - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -2815,8 +2843,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_delete202_no_retry204.metadata = {"url": "/lro/delete/202/noretry/204"} # type: ignore @@ -2831,7 +2858,9 @@ async def _delete_no_header_in_retry_initial(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202, 204]: @@ -2864,7 +2893,7 @@ async def begin_delete_no_header_in_retry(self, **kwargs: Any) -> AsyncLROPoller :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises: ~azure.core.exceptions.HttpResponseError """ - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop("cls", None) # type: ClsType[None] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -2889,8 +2918,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_delete_no_header_in_retry.metadata = {"url": "/lro/delete/noheader"} # type: ignore @@ -2905,7 +2933,9 @@ async def _delete_async_no_header_in_retry_initial(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202, 204]: @@ -2938,7 +2968,7 @@ async def begin_delete_async_no_header_in_retry(self, **kwargs: Any) -> AsyncLRO :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises: ~azure.core.exceptions.HttpResponseError """ - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop("cls", None) # type: ClsType[None] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -2963,8 +2993,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_delete_async_no_header_in_retry.metadata = {"url": "/lro/deleteasync/noheader/202/204"} # type: ignore @@ -2979,7 +3008,9 @@ async def _delete_async_retry_succeeded_initial(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202]: @@ -3015,7 +3046,7 @@ async def begin_delete_async_retry_succeeded(self, **kwargs: Any) -> AsyncLROPol :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises: ~azure.core.exceptions.HttpResponseError """ - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop("cls", None) # type: ClsType[None] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -3040,8 +3071,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_delete_async_retry_succeeded.metadata = {"url": "/lro/deleteasync/retry/succeeded"} # type: ignore @@ -3056,7 +3086,9 @@ async def _delete_async_no_retry_succeeded_initial(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202]: @@ -3092,7 +3124,7 @@ async def begin_delete_async_no_retry_succeeded(self, **kwargs: Any) -> AsyncLRO :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises: ~azure.core.exceptions.HttpResponseError """ - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop("cls", None) # type: ClsType[None] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -3117,8 +3149,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_delete_async_no_retry_succeeded.metadata = {"url": "/lro/deleteasync/noretry/succeeded"} # type: ignore @@ -3133,7 +3164,9 @@ async def _delete_async_retry_failed_initial(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202]: @@ -3169,7 +3202,7 @@ async def begin_delete_async_retry_failed(self, **kwargs: Any) -> AsyncLROPoller :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises: ~azure.core.exceptions.HttpResponseError """ - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop("cls", None) # type: ClsType[None] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -3194,8 +3227,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_delete_async_retry_failed.metadata = {"url": "/lro/deleteasync/retry/failed"} # type: ignore @@ -3210,7 +3242,9 @@ async def _delete_async_retrycanceled_initial(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202]: @@ -3246,7 +3280,7 @@ async def begin_delete_async_retrycanceled(self, **kwargs: Any) -> AsyncLROPolle :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises: ~azure.core.exceptions.HttpResponseError """ - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop("cls", None) # type: ClsType[None] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -3271,8 +3305,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_delete_async_retrycanceled.metadata = {"url": "/lro/deleteasync/retry/canceled"} # type: ignore @@ -3287,7 +3320,9 @@ async def _post200_with_payload_initial(self, **kwargs: Any) -> "_models.Sku": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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, 202]: @@ -3324,7 +3359,7 @@ async def begin_post200_with_payload(self, **kwargs: Any) -> AsyncLROPoller["_mo :rtype: ~azure.core.polling.AsyncLROPoller[~lro.models.Sku] :raises: ~azure.core.exceptions.HttpResponseError """ - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop("cls", None) # type: ClsType["_models.Sku"] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -3352,8 +3387,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_post200_with_payload.metadata = {"url": "/lro/post/payload/200"} # type: ignore @@ -3377,7 +3411,9 @@ async def _post202_retry200_initial(self, product: Optional["_models.Product"] = request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202]: @@ -3415,7 +3451,7 @@ async def begin_post202_retry200( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop("cls", None) # type: ClsType[None] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -3442,8 +3478,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_post202_retry200.metadata = {"url": "/lro/post/202/retry/200"} # type: ignore @@ -3469,7 +3504,9 @@ async def _post202_no_retry204_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202]: @@ -3512,7 +3549,7 @@ async def begin_post202_no_retry204( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -3546,8 +3583,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_post202_no_retry204.metadata = {"url": "/lro/post/202/noretry/204"} # type: ignore @@ -3562,7 +3598,9 @@ async def _post_double_headers_final_location_get_initial(self, **kwargs: Any) - request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202]: @@ -3597,7 +3635,7 @@ async def begin_post_double_headers_final_location_get(self, **kwargs: Any) -> A :rtype: ~azure.core.polling.AsyncLROPoller[~lro.models.Product] :raises: ~azure.core.exceptions.HttpResponseError """ - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -3625,8 +3663,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_post_double_headers_final_location_get.metadata = {"url": "/lro/LROPostDoubleHeadersFinalLocationGet"} # type: ignore @@ -3641,7 +3678,9 @@ async def _post_double_headers_final_azure_header_get_initial(self, **kwargs: An request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202]: @@ -3678,7 +3717,7 @@ async def begin_post_double_headers_final_azure_header_get( :rtype: ~azure.core.polling.AsyncLROPoller[~lro.models.Product] :raises: ~azure.core.exceptions.HttpResponseError """ - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -3708,8 +3747,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_post_double_headers_final_azure_header_get.metadata = {"url": "/lro/LROPostDoubleHeadersFinalAzureHeaderGet"} # type: ignore @@ -3724,7 +3762,9 @@ async def _post_double_headers_final_azure_header_get_default_initial(self, **kw request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202]: @@ -3761,7 +3801,7 @@ async def begin_post_double_headers_final_azure_header_get_default( :rtype: ~azure.core.polling.AsyncLROPoller[~lro.models.Product] :raises: ~azure.core.exceptions.HttpResponseError """ - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -3791,8 +3831,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_post_double_headers_final_azure_header_get_default.metadata = {"url": "/lro/LROPostDoubleHeadersFinalAzureHeaderGetDefault"} # type: ignore @@ -3818,7 +3857,9 @@ async def _post_async_retry_succeeded_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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, 202]: @@ -3868,7 +3909,7 @@ async def begin_post_async_retry_succeeded( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -3898,8 +3939,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_post_async_retry_succeeded.metadata = {"url": "/lro/postasync/retry/succeeded"} # type: ignore @@ -3925,7 +3965,9 @@ async def _post_async_no_retry_succeeded_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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, 202]: @@ -3975,7 +4017,7 @@ async def begin_post_async_no_retry_succeeded( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -4005,8 +4047,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_post_async_no_retry_succeeded.metadata = {"url": "/lro/postasync/noretry/succeeded"} # type: ignore @@ -4032,7 +4073,9 @@ async def _post_async_retry_failed_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202]: @@ -4074,7 +4117,7 @@ async def begin_post_async_retry_failed( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop("cls", None) # type: ClsType[None] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -4101,8 +4144,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_post_async_retry_failed.metadata = {"url": "/lro/postasync/retry/failed"} # type: ignore @@ -4128,7 +4170,9 @@ async def _post_async_retrycanceled_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202]: @@ -4170,7 +4214,7 @@ async def begin_post_async_retrycanceled( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop("cls", None) # type: ClsType[None] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -4197,7 +4241,6 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_post_async_retrycanceled.metadata = {"url": "/lro/postasync/retry/canceled"} # type: ignore diff --git a/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/aio/operations/_lrosads_operations.py b/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/aio/operations/_lrosads_operations.py index 345ec6b7e33..72fe7322560 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/aio/operations/_lrosads_operations.py +++ b/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/aio/operations/_lrosads_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar, Union from azure.core.exceptions import ( ClientAuthenticationError, @@ -59,7 +58,7 @@ ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] -class LROSADsOperations: +class LROSADsOperations: # pylint: disable=too-many-public-methods """LROSADsOperations async operations. You should not instantiate this class directly. Instead, you should create a Client instance that @@ -103,7 +102,9 @@ async def _put_non_retry400_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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, 201]: @@ -145,7 +146,7 @@ async def begin_put_non_retry400( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -175,8 +176,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_put_non_retry400.metadata = {"url": "/lro/nonretryerror/put/400"} # type: ignore @@ -202,7 +202,9 @@ async def _put_non_retry201_creating400_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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, 201]: @@ -245,7 +247,7 @@ async def begin_put_non_retry201_creating400( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -275,8 +277,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_put_non_retry201_creating400.metadata = {"url": "/lro/nonretryerror/put/201/creating/400"} # type: ignore @@ -302,7 +303,9 @@ async def _put_non_retry201_creating400_invalid_json_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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, 201]: @@ -345,7 +348,7 @@ async def begin_put_non_retry201_creating400_invalid_json( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -375,8 +378,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_put_non_retry201_creating400_invalid_json.metadata = {"url": "/lro/nonretryerror/put/201/creating/400/invalidjson"} # type: ignore @@ -402,7 +404,9 @@ async def _put_async_relative_retry400_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -448,7 +452,7 @@ async def begin_put_async_relative_retry400( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -485,8 +489,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_put_async_relative_retry400.metadata = {"url": "/lro/nonretryerror/putasync/retry/400"} # type: ignore @@ -501,7 +504,9 @@ async def _delete_non_retry400_initial(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202]: @@ -533,7 +538,7 @@ async def begin_delete_non_retry400(self, **kwargs: Any) -> AsyncLROPoller[None] :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises: ~azure.core.exceptions.HttpResponseError """ - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop("cls", None) # type: ClsType[None] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -558,8 +563,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_delete_non_retry400.metadata = {"url": "/lro/nonretryerror/delete/400"} # type: ignore @@ -574,7 +578,9 @@ async def _delete202_non_retry400_initial(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202]: @@ -606,7 +612,7 @@ async def begin_delete202_non_retry400(self, **kwargs: Any) -> AsyncLROPoller[No :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises: ~azure.core.exceptions.HttpResponseError """ - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop("cls", None) # type: ClsType[None] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -631,8 +637,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_delete202_non_retry400.metadata = {"url": "/lro/nonretryerror/delete/202/retry/400"} # type: ignore @@ -647,7 +652,9 @@ async def _delete_async_relative_retry400_initial(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202]: @@ -683,7 +690,7 @@ async def begin_delete_async_relative_retry400(self, **kwargs: Any) -> AsyncLROP :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises: ~azure.core.exceptions.HttpResponseError """ - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop("cls", None) # type: ClsType[None] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -708,8 +715,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_delete_async_relative_retry400.metadata = {"url": "/lro/nonretryerror/deleteasync/retry/400"} # type: ignore @@ -733,7 +739,9 @@ async def _post_non_retry400_initial(self, product: Optional["_models.Product"] request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202]: @@ -770,7 +778,7 @@ async def begin_post_non_retry400( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop("cls", None) # type: ClsType[None] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -797,8 +805,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_post_non_retry400.metadata = {"url": "/lro/nonretryerror/post/400"} # type: ignore @@ -822,7 +829,9 @@ async def _post202_non_retry400_initial(self, product: Optional["_models.Product request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202]: @@ -859,7 +868,7 @@ async def begin_post202_non_retry400( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop("cls", None) # type: ClsType[None] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -886,8 +895,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_post202_non_retry400.metadata = {"url": "/lro/nonretryerror/post/202/retry/400"} # type: ignore @@ -913,7 +921,9 @@ async def _post_async_relative_retry400_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202]: @@ -954,7 +964,7 @@ async def begin_post_async_relative_retry400( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop("cls", None) # type: ClsType[None] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -981,8 +991,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_post_async_relative_retry400.metadata = {"url": "/lro/nonretryerror/postasync/retry/400"} # type: ignore @@ -1008,7 +1017,9 @@ async def _put_error201_no_provisioning_state_payload_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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, 201]: @@ -1050,7 +1061,7 @@ async def begin_put_error201_no_provisioning_state_payload( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -1080,8 +1091,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_put_error201_no_provisioning_state_payload.metadata = {"url": "/lro/error/put/201/noprovisioningstatepayload"} # type: ignore @@ -1107,7 +1117,9 @@ async def _put_async_relative_retry_no_status_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1154,7 +1166,7 @@ async def begin_put_async_relative_retry_no_status( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -1191,8 +1203,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_put_async_relative_retry_no_status.metadata = {"url": "/lro/error/putasync/retry/nostatus"} # type: ignore @@ -1218,7 +1229,9 @@ async def _put_async_relative_retry_no_status_payload_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1265,7 +1278,7 @@ async def begin_put_async_relative_retry_no_status_payload( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -1302,8 +1315,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_put_async_relative_retry_no_status_payload.metadata = {"url": "/lro/error/putasync/retry/nostatuspayload"} # type: ignore @@ -1318,7 +1330,9 @@ async def _delete204_succeeded_initial(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [204]: @@ -1346,7 +1360,7 @@ async def begin_delete204_succeeded(self, **kwargs: Any) -> AsyncLROPoller[None] :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises: ~azure.core.exceptions.HttpResponseError """ - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop("cls", None) # type: ClsType[None] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -1371,8 +1385,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_delete204_succeeded.metadata = {"url": "/lro/error/delete/204/nolocation"} # type: ignore @@ -1387,7 +1400,9 @@ async def _delete_async_relative_retry_no_status_initial(self, **kwargs: Any) -> request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202]: @@ -1423,7 +1438,7 @@ async def begin_delete_async_relative_retry_no_status(self, **kwargs: Any) -> As :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises: ~azure.core.exceptions.HttpResponseError """ - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop("cls", None) # type: ClsType[None] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -1448,8 +1463,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_delete_async_relative_retry_no_status.metadata = {"url": "/lro/error/deleteasync/retry/nostatus"} # type: ignore @@ -1473,7 +1487,9 @@ async def _post202_no_location_initial(self, product: Optional["_models.Product" request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202]: @@ -1511,7 +1527,7 @@ async def begin_post202_no_location( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop("cls", None) # type: ClsType[None] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -1538,8 +1554,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_post202_no_location.metadata = {"url": "/lro/error/post/202/nolocation"} # type: ignore @@ -1565,7 +1580,9 @@ async def _post_async_relative_retry_no_payload_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202]: @@ -1607,7 +1624,7 @@ async def begin_post_async_relative_retry_no_payload( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop("cls", None) # type: ClsType[None] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -1634,8 +1651,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_post_async_relative_retry_no_payload.metadata = {"url": "/lro/error/postasync/retry/nopayload"} # type: ignore @@ -1661,7 +1677,9 @@ async def _put200_invalid_json_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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, 204]: @@ -1702,7 +1720,7 @@ async def begin_put200_invalid_json( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -1732,8 +1750,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_put200_invalid_json.metadata = {"url": "/lro/error/put/200/invalidjson"} # type: ignore @@ -1759,7 +1776,9 @@ async def _put_async_relative_retry_invalid_header_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1806,7 +1825,7 @@ async def begin_put_async_relative_retry_invalid_header( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -1843,8 +1862,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_put_async_relative_retry_invalid_header.metadata = {"url": "/lro/error/putasync/retry/invalidheader"} # type: ignore @@ -1870,7 +1888,9 @@ async def _put_async_relative_retry_invalid_json_polling_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1917,7 +1937,7 @@ async def begin_put_async_relative_retry_invalid_json_polling( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -1954,8 +1974,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_put_async_relative_retry_invalid_json_polling.metadata = {"url": "/lro/error/putasync/retry/invalidjsonpolling"} # type: ignore @@ -1970,7 +1989,9 @@ async def _delete202_retry_invalid_header_initial(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202]: @@ -2003,7 +2024,7 @@ async def begin_delete202_retry_invalid_header(self, **kwargs: Any) -> AsyncLROP :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises: ~azure.core.exceptions.HttpResponseError """ - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop("cls", None) # type: ClsType[None] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -2028,8 +2049,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_delete202_retry_invalid_header.metadata = {"url": "/lro/error/delete/202/retry/invalidheader"} # type: ignore @@ -2044,7 +2064,9 @@ async def _delete_async_relative_retry_invalid_header_initial(self, **kwargs: An request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202]: @@ -2080,7 +2102,7 @@ async def begin_delete_async_relative_retry_invalid_header(self, **kwargs: Any) :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises: ~azure.core.exceptions.HttpResponseError """ - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop("cls", None) # type: ClsType[None] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -2105,8 +2127,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_delete_async_relative_retry_invalid_header.metadata = {"url": "/lro/error/deleteasync/retry/invalidheader"} # type: ignore @@ -2121,7 +2142,9 @@ async def _delete_async_relative_retry_invalid_json_polling_initial(self, **kwar request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202]: @@ -2157,7 +2180,7 @@ async def begin_delete_async_relative_retry_invalid_json_polling(self, **kwargs: :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises: ~azure.core.exceptions.HttpResponseError """ - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop("cls", None) # type: ClsType[None] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -2184,8 +2207,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_delete_async_relative_retry_invalid_json_polling.metadata = {"url": "/lro/error/deleteasync/retry/invalidjsonpolling"} # type: ignore @@ -2211,7 +2233,9 @@ async def _post202_retry_invalid_header_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202]: @@ -2249,7 +2273,7 @@ async def begin_post202_retry_invalid_header( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop("cls", None) # type: ClsType[None] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -2276,8 +2300,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_post202_retry_invalid_header.metadata = {"url": "/lro/error/post/202/retry/invalidheader"} # type: ignore @@ -2303,7 +2326,9 @@ async def _post_async_relative_retry_invalid_header_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202]: @@ -2345,7 +2370,7 @@ async def begin_post_async_relative_retry_invalid_header( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop("cls", None) # type: ClsType[None] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -2372,8 +2397,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_post_async_relative_retry_invalid_header.metadata = {"url": "/lro/error/postasync/retry/invalidheader"} # type: ignore @@ -2399,7 +2423,9 @@ async def _post_async_relative_retry_invalid_json_polling_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202]: @@ -2441,7 +2467,7 @@ async def begin_post_async_relative_retry_invalid_json_polling( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop("cls", None) # type: ClsType[None] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -2468,7 +2494,6 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_post_async_relative_retry_invalid_json_polling.metadata = {"url": "/lro/error/postasync/retry/invalidjsonpolling"} # type: ignore 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 ce633dc921c..f735a2de5ee 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ( ClientAuthenticationError, @@ -30,7 +29,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union + from typing import Any, Callable, Dict, Optional, TypeVar, Union T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -182,7 +181,9 @@ def _put_async_retry_succeeded_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -232,7 +233,7 @@ def begin_put_async_retry_succeeded( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.PollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, PollingMethod] cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -269,8 +270,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_put_async_retry_succeeded.metadata = {"url": "/lro/customheader/putasync/retry/succeeded"} # type: ignore @@ -299,7 +299,9 @@ def _put201_creating_succeeded200_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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, 201]: @@ -346,7 +348,7 @@ def begin_put201_creating_succeeded200( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.PollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, PollingMethod] cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -376,8 +378,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_put201_creating_succeeded200.metadata = {"url": "/lro/customheader/put/201/creating/succeeded/200"} # type: ignore @@ -406,7 +407,9 @@ def _post202_retry200_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202]: @@ -448,7 +451,7 @@ def begin_post202_retry200( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.PollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, PollingMethod] cls = kwargs.pop("cls", None) # type: ClsType[None] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -475,8 +478,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_post202_retry200.metadata = {"url": "/lro/customheader/post/202/retry/200"} # type: ignore @@ -505,7 +507,9 @@ def _post_async_retry_succeeded_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202]: @@ -551,7 +555,7 @@ def begin_post_async_retry_succeeded( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.PollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, PollingMethod] cls = kwargs.pop("cls", None) # type: ClsType[None] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -578,7 +582,6 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_post_async_retry_succeeded.metadata = {"url": "/lro/customheader/postasync/retry/succeeded"} # type: ignore 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 4d8b60bc1e6..1fa8bef7b7a 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ( ClientAuthenticationError, @@ -30,7 +29,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union + from typing import Any, Callable, Dict, Optional, TypeVar, Union T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -242,7 +241,9 @@ def _put201_creating_succeeded200_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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, 201]: @@ -288,7 +289,7 @@ def begin_put201_creating_succeeded200( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.PollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, PollingMethod] cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -318,8 +319,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_put201_creating_succeeded200.metadata = {"url": "/lro/retryerror/put/201/creating/succeeded/200"} # type: ignore @@ -348,7 +348,9 @@ def _put_async_relative_retry_succeeded_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -397,7 +399,7 @@ def begin_put_async_relative_retry_succeeded( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.PollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, PollingMethod] cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -434,8 +436,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_put_async_relative_retry_succeeded.metadata = {"url": "/lro/retryerror/putasync/retry/succeeded"} # type: ignore @@ -453,7 +454,9 @@ def _delete_provisioning202_accepted200_succeeded_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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, 202]: @@ -498,7 +501,7 @@ def begin_delete_provisioning202_accepted200_succeeded( :rtype: ~azure.core.polling.LROPoller[~lro.models.Product] :raises: ~azure.core.exceptions.HttpResponseError """ - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.PollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, PollingMethod] cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -526,8 +529,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_delete_provisioning202_accepted200_succeeded.metadata = {"url": "/lro/retryerror/delete/provisioning/202/accepted/200/succeeded"} # type: ignore @@ -545,7 +547,9 @@ def _delete202_retry200_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202]: @@ -581,7 +585,7 @@ def begin_delete202_retry200( :rtype: ~azure.core.polling.LROPoller[None] :raises: ~azure.core.exceptions.HttpResponseError """ - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.PollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, PollingMethod] cls = kwargs.pop("cls", None) # type: ClsType[None] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -606,8 +610,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_delete202_retry200.metadata = {"url": "/lro/retryerror/delete/202/retry/200"} # type: ignore @@ -625,7 +628,9 @@ def _delete_async_relative_retry_succeeded_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202]: @@ -664,7 +669,7 @@ def begin_delete_async_relative_retry_succeeded( :rtype: ~azure.core.polling.LROPoller[None] :raises: ~azure.core.exceptions.HttpResponseError """ - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.PollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, PollingMethod] cls = kwargs.pop("cls", None) # type: ClsType[None] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -689,8 +694,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_delete_async_relative_retry_succeeded.metadata = {"url": "/lro/retryerror/deleteasync/retry/succeeded"} # type: ignore @@ -719,7 +723,9 @@ def _post202_retry200_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202]: @@ -760,7 +766,7 @@ def begin_post202_retry200( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.PollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, PollingMethod] cls = kwargs.pop("cls", None) # type: ClsType[None] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -787,8 +793,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_post202_retry200.metadata = {"url": "/lro/retryerror/post/202/retry/200"} # type: ignore @@ -817,7 +822,9 @@ def _post_async_relative_retry_succeeded_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202]: @@ -862,7 +869,7 @@ def begin_post_async_relative_retry_succeeded( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.PollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, PollingMethod] cls = kwargs.pop("cls", None) # type: ClsType[None] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -889,7 +896,6 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_post_async_relative_retry_succeeded.metadata = {"url": "/lro/retryerror/postasync/retry/succeeded"} # type: ignore 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 9502ce1ccc2..5b8726455f1 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ( ClientAuthenticationError, @@ -30,7 +29,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, List, Optional, TypeVar, Union + from typing import Any, Callable, Dict, List, Optional, TypeVar, Union T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -1027,7 +1026,7 @@ def build_post_async_retrycanceled_request_initial( ) # fmt: on -class LROsOperations(object): +class LROsOperations(object): # pylint: disable=too-many-public-methods """LROsOperations operations. You should not instantiate this class directly. Instead, you should create a Client instance that @@ -1074,7 +1073,9 @@ def _put200_succeeded_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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, 204]: @@ -1117,7 +1118,7 @@ def begin_put200_succeeded( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.PollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, PollingMethod] cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -1147,8 +1148,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_put200_succeeded.metadata = {"url": "/lro/put/200/succeeded"} # type: ignore @@ -1177,7 +1177,9 @@ def _patch200_succeeded_ignore_headers_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1223,7 +1225,7 @@ def begin_patch200_succeeded_ignore_headers( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.PollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, PollingMethod] cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -1258,8 +1260,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_patch200_succeeded_ignore_headers.metadata = {"url": "/lro/patch/200/succeeded/ignoreheaders"} # type: ignore @@ -1288,7 +1289,9 @@ def _patch201_retry_with_async_header_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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, 201]: @@ -1337,7 +1340,7 @@ def begin_patch201_retry_with_async_header( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.PollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, PollingMethod] cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -1367,8 +1370,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_patch201_retry_with_async_header.metadata = {"url": "/lro/patch/201/retry/onlyAsyncHeader"} # type: ignore @@ -1397,7 +1399,9 @@ def _patch202_retry_with_async_and_location_header_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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, 202]: @@ -1448,7 +1452,7 @@ def begin_patch202_retry_with_async_and_location_header( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.PollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, PollingMethod] cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -1478,8 +1482,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_patch202_retry_with_async_and_location_header.metadata = {"url": "/lro/patch/202/retry/asyncAndLocationHeader"} # type: ignore @@ -1508,7 +1511,9 @@ def _put201_succeeded_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [201]: @@ -1549,7 +1554,7 @@ def begin_put201_succeeded( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.PollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, PollingMethod] cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -1579,8 +1584,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_put201_succeeded.metadata = {"url": "/lro/put/201/succeeded"} # type: ignore @@ -1598,7 +1602,9 @@ def _post202_list_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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, 202]: @@ -1644,7 +1650,7 @@ def begin_post202_list( :rtype: ~azure.core.polling.LROPoller[list[~lro.models.Product]] :raises: ~azure.core.exceptions.HttpResponseError """ - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.PollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, PollingMethod] cls = kwargs.pop("cls", None) # type: ClsType[List["_models.Product"]] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -1672,8 +1678,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_post202_list.metadata = {"url": "/lro/list"} # type: ignore @@ -1702,7 +1707,9 @@ def _put200_succeeded_no_state_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1743,7 +1750,7 @@ def begin_put200_succeeded_no_state( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.PollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, PollingMethod] cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -1773,8 +1780,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_put200_succeeded_no_state.metadata = {"url": "/lro/put/200/succeeded/nostate"} # type: ignore @@ -1803,7 +1809,9 @@ def _put202_retry200_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202]: @@ -1845,7 +1853,7 @@ def begin_put202_retry200( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.PollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, PollingMethod] cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -1875,8 +1883,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_put202_retry200.metadata = {"url": "/lro/put/202/retry/200"} # type: ignore @@ -1905,7 +1912,9 @@ def _put201_creating_succeeded200_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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, 201]: @@ -1951,7 +1960,7 @@ def begin_put201_creating_succeeded200( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.PollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, PollingMethod] cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -1981,8 +1990,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_put201_creating_succeeded200.metadata = {"url": "/lro/put/201/creating/succeeded/200"} # type: ignore @@ -2011,7 +2019,9 @@ def _put200_updating_succeeded204_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2053,7 +2063,7 @@ def begin_put200_updating_succeeded204( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.PollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, PollingMethod] cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -2083,8 +2093,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_put200_updating_succeeded204.metadata = {"url": "/lro/put/200/updating/succeeded/200"} # type: ignore @@ -2113,7 +2122,9 @@ def _put201_creating_failed200_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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, 201]: @@ -2159,7 +2170,7 @@ def begin_put201_creating_failed200( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.PollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, PollingMethod] cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -2189,8 +2200,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_put201_creating_failed200.metadata = {"url": "/lro/put/201/created/failed/200"} # type: ignore @@ -2219,7 +2229,9 @@ def _put200_acceptedcanceled200_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2261,7 +2273,7 @@ def begin_put200_acceptedcanceled200( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.PollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, PollingMethod] cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -2291,8 +2303,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_put200_acceptedcanceled200.metadata = {"url": "/lro/put/200/accepted/canceled/200"} # type: ignore @@ -2321,7 +2332,9 @@ def _put_no_header_in_retry_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202]: @@ -2365,7 +2378,7 @@ def begin_put_no_header_in_retry( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.PollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, PollingMethod] cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -2398,8 +2411,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_put_no_header_in_retry.metadata = {"url": "/lro/put/noheader/202/200"} # type: ignore @@ -2428,7 +2440,9 @@ def _put_async_retry_succeeded_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2477,7 +2491,7 @@ def begin_put_async_retry_succeeded( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.PollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, PollingMethod] cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -2514,8 +2528,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_put_async_retry_succeeded.metadata = {"url": "/lro/putasync/retry/succeeded"} # type: ignore @@ -2544,7 +2557,9 @@ def _put_async_no_retry_succeeded_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2592,7 +2607,7 @@ def begin_put_async_no_retry_succeeded( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.PollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, PollingMethod] cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -2628,8 +2643,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_put_async_no_retry_succeeded.metadata = {"url": "/lro/putasync/noretry/succeeded"} # type: ignore @@ -2658,7 +2672,9 @@ def _put_async_retry_failed_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2707,7 +2723,7 @@ def begin_put_async_retry_failed( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.PollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, PollingMethod] cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -2744,8 +2760,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_put_async_retry_failed.metadata = {"url": "/lro/putasync/retry/failed"} # type: ignore @@ -2774,7 +2789,9 @@ def _put_async_no_retrycanceled_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2822,7 +2839,7 @@ def begin_put_async_no_retrycanceled( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.PollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, PollingMethod] cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -2858,8 +2875,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_put_async_no_retrycanceled.metadata = {"url": "/lro/putasync/noretry/canceled"} # type: ignore @@ -2888,7 +2904,9 @@ def _put_async_no_header_in_retry_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [201]: @@ -2935,7 +2953,7 @@ def begin_put_async_no_header_in_retry( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.PollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, PollingMethod] cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -2970,8 +2988,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_put_async_no_header_in_retry.metadata = {"url": "/lro/putasync/noheader/201/200"} # type: ignore @@ -3000,7 +3017,9 @@ def _put_non_resource_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202]: @@ -3040,7 +3059,7 @@ def begin_put_non_resource( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.PollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, PollingMethod] cls = kwargs.pop("cls", None) # type: ClsType["_models.Sku"] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -3070,8 +3089,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_put_non_resource.metadata = {"url": "/lro/putnonresource/202/200"} # type: ignore @@ -3100,7 +3118,9 @@ def _put_async_non_resource_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202]: @@ -3140,7 +3160,7 @@ def begin_put_async_non_resource( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.PollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, PollingMethod] cls = kwargs.pop("cls", None) # type: ClsType["_models.Sku"] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -3170,8 +3190,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_put_async_non_resource.metadata = {"url": "/lro/putnonresourceasync/202/200"} # type: ignore @@ -3201,7 +3220,9 @@ def _put_sub_resource_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202]: @@ -3241,7 +3262,7 @@ def begin_put_sub_resource( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.PollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, PollingMethod] cls = kwargs.pop("cls", None) # type: ClsType["_models.SubProduct"] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -3271,8 +3292,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_put_sub_resource.metadata = {"url": "/lro/putsubresource/202/200"} # type: ignore @@ -3302,7 +3322,9 @@ def _put_async_sub_resource_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202]: @@ -3342,7 +3364,7 @@ def begin_put_async_sub_resource( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.PollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, PollingMethod] cls = kwargs.pop("cls", None) # type: ClsType["_models.SubProduct"] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -3372,8 +3394,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_put_async_sub_resource.metadata = {"url": "/lro/putsubresourceasync/202/200"} # type: ignore @@ -3391,7 +3412,9 @@ def _delete_provisioning202_accepted200_succeeded_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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, 202]: @@ -3436,7 +3459,7 @@ def begin_delete_provisioning202_accepted200_succeeded( :rtype: ~azure.core.polling.LROPoller[~lro.models.Product] :raises: ~azure.core.exceptions.HttpResponseError """ - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.PollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, PollingMethod] cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -3464,8 +3487,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_delete_provisioning202_accepted200_succeeded.metadata = {"url": "/lro/delete/provisioning/202/accepted/200/succeeded"} # type: ignore @@ -3483,7 +3505,9 @@ def _delete_provisioning202_deleting_failed200_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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, 202]: @@ -3528,7 +3552,7 @@ def begin_delete_provisioning202_deleting_failed200( :rtype: ~azure.core.polling.LROPoller[~lro.models.Product] :raises: ~azure.core.exceptions.HttpResponseError """ - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.PollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, PollingMethod] cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -3556,8 +3580,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_delete_provisioning202_deleting_failed200.metadata = {"url": "/lro/delete/provisioning/202/deleting/200/failed"} # type: ignore @@ -3575,7 +3598,9 @@ def _delete_provisioning202_deletingcanceled200_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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, 202]: @@ -3620,7 +3645,7 @@ def begin_delete_provisioning202_deletingcanceled200( :rtype: ~azure.core.polling.LROPoller[~lro.models.Product] :raises: ~azure.core.exceptions.HttpResponseError """ - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.PollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, PollingMethod] cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -3648,8 +3673,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_delete_provisioning202_deletingcanceled200.metadata = {"url": "/lro/delete/provisioning/202/deleting/200/canceled"} # type: ignore @@ -3667,7 +3691,9 @@ def _delete204_succeeded_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [204]: @@ -3698,7 +3724,7 @@ def begin_delete204_succeeded( :rtype: ~azure.core.polling.LROPoller[None] :raises: ~azure.core.exceptions.HttpResponseError """ - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.PollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, PollingMethod] cls = kwargs.pop("cls", None) # type: ClsType[None] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -3723,8 +3749,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_delete204_succeeded.metadata = {"url": "/lro/delete/204/succeeded"} # type: ignore @@ -3742,7 +3767,9 @@ def _delete202_retry200_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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, 202]: @@ -3785,7 +3812,7 @@ def begin_delete202_retry200( :rtype: ~azure.core.polling.LROPoller[~lro.models.Product] :raises: ~azure.core.exceptions.HttpResponseError """ - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.PollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, PollingMethod] cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -3813,8 +3840,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_delete202_retry200.metadata = {"url": "/lro/delete/202/retry/200"} # type: ignore @@ -3832,7 +3858,9 @@ def _delete202_no_retry204_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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, 202]: @@ -3875,7 +3903,7 @@ def begin_delete202_no_retry204( :rtype: ~azure.core.polling.LROPoller[~lro.models.Product] :raises: ~azure.core.exceptions.HttpResponseError """ - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.PollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, PollingMethod] cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -3903,8 +3931,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_delete202_no_retry204.metadata = {"url": "/lro/delete/202/noretry/204"} # type: ignore @@ -3922,7 +3949,9 @@ def _delete_no_header_in_retry_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202, 204]: @@ -3958,7 +3987,7 @@ def begin_delete_no_header_in_retry( :rtype: ~azure.core.polling.LROPoller[None] :raises: ~azure.core.exceptions.HttpResponseError """ - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.PollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, PollingMethod] cls = kwargs.pop("cls", None) # type: ClsType[None] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -3983,8 +4012,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_delete_no_header_in_retry.metadata = {"url": "/lro/delete/noheader"} # type: ignore @@ -4002,7 +4030,9 @@ def _delete_async_no_header_in_retry_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202, 204]: @@ -4038,7 +4068,7 @@ def begin_delete_async_no_header_in_retry( :rtype: ~azure.core.polling.LROPoller[None] :raises: ~azure.core.exceptions.HttpResponseError """ - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.PollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, PollingMethod] cls = kwargs.pop("cls", None) # type: ClsType[None] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -4063,8 +4093,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_delete_async_no_header_in_retry.metadata = {"url": "/lro/deleteasync/noheader/202/204"} # type: ignore @@ -4082,7 +4111,9 @@ def _delete_async_retry_succeeded_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202]: @@ -4121,7 +4152,7 @@ def begin_delete_async_retry_succeeded( :rtype: ~azure.core.polling.LROPoller[None] :raises: ~azure.core.exceptions.HttpResponseError """ - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.PollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, PollingMethod] cls = kwargs.pop("cls", None) # type: ClsType[None] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -4146,8 +4177,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_delete_async_retry_succeeded.metadata = {"url": "/lro/deleteasync/retry/succeeded"} # type: ignore @@ -4165,7 +4195,9 @@ def _delete_async_no_retry_succeeded_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202]: @@ -4204,7 +4236,7 @@ def begin_delete_async_no_retry_succeeded( :rtype: ~azure.core.polling.LROPoller[None] :raises: ~azure.core.exceptions.HttpResponseError """ - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.PollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, PollingMethod] cls = kwargs.pop("cls", None) # type: ClsType[None] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -4229,8 +4261,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_delete_async_no_retry_succeeded.metadata = {"url": "/lro/deleteasync/noretry/succeeded"} # type: ignore @@ -4248,7 +4279,9 @@ def _delete_async_retry_failed_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202]: @@ -4287,7 +4320,7 @@ def begin_delete_async_retry_failed( :rtype: ~azure.core.polling.LROPoller[None] :raises: ~azure.core.exceptions.HttpResponseError """ - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.PollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, PollingMethod] cls = kwargs.pop("cls", None) # type: ClsType[None] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -4312,8 +4345,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_delete_async_retry_failed.metadata = {"url": "/lro/deleteasync/retry/failed"} # type: ignore @@ -4331,7 +4363,9 @@ def _delete_async_retrycanceled_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202]: @@ -4370,7 +4404,7 @@ def begin_delete_async_retrycanceled( :rtype: ~azure.core.polling.LROPoller[None] :raises: ~azure.core.exceptions.HttpResponseError """ - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.PollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, PollingMethod] cls = kwargs.pop("cls", None) # type: ClsType[None] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -4395,8 +4429,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_delete_async_retrycanceled.metadata = {"url": "/lro/deleteasync/retry/canceled"} # type: ignore @@ -4414,7 +4447,9 @@ def _post200_with_payload_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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, 202]: @@ -4454,7 +4489,7 @@ def begin_post200_with_payload( :rtype: ~azure.core.polling.LROPoller[~lro.models.Sku] :raises: ~azure.core.exceptions.HttpResponseError """ - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.PollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, PollingMethod] cls = kwargs.pop("cls", None) # type: ClsType["_models.Sku"] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -4482,8 +4517,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_post200_with_payload.metadata = {"url": "/lro/post/payload/200"} # type: ignore @@ -4512,7 +4546,9 @@ def _post202_retry200_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202]: @@ -4553,7 +4589,7 @@ def begin_post202_retry200( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.PollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, PollingMethod] cls = kwargs.pop("cls", None) # type: ClsType[None] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -4580,8 +4616,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_post202_retry200.metadata = {"url": "/lro/post/202/retry/200"} # type: ignore @@ -4610,7 +4645,9 @@ def _post202_no_retry204_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202]: @@ -4655,7 +4692,7 @@ def begin_post202_no_retry204( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.PollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, PollingMethod] cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -4689,8 +4726,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_post202_no_retry204.metadata = {"url": "/lro/post/202/noretry/204"} # type: ignore @@ -4708,7 +4744,9 @@ def _post_double_headers_final_location_get_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202]: @@ -4745,7 +4783,7 @@ def begin_post_double_headers_final_location_get( :rtype: ~azure.core.polling.LROPoller[~lro.models.Product] :raises: ~azure.core.exceptions.HttpResponseError """ - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.PollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, PollingMethod] cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -4773,8 +4811,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_post_double_headers_final_location_get.metadata = {"url": "/lro/LROPostDoubleHeadersFinalLocationGet"} # type: ignore @@ -4792,7 +4829,9 @@ def _post_double_headers_final_azure_header_get_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202]: @@ -4829,7 +4868,7 @@ def begin_post_double_headers_final_azure_header_get( :rtype: ~azure.core.polling.LROPoller[~lro.models.Product] :raises: ~azure.core.exceptions.HttpResponseError """ - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.PollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, PollingMethod] cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -4857,8 +4896,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_post_double_headers_final_azure_header_get.metadata = {"url": "/lro/LROPostDoubleHeadersFinalAzureHeaderGet"} # type: ignore @@ -4876,7 +4914,9 @@ def _post_double_headers_final_azure_header_get_default_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202]: @@ -4913,7 +4953,7 @@ def begin_post_double_headers_final_azure_header_get_default( :rtype: ~azure.core.polling.LROPoller[~lro.models.Product] :raises: ~azure.core.exceptions.HttpResponseError """ - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.PollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, PollingMethod] cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -4943,8 +4983,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_post_double_headers_final_azure_header_get_default.metadata = {"url": "/lro/LROPostDoubleHeadersFinalAzureHeaderGetDefault"} # type: ignore @@ -4973,7 +5012,9 @@ def _post_async_retry_succeeded_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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, 202]: @@ -5025,7 +5066,7 @@ def begin_post_async_retry_succeeded( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.PollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, PollingMethod] cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -5055,8 +5096,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_post_async_retry_succeeded.metadata = {"url": "/lro/postasync/retry/succeeded"} # type: ignore @@ -5085,7 +5125,9 @@ def _post_async_no_retry_succeeded_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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, 202]: @@ -5137,7 +5179,7 @@ def begin_post_async_no_retry_succeeded( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.PollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, PollingMethod] cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -5167,8 +5209,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_post_async_no_retry_succeeded.metadata = {"url": "/lro/postasync/noretry/succeeded"} # type: ignore @@ -5197,7 +5238,9 @@ def _post_async_retry_failed_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202]: @@ -5242,7 +5285,7 @@ def begin_post_async_retry_failed( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.PollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, PollingMethod] cls = kwargs.pop("cls", None) # type: ClsType[None] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -5269,8 +5312,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_post_async_retry_failed.metadata = {"url": "/lro/postasync/retry/failed"} # type: ignore @@ -5299,7 +5341,9 @@ def _post_async_retrycanceled_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202]: @@ -5344,7 +5388,7 @@ def begin_post_async_retrycanceled( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.PollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, PollingMethod] cls = kwargs.pop("cls", None) # type: ClsType[None] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -5371,7 +5415,6 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_post_async_retrycanceled.metadata = {"url": "/lro/postasync/retry/canceled"} # type: ignore 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 63bf5b23e2c..1b376f73beb 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ( ClientAuthenticationError, @@ -30,7 +29,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union + from typing import Any, Callable, Dict, Optional, TypeVar, Union T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -631,7 +630,7 @@ def build_post_async_relative_retry_invalid_json_polling_request_initial( ) # fmt: on -class LROSADsOperations(object): +class LROSADsOperations(object): # pylint: disable=too-many-public-methods """LROSADsOperations operations. You should not instantiate this class directly. Instead, you should create a Client instance that @@ -678,7 +677,9 @@ def _put_non_retry400_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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, 201]: @@ -722,7 +723,7 @@ def begin_put_non_retry400( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.PollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, PollingMethod] cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -752,8 +753,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_put_non_retry400.metadata = {"url": "/lro/nonretryerror/put/400"} # type: ignore @@ -782,7 +782,9 @@ def _put_non_retry201_creating400_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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, 201]: @@ -827,7 +829,7 @@ def begin_put_non_retry201_creating400( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.PollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, PollingMethod] cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -857,8 +859,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_put_non_retry201_creating400.metadata = {"url": "/lro/nonretryerror/put/201/creating/400"} # type: ignore @@ -887,7 +888,9 @@ def _put_non_retry201_creating400_invalid_json_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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, 201]: @@ -932,7 +935,7 @@ def begin_put_non_retry201_creating400_invalid_json( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.PollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, PollingMethod] cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -962,8 +965,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_put_non_retry201_creating400_invalid_json.metadata = {"url": "/lro/nonretryerror/put/201/creating/400/invalidjson"} # type: ignore @@ -992,7 +994,9 @@ def _put_async_relative_retry400_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1040,7 +1044,7 @@ def begin_put_async_relative_retry400( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.PollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, PollingMethod] cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -1077,8 +1081,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_put_async_relative_retry400.metadata = {"url": "/lro/nonretryerror/putasync/retry/400"} # type: ignore @@ -1096,7 +1099,9 @@ def _delete_non_retry400_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202]: @@ -1131,7 +1136,7 @@ def begin_delete_non_retry400( :rtype: ~azure.core.polling.LROPoller[None] :raises: ~azure.core.exceptions.HttpResponseError """ - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.PollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, PollingMethod] cls = kwargs.pop("cls", None) # type: ClsType[None] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -1156,8 +1161,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_delete_non_retry400.metadata = {"url": "/lro/nonretryerror/delete/400"} # type: ignore @@ -1175,7 +1179,9 @@ def _delete202_non_retry400_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202]: @@ -1210,7 +1216,7 @@ def begin_delete202_non_retry400( :rtype: ~azure.core.polling.LROPoller[None] :raises: ~azure.core.exceptions.HttpResponseError """ - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.PollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, PollingMethod] cls = kwargs.pop("cls", None) # type: ClsType[None] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -1235,8 +1241,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_delete202_non_retry400.metadata = {"url": "/lro/nonretryerror/delete/202/retry/400"} # type: ignore @@ -1254,7 +1259,9 @@ def _delete_async_relative_retry400_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202]: @@ -1293,7 +1300,7 @@ def begin_delete_async_relative_retry400( :rtype: ~azure.core.polling.LROPoller[None] :raises: ~azure.core.exceptions.HttpResponseError """ - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.PollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, PollingMethod] cls = kwargs.pop("cls", None) # type: ClsType[None] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -1318,8 +1325,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_delete_async_relative_retry400.metadata = {"url": "/lro/nonretryerror/deleteasync/retry/400"} # type: ignore @@ -1348,7 +1354,9 @@ def _post_non_retry400_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202]: @@ -1388,7 +1396,7 @@ def begin_post_non_retry400( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.PollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, PollingMethod] cls = kwargs.pop("cls", None) # type: ClsType[None] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -1415,8 +1423,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_post_non_retry400.metadata = {"url": "/lro/nonretryerror/post/400"} # type: ignore @@ -1445,7 +1452,9 @@ def _post202_non_retry400_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202]: @@ -1485,7 +1494,7 @@ def begin_post202_non_retry400( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.PollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, PollingMethod] cls = kwargs.pop("cls", None) # type: ClsType[None] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -1512,8 +1521,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_post202_non_retry400.metadata = {"url": "/lro/nonretryerror/post/202/retry/400"} # type: ignore @@ -1542,7 +1550,9 @@ def _post_async_relative_retry400_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202]: @@ -1586,7 +1596,7 @@ def begin_post_async_relative_retry400( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.PollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, PollingMethod] cls = kwargs.pop("cls", None) # type: ClsType[None] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -1613,8 +1623,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_post_async_relative_retry400.metadata = {"url": "/lro/nonretryerror/postasync/retry/400"} # type: ignore @@ -1643,7 +1652,9 @@ def _put_error201_no_provisioning_state_payload_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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, 201]: @@ -1687,7 +1698,7 @@ def begin_put_error201_no_provisioning_state_payload( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.PollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, PollingMethod] cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -1717,8 +1728,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_put_error201_no_provisioning_state_payload.metadata = {"url": "/lro/error/put/201/noprovisioningstatepayload"} # type: ignore @@ -1747,7 +1757,9 @@ def _put_async_relative_retry_no_status_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1796,7 +1808,7 @@ def begin_put_async_relative_retry_no_status( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.PollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, PollingMethod] cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -1833,8 +1845,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_put_async_relative_retry_no_status.metadata = {"url": "/lro/error/putasync/retry/nostatus"} # type: ignore @@ -1863,7 +1874,9 @@ def _put_async_relative_retry_no_status_payload_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1912,7 +1925,7 @@ def begin_put_async_relative_retry_no_status_payload( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.PollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, PollingMethod] cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -1949,8 +1962,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_put_async_relative_retry_no_status_payload.metadata = {"url": "/lro/error/putasync/retry/nostatuspayload"} # type: ignore @@ -1968,7 +1980,9 @@ def _delete204_succeeded_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [204]: @@ -1999,7 +2013,7 @@ def begin_delete204_succeeded( :rtype: ~azure.core.polling.LROPoller[None] :raises: ~azure.core.exceptions.HttpResponseError """ - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.PollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, PollingMethod] cls = kwargs.pop("cls", None) # type: ClsType[None] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -2024,8 +2038,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_delete204_succeeded.metadata = {"url": "/lro/error/delete/204/nolocation"} # type: ignore @@ -2043,7 +2056,9 @@ def _delete_async_relative_retry_no_status_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202]: @@ -2082,7 +2097,7 @@ def begin_delete_async_relative_retry_no_status( :rtype: ~azure.core.polling.LROPoller[None] :raises: ~azure.core.exceptions.HttpResponseError """ - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.PollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, PollingMethod] cls = kwargs.pop("cls", None) # type: ClsType[None] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -2107,8 +2122,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_delete_async_relative_retry_no_status.metadata = {"url": "/lro/error/deleteasync/retry/nostatus"} # type: ignore @@ -2137,7 +2151,9 @@ def _post202_no_location_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202]: @@ -2178,7 +2194,7 @@ def begin_post202_no_location( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.PollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, PollingMethod] cls = kwargs.pop("cls", None) # type: ClsType[None] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -2205,8 +2221,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_post202_no_location.metadata = {"url": "/lro/error/post/202/nolocation"} # type: ignore @@ -2235,7 +2250,9 @@ def _post_async_relative_retry_no_payload_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202]: @@ -2280,7 +2297,7 @@ def begin_post_async_relative_retry_no_payload( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.PollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, PollingMethod] cls = kwargs.pop("cls", None) # type: ClsType[None] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -2307,8 +2324,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_post_async_relative_retry_no_payload.metadata = {"url": "/lro/error/postasync/retry/nopayload"} # type: ignore @@ -2337,7 +2353,9 @@ def _put200_invalid_json_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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, 204]: @@ -2380,7 +2398,7 @@ def begin_put200_invalid_json( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.PollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, PollingMethod] cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -2410,8 +2428,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_put200_invalid_json.metadata = {"url": "/lro/error/put/200/invalidjson"} # type: ignore @@ -2440,7 +2457,9 @@ def _put_async_relative_retry_invalid_header_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2489,7 +2508,7 @@ def begin_put_async_relative_retry_invalid_header( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.PollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, PollingMethod] cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -2526,8 +2545,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_put_async_relative_retry_invalid_header.metadata = {"url": "/lro/error/putasync/retry/invalidheader"} # type: ignore @@ -2556,7 +2574,9 @@ def _put_async_relative_retry_invalid_json_polling_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2605,7 +2625,7 @@ def begin_put_async_relative_retry_invalid_json_polling( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.PollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, PollingMethod] cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -2642,8 +2662,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_put_async_relative_retry_invalid_json_polling.metadata = {"url": "/lro/error/putasync/retry/invalidjsonpolling"} # type: ignore @@ -2661,7 +2680,9 @@ def _delete202_retry_invalid_header_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202]: @@ -2697,7 +2718,7 @@ def begin_delete202_retry_invalid_header( :rtype: ~azure.core.polling.LROPoller[None] :raises: ~azure.core.exceptions.HttpResponseError """ - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.PollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, PollingMethod] cls = kwargs.pop("cls", None) # type: ClsType[None] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -2722,8 +2743,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_delete202_retry_invalid_header.metadata = {"url": "/lro/error/delete/202/retry/invalidheader"} # type: ignore @@ -2741,7 +2761,9 @@ def _delete_async_relative_retry_invalid_header_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202]: @@ -2780,7 +2802,7 @@ def begin_delete_async_relative_retry_invalid_header( :rtype: ~azure.core.polling.LROPoller[None] :raises: ~azure.core.exceptions.HttpResponseError """ - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.PollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, PollingMethod] cls = kwargs.pop("cls", None) # type: ClsType[None] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -2805,8 +2827,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_delete_async_relative_retry_invalid_header.metadata = {"url": "/lro/error/deleteasync/retry/invalidheader"} # type: ignore @@ -2824,7 +2845,9 @@ def _delete_async_relative_retry_invalid_json_polling_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202]: @@ -2863,7 +2886,7 @@ def begin_delete_async_relative_retry_invalid_json_polling( :rtype: ~azure.core.polling.LROPoller[None] :raises: ~azure.core.exceptions.HttpResponseError """ - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.PollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, PollingMethod] cls = kwargs.pop("cls", None) # type: ClsType[None] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -2888,8 +2911,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_delete_async_relative_retry_invalid_json_polling.metadata = {"url": "/lro/error/deleteasync/retry/invalidjsonpolling"} # type: ignore @@ -2918,7 +2940,9 @@ def _post202_retry_invalid_header_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202]: @@ -2959,7 +2983,7 @@ def begin_post202_retry_invalid_header( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.PollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, PollingMethod] cls = kwargs.pop("cls", None) # type: ClsType[None] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -2986,8 +3010,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_post202_retry_invalid_header.metadata = {"url": "/lro/error/post/202/retry/invalidheader"} # type: ignore @@ -3016,7 +3039,9 @@ def _post_async_relative_retry_invalid_header_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202]: @@ -3061,7 +3086,7 @@ def begin_post_async_relative_retry_invalid_header( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.PollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, PollingMethod] cls = kwargs.pop("cls", None) # type: ClsType[None] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -3088,8 +3113,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_post_async_relative_retry_invalid_header.metadata = {"url": "/lro/error/postasync/retry/invalidheader"} # type: ignore @@ -3118,7 +3142,9 @@ def _post_async_relative_retry_invalid_json_polling_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202]: @@ -3163,7 +3189,7 @@ def begin_post_async_relative_retry_invalid_json_polling( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.PollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, PollingMethod] cls = kwargs.pop("cls", None) # type: ClsType[None] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -3190,7 +3216,6 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_post_async_relative_retry_invalid_json_polling.metadata = {"url": "/lro/error/postasync/retry/invalidjsonpolling"} # type: ignore diff --git a/test/azure/legacy/Expected/AcceptanceTests/LroWithParameterizedEndpoints/lrowithparameterizedendpoints/_configuration.py b/test/azure/legacy/Expected/AcceptanceTests/LroWithParameterizedEndpoints/lrowithparameterizedendpoints/_configuration.py index a0f5369c24e..8416a2004eb 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/LroWithParameterizedEndpoints/lrowithparameterizedendpoints/_configuration.py +++ b/test/azure/legacy/Expected/AcceptanceTests/LroWithParameterizedEndpoints/lrowithparameterizedendpoints/_configuration.py @@ -18,13 +18,14 @@ from typing import Any -class LROWithParamaterizedEndpointsConfiguration(Configuration): +class LROWithParamaterizedEndpointsConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for LROWithParamaterizedEndpoints. Note that all parameters used to create this instance are saved as instance attributes. - :param host: A string value that is used as a global part of the parameterized host. Pass in 'host:3000' to pass test. + :param host: A string value that is used as a global part of the parameterized host. Pass in + 'host:3000' to pass test. :type host: str """ diff --git a/test/azure/legacy/Expected/AcceptanceTests/LroWithParameterizedEndpoints/lrowithparameterizedendpoints/aio/_configuration.py b/test/azure/legacy/Expected/AcceptanceTests/LroWithParameterizedEndpoints/lrowithparameterizedendpoints/aio/_configuration.py index 1b2efaf32f1..82ab4244e5b 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/LroWithParameterizedEndpoints/lrowithparameterizedendpoints/aio/_configuration.py +++ b/test/azure/legacy/Expected/AcceptanceTests/LroWithParameterizedEndpoints/lrowithparameterizedendpoints/aio/_configuration.py @@ -14,13 +14,14 @@ from .._version import VERSION -class LROWithParamaterizedEndpointsConfiguration(Configuration): +class LROWithParamaterizedEndpointsConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for LROWithParamaterizedEndpoints. Note that all parameters used to create this instance are saved as instance attributes. - :param host: A string value that is used as a global part of the parameterized host. Pass in 'host:3000' to pass test. + :param host: A string value that is used as a global part of the parameterized host. Pass in + 'host:3000' to pass test. :type host: str """ diff --git a/test/azure/legacy/Expected/AcceptanceTests/LroWithParameterizedEndpoints/lrowithparameterizedendpoints/aio/operations/_lro_with_paramaterized_endpoints_operations.py b/test/azure/legacy/Expected/AcceptanceTests/LroWithParameterizedEndpoints/lrowithparameterizedendpoints/aio/operations/_lro_with_paramaterized_endpoints_operations.py index 87de58fb5d1..7ececbd6143 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/LroWithParameterizedEndpoints/lrowithparameterizedendpoints/aio/operations/_lro_with_paramaterized_endpoints_operations.py +++ b/test/azure/legacy/Expected/AcceptanceTests/LroWithParameterizedEndpoints/lrowithparameterizedendpoints/aio/operations/_lro_with_paramaterized_endpoints_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar, Union from azure.core.exceptions import ( ClientAuthenticationError, @@ -50,7 +49,9 @@ async def _poll_with_parameterized_endpoints_initial(self, account_name: str, ** } request.url = self._client.format_url(request.url, **path_format_arguments) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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, 202]: @@ -90,7 +91,7 @@ async def begin_poll_with_parameterized_endpoints(self, account_name: str, **kwa :rtype: ~azure.core.polling.AsyncLROPoller[str] :raises: ~azure.core.exceptions.HttpResponseError """ - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop("cls", None) # type: ClsType[str] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -130,8 +131,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_poll_with_parameterized_endpoints.metadata = {"url": "/lroParameterizedEndpoints"} # type: ignore @@ -155,7 +155,9 @@ async def _poll_with_constant_parameterized_endpoints_initial( } request.url = self._client.format_url(request.url, **path_format_arguments) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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, 202]: @@ -201,7 +203,7 @@ async def begin_poll_with_constant_parameterized_endpoints( :raises: ~azure.core.exceptions.HttpResponseError """ constant_parameter = kwargs.pop("constant_parameter", "iAmConstant") # type: str - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop("cls", None) # type: ClsType[str] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -236,7 +238,6 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_poll_with_constant_parameterized_endpoints.metadata = {"url": "/lroConstantParameterizedEndpoints/{constantParameter}"} # type: ignore 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 a7f5037f73f..b895aa70d0a 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ( ClientAuthenticationError, @@ -29,7 +28,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union + from typing import Any, Callable, Dict, Optional, TypeVar, Union T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -106,7 +105,9 @@ def _poll_with_parameterized_endpoints_initial( } request.url = self._client.format_url(request.url, **path_format_arguments) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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, 202]: @@ -151,7 +152,7 @@ def begin_poll_with_parameterized_endpoints( :rtype: ~azure.core.polling.LROPoller[str] :raises: ~azure.core.exceptions.HttpResponseError """ - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.PollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, PollingMethod] cls = kwargs.pop("cls", None) # type: ClsType[str] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -191,8 +192,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_poll_with_parameterized_endpoints.metadata = {"url": "/lroParameterizedEndpoints"} # type: ignore @@ -219,7 +219,9 @@ def _poll_with_constant_parameterized_endpoints_initial( } request.url = self._client.format_url(request.url, **path_format_arguments) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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, 202]: @@ -268,7 +270,7 @@ def begin_poll_with_constant_parameterized_endpoints( :raises: ~azure.core.exceptions.HttpResponseError """ constant_parameter = kwargs.pop("constant_parameter", "iAmConstant") # type: str - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.PollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, PollingMethod] cls = kwargs.pop("cls", None) # type: ClsType[str] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -303,7 +305,6 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_poll_with_constant_parameterized_endpoints.metadata = {"url": "/lroConstantParameterizedEndpoints/{constantParameter}"} # type: ignore diff --git a/test/azure/legacy/Expected/AcceptanceTests/Paging/paging/_auto_rest_paging_test_service.py b/test/azure/legacy/Expected/AcceptanceTests/Paging/paging/_auto_rest_paging_test_service.py index f14ff44b785..a2268d9ce50 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/Paging/paging/_auto_rest_paging_test_service.py +++ b/test/azure/legacy/Expected/AcceptanceTests/Paging/paging/_auto_rest_paging_test_service.py @@ -18,7 +18,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Optional + from typing import Any from azure.core.rest import HttpRequest, HttpResponse diff --git a/test/azure/legacy/Expected/AcceptanceTests/Paging/paging/_configuration.py b/test/azure/legacy/Expected/AcceptanceTests/Paging/paging/_configuration.py index 1e57648004b..e1aeebeece0 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/Paging/paging/_configuration.py +++ b/test/azure/legacy/Expected/AcceptanceTests/Paging/paging/_configuration.py @@ -18,7 +18,7 @@ from typing import Any -class AutoRestPagingTestServiceConfiguration(Configuration): +class AutoRestPagingTestServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestPagingTestService. Note that all parameters used to create this instance are saved as instance diff --git a/test/azure/legacy/Expected/AcceptanceTests/Paging/paging/aio/_auto_rest_paging_test_service.py b/test/azure/legacy/Expected/AcceptanceTests/Paging/paging/aio/_auto_rest_paging_test_service.py index a02c7c5b762..83e71c4c9c5 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/Paging/paging/aio/_auto_rest_paging_test_service.py +++ b/test/azure/legacy/Expected/AcceptanceTests/Paging/paging/aio/_auto_rest_paging_test_service.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional +from typing import Any, Awaitable from azure.core import AsyncPipelineClient from azure.core.rest import AsyncHttpResponse, HttpRequest diff --git a/test/azure/legacy/Expected/AcceptanceTests/Paging/paging/aio/_configuration.py b/test/azure/legacy/Expected/AcceptanceTests/Paging/paging/aio/_configuration.py index e39ce7a3614..b095035214a 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/Paging/paging/aio/_configuration.py +++ b/test/azure/legacy/Expected/AcceptanceTests/Paging/paging/aio/_configuration.py @@ -14,7 +14,7 @@ from .._version import VERSION -class AutoRestPagingTestServiceConfiguration(Configuration): +class AutoRestPagingTestServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestPagingTestService. Note that all parameters used to create this instance are saved as instance diff --git a/test/azure/legacy/Expected/AcceptanceTests/Paging/paging/aio/operations/_paging_operations.py b/test/azure/legacy/Expected/AcceptanceTests/Paging/paging/aio/operations/_paging_operations.py index 68988775268..244389e22ef 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/Paging/paging/aio/operations/_paging_operations.py +++ b/test/azure/legacy/Expected/AcceptanceTests/Paging/paging/aio/operations/_paging_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar, Union -import warnings +from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar, Union from azure.core.async_paging import AsyncItemPaged, AsyncList from azure.core.exceptions import ( @@ -118,7 +117,9 @@ async def extract_data(pipeline_response): async def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -173,7 +174,9 @@ async def extract_data(pipeline_response): async def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -228,7 +231,9 @@ async def extract_data(pipeline_response): async def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -284,7 +289,9 @@ async def extract_data(pipeline_response): async def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -364,7 +371,9 @@ async def extract_data(pipeline_response): async def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -434,7 +443,9 @@ async def extract_data(pipeline_response): async def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -515,7 +526,9 @@ async def extract_data(pipeline_response): async def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -602,7 +615,9 @@ async def extract_data(pipeline_response): async def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -658,7 +673,9 @@ async def extract_data(pipeline_response): async def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -714,7 +731,9 @@ async def extract_data(pipeline_response): async def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -769,7 +788,9 @@ async def extract_data(pipeline_response): async def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -824,7 +845,9 @@ async def extract_data(pipeline_response): async def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -879,7 +902,9 @@ async def extract_data(pipeline_response): async def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -945,7 +970,9 @@ async def extract_data(pipeline_response): async def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1019,7 +1046,9 @@ async def extract_data(pipeline_response): async def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1057,7 +1086,9 @@ async def _get_multiple_pages_lro_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202]: @@ -1150,7 +1181,9 @@ async def extract_data(pipeline_response): async def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1159,7 +1192,7 @@ async def get_next(next_link=None): return pipeline_response - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop("cls", None) # type: ClsType["_models.ProductResult"] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -1176,8 +1209,7 @@ def get_long_running_output(pipeline_response): async def internal_get_next(next_link=None): if next_link is None: return pipeline_response - else: - return await get_next(next_link) + return await get_next(next_link) return AsyncItemPaged(internal_get_next, extract_data) @@ -1194,8 +1226,7 @@ async def internal_get_next(next_link=None): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_get_multiple_pages_lro.metadata = {"url": "/paging/multiple/lro"} # type: ignore @@ -1246,7 +1277,9 @@ async def extract_data(pipeline_response): async def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 562a9cba845..44e6a1d910e 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ( ClientAuthenticationError, @@ -30,7 +29,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar, Union + from typing import Any, Callable, Dict, Iterable, Optional, TypeVar, Union T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -624,7 +623,9 @@ def extract_data(pipeline_response): def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -682,7 +683,9 @@ def extract_data(pipeline_response): def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -740,7 +743,9 @@ def extract_data(pipeline_response): def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -799,7 +804,9 @@ def extract_data(pipeline_response): def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -880,7 +887,9 @@ def extract_data(pipeline_response): def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -953,7 +962,9 @@ def extract_data(pipeline_response): def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1035,7 +1046,9 @@ def extract_data(pipeline_response): def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1123,7 +1136,9 @@ def extract_data(pipeline_response): def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1182,7 +1197,9 @@ def extract_data(pipeline_response): def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1241,7 +1258,9 @@ def extract_data(pipeline_response): def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1299,7 +1318,9 @@ def extract_data(pipeline_response): def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1357,7 +1378,9 @@ def extract_data(pipeline_response): def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1415,7 +1438,9 @@ def extract_data(pipeline_response): def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1485,7 +1510,9 @@ def extract_data(pipeline_response): def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1562,7 +1589,9 @@ def extract_data(pipeline_response): def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1601,7 +1630,9 @@ def _get_multiple_pages_lro_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202]: @@ -1695,7 +1726,9 @@ def extract_data(pipeline_response): def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1704,7 +1737,7 @@ def get_next(next_link=None): return pipeline_response - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.PollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, PollingMethod] cls = kwargs.pop("cls", None) # type: ClsType["_models.ProductResult"] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -1721,8 +1754,7 @@ def get_long_running_output(pipeline_response): def internal_get_next(next_link=None): if next_link is None: return pipeline_response - else: - return get_next(next_link) + return get_next(next_link) return ItemPaged(internal_get_next, extract_data) @@ -1739,8 +1771,7 @@ def internal_get_next(next_link=None): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_get_multiple_pages_lro.metadata = {"url": "/paging/multiple/lro"} # type: ignore @@ -1791,7 +1822,9 @@ def extract_data(pipeline_response): def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/test/azure/legacy/Expected/AcceptanceTests/StorageManagementClient/storage/_configuration.py b/test/azure/legacy/Expected/AcceptanceTests/StorageManagementClient/storage/_configuration.py index d09f446b201..771356e7c79 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/StorageManagementClient/storage/_configuration.py +++ b/test/azure/legacy/Expected/AcceptanceTests/StorageManagementClient/storage/_configuration.py @@ -21,7 +21,7 @@ from azure.core.credentials import TokenCredential -class StorageManagementClientConfiguration(Configuration): +class StorageManagementClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for StorageManagementClient. Note that all parameters used to create this instance are saved as instance @@ -29,9 +29,11 @@ class StorageManagementClientConfiguration(Configuration): :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials.TokenCredential - :param subscription_id: Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + :param subscription_id: Gets subscription credentials which uniquely identify Microsoft Azure + subscription. The subscription ID forms part of the URI for every service call. :type subscription_id: str - :keyword api_version: Api Version. The default value is "2015-05-01-preview". Note that overriding this default value may result in unsupported behavior. + :keyword api_version: Api Version. The default value is "2015-05-01-preview". Note that + overriding this default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/test/azure/legacy/Expected/AcceptanceTests/StorageManagementClient/storage/_storage_management_client.py b/test/azure/legacy/Expected/AcceptanceTests/StorageManagementClient/storage/_storage_management_client.py index b907e464fa6..30befa4b8f1 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/StorageManagementClient/storage/_storage_management_client.py +++ b/test/azure/legacy/Expected/AcceptanceTests/StorageManagementClient/storage/_storage_management_client.py @@ -18,7 +18,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Optional + from typing import Any from azure.core.credentials import TokenCredential from azure.core.rest import HttpRequest, HttpResponse diff --git a/test/azure/legacy/Expected/AcceptanceTests/StorageManagementClient/storage/aio/_configuration.py b/test/azure/legacy/Expected/AcceptanceTests/StorageManagementClient/storage/aio/_configuration.py index 71aa018cc31..88fcaa7ecd9 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/StorageManagementClient/storage/aio/_configuration.py +++ b/test/azure/legacy/Expected/AcceptanceTests/StorageManagementClient/storage/aio/_configuration.py @@ -19,7 +19,7 @@ from azure.core.credentials_async import AsyncTokenCredential -class StorageManagementClientConfiguration(Configuration): +class StorageManagementClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for StorageManagementClient. Note that all parameters used to create this instance are saved as instance @@ -27,9 +27,11 @@ class StorageManagementClientConfiguration(Configuration): :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials_async.AsyncTokenCredential - :param subscription_id: Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + :param subscription_id: Gets subscription credentials which uniquely identify Microsoft Azure + subscription. The subscription ID forms part of the URI for every service call. :type subscription_id: str - :keyword api_version: Api Version. The default value is "2015-05-01-preview". Note that overriding this default value may result in unsupported behavior. + :keyword api_version: Api Version. The default value is "2015-05-01-preview". Note that + overriding this default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/test/azure/legacy/Expected/AcceptanceTests/StorageManagementClient/storage/aio/_storage_management_client.py b/test/azure/legacy/Expected/AcceptanceTests/StorageManagementClient/storage/aio/_storage_management_client.py index 68f0e60a85a..007c33bcf4b 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/StorageManagementClient/storage/aio/_storage_management_client.py +++ b/test/azure/legacy/Expected/AcceptanceTests/StorageManagementClient/storage/aio/_storage_management_client.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional, TYPE_CHECKING +from typing import Any, Awaitable, TYPE_CHECKING from azure.core.rest import AsyncHttpResponse, HttpRequest from azure.mgmt.core import AsyncARMPipelineClient diff --git a/test/azure/legacy/Expected/AcceptanceTests/StorageManagementClient/storage/aio/operations/_storage_accounts_operations.py b/test/azure/legacy/Expected/AcceptanceTests/StorageManagementClient/storage/aio/operations/_storage_accounts_operations.py index 09280683792..ac4c49d6186 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/StorageManagementClient/storage/aio/operations/_storage_accounts_operations.py +++ b/test/azure/legacy/Expected/AcceptanceTests/StorageManagementClient/storage/aio/operations/_storage_accounts_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar, Union -import warnings +from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar, Union from azure.core.async_paging import AsyncItemPaged, AsyncList from azure.core.exceptions import ( @@ -100,7 +99,9 @@ async def check_name_availability( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -144,7 +145,9 @@ async def _create_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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, 202]: @@ -198,7 +201,7 @@ async def begin_create( """ api_version = kwargs.pop("api_version", "2015-05-01-preview") # type: str content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop("cls", None) # type: ClsType["_models.StorageAccount"] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -234,8 +237,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_create.metadata = {"url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}"} # type: ignore @@ -270,7 +272,9 @@ async def delete(self, resource_group_name: str, account_name: str, **kwargs: An request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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, 204]: @@ -317,7 +321,9 @@ async def get_properties( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -384,7 +390,9 @@ async def update( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -431,7 +439,9 @@ async def list_keys( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -497,7 +507,9 @@ async def extract_data(pipeline_response): async def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -566,7 +578,9 @@ async def extract_data(pipeline_response): async def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -624,7 +638,9 @@ async def regenerate_key( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/test/azure/legacy/Expected/AcceptanceTests/StorageManagementClient/storage/aio/operations/_usage_operations.py b/test/azure/legacy/Expected/AcceptanceTests/StorageManagementClient/storage/aio/operations/_usage_operations.py index affae720c80..2c401d619c1 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/StorageManagementClient/storage/aio/operations/_usage_operations.py +++ b/test/azure/legacy/Expected/AcceptanceTests/StorageManagementClient/storage/aio/operations/_usage_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ( ClientAuthenticationError, @@ -75,7 +74,9 @@ async def list(self, **kwargs: Any) -> "_models.UsageListResult": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 8edf1bd1f66..9bec48d6c42 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ( ClientAuthenticationError, @@ -31,7 +30,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar, Union + from typing import Any, Callable, Dict, Iterable, Optional, TypeVar, Union T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -88,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}') + 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'), @@ -126,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}') + 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'), @@ -158,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}') + 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'), @@ -196,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}') + 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'), @@ -235,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') + 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'), @@ -304,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') + 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'), @@ -341,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') + 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'), @@ -428,7 +427,9 @@ def check_name_availability( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -473,7 +474,9 @@ def _create_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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, 202]: @@ -528,7 +531,7 @@ def begin_create( """ api_version = kwargs.pop("api_version", "2015-05-01-preview") # type: str content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - polling = kwargs.pop("polling", True) # type: Union[bool, azure.core.polling.PollingMethod] + polling = kwargs.pop("polling", True) # type: Union[bool, PollingMethod] cls = kwargs.pop("cls", None) # type: ClsType["_models.StorageAccount"] lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token = kwargs.pop("continuation_token", None) # type: Optional[str] @@ -564,8 +567,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output, ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_create.metadata = {"url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}"} # type: ignore @@ -606,7 +608,9 @@ def delete( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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, 204]: @@ -657,7 +661,9 @@ def get_properties( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -725,7 +731,9 @@ def update( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -776,7 +784,9 @@ def list_keys( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -845,7 +855,9 @@ def extract_data(pipeline_response): def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -917,7 +929,9 @@ def extract_data(pipeline_response): def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -976,7 +990,9 @@ def regenerate_key( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 62591bd8f96..38cb57b68ad 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ( ClientAuthenticationError, @@ -28,7 +27,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar + from typing import Any, Callable, Dict, Optional, TypeVar T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -118,7 +117,9 @@ def list( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/test/azure/legacy/Expected/AcceptanceTests/SubscriptionIdApiVersion/subscriptionidapiversion/_configuration.py b/test/azure/legacy/Expected/AcceptanceTests/SubscriptionIdApiVersion/subscriptionidapiversion/_configuration.py index aa4abb9c79c..aaf2aa13ec4 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/SubscriptionIdApiVersion/subscriptionidapiversion/_configuration.py +++ b/test/azure/legacy/Expected/AcceptanceTests/SubscriptionIdApiVersion/subscriptionidapiversion/_configuration.py @@ -21,7 +21,7 @@ from azure.core.credentials import TokenCredential -class MicrosoftAzureTestUrlConfiguration(Configuration): +class MicrosoftAzureTestUrlConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for MicrosoftAzureTestUrl. Note that all parameters used to create this instance are saved as instance @@ -31,7 +31,8 @@ class MicrosoftAzureTestUrlConfiguration(Configuration): :type credential: ~azure.core.credentials.TokenCredential :param subscription_id: Subscription Id. :type subscription_id: str - :keyword api_version: Api Version. The default value is "2014-04-01-preview". Note that overriding this default value may result in unsupported behavior. + :keyword api_version: Api Version. The default value is "2014-04-01-preview". Note that + overriding this default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/test/azure/legacy/Expected/AcceptanceTests/SubscriptionIdApiVersion/subscriptionidapiversion/_microsoft_azure_test_url.py b/test/azure/legacy/Expected/AcceptanceTests/SubscriptionIdApiVersion/subscriptionidapiversion/_microsoft_azure_test_url.py index e62f5ac2453..a12831f6786 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/SubscriptionIdApiVersion/subscriptionidapiversion/_microsoft_azure_test_url.py +++ b/test/azure/legacy/Expected/AcceptanceTests/SubscriptionIdApiVersion/subscriptionidapiversion/_microsoft_azure_test_url.py @@ -18,7 +18,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Optional + from typing import Any from azure.core.credentials import TokenCredential from azure.core.rest import HttpRequest, HttpResponse diff --git a/test/azure/legacy/Expected/AcceptanceTests/SubscriptionIdApiVersion/subscriptionidapiversion/aio/_configuration.py b/test/azure/legacy/Expected/AcceptanceTests/SubscriptionIdApiVersion/subscriptionidapiversion/aio/_configuration.py index c236e1ba3cf..f38e9d8505a 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/SubscriptionIdApiVersion/subscriptionidapiversion/aio/_configuration.py +++ b/test/azure/legacy/Expected/AcceptanceTests/SubscriptionIdApiVersion/subscriptionidapiversion/aio/_configuration.py @@ -19,7 +19,7 @@ from azure.core.credentials_async import AsyncTokenCredential -class MicrosoftAzureTestUrlConfiguration(Configuration): +class MicrosoftAzureTestUrlConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for MicrosoftAzureTestUrl. Note that all parameters used to create this instance are saved as instance @@ -29,7 +29,8 @@ class MicrosoftAzureTestUrlConfiguration(Configuration): :type credential: ~azure.core.credentials_async.AsyncTokenCredential :param subscription_id: Subscription Id. :type subscription_id: str - :keyword api_version: Api Version. The default value is "2014-04-01-preview". Note that overriding this default value may result in unsupported behavior. + :keyword api_version: Api Version. The default value is "2014-04-01-preview". Note that + overriding this default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/test/azure/legacy/Expected/AcceptanceTests/SubscriptionIdApiVersion/subscriptionidapiversion/aio/_microsoft_azure_test_url.py b/test/azure/legacy/Expected/AcceptanceTests/SubscriptionIdApiVersion/subscriptionidapiversion/aio/_microsoft_azure_test_url.py index 3632f70f0d2..fd54d4ecda8 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/SubscriptionIdApiVersion/subscriptionidapiversion/aio/_microsoft_azure_test_url.py +++ b/test/azure/legacy/Expected/AcceptanceTests/SubscriptionIdApiVersion/subscriptionidapiversion/aio/_microsoft_azure_test_url.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional, TYPE_CHECKING +from typing import Any, Awaitable, TYPE_CHECKING from azure.core.rest import AsyncHttpResponse, HttpRequest from azure.mgmt.core import AsyncARMPipelineClient diff --git a/test/azure/legacy/Expected/AcceptanceTests/SubscriptionIdApiVersion/subscriptionidapiversion/aio/operations/_group_operations.py b/test/azure/legacy/Expected/AcceptanceTests/SubscriptionIdApiVersion/subscriptionidapiversion/aio/operations/_group_operations.py index 9d0f90101e2..7e86102e11c 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/SubscriptionIdApiVersion/subscriptionidapiversion/aio/operations/_group_operations.py +++ b/test/azure/legacy/Expected/AcceptanceTests/SubscriptionIdApiVersion/subscriptionidapiversion/aio/operations/_group_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ( ClientAuthenticationError, @@ -78,7 +77,9 @@ async def get_sample_resource_group(self, resource_group_name: str, **kwargs: An request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 a4d70fa48f0..1476b140d5f 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ( ClientAuthenticationError, @@ -28,7 +27,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar + from typing import Any, Callable, Dict, Optional, TypeVar T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -125,7 +124,9 @@ def get_sample_resource_group( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v0/_configuration.py b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v0/_configuration.py index 4acced8a854..e918e6b5cbe 100644 --- a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v0/_configuration.py +++ b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v0/_configuration.py @@ -20,7 +20,7 @@ VERSION = "unknown" -class MultiapiServiceClientConfiguration(Configuration): +class MultiapiServiceClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for MultiapiServiceClient. Note that all parameters used to create this instance are saved as instance @@ -28,7 +28,8 @@ class MultiapiServiceClientConfiguration(Configuration): :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials.TokenCredential - :keyword api_version: Api Version. The default value is "0.0.0". Note that overriding this default value may result in unsupported behavior. + :keyword api_version: Api Version. The default value is "0.0.0". Note that overriding this + default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v0/_multiapi_service_client.py b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v0/_multiapi_service_client.py index a6626f945bb..2d72aa07042 100644 --- a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v0/_multiapi_service_client.py +++ b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v0/_multiapi_service_client.py @@ -18,7 +18,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Optional + from typing import Any from azure.core.credentials import TokenCredential from azure.core.rest import HttpRequest, HttpResponse diff --git a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v0/aio/_configuration.py b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v0/aio/_configuration.py index 341d6e79ad5..bfa9e0555d2 100644 --- a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v0/aio/_configuration.py +++ b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v0/aio/_configuration.py @@ -18,7 +18,7 @@ VERSION = "unknown" -class MultiapiServiceClientConfiguration(Configuration): +class MultiapiServiceClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for MultiapiServiceClient. Note that all parameters used to create this instance are saved as instance @@ -26,7 +26,8 @@ class MultiapiServiceClientConfiguration(Configuration): :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials_async.AsyncTokenCredential - :keyword api_version: Api Version. The default value is "0.0.0". Note that overriding this default value may result in unsupported behavior. + :keyword api_version: Api Version. The default value is "0.0.0". Note that overriding this + default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v0/aio/_multiapi_service_client.py b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v0/aio/_multiapi_service_client.py index 9c644cf76d6..0c5659ddf2f 100644 --- a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v0/aio/_multiapi_service_client.py +++ b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v0/aio/_multiapi_service_client.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional, TYPE_CHECKING +from typing import Any, Awaitable, TYPE_CHECKING from azure.core.rest import AsyncHttpResponse, HttpRequest from azure.mgmt.core import AsyncARMPipelineClient 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 171cffdb605..ac25a77a6db 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse @@ -72,7 +71,11 @@ async def test_two( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 ae051ada29b..b3fdab613e3 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse @@ -22,7 +21,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar + from typing import Any, Callable, Dict, Optional, TypeVar T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -108,7 +107,11 @@ def test_two( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v1/_configuration.py b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v1/_configuration.py index 5d770748dd5..89a224c52b3 100644 --- a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v1/_configuration.py +++ b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v1/_configuration.py @@ -20,7 +20,7 @@ VERSION = "unknown" -class MultiapiServiceClientConfiguration(Configuration): +class MultiapiServiceClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for MultiapiServiceClient. Note that all parameters used to create this instance are saved as instance @@ -28,7 +28,8 @@ class MultiapiServiceClientConfiguration(Configuration): :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials.TokenCredential - :keyword api_version: Api Version. The default value is "1.0.0". Note that overriding this default value may result in unsupported behavior. + :keyword api_version: Api Version. The default value is "1.0.0". Note that overriding this + default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v1/_multiapi_service_client.py b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v1/_multiapi_service_client.py index 6ad7f51400f..e41d6938f76 100644 --- a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v1/_multiapi_service_client.py +++ b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v1/_multiapi_service_client.py @@ -18,7 +18,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Optional + from typing import Any from azure.core.credentials import TokenCredential from azure.core.rest import HttpRequest, HttpResponse diff --git a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v1/aio/_configuration.py b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v1/aio/_configuration.py index 96c5f1578ed..30b6c6a9d4d 100644 --- a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v1/aio/_configuration.py +++ b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v1/aio/_configuration.py @@ -18,7 +18,7 @@ VERSION = "unknown" -class MultiapiServiceClientConfiguration(Configuration): +class MultiapiServiceClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for MultiapiServiceClient. Note that all parameters used to create this instance are saved as instance @@ -26,7 +26,8 @@ class MultiapiServiceClientConfiguration(Configuration): :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials_async.AsyncTokenCredential - :keyword api_version: Api Version. The default value is "1.0.0". Note that overriding this default value may result in unsupported behavior. + :keyword api_version: Api Version. The default value is "1.0.0". Note that overriding this + default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v1/aio/_multiapi_service_client.py b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v1/aio/_multiapi_service_client.py index f91bdba5bb6..d157dfe67a4 100644 --- a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v1/aio/_multiapi_service_client.py +++ b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v1/aio/_multiapi_service_client.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional, TYPE_CHECKING +from typing import Any, Awaitable, TYPE_CHECKING from azure.core.rest import AsyncHttpResponse, HttpRequest from azure.mgmt.core import AsyncARMPipelineClient 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 78ae35b1947..77ff4709fd7 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar, Union -import warnings +from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar, Union from azure.core.async_paging import AsyncItemPaged, AsyncList from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error @@ -64,7 +63,11 @@ async def test_one( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -104,7 +107,11 @@ async def _test_lro_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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, 204]: @@ -147,7 +154,7 @@ async def begin_test_lro( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] - polling = kwargs.pop('polling', True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop('cls', None) # type: ClsType["_models.Product"] lro_delay = kwargs.pop( 'polling_interval', @@ -181,8 +188,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_test_lro.metadata = {'url': '/multiapi/lro'} # type: ignore @@ -213,7 +219,11 @@ async def _test_lro_and_paging_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -308,7 +318,11 @@ async def extract_data(pipeline_response): async def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -318,7 +332,7 @@ async def get_next(next_link=None): return pipeline_response - polling = kwargs.pop('polling', True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop('cls', None) # type: ClsType["_models.PagingResult"] lro_delay = kwargs.pop( 'polling_interval', @@ -338,8 +352,7 @@ def get_long_running_output(pipeline_response): async def internal_get_next(next_link=None): if next_link is None: return pipeline_response - else: - return await get_next(next_link) + return await get_next(next_link) return AsyncItemPaged( internal_get_next, extract_data @@ -355,8 +368,7 @@ async def internal_get_next(next_link=None): client=self._client, deserialization_callback=get_long_running_output ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_test_lro_and_paging.metadata = {'url': '/multiapi/lroAndPaging'} # type: ignore @@ -393,7 +405,11 @@ async def test_different_calls( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 8fd69dbe06e..068c7926c32 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse @@ -72,7 +71,11 @@ async def test_two( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 8bde1f680dd..891dd6493b0 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.paging import ItemPaged @@ -25,7 +24,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar, Union + from typing import Any, Callable, Dict, Iterable, Optional, TypeVar, Union T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -187,7 +186,11 @@ def test_one( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -228,7 +231,11 @@ def _test_lro_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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, 204]: @@ -271,7 +278,7 @@ def begin_test_lro( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] - polling = kwargs.pop('polling', True) # type: Union[bool, azure.core.polling.PollingMethod] + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] cls = kwargs.pop('cls', None) # type: ClsType["_models.Product"] lro_delay = kwargs.pop( 'polling_interval', @@ -305,8 +312,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_test_lro.metadata = {'url': '/multiapi/lro'} # type: ignore @@ -338,7 +344,11 @@ def _test_lro_and_paging_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -434,7 +444,11 @@ def extract_data(pipeline_response): def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -444,7 +458,7 @@ def get_next(next_link=None): return pipeline_response - polling = kwargs.pop('polling', True) # type: Union[bool, azure.core.polling.PollingMethod] + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] cls = kwargs.pop('cls', None) # type: ClsType["_models.PagingResult"] lro_delay = kwargs.pop( 'polling_interval', @@ -464,8 +478,7 @@ def get_long_running_output(pipeline_response): def internal_get_next(next_link=None): if next_link is None: return pipeline_response - else: - return get_next(next_link) + return get_next(next_link) return ItemPaged( internal_get_next, extract_data @@ -481,8 +494,7 @@ def internal_get_next(next_link=None): client=self._client, deserialization_callback=get_long_running_output ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_test_lro_and_paging.metadata = {'url': '/multiapi/lroAndPaging'} # type: ignore @@ -520,7 +532,11 @@ def test_different_calls( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 cd15f639c4e..5ff97df9edf 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse @@ -22,7 +21,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar + from typing import Any, Callable, Dict, Optional, TypeVar T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -108,7 +107,11 @@ def test_two( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/_configuration.py b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/_configuration.py index ec6815cd02d..2cca3f321e0 100644 --- a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/_configuration.py +++ b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/_configuration.py @@ -20,7 +20,7 @@ VERSION = "unknown" -class MultiapiServiceClientConfiguration(Configuration): +class MultiapiServiceClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for MultiapiServiceClient. Note that all parameters used to create this instance are saved as instance @@ -28,7 +28,8 @@ class MultiapiServiceClientConfiguration(Configuration): :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials.TokenCredential - :keyword api_version: Api Version. The default value is "2.0.0". Note that overriding this default value may result in unsupported behavior. + :keyword api_version: Api Version. The default value is "2.0.0". Note that overriding this + default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/_multiapi_service_client.py b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/_multiapi_service_client.py index cc0189c2904..b47f959789d 100644 --- a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/_multiapi_service_client.py +++ b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/_multiapi_service_client.py @@ -18,7 +18,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Optional + from typing import Any from azure.core.credentials import TokenCredential from azure.core.rest import HttpRequest, HttpResponse diff --git a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/aio/_configuration.py b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/aio/_configuration.py index 6aedc9e2c54..b74d9352252 100644 --- a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/aio/_configuration.py +++ b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/aio/_configuration.py @@ -18,7 +18,7 @@ VERSION = "unknown" -class MultiapiServiceClientConfiguration(Configuration): +class MultiapiServiceClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for MultiapiServiceClient. Note that all parameters used to create this instance are saved as instance @@ -26,7 +26,8 @@ class MultiapiServiceClientConfiguration(Configuration): :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials_async.AsyncTokenCredential - :keyword api_version: Api Version. The default value is "2.0.0". Note that overriding this default value may result in unsupported behavior. + :keyword api_version: Api Version. The default value is "2.0.0". Note that overriding this + default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/aio/_multiapi_service_client.py b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/aio/_multiapi_service_client.py index 7ab133f0f5f..e74caf9d0f4 100644 --- a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/aio/_multiapi_service_client.py +++ b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/aio/_multiapi_service_client.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional, TYPE_CHECKING +from typing import Any, Awaitable, TYPE_CHECKING from azure.core.rest import AsyncHttpResponse, HttpRequest from azure.mgmt.core import AsyncARMPipelineClient 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 32ada3c8f83..2b78a21d342 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse @@ -60,7 +59,11 @@ async def test_one( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -114,7 +117,11 @@ async def test_different_calls( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 b06c3e2cae2..dadb7997b68 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse @@ -82,7 +81,11 @@ async def test_two( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -128,7 +131,11 @@ async def test_three( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 625bf102a48..c19aac44073 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse @@ -76,7 +75,11 @@ async def test_four( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 e8d61937351..24e9ff37ded 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse @@ -22,7 +21,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar + from typing import Any, Callable, Dict, Optional, TypeVar T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -133,7 +132,11 @@ def test_one( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -188,7 +191,11 @@ def test_different_calls( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 049f3a29f00..63c9287db1f 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse @@ -22,7 +21,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar + from typing import Any, Callable, Dict, Optional, TypeVar T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -148,7 +147,11 @@ def test_two( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -195,7 +198,11 @@ def test_three( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 5a7ff8078f6..6fd9214b181 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse @@ -22,7 +21,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar + from typing import Any, Callable, Dict, Optional, TypeVar T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -114,7 +113,11 @@ def test_four( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/_configuration.py b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/_configuration.py index caf3ac23e7c..7ea92522e1c 100644 --- a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/_configuration.py +++ b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/_configuration.py @@ -20,7 +20,7 @@ VERSION = "unknown" -class MultiapiServiceClientConfiguration(Configuration): +class MultiapiServiceClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for MultiapiServiceClient. Note that all parameters used to create this instance are saved as instance @@ -28,7 +28,8 @@ class MultiapiServiceClientConfiguration(Configuration): :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials.TokenCredential - :keyword api_version: Api Version. The default value is "3.0.0". Note that overriding this default value may result in unsupported behavior. + :keyword api_version: Api Version. The default value is "3.0.0". Note that overriding this + default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/_multiapi_service_client.py b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/_multiapi_service_client.py index b273922e3f3..3b4d004efd9 100644 --- a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/_multiapi_service_client.py +++ b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/_multiapi_service_client.py @@ -18,7 +18,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Optional + from typing import Any from azure.core.credentials import TokenCredential from azure.core.rest import HttpRequest, HttpResponse diff --git a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/aio/_configuration.py b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/aio/_configuration.py index 2e64a577236..70a475c193a 100644 --- a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/aio/_configuration.py +++ b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/aio/_configuration.py @@ -18,7 +18,7 @@ VERSION = "unknown" -class MultiapiServiceClientConfiguration(Configuration): +class MultiapiServiceClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for MultiapiServiceClient. Note that all parameters used to create this instance are saved as instance @@ -26,7 +26,8 @@ class MultiapiServiceClientConfiguration(Configuration): :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials_async.AsyncTokenCredential - :keyword api_version: Api Version. The default value is "3.0.0". Note that overriding this default value may result in unsupported behavior. + :keyword api_version: Api Version. The default value is "3.0.0". Note that overriding this + default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/aio/_multiapi_service_client.py b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/aio/_multiapi_service_client.py index eaf9e2f1d04..f0a780b0a50 100644 --- a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/aio/_multiapi_service_client.py +++ b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/aio/_multiapi_service_client.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional, TYPE_CHECKING +from typing import Any, Awaitable, TYPE_CHECKING from azure.core.rest import AsyncHttpResponse, HttpRequest from azure.mgmt.core import AsyncARMPipelineClient 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 7fc46b2b2f3..27c8685077f 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar from azure.core.async_paging import AsyncItemPaged, AsyncList from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error @@ -72,7 +71,11 @@ async def extract_data(pipeline_response): async def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -127,7 +130,11 @@ async def test_different_calls( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 310a317246d..ce46fdc275a 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse @@ -82,7 +81,11 @@ async def test_two( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 b4515f20809..8363114b58a 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, IO, Optional, TypeVar, Union -import warnings +from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse @@ -94,7 +93,11 @@ async def test_four( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -136,7 +139,11 @@ async def test_five( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 62a8d45b549..0a6886af27b 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.paging import ItemPaged @@ -23,7 +22,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar + from typing import Any, Callable, Dict, Iterable, Optional, TypeVar T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -135,7 +134,11 @@ def extract_data(pipeline_response): def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -191,7 +194,11 @@ def test_different_calls( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 5feffee8987..6977e6f3b88 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse @@ -22,7 +21,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar + from typing import Any, Callable, Dict, Optional, TypeVar T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -121,7 +120,11 @@ def test_two( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 17c7e99fe88..30439b77682 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse @@ -22,7 +21,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, IO, Optional, TypeVar, Union + from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -160,7 +159,11 @@ def test_four( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -203,7 +206,11 @@ def test_five( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v1/_configuration.py b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v1/_configuration.py index 24128be3455..3213278fb7a 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v1/_configuration.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v1/_configuration.py @@ -20,7 +20,7 @@ VERSION = "unknown" -class MultiapiServiceClientConfiguration(Configuration): +class MultiapiServiceClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for MultiapiServiceClient. Note that all parameters used to create this instance are saved as instance @@ -28,7 +28,8 @@ class MultiapiServiceClientConfiguration(Configuration): :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials.AzureKeyCredential - :keyword api_version: Api Version. The default value is "1.0.0". Note that overriding this default value may result in unsupported behavior. + :keyword api_version: Api Version. The default value is "1.0.0". Note that overriding this + default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v1/_multiapi_service_client.py b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v1/_multiapi_service_client.py index a0ac7058e29..ec0c1f94f32 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v1/_multiapi_service_client.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v1/_multiapi_service_client.py @@ -18,7 +18,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Optional + from typing import Any from azure.core.credentials import AzureKeyCredential from azure.core.rest import HttpRequest, HttpResponse diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v1/aio/_configuration.py b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v1/aio/_configuration.py index 2088c591e0d..25eb1ef291b 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v1/aio/_configuration.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v1/aio/_configuration.py @@ -15,7 +15,7 @@ VERSION = "unknown" -class MultiapiServiceClientConfiguration(Configuration): +class MultiapiServiceClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for MultiapiServiceClient. Note that all parameters used to create this instance are saved as instance @@ -23,7 +23,8 @@ class MultiapiServiceClientConfiguration(Configuration): :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials.AzureKeyCredential - :keyword api_version: Api Version. The default value is "1.0.0". Note that overriding this default value may result in unsupported behavior. + :keyword api_version: Api Version. The default value is "1.0.0". Note that overriding this + default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v1/aio/_multiapi_service_client.py b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v1/aio/_multiapi_service_client.py index 645ad5af4e0..5c8cab29782 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v1/aio/_multiapi_service_client.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v1/aio/_multiapi_service_client.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional +from typing import Any, Awaitable from azure.core.credentials import AzureKeyCredential from azure.core.rest import AsyncHttpResponse, HttpRequest 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 2e45242d6d0..26f6722d8cd 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar, Union -import warnings +from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar, Union from azure.core.async_paging import AsyncItemPaged, AsyncList from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error @@ -64,7 +63,11 @@ async def test_one( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -104,7 +107,11 @@ async def _test_lro_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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, 204]: @@ -147,7 +154,7 @@ async def begin_test_lro( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] - polling = kwargs.pop('polling', True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop('cls', None) # type: ClsType["_models.Product"] lro_delay = kwargs.pop( 'polling_interval', @@ -181,8 +188,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_test_lro.metadata = {'url': '/multiapi/lro'} # type: ignore @@ -213,7 +219,11 @@ async def _test_lro_and_paging_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -309,7 +319,11 @@ async def extract_data(pipeline_response): async def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -319,7 +333,7 @@ async def get_next(next_link=None): return pipeline_response - polling = kwargs.pop('polling', True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop('cls', None) # type: ClsType["_models.PagingResult"] lro_delay = kwargs.pop( 'polling_interval', @@ -339,8 +353,7 @@ def get_long_running_output(pipeline_response): async def internal_get_next(next_link=None): if next_link is None: return pipeline_response - else: - return await get_next(next_link) + return await get_next(next_link) return AsyncItemPaged( internal_get_next, extract_data @@ -356,8 +369,7 @@ async def internal_get_next(next_link=None): client=self._client, deserialization_callback=get_long_running_output ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_test_lro_and_paging.metadata = {'url': '/multiapi/lroAndPaging'} # type: ignore @@ -394,7 +406,11 @@ async def test_different_calls( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 1320280ff5a..69b5dbf4622 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse @@ -72,7 +71,11 @@ async def test_two( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 ac3d53c7d32..b2394652431 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.paging import ItemPaged @@ -25,7 +24,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar, Union + from typing import Any, Callable, Dict, Iterable, Optional, TypeVar, Union T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -187,7 +186,11 @@ def test_one( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -228,7 +231,11 @@ def _test_lro_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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, 204]: @@ -271,7 +278,7 @@ def begin_test_lro( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] - polling = kwargs.pop('polling', True) # type: Union[bool, azure.core.polling.PollingMethod] + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] cls = kwargs.pop('cls', None) # type: ClsType["_models.Product"] lro_delay = kwargs.pop( 'polling_interval', @@ -305,8 +312,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_test_lro.metadata = {'url': '/multiapi/lro'} # type: ignore @@ -338,7 +344,11 @@ def _test_lro_and_paging_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -435,7 +445,11 @@ def extract_data(pipeline_response): def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -445,7 +459,7 @@ def get_next(next_link=None): return pipeline_response - polling = kwargs.pop('polling', True) # type: Union[bool, azure.core.polling.PollingMethod] + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] cls = kwargs.pop('cls', None) # type: ClsType["_models.PagingResult"] lro_delay = kwargs.pop( 'polling_interval', @@ -465,8 +479,7 @@ def get_long_running_output(pipeline_response): def internal_get_next(next_link=None): if next_link is None: return pipeline_response - else: - return get_next(next_link) + return get_next(next_link) return ItemPaged( internal_get_next, extract_data @@ -482,8 +495,7 @@ def internal_get_next(next_link=None): client=self._client, deserialization_callback=get_long_running_output ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_test_lro_and_paging.metadata = {'url': '/multiapi/lroAndPaging'} # type: ignore @@ -521,7 +533,11 @@ def test_different_calls( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 f385d9aa9aa..d7625ad974c 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse @@ -22,7 +21,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar + from typing import Any, Callable, Dict, Optional, TypeVar T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -108,7 +107,11 @@ def test_two( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/_configuration.py b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/_configuration.py index d0448b1b102..e2a39d53ee7 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/_configuration.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/_configuration.py @@ -20,7 +20,7 @@ VERSION = "unknown" -class MultiapiServiceClientConfiguration(Configuration): +class MultiapiServiceClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for MultiapiServiceClient. Note that all parameters used to create this instance are saved as instance @@ -28,7 +28,8 @@ class MultiapiServiceClientConfiguration(Configuration): :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials.AzureKeyCredential - :keyword api_version: Api Version. The default value is "2.0.0". Note that overriding this default value may result in unsupported behavior. + :keyword api_version: Api Version. The default value is "2.0.0". Note that overriding this + default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/_multiapi_service_client.py b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/_multiapi_service_client.py index 0d9b1a2f103..1fde13fac5b 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/_multiapi_service_client.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/_multiapi_service_client.py @@ -18,7 +18,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Optional + from typing import Any from azure.core.credentials import AzureKeyCredential from azure.core.rest import HttpRequest, HttpResponse diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/aio/_configuration.py b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/aio/_configuration.py index 7634323026c..2222d158dcb 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/aio/_configuration.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/aio/_configuration.py @@ -15,7 +15,7 @@ VERSION = "unknown" -class MultiapiServiceClientConfiguration(Configuration): +class MultiapiServiceClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for MultiapiServiceClient. Note that all parameters used to create this instance are saved as instance @@ -23,7 +23,8 @@ class MultiapiServiceClientConfiguration(Configuration): :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials.AzureKeyCredential - :keyword api_version: Api Version. The default value is "2.0.0". Note that overriding this default value may result in unsupported behavior. + :keyword api_version: Api Version. The default value is "2.0.0". Note that overriding this + default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/aio/_multiapi_service_client.py b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/aio/_multiapi_service_client.py index f23d214eb63..184675c2931 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/aio/_multiapi_service_client.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/aio/_multiapi_service_client.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional +from typing import Any, Awaitable from azure.core.credentials import AzureKeyCredential from azure.core.rest import AsyncHttpResponse, HttpRequest 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 efe812ad8c9..1a454b06639 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse @@ -60,7 +59,11 @@ async def test_one( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -114,7 +117,11 @@ async def test_different_calls( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 c10ac5ce59e..7d0aa89f996 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse @@ -82,7 +81,11 @@ async def test_two( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -128,7 +131,11 @@ async def test_three( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 1c85101fadf..29e320adc9f 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse @@ -76,7 +75,11 @@ async def test_four( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 6a4cb821cbc..6b20936fd36 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse @@ -22,7 +21,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar + from typing import Any, Callable, Dict, Optional, TypeVar T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -133,7 +132,11 @@ def test_one( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -188,7 +191,11 @@ def test_different_calls( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 1c55df9a2b7..b77b68412d3 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse @@ -22,7 +21,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar + from typing import Any, Callable, Dict, Optional, TypeVar T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -148,7 +147,11 @@ def test_two( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -195,7 +198,11 @@ def test_three( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 7c0e10f5377..4bd4c8ef678 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse @@ -22,7 +21,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar + from typing import Any, Callable, Dict, Optional, TypeVar T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -114,7 +113,11 @@ def test_four( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/_configuration.py b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/_configuration.py index 37da046f705..1c82e9c3da6 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/_configuration.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/_configuration.py @@ -20,7 +20,7 @@ VERSION = "unknown" -class MultiapiServiceClientConfiguration(Configuration): +class MultiapiServiceClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for MultiapiServiceClient. Note that all parameters used to create this instance are saved as instance @@ -28,7 +28,8 @@ class MultiapiServiceClientConfiguration(Configuration): :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials.AzureKeyCredential - :keyword api_version: Api Version. The default value is "3.0.0". Note that overriding this default value may result in unsupported behavior. + :keyword api_version: Api Version. The default value is "3.0.0". Note that overriding this + default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/_multiapi_service_client.py b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/_multiapi_service_client.py index 52d10c3cbce..24b48059e5d 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/_multiapi_service_client.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/_multiapi_service_client.py @@ -18,7 +18,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Optional + from typing import Any from azure.core.credentials import AzureKeyCredential from azure.core.rest import HttpRequest, HttpResponse diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/aio/_configuration.py b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/aio/_configuration.py index 7269e3a34b4..46b7b68524a 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/aio/_configuration.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/aio/_configuration.py @@ -15,7 +15,7 @@ VERSION = "unknown" -class MultiapiServiceClientConfiguration(Configuration): +class MultiapiServiceClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for MultiapiServiceClient. Note that all parameters used to create this instance are saved as instance @@ -23,7 +23,8 @@ class MultiapiServiceClientConfiguration(Configuration): :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials.AzureKeyCredential - :keyword api_version: Api Version. The default value is "3.0.0". Note that overriding this default value may result in unsupported behavior. + :keyword api_version: Api Version. The default value is "3.0.0". Note that overriding this + default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/aio/_multiapi_service_client.py b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/aio/_multiapi_service_client.py index ead5912e668..7e2cd580586 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/aio/_multiapi_service_client.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/aio/_multiapi_service_client.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional +from typing import Any, Awaitable from azure.core.credentials import AzureKeyCredential from azure.core.rest import AsyncHttpResponse, HttpRequest 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 88a422a1f66..7222e2f6a8f 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar from azure.core.async_paging import AsyncItemPaged, AsyncList from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error @@ -73,7 +72,11 @@ async def extract_data(pipeline_response): async def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -128,7 +131,11 @@ async def test_different_calls( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 f31afc34838..748275f3b53 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse @@ -82,7 +81,11 @@ async def test_two( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 0bf7950065b..880954635e6 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, IO, Optional, TypeVar, Union -import warnings +from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse @@ -94,7 +93,11 @@ async def test_four( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -136,7 +139,11 @@ async def test_five( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 8baca0f77f3..135e0fd52cc 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.paging import ItemPaged @@ -23,7 +22,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar + from typing import Any, Callable, Dict, Iterable, Optional, TypeVar T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -135,7 +134,11 @@ def extract_data(pipeline_response): def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -191,7 +194,11 @@ def test_different_calls( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 021ce28d50e..cb4e1efbff9 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse @@ -22,7 +21,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar + from typing import Any, Callable, Dict, Optional, TypeVar T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -121,7 +120,11 @@ def test_two( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 d74fac6604f..aed31249898 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse @@ -22,7 +21,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, IO, Optional, TypeVar, Union + from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -160,7 +159,11 @@ def test_four( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -203,7 +206,11 @@ def test_five( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v1/_configuration.py b/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v1/_configuration.py index 7471f6eda13..33ab9a57f26 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v1/_configuration.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v1/_configuration.py @@ -19,7 +19,7 @@ VERSION = "unknown" -class MultiapiCustomBaseUrlServiceClientConfiguration(Configuration): +class MultiapiCustomBaseUrlServiceClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for MultiapiCustomBaseUrlServiceClient. Note that all parameters used to create this instance are saved as instance @@ -29,7 +29,8 @@ class MultiapiCustomBaseUrlServiceClientConfiguration(Configuration): :type credential: ~azure.core.credentials.TokenCredential :param endpoint: Pass in https://localhost:3000. :type endpoint: str - :keyword api_version: Api Version. The default value is "1.0.0". Note that overriding this default value may result in unsupported behavior. + :keyword api_version: Api Version. The default value is "1.0.0". Note that overriding this + default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v1/aio/_configuration.py b/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v1/aio/_configuration.py index 53a4586558a..6187f7c20e2 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v1/aio/_configuration.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v1/aio/_configuration.py @@ -17,7 +17,7 @@ VERSION = "unknown" -class MultiapiCustomBaseUrlServiceClientConfiguration(Configuration): +class MultiapiCustomBaseUrlServiceClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for MultiapiCustomBaseUrlServiceClient. Note that all parameters used to create this instance are saved as instance @@ -27,7 +27,8 @@ class MultiapiCustomBaseUrlServiceClientConfiguration(Configuration): :type credential: ~azure.core.credentials_async.AsyncTokenCredential :param endpoint: Pass in https://localhost:3000. :type endpoint: str - :keyword api_version: Api Version. The default value is "1.0.0". Note that overriding this default value may result in unsupported behavior. + :keyword api_version: Api Version. The default value is "1.0.0". Note that overriding this + default value may result in unsupported behavior. :paramtype api_version: str """ 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 ef9f80d2dfc..b310fa7b9b1 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse @@ -59,7 +58,11 @@ async def test( } request.url = self._client.format_url(request.url, **path_format_arguments) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 c0da7d77b46..9a08dd51654 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse @@ -21,7 +20,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar + from typing import Any, Callable, Dict, Optional, TypeVar T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -97,7 +96,11 @@ def test( } request.url = self._client.format_url(request.url, **path_format_arguments) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v2/_configuration.py b/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v2/_configuration.py index d5749f50424..221ed4a30da 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v2/_configuration.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v2/_configuration.py @@ -19,7 +19,7 @@ VERSION = "unknown" -class MultiapiCustomBaseUrlServiceClientConfiguration(Configuration): +class MultiapiCustomBaseUrlServiceClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for MultiapiCustomBaseUrlServiceClient. Note that all parameters used to create this instance are saved as instance @@ -29,7 +29,8 @@ class MultiapiCustomBaseUrlServiceClientConfiguration(Configuration): :type credential: ~azure.core.credentials.TokenCredential :param endpoint: Pass in https://localhost:3000. :type endpoint: str - :keyword api_version: Api Version. The default value is "2.0.0". Note that overriding this default value may result in unsupported behavior. + :keyword api_version: Api Version. The default value is "2.0.0". Note that overriding this + default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v2/aio/_configuration.py b/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v2/aio/_configuration.py index 75dee1608cf..ce6659adc03 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v2/aio/_configuration.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v2/aio/_configuration.py @@ -17,7 +17,7 @@ VERSION = "unknown" -class MultiapiCustomBaseUrlServiceClientConfiguration(Configuration): +class MultiapiCustomBaseUrlServiceClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for MultiapiCustomBaseUrlServiceClient. Note that all parameters used to create this instance are saved as instance @@ -27,7 +27,8 @@ class MultiapiCustomBaseUrlServiceClientConfiguration(Configuration): :type credential: ~azure.core.credentials_async.AsyncTokenCredential :param endpoint: Pass in https://localhost:3000. :type endpoint: str - :keyword api_version: Api Version. The default value is "2.0.0". Note that overriding this default value may result in unsupported behavior. + :keyword api_version: Api Version. The default value is "2.0.0". Note that overriding this + default value may result in unsupported behavior. :paramtype api_version: str """ 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 b6ab01d9aab..21e4f4fdc50 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse @@ -59,7 +58,11 @@ async def test( } request.url = self._client.format_url(request.url, **path_format_arguments) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 9a6a3afb5f2..4f623e709e2 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse @@ -21,7 +20,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar + from typing import Any, Callable, Dict, Optional, TypeVar T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -97,7 +96,11 @@ def test( } request.url = self._client.format_url(request.url, **path_format_arguments) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v1/_configuration.py b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v1/_configuration.py index 0682558ae83..61b266982c3 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v1/_configuration.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v1/_configuration.py @@ -19,7 +19,7 @@ VERSION = "unknown" -class MultiapiServiceClientConfiguration(Configuration): +class MultiapiServiceClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for MultiapiServiceClient. Note that all parameters used to create this instance are saved as instance @@ -27,7 +27,8 @@ class MultiapiServiceClientConfiguration(Configuration): :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials.TokenCredential - :keyword api_version: Api Version. The default value is "1.0.0". Note that overriding this default value may result in unsupported behavior. + :keyword api_version: Api Version. The default value is "1.0.0". Note that overriding this + default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v1/_multiapi_service_client.py b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v1/_multiapi_service_client.py index 3732e426267..11ffb6af5de 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v1/_multiapi_service_client.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v1/_multiapi_service_client.py @@ -18,7 +18,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Optional + from typing import Any from azure.core.credentials import TokenCredential from azure.core.rest import HttpRequest, HttpResponse diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v1/aio/_configuration.py b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v1/aio/_configuration.py index c5b6ad794af..ee987053488 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v1/aio/_configuration.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v1/aio/_configuration.py @@ -17,7 +17,7 @@ VERSION = "unknown" -class MultiapiServiceClientConfiguration(Configuration): +class MultiapiServiceClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for MultiapiServiceClient. Note that all parameters used to create this instance are saved as instance @@ -25,7 +25,8 @@ class MultiapiServiceClientConfiguration(Configuration): :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials_async.AsyncTokenCredential - :keyword api_version: Api Version. The default value is "1.0.0". Note that overriding this default value may result in unsupported behavior. + :keyword api_version: Api Version. The default value is "1.0.0". Note that overriding this + default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v1/aio/_multiapi_service_client.py b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v1/aio/_multiapi_service_client.py index 132c43cc627..ff30f950e84 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v1/aio/_multiapi_service_client.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v1/aio/_multiapi_service_client.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional, TYPE_CHECKING +from typing import Any, Awaitable, TYPE_CHECKING from azure.core import AsyncPipelineClient from azure.core.rest import AsyncHttpResponse, HttpRequest 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 5c9ee4c94ec..9d9254ec209 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar, Union -import warnings +from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar, Union from azure.core.async_paging import AsyncItemPaged, AsyncList from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error @@ -63,7 +62,11 @@ async def test_one( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -103,7 +106,11 @@ async def _test_lro_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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, 204]: @@ -146,7 +153,7 @@ async def begin_test_lro( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] - polling = kwargs.pop('polling', True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop('cls', None) # type: ClsType["_models.Product"] lro_delay = kwargs.pop( 'polling_interval', @@ -180,8 +187,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_test_lro.metadata = {'url': '/multiapi/lro'} # type: ignore @@ -212,7 +218,11 @@ async def _test_lro_and_paging_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -307,7 +317,11 @@ async def extract_data(pipeline_response): async def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -317,7 +331,7 @@ async def get_next(next_link=None): return pipeline_response - polling = kwargs.pop('polling', True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop('cls', None) # type: ClsType["_models.PagingResult"] lro_delay = kwargs.pop( 'polling_interval', @@ -337,8 +351,7 @@ def get_long_running_output(pipeline_response): async def internal_get_next(next_link=None): if next_link is None: return pipeline_response - else: - return await get_next(next_link) + return await get_next(next_link) return AsyncItemPaged( internal_get_next, extract_data @@ -354,8 +367,7 @@ async def internal_get_next(next_link=None): client=self._client, deserialization_callback=get_long_running_output ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_test_lro_and_paging.metadata = {'url': '/multiapi/lroAndPaging'} # type: ignore @@ -392,7 +404,11 @@ async def test_different_calls( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 6e3f0f83d22..e8a29bdcf13 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse @@ -71,7 +70,11 @@ async def test_two( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 f42f3b1a981..7106617737e 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.paging import ItemPaged @@ -24,7 +23,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar, Union + from typing import Any, Callable, Dict, Iterable, Optional, TypeVar, Union T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -186,7 +185,11 @@ def test_one( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -227,7 +230,11 @@ def _test_lro_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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, 204]: @@ -270,7 +277,7 @@ def begin_test_lro( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] - polling = kwargs.pop('polling', True) # type: Union[bool, azure.core.polling.PollingMethod] + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] cls = kwargs.pop('cls', None) # type: ClsType["_models.Product"] lro_delay = kwargs.pop( 'polling_interval', @@ -304,8 +311,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_test_lro.metadata = {'url': '/multiapi/lro'} # type: ignore @@ -337,7 +343,11 @@ def _test_lro_and_paging_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -433,7 +443,11 @@ def extract_data(pipeline_response): def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -443,7 +457,7 @@ def get_next(next_link=None): return pipeline_response - polling = kwargs.pop('polling', True) # type: Union[bool, azure.core.polling.PollingMethod] + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] cls = kwargs.pop('cls', None) # type: ClsType["_models.PagingResult"] lro_delay = kwargs.pop( 'polling_interval', @@ -463,8 +477,7 @@ def get_long_running_output(pipeline_response): def internal_get_next(next_link=None): if next_link is None: return pipeline_response - else: - return get_next(next_link) + return get_next(next_link) return ItemPaged( internal_get_next, extract_data @@ -480,8 +493,7 @@ def internal_get_next(next_link=None): client=self._client, deserialization_callback=get_long_running_output ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_test_lro_and_paging.metadata = {'url': '/multiapi/lroAndPaging'} # type: ignore @@ -519,7 +531,11 @@ def test_different_calls( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 344546ee5be..cb17725bbe8 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse @@ -21,7 +20,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar + from typing import Any, Callable, Dict, Optional, TypeVar T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -107,7 +106,11 @@ def test_two( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/_configuration.py b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/_configuration.py index 2add5013d7d..d0eda27ed54 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/_configuration.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/_configuration.py @@ -19,7 +19,7 @@ VERSION = "unknown" -class MultiapiServiceClientConfiguration(Configuration): +class MultiapiServiceClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for MultiapiServiceClient. Note that all parameters used to create this instance are saved as instance @@ -27,7 +27,8 @@ class MultiapiServiceClientConfiguration(Configuration): :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials.TokenCredential - :keyword api_version: Api Version. The default value is "2.0.0". Note that overriding this default value may result in unsupported behavior. + :keyword api_version: Api Version. The default value is "2.0.0". Note that overriding this + default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/_multiapi_service_client.py b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/_multiapi_service_client.py index 19c641421f5..ad76fdbcdca 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/_multiapi_service_client.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/_multiapi_service_client.py @@ -18,7 +18,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Optional + from typing import Any from azure.core.credentials import TokenCredential from azure.core.rest import HttpRequest, HttpResponse diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/aio/_configuration.py b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/aio/_configuration.py index fe3fd6e03a2..0f4efde6dbb 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/aio/_configuration.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/aio/_configuration.py @@ -17,7 +17,7 @@ VERSION = "unknown" -class MultiapiServiceClientConfiguration(Configuration): +class MultiapiServiceClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for MultiapiServiceClient. Note that all parameters used to create this instance are saved as instance @@ -25,7 +25,8 @@ class MultiapiServiceClientConfiguration(Configuration): :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials_async.AsyncTokenCredential - :keyword api_version: Api Version. The default value is "2.0.0". Note that overriding this default value may result in unsupported behavior. + :keyword api_version: Api Version. The default value is "2.0.0". Note that overriding this + default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/aio/_multiapi_service_client.py b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/aio/_multiapi_service_client.py index 3ffbcffaa24..04979d9238a 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/aio/_multiapi_service_client.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/aio/_multiapi_service_client.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional, TYPE_CHECKING +from typing import Any, Awaitable, TYPE_CHECKING from azure.core import AsyncPipelineClient from azure.core.rest import AsyncHttpResponse, HttpRequest 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 ed59e22eec2..c3c7f62d15e 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse @@ -59,7 +58,11 @@ async def test_one( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -113,7 +116,11 @@ async def test_different_calls( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 69fbf660f06..2d617fbdf37 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse @@ -81,7 +80,11 @@ async def test_two( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -127,7 +130,11 @@ async def test_three( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 12a84e9ea69..8a98dfb06fa 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse @@ -75,7 +74,11 @@ async def test_four( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 1008a328b94..08b6243d271 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse @@ -21,7 +20,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar + from typing import Any, Callable, Dict, Optional, TypeVar T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -132,7 +131,11 @@ def test_one( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -187,7 +190,11 @@ def test_different_calls( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 022677ff329..1af7d62eb2b 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse @@ -21,7 +20,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar + from typing import Any, Callable, Dict, Optional, TypeVar T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -147,7 +146,11 @@ def test_two( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -194,7 +197,11 @@ def test_three( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 486d41d2412..a2a5b61f9fc 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse @@ -21,7 +20,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar + from typing import Any, Callable, Dict, Optional, TypeVar T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -113,7 +112,11 @@ def test_four( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/_configuration.py b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/_configuration.py index 3b1542955d1..6461d2f704e 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/_configuration.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/_configuration.py @@ -19,7 +19,7 @@ VERSION = "unknown" -class MultiapiServiceClientConfiguration(Configuration): +class MultiapiServiceClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for MultiapiServiceClient. Note that all parameters used to create this instance are saved as instance @@ -27,7 +27,8 @@ class MultiapiServiceClientConfiguration(Configuration): :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials.TokenCredential - :keyword api_version: Api Version. The default value is "3.0.0". Note that overriding this default value may result in unsupported behavior. + :keyword api_version: Api Version. The default value is "3.0.0". Note that overriding this + default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/_multiapi_service_client.py b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/_multiapi_service_client.py index eaea6d11a1f..9f18d2c264c 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/_multiapi_service_client.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/_multiapi_service_client.py @@ -18,7 +18,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Optional + from typing import Any from azure.core.credentials import TokenCredential from azure.core.rest import HttpRequest, HttpResponse diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/aio/_configuration.py b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/aio/_configuration.py index 52a4ead4b37..9e288b1a105 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/aio/_configuration.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/aio/_configuration.py @@ -17,7 +17,7 @@ VERSION = "unknown" -class MultiapiServiceClientConfiguration(Configuration): +class MultiapiServiceClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for MultiapiServiceClient. Note that all parameters used to create this instance are saved as instance @@ -25,7 +25,8 @@ class MultiapiServiceClientConfiguration(Configuration): :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials_async.AsyncTokenCredential - :keyword api_version: Api Version. The default value is "3.0.0". Note that overriding this default value may result in unsupported behavior. + :keyword api_version: Api Version. The default value is "3.0.0". Note that overriding this + default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/aio/_multiapi_service_client.py b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/aio/_multiapi_service_client.py index 048c8e998e0..d2b321af6e2 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/aio/_multiapi_service_client.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/aio/_multiapi_service_client.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional, TYPE_CHECKING +from typing import Any, Awaitable, TYPE_CHECKING from azure.core import AsyncPipelineClient from azure.core.rest import AsyncHttpResponse, HttpRequest 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 af0cd5fa616..30abc39bbda 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar from azure.core.async_paging import AsyncItemPaged, AsyncList from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error @@ -71,7 +70,11 @@ async def extract_data(pipeline_response): async def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -126,7 +129,11 @@ async def test_different_calls( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 bda80f312f9..555dae0497d 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse @@ -81,7 +80,11 @@ async def test_two( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 d1988aebf36..8d7b048c621 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, IO, Optional, TypeVar, Union -import warnings +from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse @@ -93,7 +92,11 @@ async def test_four( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -135,7 +138,11 @@ async def test_five( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 10deb75e7db..dff42f65bfb 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.paging import ItemPaged @@ -22,7 +21,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar + from typing import Any, Callable, Dict, Iterable, Optional, TypeVar T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -134,7 +133,11 @@ def extract_data(pipeline_response): def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -190,7 +193,11 @@ def test_different_calls( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 78233285e17..7aca6a0ba3a 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse @@ -21,7 +20,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar + from typing import Any, Callable, Dict, Optional, TypeVar T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -120,7 +119,11 @@ def test_two( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 8e865a553d8..0b30bd5517b 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse @@ -21,7 +20,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, IO, Optional, TypeVar, Union + from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -159,7 +158,11 @@ def test_four( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -202,7 +205,11 @@ def test_five( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v1/_configuration.py b/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v1/_configuration.py index 61d3c8f32b8..16a4305caa8 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v1/_configuration.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v1/_configuration.py @@ -20,7 +20,7 @@ VERSION = "unknown" -class MultiapiServiceClientConfiguration(Configuration): +class MultiapiServiceClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for MultiapiServiceClient. Note that all parameters used to create this instance are saved as instance @@ -28,7 +28,8 @@ class MultiapiServiceClientConfiguration(Configuration): :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials.TokenCredential - :keyword api_version: Api Version. The default value is "1.0.0". Note that overriding this default value may result in unsupported behavior. + :keyword api_version: Api Version. The default value is "1.0.0". Note that overriding this + default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v1/_multiapi_service_client.py b/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v1/_multiapi_service_client.py index 02b1db826fe..f35a8cb2464 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v1/_multiapi_service_client.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v1/_multiapi_service_client.py @@ -18,7 +18,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Optional + from typing import Any from azure.core.credentials import TokenCredential from azure.core.rest import HttpRequest, HttpResponse 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 ac96d6fc512..4b283a45266 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.paging import ItemPaged @@ -25,7 +24,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar, Union + from typing import Any, Callable, Dict, Iterable, Optional, TypeVar, Union T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -187,7 +186,11 @@ def test_one( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -228,7 +231,11 @@ def _test_lro_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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, 204]: @@ -271,7 +278,7 @@ def begin_test_lro( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] - polling = kwargs.pop('polling', True) # type: Union[bool, azure.core.polling.PollingMethod] + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] cls = kwargs.pop('cls', None) # type: ClsType["_models.Product"] lro_delay = kwargs.pop( 'polling_interval', @@ -305,8 +312,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_test_lro.metadata = {'url': '/multiapi/lro'} # type: ignore @@ -338,7 +344,11 @@ def _test_lro_and_paging_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -434,7 +444,11 @@ def extract_data(pipeline_response): def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -444,7 +458,7 @@ def get_next(next_link=None): return pipeline_response - polling = kwargs.pop('polling', True) # type: Union[bool, azure.core.polling.PollingMethod] + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] cls = kwargs.pop('cls', None) # type: ClsType["_models.PagingResult"] lro_delay = kwargs.pop( 'polling_interval', @@ -464,8 +478,7 @@ def get_long_running_output(pipeline_response): def internal_get_next(next_link=None): if next_link is None: return pipeline_response - else: - return get_next(next_link) + return get_next(next_link) return ItemPaged( internal_get_next, extract_data @@ -481,8 +494,7 @@ def internal_get_next(next_link=None): client=self._client, deserialization_callback=get_long_running_output ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_test_lro_and_paging.metadata = {'url': '/multiapi/lroAndPaging'} # type: ignore @@ -520,7 +532,11 @@ def test_different_calls( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 63a1b75ffac..0afcc218157 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse @@ -22,7 +21,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar + from typing import Any, Callable, Dict, Optional, TypeVar T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -108,7 +107,11 @@ def test_two( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v2/_configuration.py b/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v2/_configuration.py index 4e11e9166a4..bd969874385 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v2/_configuration.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v2/_configuration.py @@ -20,7 +20,7 @@ VERSION = "unknown" -class MultiapiServiceClientConfiguration(Configuration): +class MultiapiServiceClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for MultiapiServiceClient. Note that all parameters used to create this instance are saved as instance @@ -28,7 +28,8 @@ class MultiapiServiceClientConfiguration(Configuration): :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials.TokenCredential - :keyword api_version: Api Version. The default value is "2.0.0". Note that overriding this default value may result in unsupported behavior. + :keyword api_version: Api Version. The default value is "2.0.0". Note that overriding this + default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v2/_multiapi_service_client.py b/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v2/_multiapi_service_client.py index 85063c4ebd8..d37b22d362f 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v2/_multiapi_service_client.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v2/_multiapi_service_client.py @@ -18,7 +18,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Optional + from typing import Any from azure.core.credentials import TokenCredential from azure.core.rest import HttpRequest, HttpResponse 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 8c6dec0ae4e..28209ca9968 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse @@ -22,7 +21,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar + from typing import Any, Callable, Dict, Optional, TypeVar T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -133,7 +132,11 @@ def test_one( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -188,7 +191,11 @@ def test_different_calls( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 6eeb635b5f9..41c5ce42306 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse @@ -22,7 +21,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar + from typing import Any, Callable, Dict, Optional, TypeVar T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -148,7 +147,11 @@ def test_two( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -195,7 +198,11 @@ def test_three( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 fc858480f93..903d4a04ef0 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse @@ -22,7 +21,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar + from typing import Any, Callable, Dict, Optional, TypeVar T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -114,7 +113,11 @@ def test_four( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v3/_configuration.py b/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v3/_configuration.py index 25cb55ad7df..50a5fd5ad5b 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v3/_configuration.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v3/_configuration.py @@ -20,7 +20,7 @@ VERSION = "unknown" -class MultiapiServiceClientConfiguration(Configuration): +class MultiapiServiceClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for MultiapiServiceClient. Note that all parameters used to create this instance are saved as instance @@ -28,7 +28,8 @@ class MultiapiServiceClientConfiguration(Configuration): :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials.TokenCredential - :keyword api_version: Api Version. The default value is "3.0.0". Note that overriding this default value may result in unsupported behavior. + :keyword api_version: Api Version. The default value is "3.0.0". Note that overriding this + default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v3/_multiapi_service_client.py b/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v3/_multiapi_service_client.py index 06238adc327..eee68bc5309 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v3/_multiapi_service_client.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v3/_multiapi_service_client.py @@ -18,7 +18,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Optional + from typing import Any from azure.core.credentials import TokenCredential from azure.core.rest import HttpRequest, HttpResponse 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 6de418d3c35..a0abede9145 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.paging import ItemPaged @@ -23,7 +22,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar + from typing import Any, Callable, Dict, Iterable, Optional, TypeVar T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -135,7 +134,11 @@ def extract_data(pipeline_response): def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -191,7 +194,11 @@ def test_different_calls( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 f8a2b8f9f8c..813309a27de 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse @@ -22,7 +21,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar + from typing import Any, Callable, Dict, Optional, TypeVar T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -121,7 +120,11 @@ def test_two( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 00521866b49..00c484d5b50 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse @@ -22,7 +21,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, IO, Optional, TypeVar, Union + from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -160,7 +159,11 @@ def test_four( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -203,7 +206,11 @@ def test_five( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v1/_configuration.py b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v1/_configuration.py index 03d7eaed1ba..d3cf08a9739 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v1/_configuration.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v1/_configuration.py @@ -20,7 +20,7 @@ VERSION = "unknown" -class MultiapiServiceClientConfiguration(Configuration): +class MultiapiServiceClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for MultiapiServiceClient. Note that all parameters used to create this instance are saved as instance @@ -28,7 +28,8 @@ class MultiapiServiceClientConfiguration(Configuration): :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials.TokenCredential - :keyword api_version: Api Version. The default value is "1.0.0". Note that overriding this default value may result in unsupported behavior. + :keyword api_version: Api Version. The default value is "1.0.0". Note that overriding this + default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v1/_multiapi_service_client.py b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v1/_multiapi_service_client.py index 5885c9795d1..91175ce4600 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v1/_multiapi_service_client.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v1/_multiapi_service_client.py @@ -18,7 +18,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Optional + from typing import Any from azure.core.credentials import TokenCredential from azure.core.rest import HttpRequest, HttpResponse diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v1/aio/_configuration.py b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v1/aio/_configuration.py index 8eb206e02fe..8e8f7b726b6 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v1/aio/_configuration.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v1/aio/_configuration.py @@ -18,7 +18,7 @@ VERSION = "unknown" -class MultiapiServiceClientConfiguration(Configuration): +class MultiapiServiceClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for MultiapiServiceClient. Note that all parameters used to create this instance are saved as instance @@ -26,7 +26,8 @@ class MultiapiServiceClientConfiguration(Configuration): :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials_async.AsyncTokenCredential - :keyword api_version: Api Version. The default value is "1.0.0". Note that overriding this default value may result in unsupported behavior. + :keyword api_version: Api Version. The default value is "1.0.0". Note that overriding this + default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v1/aio/_multiapi_service_client.py b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v1/aio/_multiapi_service_client.py index 36d7c82795a..cc43fc92a67 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v1/aio/_multiapi_service_client.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v1/aio/_multiapi_service_client.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional, TYPE_CHECKING +from typing import Any, Awaitable, TYPE_CHECKING from azure.core.rest import AsyncHttpResponse, HttpRequest from azure.mgmt.core import AsyncARMPipelineClient 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 99f8de744d4..ebd351e2ab1 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar, Union -import warnings +from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar, Union from azure.core.async_paging import AsyncItemPaged, AsyncList from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error @@ -64,7 +63,11 @@ async def test_one( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -104,7 +107,11 @@ async def _test_lro_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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, 204]: @@ -147,7 +154,7 @@ async def begin_test_lro( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] - polling = kwargs.pop('polling', True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop('cls', None) # type: ClsType["_models.Product"] lro_delay = kwargs.pop( 'polling_interval', @@ -181,8 +188,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_test_lro.metadata = {'url': '/multiapi/lro'} # type: ignore @@ -213,7 +219,11 @@ async def _test_lro_and_paging_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -309,7 +319,11 @@ async def extract_data(pipeline_response): async def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -319,7 +333,7 @@ async def get_next(next_link=None): return pipeline_response - polling = kwargs.pop('polling', True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop('cls', None) # type: ClsType["_models.PagingResult"] lro_delay = kwargs.pop( 'polling_interval', @@ -339,8 +353,7 @@ def get_long_running_output(pipeline_response): async def internal_get_next(next_link=None): if next_link is None: return pipeline_response - else: - return await get_next(next_link) + return await get_next(next_link) return AsyncItemPaged( internal_get_next, extract_data @@ -356,8 +369,7 @@ async def internal_get_next(next_link=None): client=self._client, deserialization_callback=get_long_running_output ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_test_lro_and_paging.metadata = {'url': '/multiapi/lroAndPaging'} # type: ignore @@ -394,7 +406,11 @@ async def test_different_calls( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 8ace7af71f7..34e6a2dcc6a 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse @@ -72,7 +71,11 @@ async def test_two( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 61c2e2baf6b..f14a3adef8c 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.paging import ItemPaged @@ -25,7 +24,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar, Union + from typing import Any, Callable, Dict, Iterable, Optional, TypeVar, Union T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -187,7 +186,11 @@ def test_one( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -228,7 +231,11 @@ def _test_lro_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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, 204]: @@ -271,7 +278,7 @@ def begin_test_lro( :raises: ~azure.core.exceptions.HttpResponseError """ content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] - polling = kwargs.pop('polling', True) # type: Union[bool, azure.core.polling.PollingMethod] + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] cls = kwargs.pop('cls', None) # type: ClsType["_models.Product"] lro_delay = kwargs.pop( 'polling_interval', @@ -305,8 +312,7 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_test_lro.metadata = {'url': '/multiapi/lro'} # type: ignore @@ -338,7 +344,11 @@ def _test_lro_and_paging_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -435,7 +445,11 @@ def extract_data(pipeline_response): def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -445,7 +459,7 @@ def get_next(next_link=None): return pipeline_response - polling = kwargs.pop('polling', True) # type: Union[bool, azure.core.polling.PollingMethod] + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] cls = kwargs.pop('cls', None) # type: ClsType["_models.PagingResult"] lro_delay = kwargs.pop( 'polling_interval', @@ -465,8 +479,7 @@ def get_long_running_output(pipeline_response): def internal_get_next(next_link=None): if next_link is None: return pipeline_response - else: - return get_next(next_link) + return get_next(next_link) return ItemPaged( internal_get_next, extract_data @@ -482,8 +495,7 @@ def internal_get_next(next_link=None): client=self._client, deserialization_callback=get_long_running_output ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_test_lro_and_paging.metadata = {'url': '/multiapi/lroAndPaging'} # type: ignore @@ -521,7 +533,11 @@ def test_different_calls( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 18fcdb2df10..e02f1feadba 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse @@ -22,7 +21,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar + from typing import Any, Callable, Dict, Optional, TypeVar T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -108,7 +107,11 @@ def test_two( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/_configuration.py b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/_configuration.py index 5174be13adb..522b1a7101f 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/_configuration.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/_configuration.py @@ -20,7 +20,7 @@ VERSION = "unknown" -class MultiapiServiceClientConfiguration(Configuration): +class MultiapiServiceClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for MultiapiServiceClient. Note that all parameters used to create this instance are saved as instance @@ -28,7 +28,8 @@ class MultiapiServiceClientConfiguration(Configuration): :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials.TokenCredential - :keyword api_version: Api Version. The default value is "2.0.0". Note that overriding this default value may result in unsupported behavior. + :keyword api_version: Api Version. The default value is "2.0.0". Note that overriding this + default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/_multiapi_service_client.py b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/_multiapi_service_client.py index 75e3057395d..6e60ca39738 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/_multiapi_service_client.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/_multiapi_service_client.py @@ -18,7 +18,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Optional + from typing import Any from azure.core.credentials import TokenCredential from azure.core.rest import HttpRequest, HttpResponse diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/aio/_configuration.py b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/aio/_configuration.py index 1a9bfd10278..8c858bb1389 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/aio/_configuration.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/aio/_configuration.py @@ -18,7 +18,7 @@ VERSION = "unknown" -class MultiapiServiceClientConfiguration(Configuration): +class MultiapiServiceClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for MultiapiServiceClient. Note that all parameters used to create this instance are saved as instance @@ -26,7 +26,8 @@ class MultiapiServiceClientConfiguration(Configuration): :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials_async.AsyncTokenCredential - :keyword api_version: Api Version. The default value is "2.0.0". Note that overriding this default value may result in unsupported behavior. + :keyword api_version: Api Version. The default value is "2.0.0". Note that overriding this + default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/aio/_multiapi_service_client.py b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/aio/_multiapi_service_client.py index ff77a178e36..eab99792edc 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/aio/_multiapi_service_client.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/aio/_multiapi_service_client.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional, TYPE_CHECKING +from typing import Any, Awaitable, TYPE_CHECKING from azure.core.rest import AsyncHttpResponse, HttpRequest from azure.mgmt.core import AsyncARMPipelineClient 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 5f4f06b82d2..1ac558b763e 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse @@ -60,7 +59,11 @@ async def test_one( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -114,7 +117,11 @@ async def test_different_calls( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 3545ffe0a81..25cf4dc5cde 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse @@ -82,7 +81,11 @@ async def test_two( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -128,7 +131,11 @@ async def test_three( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 463d7d89c5d..f1d49e329c5 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse @@ -76,7 +75,11 @@ async def test_four( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 3d2d5f02e72..7230d66aa2e 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse @@ -22,7 +21,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar + from typing import Any, Callable, Dict, Optional, TypeVar T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -133,7 +132,11 @@ def test_one( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -188,7 +191,11 @@ def test_different_calls( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 6236ddeb57f..6a62fd02468 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse @@ -22,7 +21,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar + from typing import Any, Callable, Dict, Optional, TypeVar T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -148,7 +147,11 @@ def test_two( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -195,7 +198,11 @@ def test_three( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 fda1e5e431e..be14d708492 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse @@ -22,7 +21,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar + from typing import Any, Callable, Dict, Optional, TypeVar T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -114,7 +113,11 @@ def test_four( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/_configuration.py b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/_configuration.py index d115e49b06c..2d7b5e2d64d 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/_configuration.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/_configuration.py @@ -20,7 +20,7 @@ VERSION = "unknown" -class MultiapiServiceClientConfiguration(Configuration): +class MultiapiServiceClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for MultiapiServiceClient. Note that all parameters used to create this instance are saved as instance @@ -28,7 +28,8 @@ class MultiapiServiceClientConfiguration(Configuration): :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials.TokenCredential - :keyword api_version: Api Version. The default value is "3.0.0". Note that overriding this default value may result in unsupported behavior. + :keyword api_version: Api Version. The default value is "3.0.0". Note that overriding this + default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/_multiapi_service_client.py b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/_multiapi_service_client.py index 437ff6c6dc2..29f84818840 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/_multiapi_service_client.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/_multiapi_service_client.py @@ -18,7 +18,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Optional + from typing import Any from azure.core.credentials import TokenCredential from azure.core.rest import HttpRequest, HttpResponse diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/aio/_configuration.py b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/aio/_configuration.py index fe4c0a18023..50f958e64c0 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/aio/_configuration.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/aio/_configuration.py @@ -18,7 +18,7 @@ VERSION = "unknown" -class MultiapiServiceClientConfiguration(Configuration): +class MultiapiServiceClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for MultiapiServiceClient. Note that all parameters used to create this instance are saved as instance @@ -26,7 +26,8 @@ class MultiapiServiceClientConfiguration(Configuration): :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials_async.AsyncTokenCredential - :keyword api_version: Api Version. The default value is "3.0.0". Note that overriding this default value may result in unsupported behavior. + :keyword api_version: Api Version. The default value is "3.0.0". Note that overriding this + default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/aio/_multiapi_service_client.py b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/aio/_multiapi_service_client.py index ec13b93fa03..6e37853dd19 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/aio/_multiapi_service_client.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/aio/_multiapi_service_client.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional, TYPE_CHECKING +from typing import Any, Awaitable, TYPE_CHECKING from azure.core.rest import AsyncHttpResponse, HttpRequest from azure.mgmt.core import AsyncARMPipelineClient 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 fbb896dfe57..c126cb61fce 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar from azure.core.async_paging import AsyncItemPaged, AsyncList from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error @@ -73,7 +72,11 @@ async def extract_data(pipeline_response): async def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -128,7 +131,11 @@ async def test_different_calls( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 db2af9c3ff4..0ec80d36844 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse @@ -82,7 +81,11 @@ async def test_two( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 da96c1879e6..371bbaa2b0f 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, IO, Optional, TypeVar, Union -import warnings +from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse @@ -94,7 +93,11 @@ async def test_four( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -136,7 +139,11 @@ async def test_five( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 4676f2ba2ef..36c026225b3 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.paging import ItemPaged @@ -23,7 +22,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar + from typing import Any, Callable, Dict, Iterable, Optional, TypeVar T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -135,7 +134,11 @@ def extract_data(pipeline_response): def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -191,7 +194,11 @@ def test_different_calls( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 49d826f7d40..9d94da71b67 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse @@ -22,7 +21,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar + from typing import Any, Callable, Dict, Optional, TypeVar T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -121,7 +120,11 @@ def test_two( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 46a681f22fd..75a5ca70590 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse @@ -22,7 +21,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, IO, Optional, TypeVar, Union + from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -160,7 +159,11 @@ def test_four( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -203,7 +206,11 @@ def test_five( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/AdditionalProperties/additionalproperties/_additional_properties_client.py b/test/vanilla/legacy/Expected/AcceptanceTests/AdditionalProperties/additionalproperties/_additional_properties_client.py index 0db71cb1e52..01e2cc32175 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/AdditionalProperties/additionalproperties/_additional_properties_client.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/AdditionalProperties/additionalproperties/_additional_properties_client.py @@ -18,7 +18,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Optional + from typing import Any from azure.core.rest import HttpRequest, HttpResponse diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/AdditionalProperties/additionalproperties/_configuration.py b/test/vanilla/legacy/Expected/AcceptanceTests/AdditionalProperties/additionalproperties/_configuration.py index 39a60241f8e..e495d5dfb85 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/AdditionalProperties/additionalproperties/_configuration.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/AdditionalProperties/additionalproperties/_configuration.py @@ -18,7 +18,7 @@ from typing import Any -class AdditionalPropertiesClientConfiguration(Configuration): +class AdditionalPropertiesClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AdditionalPropertiesClient. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/AdditionalProperties/additionalproperties/aio/_additional_properties_client.py b/test/vanilla/legacy/Expected/AcceptanceTests/AdditionalProperties/additionalproperties/aio/_additional_properties_client.py index f765184b8d5..24f89c16f37 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/AdditionalProperties/additionalproperties/aio/_additional_properties_client.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/AdditionalProperties/additionalproperties/aio/_additional_properties_client.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional +from typing import Any, Awaitable from azure.core import AsyncPipelineClient from azure.core.rest import AsyncHttpResponse, HttpRequest diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/AdditionalProperties/additionalproperties/aio/_configuration.py b/test/vanilla/legacy/Expected/AcceptanceTests/AdditionalProperties/additionalproperties/aio/_configuration.py index c431b41cf3a..6957b41d9ba 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/AdditionalProperties/additionalproperties/aio/_configuration.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/AdditionalProperties/additionalproperties/aio/_configuration.py @@ -14,7 +14,7 @@ from .._version import VERSION -class AdditionalPropertiesClientConfiguration(Configuration): +class AdditionalPropertiesClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AdditionalPropertiesClient. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/AdditionalProperties/additionalproperties/aio/operations/_pets_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/AdditionalProperties/additionalproperties/aio/operations/_pets_operations.py index 91c2e361f0b..2f652138539 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/AdditionalProperties/additionalproperties/aio/operations/_pets_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/AdditionalProperties/additionalproperties/aio/operations/_pets_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ( ClientAuthenticationError, @@ -85,7 +84,9 @@ async def create_ap_true(self, create_parameters: "_models.PetAPTrue", **kwargs: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -129,7 +130,9 @@ async def create_cat_ap_true(self, create_parameters: "_models.CatAPTrue", **kwa request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -173,7 +176,9 @@ async def create_ap_object(self, create_parameters: "_models.PetAPObject", **kwa request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -217,7 +222,9 @@ async def create_ap_string(self, create_parameters: "_models.PetAPString", **kwa request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -263,7 +270,9 @@ async def create_ap_in_properties( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -309,7 +318,9 @@ async def create_ap_in_properties_with_ap_string( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 3979ccb9316..e5cd539ea35 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ( ClientAuthenticationError, @@ -27,7 +26,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar + from typing import Any, Callable, Dict, Optional, TypeVar T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -234,7 +233,9 @@ def create_ap_true( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -283,7 +284,9 @@ def create_cat_ap_true( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -332,7 +335,9 @@ def create_ap_object( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -381,7 +386,9 @@ def create_ap_string( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -430,7 +437,9 @@ def create_ap_in_properties( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -479,7 +488,9 @@ def create_ap_in_properties_with_ap_string( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/Anything/anything/_anything_client.py b/test/vanilla/legacy/Expected/AcceptanceTests/Anything/anything/_anything_client.py index 807a52c2f83..91e11ae08c0 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/Anything/anything/_anything_client.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/Anything/anything/_anything_client.py @@ -17,13 +17,14 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Dict, Optional + from typing import Any, Dict from azure.core.rest import HttpRequest, HttpResponse class AnythingClient(AnythingClientOperationsMixin): - """Service client for testing basic anything types. Those schemas without types can be anything: primitive, object, array. + """Service client for testing basic anything types. Those schemas without types can be anything: + primitive, object, array. :param base_url: Service URL. Default value is 'http://localhost:3000'. :type base_url: str diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/Anything/anything/_configuration.py b/test/vanilla/legacy/Expected/AcceptanceTests/Anything/anything/_configuration.py index 20dd340ae21..919f058ccef 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/Anything/anything/_configuration.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/Anything/anything/_configuration.py @@ -18,7 +18,7 @@ from typing import Any -class AnythingClientConfiguration(Configuration): +class AnythingClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AnythingClient. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/Anything/anything/aio/_anything_client.py b/test/vanilla/legacy/Expected/AcceptanceTests/Anything/anything/aio/_anything_client.py index 99e9820176f..482ae7d151f 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/Anything/anything/aio/_anything_client.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/Anything/anything/aio/_anything_client.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional, TYPE_CHECKING +from typing import Any, Awaitable, TYPE_CHECKING from azure.core import AsyncPipelineClient from azure.core.rest import AsyncHttpResponse, HttpRequest @@ -22,7 +22,8 @@ class AnythingClient(AnythingClientOperationsMixin): - """Service client for testing basic anything types. Those schemas without types can be anything: primitive, object, array. + """Service client for testing basic anything types. Those schemas without types can be anything: + primitive, object, array. :param base_url: Service URL. Default value is 'http://localhost:3000'. :type base_url: str diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/Anything/anything/aio/_configuration.py b/test/vanilla/legacy/Expected/AcceptanceTests/Anything/anything/aio/_configuration.py index b5720beca20..c2115fb2b46 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/Anything/anything/aio/_configuration.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/Anything/anything/aio/_configuration.py @@ -14,7 +14,7 @@ from .._version import VERSION -class AnythingClientConfiguration(Configuration): +class AnythingClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AnythingClient. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/Anything/anything/aio/operations/_anything_client_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/Anything/anything/aio/operations/_anything_client_operations.py index 6be960d662c..3709aa76efe 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/Anything/anything/aio/operations/_anything_client_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/Anything/anything/aio/operations/_anything_client_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ( ClientAuthenticationError, @@ -56,7 +55,9 @@ async def get_object(self, **kwargs: Any) -> Any: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -100,7 +101,9 @@ async def put_object(self, input: Any, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -131,7 +134,9 @@ async def get_string(self, **kwargs: Any) -> Any: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -175,7 +180,9 @@ async def put_string(self, input: Any, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -206,7 +213,9 @@ async def get_array(self, **kwargs: Any) -> Any: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -250,7 +259,9 @@ async def put_array(self, input: Any, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 cc30d65d7a1..8200fe7d547 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ( ClientAuthenticationError, @@ -26,7 +25,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar + from typing import Any, Callable, Dict, Optional, TypeVar T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -185,7 +184,9 @@ def get_object( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -234,7 +235,9 @@ def put_object( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -268,7 +271,9 @@ def get_string( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -317,7 +322,9 @@ def put_string( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -351,7 +358,9 @@ def get_array( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -400,7 +409,9 @@ def put_array( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyArray/bodyarray/_auto_rest_swagger_bat_array_service.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyArray/bodyarray/_auto_rest_swagger_bat_array_service.py index 671586ae804..dd432d70d40 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyArray/bodyarray/_auto_rest_swagger_bat_array_service.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyArray/bodyarray/_auto_rest_swagger_bat_array_service.py @@ -18,7 +18,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Optional + from typing import Any from azure.core.rest import HttpRequest, HttpResponse diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyArray/bodyarray/_configuration.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyArray/bodyarray/_configuration.py index 31838f4dc03..a8842a25707 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyArray/bodyarray/_configuration.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyArray/bodyarray/_configuration.py @@ -18,7 +18,7 @@ from typing import Any -class AutoRestSwaggerBATArrayServiceConfiguration(Configuration): +class AutoRestSwaggerBATArrayServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestSwaggerBATArrayService. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyArray/bodyarray/aio/_auto_rest_swagger_bat_array_service.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyArray/bodyarray/aio/_auto_rest_swagger_bat_array_service.py index 69a5c2919ce..f657f444219 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyArray/bodyarray/aio/_auto_rest_swagger_bat_array_service.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyArray/bodyarray/aio/_auto_rest_swagger_bat_array_service.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional +from typing import Any, Awaitable from azure.core import AsyncPipelineClient from azure.core.rest import AsyncHttpResponse, HttpRequest diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyArray/bodyarray/aio/_configuration.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyArray/bodyarray/aio/_configuration.py index 99fd3c7c6ab..8f8d31c319a 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyArray/bodyarray/aio/_configuration.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyArray/bodyarray/aio/_configuration.py @@ -14,7 +14,7 @@ from .._version import VERSION -class AutoRestSwaggerBATArrayServiceConfiguration(Configuration): +class AutoRestSwaggerBATArrayServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestSwaggerBATArrayService. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyArray/bodyarray/aio/operations/_array_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyArray/bodyarray/aio/operations/_array_operations.py index efc0ed5ef2e..56458d99d2d 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyArray/bodyarray/aio/operations/_array_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyArray/bodyarray/aio/operations/_array_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -6,9 +7,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import datetime -import functools -from typing import Any, Callable, Dict, Generic, List, Optional, TypeVar, Union -import warnings +from typing import Any, Callable, Dict, List, Optional, TypeVar, Union from azure.core.exceptions import ( ClientAuthenticationError, @@ -100,7 +99,7 @@ ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] -class ArrayOperations: +class ArrayOperations: # pylint: disable=too-many-public-methods """ArrayOperations async operations. You should not instantiate this class directly. Instead, you should create a Client instance that @@ -141,7 +140,9 @@ async def get_null(self, **kwargs: Any) -> List[int]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -177,7 +178,9 @@ async def get_invalid(self, **kwargs: Any) -> List[int]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -213,7 +216,9 @@ async def get_empty(self, **kwargs: Any) -> List[int]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -257,7 +262,9 @@ async def put_empty(self, array_body: List[str], **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -289,7 +296,9 @@ async def get_boolean_tfft(self, **kwargs: Any) -> List[bool]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -333,7 +342,9 @@ async def put_boolean_tfft(self, array_body: List[bool], **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -365,7 +376,9 @@ async def get_boolean_invalid_null(self, **kwargs: Any) -> List[bool]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -401,7 +414,9 @@ async def get_boolean_invalid_string(self, **kwargs: Any) -> List[bool]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -437,7 +452,9 @@ async def get_integer_valid(self, **kwargs: Any) -> List[int]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -481,7 +498,9 @@ async def put_integer_valid(self, array_body: List[int], **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -513,7 +532,9 @@ async def get_int_invalid_null(self, **kwargs: Any) -> List[int]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -549,7 +570,9 @@ async def get_int_invalid_string(self, **kwargs: Any) -> List[int]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -585,7 +608,9 @@ async def get_long_valid(self, **kwargs: Any) -> List[int]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -629,7 +654,9 @@ async def put_long_valid(self, array_body: List[int], **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -661,7 +688,9 @@ async def get_long_invalid_null(self, **kwargs: Any) -> List[int]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -697,7 +726,9 @@ async def get_long_invalid_string(self, **kwargs: Any) -> List[int]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -733,7 +764,9 @@ async def get_float_valid(self, **kwargs: Any) -> List[float]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -777,7 +810,9 @@ async def put_float_valid(self, array_body: List[float], **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -809,7 +844,9 @@ async def get_float_invalid_null(self, **kwargs: Any) -> List[float]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -845,7 +882,9 @@ async def get_float_invalid_string(self, **kwargs: Any) -> List[float]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -881,7 +920,9 @@ async def get_double_valid(self, **kwargs: Any) -> List[float]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -925,7 +966,9 @@ async def put_double_valid(self, array_body: List[float], **kwargs: Any) -> None request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -957,7 +1000,9 @@ async def get_double_invalid_null(self, **kwargs: Any) -> List[float]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -993,7 +1038,9 @@ async def get_double_invalid_string(self, **kwargs: Any) -> List[float]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1029,7 +1076,9 @@ async def get_string_valid(self, **kwargs: Any) -> List[str]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1073,7 +1122,9 @@ async def put_string_valid(self, array_body: List[str], **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1105,7 +1156,9 @@ async def get_enum_valid(self, **kwargs: Any) -> List[Union[str, "_models.FooEnu request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1149,7 +1202,9 @@ async def put_enum_valid(self, array_body: List[Union[str, "_models.FooEnum"]], request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1181,7 +1236,9 @@ async def get_string_enum_valid(self, **kwargs: Any) -> List[Union[str, "_models request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1225,7 +1282,9 @@ async def put_string_enum_valid(self, array_body: List[Union[str, "_models.Enum1 request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1257,7 +1316,9 @@ async def get_string_with_null(self, **kwargs: Any) -> List[str]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1293,7 +1354,9 @@ async def get_string_with_invalid(self, **kwargs: Any) -> List[str]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1330,7 +1393,9 @@ async def get_uuid_valid(self, **kwargs: Any) -> List[str]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1375,7 +1440,9 @@ async def put_uuid_valid(self, array_body: List[str], **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1407,7 +1474,9 @@ async def get_uuid_invalid_chars(self, **kwargs: Any) -> List[str]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1443,7 +1512,9 @@ async def get_date_valid(self, **kwargs: Any) -> List[datetime.date]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1487,7 +1558,9 @@ async def put_date_valid(self, array_body: List[datetime.date], **kwargs: Any) - request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1519,7 +1592,9 @@ async def get_date_invalid_null(self, **kwargs: Any) -> List[datetime.date]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1555,7 +1630,9 @@ async def get_date_invalid_chars(self, **kwargs: Any) -> List[datetime.date]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1592,7 +1669,9 @@ async def get_date_time_valid(self, **kwargs: Any) -> List[datetime.datetime]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1637,7 +1716,9 @@ async def put_date_time_valid(self, array_body: List[datetime.datetime], **kwarg request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1669,7 +1750,9 @@ async def get_date_time_invalid_null(self, **kwargs: Any) -> List[datetime.datet request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1705,7 +1788,9 @@ async def get_date_time_invalid_chars(self, **kwargs: Any) -> List[datetime.date request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1742,7 +1827,9 @@ async def get_date_time_rfc1123_valid(self, **kwargs: Any) -> List[datetime.date request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1787,7 +1874,9 @@ async def put_date_time_rfc1123_valid(self, array_body: List[datetime.datetime], request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1819,7 +1908,9 @@ async def get_duration_valid(self, **kwargs: Any) -> List[datetime.timedelta]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1863,7 +1954,9 @@ async def put_duration_valid(self, array_body: List[datetime.timedelta], **kwarg request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1896,7 +1989,9 @@ async def get_byte_valid(self, **kwargs: Any) -> List[bytearray]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1941,7 +2036,9 @@ async def put_byte_valid(self, array_body: List[bytearray], **kwargs: Any) -> No request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1973,7 +2070,9 @@ async def get_byte_invalid_null(self, **kwargs: Any) -> List[bytearray]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2010,7 +2109,9 @@ async def get_base64_url(self, **kwargs: Any) -> List[bytes]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2046,7 +2147,9 @@ async def get_complex_null(self, **kwargs: Any) -> List["_models.Product"]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2082,7 +2185,9 @@ async def get_complex_empty(self, **kwargs: Any) -> List["_models.Product"]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2119,7 +2224,9 @@ async def get_complex_item_null(self, **kwargs: Any) -> List["_models.Product"]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2156,7 +2263,9 @@ async def get_complex_item_empty(self, **kwargs: Any) -> List["_models.Product"] request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2193,7 +2302,9 @@ async def get_complex_valid(self, **kwargs: Any) -> List["_models.Product"]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2238,7 +2349,9 @@ async def put_complex_valid(self, array_body: List["_models.Product"], **kwargs: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2270,7 +2383,9 @@ async def get_array_null(self, **kwargs: Any) -> List[List[str]]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2306,7 +2421,9 @@ async def get_array_empty(self, **kwargs: Any) -> List[List[str]]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2342,7 +2459,9 @@ async def get_array_item_null(self, **kwargs: Any) -> List[List[str]]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2378,7 +2497,9 @@ async def get_array_item_empty(self, **kwargs: Any) -> List[List[str]]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2414,7 +2535,9 @@ async def get_array_valid(self, **kwargs: Any) -> List[List[str]]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2458,7 +2581,9 @@ async def put_array_valid(self, array_body: List[List[str]], **kwargs: Any) -> N request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2490,7 +2615,9 @@ async def get_dictionary_null(self, **kwargs: Any) -> List[Dict[str, str]]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2526,7 +2653,9 @@ async def get_dictionary_empty(self, **kwargs: Any) -> List[Dict[str, str]]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2563,7 +2692,9 @@ async def get_dictionary_item_null(self, **kwargs: Any) -> List[Dict[str, str]]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2600,7 +2731,9 @@ async def get_dictionary_item_empty(self, **kwargs: Any) -> List[Dict[str, str]] request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2637,7 +2770,9 @@ async def get_dictionary_valid(self, **kwargs: Any) -> List[Dict[str, str]]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2682,7 +2817,9 @@ async def put_dictionary_valid(self, array_body: List[Dict[str, str]], **kwargs: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 ad95adb212d..49016dacfbf 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -6,9 +7,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import datetime -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ( ClientAuthenticationError, @@ -28,7 +27,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, List, Optional, TypeVar, Union + from typing import Any, Callable, Dict, List, Optional, TypeVar, Union T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -1489,7 +1488,7 @@ def build_put_dictionary_valid_request( ) # fmt: on -class ArrayOperations(object): +class ArrayOperations(object): # pylint: disable=too-many-public-methods """ArrayOperations operations. You should not instantiate this class directly. Instead, you should create a Client instance that @@ -1533,7 +1532,9 @@ def get_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1572,7 +1573,9 @@ def get_invalid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1611,7 +1614,9 @@ def get_empty( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1660,7 +1665,9 @@ def put_empty( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1695,7 +1702,9 @@ def get_boolean_tfft( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1744,7 +1753,9 @@ def put_boolean_tfft( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1779,7 +1790,9 @@ def get_boolean_invalid_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1818,7 +1831,9 @@ def get_boolean_invalid_string( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1857,7 +1872,9 @@ def get_integer_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1906,7 +1923,9 @@ def put_integer_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1941,7 +1960,9 @@ def get_int_invalid_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1980,7 +2001,9 @@ def get_int_invalid_string( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2019,7 +2042,9 @@ def get_long_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2068,7 +2093,9 @@ def put_long_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2103,7 +2130,9 @@ def get_long_invalid_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2142,7 +2171,9 @@ def get_long_invalid_string( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2181,7 +2212,9 @@ def get_float_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2230,7 +2263,9 @@ def put_float_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2265,7 +2300,9 @@ def get_float_invalid_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2304,7 +2341,9 @@ def get_float_invalid_string( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2343,7 +2382,9 @@ def get_double_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2392,7 +2433,9 @@ def put_double_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2427,7 +2470,9 @@ def get_double_invalid_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2466,7 +2511,9 @@ def get_double_invalid_string( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2505,7 +2552,9 @@ def get_string_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2554,7 +2603,9 @@ def put_string_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2589,7 +2640,9 @@ def get_enum_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2638,7 +2691,9 @@ def put_enum_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2673,7 +2728,9 @@ def get_string_enum_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2722,7 +2779,9 @@ def put_string_enum_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2757,7 +2816,9 @@ def get_string_with_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2796,7 +2857,9 @@ def get_string_with_invalid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2836,7 +2899,9 @@ def get_uuid_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2886,7 +2951,9 @@ def put_uuid_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2921,7 +2988,9 @@ def get_uuid_invalid_chars( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2960,7 +3029,9 @@ def get_date_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3009,7 +3080,9 @@ def put_date_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3044,7 +3117,9 @@ def get_date_invalid_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3083,7 +3158,9 @@ def get_date_invalid_chars( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3123,7 +3200,9 @@ def get_date_time_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3173,7 +3252,9 @@ def put_date_time_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3208,7 +3289,9 @@ def get_date_time_invalid_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3247,7 +3330,9 @@ def get_date_time_invalid_chars( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3287,7 +3372,9 @@ def get_date_time_rfc1123_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3337,7 +3424,9 @@ def put_date_time_rfc1123_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3372,7 +3461,9 @@ def get_duration_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3421,7 +3512,9 @@ def put_duration_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3457,7 +3550,9 @@ def get_byte_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3507,7 +3602,9 @@ def put_byte_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3542,7 +3639,9 @@ def get_byte_invalid_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3582,7 +3681,9 @@ def get_base64_url( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3621,7 +3722,9 @@ def get_complex_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3660,7 +3763,9 @@ def get_complex_empty( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3700,7 +3805,9 @@ def get_complex_item_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3740,7 +3847,9 @@ def get_complex_item_empty( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3780,7 +3889,9 @@ def get_complex_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3830,7 +3941,9 @@ def put_complex_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3865,7 +3978,9 @@ def get_array_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3904,7 +4019,9 @@ def get_array_empty( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3943,7 +4060,9 @@ def get_array_item_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3982,7 +4101,9 @@ def get_array_item_empty( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -4021,7 +4142,9 @@ def get_array_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -4070,7 +4193,9 @@ def put_array_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -4105,7 +4230,9 @@ def get_dictionary_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -4144,7 +4271,9 @@ def get_dictionary_empty( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -4184,7 +4313,9 @@ def get_dictionary_item_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -4224,7 +4355,9 @@ def get_dictionary_item_empty( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -4264,7 +4397,9 @@ def get_dictionary_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -4314,7 +4449,9 @@ def put_dictionary_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyArrayWithNamespaceFolders/vanilla/body/array/_auto_rest_swagger_bat_array_service.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyArrayWithNamespaceFolders/vanilla/body/array/_auto_rest_swagger_bat_array_service.py index aa4888627b5..9ae0e5d050a 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyArrayWithNamespaceFolders/vanilla/body/array/_auto_rest_swagger_bat_array_service.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyArrayWithNamespaceFolders/vanilla/body/array/_auto_rest_swagger_bat_array_service.py @@ -18,7 +18,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Optional + from typing import Any from azure.core.rest import HttpRequest, HttpResponse diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyArrayWithNamespaceFolders/vanilla/body/array/_configuration.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyArrayWithNamespaceFolders/vanilla/body/array/_configuration.py index 31838f4dc03..a8842a25707 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyArrayWithNamespaceFolders/vanilla/body/array/_configuration.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyArrayWithNamespaceFolders/vanilla/body/array/_configuration.py @@ -18,7 +18,7 @@ from typing import Any -class AutoRestSwaggerBATArrayServiceConfiguration(Configuration): +class AutoRestSwaggerBATArrayServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestSwaggerBATArrayService. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyArrayWithNamespaceFolders/vanilla/body/array/aio/_auto_rest_swagger_bat_array_service.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyArrayWithNamespaceFolders/vanilla/body/array/aio/_auto_rest_swagger_bat_array_service.py index 835647b23e6..188dc85c823 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyArrayWithNamespaceFolders/vanilla/body/array/aio/_auto_rest_swagger_bat_array_service.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyArrayWithNamespaceFolders/vanilla/body/array/aio/_auto_rest_swagger_bat_array_service.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional +from typing import Any, Awaitable from azure.core import AsyncPipelineClient from azure.core.rest import AsyncHttpResponse, HttpRequest diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyArrayWithNamespaceFolders/vanilla/body/array/aio/_configuration.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyArrayWithNamespaceFolders/vanilla/body/array/aio/_configuration.py index 99fd3c7c6ab..8f8d31c319a 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyArrayWithNamespaceFolders/vanilla/body/array/aio/_configuration.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyArrayWithNamespaceFolders/vanilla/body/array/aio/_configuration.py @@ -14,7 +14,7 @@ from .._version import VERSION -class AutoRestSwaggerBATArrayServiceConfiguration(Configuration): +class AutoRestSwaggerBATArrayServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestSwaggerBATArrayService. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyArrayWithNamespaceFolders/vanilla/body/array/aio/operations/_array_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyArrayWithNamespaceFolders/vanilla/body/array/aio/operations/_array_operations.py index adeca49d20d..49647da211d 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyArrayWithNamespaceFolders/vanilla/body/array/aio/operations/_array_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyArrayWithNamespaceFolders/vanilla/body/array/aio/operations/_array_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -6,9 +7,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import datetime -import functools -from typing import Any, Callable, Dict, Generic, List, Optional, TypeVar, Union -import warnings +from typing import Any, Callable, Dict, List, Optional, TypeVar, Union from azure.core.exceptions import ( ClientAuthenticationError, @@ -100,7 +99,7 @@ ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] -class ArrayOperations: +class ArrayOperations: # pylint: disable=too-many-public-methods """ArrayOperations async operations. You should not instantiate this class directly. Instead, you should create a Client instance that @@ -141,7 +140,9 @@ async def get_null(self, **kwargs: Any) -> List[int]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -177,7 +178,9 @@ async def get_invalid(self, **kwargs: Any) -> List[int]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -213,7 +216,9 @@ async def get_empty(self, **kwargs: Any) -> List[int]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -257,7 +262,9 @@ async def put_empty(self, array_body: List[str], **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -289,7 +296,9 @@ async def get_boolean_tfft(self, **kwargs: Any) -> List[bool]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -333,7 +342,9 @@ async def put_boolean_tfft(self, array_body: List[bool], **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -365,7 +376,9 @@ async def get_boolean_invalid_null(self, **kwargs: Any) -> List[bool]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -401,7 +414,9 @@ async def get_boolean_invalid_string(self, **kwargs: Any) -> List[bool]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -437,7 +452,9 @@ async def get_integer_valid(self, **kwargs: Any) -> List[int]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -481,7 +498,9 @@ async def put_integer_valid(self, array_body: List[int], **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -513,7 +532,9 @@ async def get_int_invalid_null(self, **kwargs: Any) -> List[int]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -549,7 +570,9 @@ async def get_int_invalid_string(self, **kwargs: Any) -> List[int]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -585,7 +608,9 @@ async def get_long_valid(self, **kwargs: Any) -> List[int]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -629,7 +654,9 @@ async def put_long_valid(self, array_body: List[int], **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -661,7 +688,9 @@ async def get_long_invalid_null(self, **kwargs: Any) -> List[int]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -697,7 +726,9 @@ async def get_long_invalid_string(self, **kwargs: Any) -> List[int]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -733,7 +764,9 @@ async def get_float_valid(self, **kwargs: Any) -> List[float]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -777,7 +810,9 @@ async def put_float_valid(self, array_body: List[float], **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -809,7 +844,9 @@ async def get_float_invalid_null(self, **kwargs: Any) -> List[float]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -845,7 +882,9 @@ async def get_float_invalid_string(self, **kwargs: Any) -> List[float]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -881,7 +920,9 @@ async def get_double_valid(self, **kwargs: Any) -> List[float]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -925,7 +966,9 @@ async def put_double_valid(self, array_body: List[float], **kwargs: Any) -> None request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -957,7 +1000,9 @@ async def get_double_invalid_null(self, **kwargs: Any) -> List[float]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -993,7 +1038,9 @@ async def get_double_invalid_string(self, **kwargs: Any) -> List[float]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1029,7 +1076,9 @@ async def get_string_valid(self, **kwargs: Any) -> List[str]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1073,7 +1122,9 @@ async def put_string_valid(self, array_body: List[str], **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1105,7 +1156,9 @@ async def get_enum_valid(self, **kwargs: Any) -> List[Union[str, "_models.FooEnu request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1149,7 +1202,9 @@ async def put_enum_valid(self, array_body: List[Union[str, "_models.FooEnum"]], request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1181,7 +1236,9 @@ async def get_string_enum_valid(self, **kwargs: Any) -> List[Union[str, "_models request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1225,7 +1282,9 @@ async def put_string_enum_valid(self, array_body: List[Union[str, "_models.Enum1 request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1257,7 +1316,9 @@ async def get_string_with_null(self, **kwargs: Any) -> List[str]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1293,7 +1354,9 @@ async def get_string_with_invalid(self, **kwargs: Any) -> List[str]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1330,7 +1393,9 @@ async def get_uuid_valid(self, **kwargs: Any) -> List[str]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1375,7 +1440,9 @@ async def put_uuid_valid(self, array_body: List[str], **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1407,7 +1474,9 @@ async def get_uuid_invalid_chars(self, **kwargs: Any) -> List[str]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1443,7 +1512,9 @@ async def get_date_valid(self, **kwargs: Any) -> List[datetime.date]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1487,7 +1558,9 @@ async def put_date_valid(self, array_body: List[datetime.date], **kwargs: Any) - request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1519,7 +1592,9 @@ async def get_date_invalid_null(self, **kwargs: Any) -> List[datetime.date]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1555,7 +1630,9 @@ async def get_date_invalid_chars(self, **kwargs: Any) -> List[datetime.date]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1592,7 +1669,9 @@ async def get_date_time_valid(self, **kwargs: Any) -> List[datetime.datetime]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1637,7 +1716,9 @@ async def put_date_time_valid(self, array_body: List[datetime.datetime], **kwarg request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1669,7 +1750,9 @@ async def get_date_time_invalid_null(self, **kwargs: Any) -> List[datetime.datet request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1705,7 +1788,9 @@ async def get_date_time_invalid_chars(self, **kwargs: Any) -> List[datetime.date request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1742,7 +1827,9 @@ async def get_date_time_rfc1123_valid(self, **kwargs: Any) -> List[datetime.date request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1787,7 +1874,9 @@ async def put_date_time_rfc1123_valid(self, array_body: List[datetime.datetime], request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1819,7 +1908,9 @@ async def get_duration_valid(self, **kwargs: Any) -> List[datetime.timedelta]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1863,7 +1954,9 @@ async def put_duration_valid(self, array_body: List[datetime.timedelta], **kwarg request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1896,7 +1989,9 @@ async def get_byte_valid(self, **kwargs: Any) -> List[bytearray]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1941,7 +2036,9 @@ async def put_byte_valid(self, array_body: List[bytearray], **kwargs: Any) -> No request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1973,7 +2070,9 @@ async def get_byte_invalid_null(self, **kwargs: Any) -> List[bytearray]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2010,7 +2109,9 @@ async def get_base64_url(self, **kwargs: Any) -> List[bytes]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2046,7 +2147,9 @@ async def get_complex_null(self, **kwargs: Any) -> List["_models.Product"]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2082,7 +2185,9 @@ async def get_complex_empty(self, **kwargs: Any) -> List["_models.Product"]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2119,7 +2224,9 @@ async def get_complex_item_null(self, **kwargs: Any) -> List["_models.Product"]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2156,7 +2263,9 @@ async def get_complex_item_empty(self, **kwargs: Any) -> List["_models.Product"] request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2193,7 +2302,9 @@ async def get_complex_valid(self, **kwargs: Any) -> List["_models.Product"]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2238,7 +2349,9 @@ async def put_complex_valid(self, array_body: List["_models.Product"], **kwargs: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2270,7 +2383,9 @@ async def get_array_null(self, **kwargs: Any) -> List[List[str]]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2306,7 +2421,9 @@ async def get_array_empty(self, **kwargs: Any) -> List[List[str]]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2342,7 +2459,9 @@ async def get_array_item_null(self, **kwargs: Any) -> List[List[str]]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2378,7 +2497,9 @@ async def get_array_item_empty(self, **kwargs: Any) -> List[List[str]]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2414,7 +2535,9 @@ async def get_array_valid(self, **kwargs: Any) -> List[List[str]]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2458,7 +2581,9 @@ async def put_array_valid(self, array_body: List[List[str]], **kwargs: Any) -> N request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2490,7 +2615,9 @@ async def get_dictionary_null(self, **kwargs: Any) -> List[Dict[str, str]]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2526,7 +2653,9 @@ async def get_dictionary_empty(self, **kwargs: Any) -> List[Dict[str, str]]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2563,7 +2692,9 @@ async def get_dictionary_item_null(self, **kwargs: Any) -> List[Dict[str, str]]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2600,7 +2731,9 @@ async def get_dictionary_item_empty(self, **kwargs: Any) -> List[Dict[str, str]] request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2637,7 +2770,9 @@ async def get_dictionary_valid(self, **kwargs: Any) -> List[Dict[str, str]]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2682,7 +2817,9 @@ async def put_dictionary_valid(self, array_body: List[Dict[str, str]], **kwargs: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 2ff3783c75e..6f79b16a0ac 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -6,9 +7,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import datetime -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ( ClientAuthenticationError, @@ -28,7 +27,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, List, Optional, TypeVar, Union + from typing import Any, Callable, Dict, List, Optional, TypeVar, Union T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -1489,7 +1488,7 @@ def build_put_dictionary_valid_request( ) # fmt: on -class ArrayOperations(object): +class ArrayOperations(object): # pylint: disable=too-many-public-methods """ArrayOperations operations. You should not instantiate this class directly. Instead, you should create a Client instance that @@ -1533,7 +1532,9 @@ def get_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1572,7 +1573,9 @@ def get_invalid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1611,7 +1614,9 @@ def get_empty( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1660,7 +1665,9 @@ def put_empty( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1695,7 +1702,9 @@ def get_boolean_tfft( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1744,7 +1753,9 @@ def put_boolean_tfft( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1779,7 +1790,9 @@ def get_boolean_invalid_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1818,7 +1831,9 @@ def get_boolean_invalid_string( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1857,7 +1872,9 @@ def get_integer_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1906,7 +1923,9 @@ def put_integer_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1941,7 +1960,9 @@ def get_int_invalid_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1980,7 +2001,9 @@ def get_int_invalid_string( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2019,7 +2042,9 @@ def get_long_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2068,7 +2093,9 @@ def put_long_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2103,7 +2130,9 @@ def get_long_invalid_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2142,7 +2171,9 @@ def get_long_invalid_string( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2181,7 +2212,9 @@ def get_float_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2230,7 +2263,9 @@ def put_float_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2265,7 +2300,9 @@ def get_float_invalid_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2304,7 +2341,9 @@ def get_float_invalid_string( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2343,7 +2382,9 @@ def get_double_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2392,7 +2433,9 @@ def put_double_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2427,7 +2470,9 @@ def get_double_invalid_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2466,7 +2511,9 @@ def get_double_invalid_string( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2505,7 +2552,9 @@ def get_string_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2554,7 +2603,9 @@ def put_string_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2589,7 +2640,9 @@ def get_enum_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2638,7 +2691,9 @@ def put_enum_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2673,7 +2728,9 @@ def get_string_enum_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2722,7 +2779,9 @@ def put_string_enum_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2757,7 +2816,9 @@ def get_string_with_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2796,7 +2857,9 @@ def get_string_with_invalid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2836,7 +2899,9 @@ def get_uuid_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2886,7 +2951,9 @@ def put_uuid_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2921,7 +2988,9 @@ def get_uuid_invalid_chars( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2960,7 +3029,9 @@ def get_date_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3009,7 +3080,9 @@ def put_date_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3044,7 +3117,9 @@ def get_date_invalid_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3083,7 +3158,9 @@ def get_date_invalid_chars( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3123,7 +3200,9 @@ def get_date_time_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3173,7 +3252,9 @@ def put_date_time_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3208,7 +3289,9 @@ def get_date_time_invalid_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3247,7 +3330,9 @@ def get_date_time_invalid_chars( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3287,7 +3372,9 @@ def get_date_time_rfc1123_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3337,7 +3424,9 @@ def put_date_time_rfc1123_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3372,7 +3461,9 @@ def get_duration_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3421,7 +3512,9 @@ def put_duration_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3457,7 +3550,9 @@ def get_byte_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3507,7 +3602,9 @@ def put_byte_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3542,7 +3639,9 @@ def get_byte_invalid_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3582,7 +3681,9 @@ def get_base64_url( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3621,7 +3722,9 @@ def get_complex_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3660,7 +3763,9 @@ def get_complex_empty( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3700,7 +3805,9 @@ def get_complex_item_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3740,7 +3847,9 @@ def get_complex_item_empty( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3780,7 +3889,9 @@ def get_complex_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3830,7 +3941,9 @@ def put_complex_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3865,7 +3978,9 @@ def get_array_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3904,7 +4019,9 @@ def get_array_empty( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3943,7 +4060,9 @@ def get_array_item_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3982,7 +4101,9 @@ def get_array_item_empty( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -4021,7 +4142,9 @@ def get_array_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -4070,7 +4193,9 @@ def put_array_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -4105,7 +4230,9 @@ def get_dictionary_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -4144,7 +4271,9 @@ def get_dictionary_empty( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -4184,7 +4313,9 @@ def get_dictionary_item_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -4224,7 +4355,9 @@ def get_dictionary_item_empty( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -4264,7 +4397,9 @@ def get_dictionary_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -4314,7 +4449,9 @@ def put_dictionary_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyArrayWithPythonThreeOperationFiles/bodyarraywithpythonthreeoperationfiles/_auto_rest_swagger_bat_array_service.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyArrayWithPythonThreeOperationFiles/bodyarraywithpythonthreeoperationfiles/_auto_rest_swagger_bat_array_service.py index d88cc82c6df..c0af990d962 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyArrayWithPythonThreeOperationFiles/bodyarraywithpythonthreeoperationfiles/_auto_rest_swagger_bat_array_service.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyArrayWithPythonThreeOperationFiles/bodyarraywithpythonthreeoperationfiles/_auto_rest_swagger_bat_array_service.py @@ -18,7 +18,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Optional + from typing import Any from azure.core.rest import HttpRequest, HttpResponse diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyArrayWithPythonThreeOperationFiles/bodyarraywithpythonthreeoperationfiles/_configuration.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyArrayWithPythonThreeOperationFiles/bodyarraywithpythonthreeoperationfiles/_configuration.py index 31838f4dc03..a8842a25707 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyArrayWithPythonThreeOperationFiles/bodyarraywithpythonthreeoperationfiles/_configuration.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyArrayWithPythonThreeOperationFiles/bodyarraywithpythonthreeoperationfiles/_configuration.py @@ -18,7 +18,7 @@ from typing import Any -class AutoRestSwaggerBATArrayServiceConfiguration(Configuration): +class AutoRestSwaggerBATArrayServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestSwaggerBATArrayService. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyArrayWithPythonThreeOperationFiles/bodyarraywithpythonthreeoperationfiles/aio/_auto_rest_swagger_bat_array_service.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyArrayWithPythonThreeOperationFiles/bodyarraywithpythonthreeoperationfiles/aio/_auto_rest_swagger_bat_array_service.py index dbba58965b9..f3145214dde 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyArrayWithPythonThreeOperationFiles/bodyarraywithpythonthreeoperationfiles/aio/_auto_rest_swagger_bat_array_service.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyArrayWithPythonThreeOperationFiles/bodyarraywithpythonthreeoperationfiles/aio/_auto_rest_swagger_bat_array_service.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional +from typing import Any, Awaitable from azure.core import AsyncPipelineClient from azure.core.rest import AsyncHttpResponse, HttpRequest diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyArrayWithPythonThreeOperationFiles/bodyarraywithpythonthreeoperationfiles/aio/_configuration.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyArrayWithPythonThreeOperationFiles/bodyarraywithpythonthreeoperationfiles/aio/_configuration.py index 99fd3c7c6ab..8f8d31c319a 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyArrayWithPythonThreeOperationFiles/bodyarraywithpythonthreeoperationfiles/aio/_configuration.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyArrayWithPythonThreeOperationFiles/bodyarraywithpythonthreeoperationfiles/aio/_configuration.py @@ -14,7 +14,7 @@ from .._version import VERSION -class AutoRestSwaggerBATArrayServiceConfiguration(Configuration): +class AutoRestSwaggerBATArrayServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestSwaggerBATArrayService. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyArrayWithPythonThreeOperationFiles/bodyarraywithpythonthreeoperationfiles/aio/operations/_array_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyArrayWithPythonThreeOperationFiles/bodyarraywithpythonthreeoperationfiles/aio/operations/_array_operations.py index cdcc7f9602a..5afa50b8909 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyArrayWithPythonThreeOperationFiles/bodyarraywithpythonthreeoperationfiles/aio/operations/_array_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyArrayWithPythonThreeOperationFiles/bodyarraywithpythonthreeoperationfiles/aio/operations/_array_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -6,9 +7,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import datetime -import functools -from typing import Any, Callable, Dict, Generic, List, Optional, TypeVar, Union -import warnings +from typing import Any, Callable, Dict, List, Optional, TypeVar, Union from azure.core.exceptions import ( ClientAuthenticationError, @@ -100,7 +99,7 @@ ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] -class ArrayOperations: +class ArrayOperations: # pylint: disable=too-many-public-methods """ArrayOperations async operations. You should not instantiate this class directly. Instead, you should create a Client instance that @@ -141,7 +140,9 @@ async def get_null(self, **kwargs: Any) -> List[int]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -177,7 +178,9 @@ async def get_invalid(self, **kwargs: Any) -> List[int]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -213,7 +216,9 @@ async def get_empty(self, **kwargs: Any) -> List[int]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -257,7 +262,9 @@ async def put_empty(self, array_body: List[str], **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -289,7 +296,9 @@ async def get_boolean_tfft(self, **kwargs: Any) -> List[bool]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -333,7 +342,9 @@ async def put_boolean_tfft(self, array_body: List[bool], **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -365,7 +376,9 @@ async def get_boolean_invalid_null(self, **kwargs: Any) -> List[bool]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -401,7 +414,9 @@ async def get_boolean_invalid_string(self, **kwargs: Any) -> List[bool]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -437,7 +452,9 @@ async def get_integer_valid(self, **kwargs: Any) -> List[int]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -481,7 +498,9 @@ async def put_integer_valid(self, array_body: List[int], **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -513,7 +532,9 @@ async def get_int_invalid_null(self, **kwargs: Any) -> List[int]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -549,7 +570,9 @@ async def get_int_invalid_string(self, **kwargs: Any) -> List[int]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -585,7 +608,9 @@ async def get_long_valid(self, **kwargs: Any) -> List[int]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -629,7 +654,9 @@ async def put_long_valid(self, array_body: List[int], **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -661,7 +688,9 @@ async def get_long_invalid_null(self, **kwargs: Any) -> List[int]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -697,7 +726,9 @@ async def get_long_invalid_string(self, **kwargs: Any) -> List[int]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -733,7 +764,9 @@ async def get_float_valid(self, **kwargs: Any) -> List[float]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -777,7 +810,9 @@ async def put_float_valid(self, array_body: List[float], **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -809,7 +844,9 @@ async def get_float_invalid_null(self, **kwargs: Any) -> List[float]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -845,7 +882,9 @@ async def get_float_invalid_string(self, **kwargs: Any) -> List[float]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -881,7 +920,9 @@ async def get_double_valid(self, **kwargs: Any) -> List[float]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -925,7 +966,9 @@ async def put_double_valid(self, array_body: List[float], **kwargs: Any) -> None request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -957,7 +1000,9 @@ async def get_double_invalid_null(self, **kwargs: Any) -> List[float]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -993,7 +1038,9 @@ async def get_double_invalid_string(self, **kwargs: Any) -> List[float]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1029,7 +1076,9 @@ async def get_string_valid(self, **kwargs: Any) -> List[str]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1073,7 +1122,9 @@ async def put_string_valid(self, array_body: List[str], **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1105,7 +1156,9 @@ async def get_enum_valid(self, **kwargs: Any) -> List[Union[str, "_models.FooEnu request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1149,7 +1202,9 @@ async def put_enum_valid(self, array_body: List[Union[str, "_models.FooEnum"]], request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1181,7 +1236,9 @@ async def get_string_enum_valid(self, **kwargs: Any) -> List[Union[str, "_models request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1225,7 +1282,9 @@ async def put_string_enum_valid(self, array_body: List[Union[str, "_models.Enum1 request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1257,7 +1316,9 @@ async def get_string_with_null(self, **kwargs: Any) -> List[str]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1293,7 +1354,9 @@ async def get_string_with_invalid(self, **kwargs: Any) -> List[str]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1330,7 +1393,9 @@ async def get_uuid_valid(self, **kwargs: Any) -> List[str]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1375,7 +1440,9 @@ async def put_uuid_valid(self, array_body: List[str], **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1407,7 +1474,9 @@ async def get_uuid_invalid_chars(self, **kwargs: Any) -> List[str]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1443,7 +1512,9 @@ async def get_date_valid(self, **kwargs: Any) -> List[datetime.date]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1487,7 +1558,9 @@ async def put_date_valid(self, array_body: List[datetime.date], **kwargs: Any) - request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1519,7 +1592,9 @@ async def get_date_invalid_null(self, **kwargs: Any) -> List[datetime.date]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1555,7 +1630,9 @@ async def get_date_invalid_chars(self, **kwargs: Any) -> List[datetime.date]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1592,7 +1669,9 @@ async def get_date_time_valid(self, **kwargs: Any) -> List[datetime.datetime]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1637,7 +1716,9 @@ async def put_date_time_valid(self, array_body: List[datetime.datetime], **kwarg request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1669,7 +1750,9 @@ async def get_date_time_invalid_null(self, **kwargs: Any) -> List[datetime.datet request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1705,7 +1788,9 @@ async def get_date_time_invalid_chars(self, **kwargs: Any) -> List[datetime.date request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1742,7 +1827,9 @@ async def get_date_time_rfc1123_valid(self, **kwargs: Any) -> List[datetime.date request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1787,7 +1874,9 @@ async def put_date_time_rfc1123_valid(self, array_body: List[datetime.datetime], request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1819,7 +1908,9 @@ async def get_duration_valid(self, **kwargs: Any) -> List[datetime.timedelta]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1863,7 +1954,9 @@ async def put_duration_valid(self, array_body: List[datetime.timedelta], **kwarg request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1896,7 +1989,9 @@ async def get_byte_valid(self, **kwargs: Any) -> List[bytearray]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1941,7 +2036,9 @@ async def put_byte_valid(self, array_body: List[bytearray], **kwargs: Any) -> No request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1973,7 +2070,9 @@ async def get_byte_invalid_null(self, **kwargs: Any) -> List[bytearray]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2010,7 +2109,9 @@ async def get_base64_url(self, **kwargs: Any) -> List[bytes]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2046,7 +2147,9 @@ async def get_complex_null(self, **kwargs: Any) -> List["_models.Product"]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2082,7 +2185,9 @@ async def get_complex_empty(self, **kwargs: Any) -> List["_models.Product"]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2119,7 +2224,9 @@ async def get_complex_item_null(self, **kwargs: Any) -> List["_models.Product"]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2156,7 +2263,9 @@ async def get_complex_item_empty(self, **kwargs: Any) -> List["_models.Product"] request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2193,7 +2302,9 @@ async def get_complex_valid(self, **kwargs: Any) -> List["_models.Product"]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2238,7 +2349,9 @@ async def put_complex_valid(self, array_body: List["_models.Product"], **kwargs: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2270,7 +2383,9 @@ async def get_array_null(self, **kwargs: Any) -> List[List[str]]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2306,7 +2421,9 @@ async def get_array_empty(self, **kwargs: Any) -> List[List[str]]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2342,7 +2459,9 @@ async def get_array_item_null(self, **kwargs: Any) -> List[List[str]]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2378,7 +2497,9 @@ async def get_array_item_empty(self, **kwargs: Any) -> List[List[str]]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2414,7 +2535,9 @@ async def get_array_valid(self, **kwargs: Any) -> List[List[str]]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2458,7 +2581,9 @@ async def put_array_valid(self, array_body: List[List[str]], **kwargs: Any) -> N request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2490,7 +2615,9 @@ async def get_dictionary_null(self, **kwargs: Any) -> List[Dict[str, str]]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2526,7 +2653,9 @@ async def get_dictionary_empty(self, **kwargs: Any) -> List[Dict[str, str]]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2563,7 +2692,9 @@ async def get_dictionary_item_null(self, **kwargs: Any) -> List[Dict[str, str]]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2600,7 +2731,9 @@ async def get_dictionary_item_empty(self, **kwargs: Any) -> List[Dict[str, str]] request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2637,7 +2770,9 @@ async def get_dictionary_valid(self, **kwargs: Any) -> List[Dict[str, str]]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2682,7 +2817,9 @@ async def put_dictionary_valid(self, array_body: List[Dict[str, str]], **kwargs: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 aa61b44444e..f6d236a6b0d 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -6,9 +7,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import datetime -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ( ClientAuthenticationError, @@ -28,7 +27,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, List, Optional, TypeVar, Union + from typing import Any, Callable, Dict, List, Optional, TypeVar, Union T = TypeVar("T") JSONType = Any @@ -1490,7 +1489,7 @@ def build_put_dictionary_valid_request( ) # fmt: on -class ArrayOperations(object): +class ArrayOperations(object): # pylint: disable=too-many-public-methods """ArrayOperations operations. You should not instantiate this class directly. Instead, you should create a Client instance that @@ -1534,7 +1533,9 @@ def get_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1573,7 +1574,9 @@ def get_invalid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1612,7 +1615,9 @@ def get_empty( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1661,7 +1666,9 @@ def put_empty( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1696,7 +1703,9 @@ def get_boolean_tfft( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1745,7 +1754,9 @@ def put_boolean_tfft( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1780,7 +1791,9 @@ def get_boolean_invalid_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1819,7 +1832,9 @@ def get_boolean_invalid_string( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1858,7 +1873,9 @@ def get_integer_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1907,7 +1924,9 @@ def put_integer_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1942,7 +1961,9 @@ def get_int_invalid_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1981,7 +2002,9 @@ def get_int_invalid_string( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2020,7 +2043,9 @@ def get_long_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2069,7 +2094,9 @@ def put_long_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2104,7 +2131,9 @@ def get_long_invalid_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2143,7 +2172,9 @@ def get_long_invalid_string( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2182,7 +2213,9 @@ def get_float_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2231,7 +2264,9 @@ def put_float_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2266,7 +2301,9 @@ def get_float_invalid_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2305,7 +2342,9 @@ def get_float_invalid_string( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2344,7 +2383,9 @@ def get_double_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2393,7 +2434,9 @@ def put_double_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2428,7 +2471,9 @@ def get_double_invalid_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2467,7 +2512,9 @@ def get_double_invalid_string( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2506,7 +2553,9 @@ def get_string_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2555,7 +2604,9 @@ def put_string_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2590,7 +2641,9 @@ def get_enum_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2639,7 +2692,9 @@ def put_enum_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2674,7 +2729,9 @@ def get_string_enum_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2723,7 +2780,9 @@ def put_string_enum_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2758,7 +2817,9 @@ def get_string_with_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2797,7 +2858,9 @@ def get_string_with_invalid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2837,7 +2900,9 @@ def get_uuid_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2887,7 +2952,9 @@ def put_uuid_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2922,7 +2989,9 @@ def get_uuid_invalid_chars( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2961,7 +3030,9 @@ def get_date_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3010,7 +3081,9 @@ def put_date_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3045,7 +3118,9 @@ def get_date_invalid_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3084,7 +3159,9 @@ def get_date_invalid_chars( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3124,7 +3201,9 @@ def get_date_time_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3174,7 +3253,9 @@ def put_date_time_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3209,7 +3290,9 @@ def get_date_time_invalid_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3248,7 +3331,9 @@ def get_date_time_invalid_chars( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3288,7 +3373,9 @@ def get_date_time_rfc1123_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3338,7 +3425,9 @@ def put_date_time_rfc1123_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3373,7 +3462,9 @@ def get_duration_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3422,7 +3513,9 @@ def put_duration_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3458,7 +3551,9 @@ def get_byte_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3508,7 +3603,9 @@ def put_byte_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3543,7 +3640,9 @@ def get_byte_invalid_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3583,7 +3682,9 @@ def get_base64_url( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3622,7 +3723,9 @@ def get_complex_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3661,7 +3764,9 @@ def get_complex_empty( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3701,7 +3806,9 @@ def get_complex_item_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3741,7 +3848,9 @@ def get_complex_item_empty( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3781,7 +3890,9 @@ def get_complex_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3831,7 +3942,9 @@ def put_complex_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3866,7 +3979,9 @@ def get_array_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3905,7 +4020,9 @@ def get_array_empty( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3944,7 +4061,9 @@ def get_array_item_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3983,7 +4102,9 @@ def get_array_item_empty( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -4022,7 +4143,9 @@ def get_array_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -4071,7 +4194,9 @@ def put_array_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -4106,7 +4231,9 @@ def get_dictionary_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -4145,7 +4272,9 @@ def get_dictionary_empty( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -4185,7 +4314,9 @@ def get_dictionary_item_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -4225,7 +4356,9 @@ def get_dictionary_item_empty( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -4265,7 +4398,9 @@ def get_dictionary_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -4315,7 +4450,9 @@ def put_dictionary_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 0c110b6c1e3..674a25cdf16 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -6,9 +7,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import datetime -import functools -from typing import Any, Callable, Dict, Generic, List, Optional, TypeVar, Union -import warnings +from typing import Any, Callable, Dict, List, Optional, TypeVar, Union from azure.core.exceptions import ( ClientAuthenticationError, @@ -936,7 +935,7 @@ def build_put_dictionary_valid_request(*, json: JSONType = None, content: Any = return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) -class ArrayOperations(object): +class ArrayOperations(object): # pylint: disable=too-many-public-methods """ArrayOperations operations. You should not instantiate this class directly. Instead, you should create a Client instance that @@ -977,7 +976,9 @@ def get_null(self, **kwargs: Any) -> List[int]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1013,7 +1014,9 @@ def get_invalid(self, **kwargs: Any) -> List[int]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1049,7 +1052,9 @@ def get_empty(self, **kwargs: Any) -> List[int]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1093,7 +1098,9 @@ def put_empty(self, array_body: List[str], **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1125,7 +1132,9 @@ def get_boolean_tfft(self, **kwargs: Any) -> List[bool]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1169,7 +1178,9 @@ def put_boolean_tfft(self, array_body: List[bool], **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1201,7 +1212,9 @@ def get_boolean_invalid_null(self, **kwargs: Any) -> List[bool]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1237,7 +1250,9 @@ def get_boolean_invalid_string(self, **kwargs: Any) -> List[bool]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1273,7 +1288,9 @@ def get_integer_valid(self, **kwargs: Any) -> List[int]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1317,7 +1334,9 @@ def put_integer_valid(self, array_body: List[int], **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1349,7 +1368,9 @@ def get_int_invalid_null(self, **kwargs: Any) -> List[int]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1385,7 +1406,9 @@ def get_int_invalid_string(self, **kwargs: Any) -> List[int]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1421,7 +1444,9 @@ def get_long_valid(self, **kwargs: Any) -> List[int]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1465,7 +1490,9 @@ def put_long_valid(self, array_body: List[int], **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1497,7 +1524,9 @@ def get_long_invalid_null(self, **kwargs: Any) -> List[int]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1533,7 +1562,9 @@ def get_long_invalid_string(self, **kwargs: Any) -> List[int]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1569,7 +1600,9 @@ def get_float_valid(self, **kwargs: Any) -> List[float]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1613,7 +1646,9 @@ def put_float_valid(self, array_body: List[float], **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1645,7 +1680,9 @@ def get_float_invalid_null(self, **kwargs: Any) -> List[float]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1681,7 +1718,9 @@ def get_float_invalid_string(self, **kwargs: Any) -> List[float]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1717,7 +1756,9 @@ def get_double_valid(self, **kwargs: Any) -> List[float]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1761,7 +1802,9 @@ def put_double_valid(self, array_body: List[float], **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1793,7 +1836,9 @@ def get_double_invalid_null(self, **kwargs: Any) -> List[float]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1829,7 +1874,9 @@ def get_double_invalid_string(self, **kwargs: Any) -> List[float]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1865,7 +1912,9 @@ def get_string_valid(self, **kwargs: Any) -> List[str]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1909,7 +1958,9 @@ def put_string_valid(self, array_body: List[str], **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1941,7 +1992,9 @@ def get_enum_valid(self, **kwargs: Any) -> List[Union[str, "_models.FooEnum"]]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1985,7 +2038,9 @@ def put_enum_valid(self, array_body: List[Union[str, "_models.FooEnum"]], **kwar request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2017,7 +2072,9 @@ def get_string_enum_valid(self, **kwargs: Any) -> List[Union[str, "_models.Enum0 request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2061,7 +2118,9 @@ def put_string_enum_valid(self, array_body: List[Union[str, "_models.Enum1"]], * request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2093,7 +2152,9 @@ def get_string_with_null(self, **kwargs: Any) -> List[str]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2129,7 +2190,9 @@ def get_string_with_invalid(self, **kwargs: Any) -> List[str]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2166,7 +2229,9 @@ def get_uuid_valid(self, **kwargs: Any) -> List[str]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2211,7 +2276,9 @@ def put_uuid_valid(self, array_body: List[str], **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2243,7 +2310,9 @@ def get_uuid_invalid_chars(self, **kwargs: Any) -> List[str]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2279,7 +2348,9 @@ def get_date_valid(self, **kwargs: Any) -> List[datetime.date]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2323,7 +2394,9 @@ def put_date_valid(self, array_body: List[datetime.date], **kwargs: Any) -> None request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2355,7 +2428,9 @@ def get_date_invalid_null(self, **kwargs: Any) -> List[datetime.date]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2391,7 +2466,9 @@ def get_date_invalid_chars(self, **kwargs: Any) -> List[datetime.date]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2428,7 +2505,9 @@ def get_date_time_valid(self, **kwargs: Any) -> List[datetime.datetime]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2473,7 +2552,9 @@ def put_date_time_valid(self, array_body: List[datetime.datetime], **kwargs: Any request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2505,7 +2586,9 @@ def get_date_time_invalid_null(self, **kwargs: Any) -> List[datetime.datetime]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2541,7 +2624,9 @@ def get_date_time_invalid_chars(self, **kwargs: Any) -> List[datetime.datetime]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2578,7 +2663,9 @@ def get_date_time_rfc1123_valid(self, **kwargs: Any) -> List[datetime.datetime]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2623,7 +2710,9 @@ def put_date_time_rfc1123_valid(self, array_body: List[datetime.datetime], **kwa request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2655,7 +2744,9 @@ def get_duration_valid(self, **kwargs: Any) -> List[datetime.timedelta]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2699,7 +2790,9 @@ def put_duration_valid(self, array_body: List[datetime.timedelta], **kwargs: Any request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2732,7 +2825,9 @@ def get_byte_valid(self, **kwargs: Any) -> List[bytearray]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2777,7 +2872,9 @@ def put_byte_valid(self, array_body: List[bytearray], **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2809,7 +2906,9 @@ def get_byte_invalid_null(self, **kwargs: Any) -> List[bytearray]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2846,7 +2945,9 @@ def get_base64_url(self, **kwargs: Any) -> List[bytes]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2882,7 +2983,9 @@ def get_complex_null(self, **kwargs: Any) -> List["_models.Product"]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2918,7 +3021,9 @@ def get_complex_empty(self, **kwargs: Any) -> List["_models.Product"]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2955,7 +3060,9 @@ def get_complex_item_null(self, **kwargs: Any) -> List["_models.Product"]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2992,7 +3099,9 @@ def get_complex_item_empty(self, **kwargs: Any) -> List["_models.Product"]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3029,7 +3138,9 @@ def get_complex_valid(self, **kwargs: Any) -> List["_models.Product"]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3074,7 +3185,9 @@ def put_complex_valid(self, array_body: List["_models.Product"], **kwargs: Any) request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3106,7 +3219,9 @@ def get_array_null(self, **kwargs: Any) -> List[List[str]]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3142,7 +3257,9 @@ def get_array_empty(self, **kwargs: Any) -> List[List[str]]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3178,7 +3295,9 @@ def get_array_item_null(self, **kwargs: Any) -> List[List[str]]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3214,7 +3333,9 @@ def get_array_item_empty(self, **kwargs: Any) -> List[List[str]]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3250,7 +3371,9 @@ def get_array_valid(self, **kwargs: Any) -> List[List[str]]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3294,7 +3417,9 @@ def put_array_valid(self, array_body: List[List[str]], **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3326,7 +3451,9 @@ def get_dictionary_null(self, **kwargs: Any) -> List[Dict[str, str]]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3362,7 +3489,9 @@ def get_dictionary_empty(self, **kwargs: Any) -> List[Dict[str, str]]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3399,7 +3528,9 @@ def get_dictionary_item_null(self, **kwargs: Any) -> List[Dict[str, str]]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3436,7 +3567,9 @@ def get_dictionary_item_empty(self, **kwargs: Any) -> List[Dict[str, str]]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3473,7 +3606,9 @@ def get_dictionary_valid(self, **kwargs: Any) -> List[Dict[str, str]]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3518,7 +3653,9 @@ def put_dictionary_valid(self, array_body: List[Dict[str, str]], **kwargs: Any) request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyBinary/bodybinary/_binarywithcontent_typeapplicationjson.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyBinary/bodybinary/_binarywithcontent_typeapplicationjson.py index 1362d322729..4b6c0687d2c 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyBinary/bodybinary/_binarywithcontent_typeapplicationjson.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyBinary/bodybinary/_binarywithcontent_typeapplicationjson.py @@ -17,7 +17,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Dict, Optional + from typing import Any, Dict from azure.core.rest import HttpRequest, HttpResponse diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyBinary/bodybinary/_configuration.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyBinary/bodybinary/_configuration.py index 3b5ed5d76fd..0df9505e725 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyBinary/bodybinary/_configuration.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyBinary/bodybinary/_configuration.py @@ -18,7 +18,7 @@ from typing import Any -class BinaryWithContentTypeApplicationJsonConfiguration(Configuration): +class BinaryWithContentTypeApplicationJsonConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for BinaryWithContentTypeApplicationJson. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyBinary/bodybinary/aio/_binarywithcontent_typeapplicationjson.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyBinary/bodybinary/aio/_binarywithcontent_typeapplicationjson.py index 4cf15a45c15..89d7f10f685 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyBinary/bodybinary/aio/_binarywithcontent_typeapplicationjson.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyBinary/bodybinary/aio/_binarywithcontent_typeapplicationjson.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional, TYPE_CHECKING +from typing import Any, Awaitable, TYPE_CHECKING from azure.core import AsyncPipelineClient from azure.core.rest import AsyncHttpResponse, HttpRequest diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyBinary/bodybinary/aio/_configuration.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyBinary/bodybinary/aio/_configuration.py index 88da831735e..b3128d7c18b 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyBinary/bodybinary/aio/_configuration.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyBinary/bodybinary/aio/_configuration.py @@ -14,7 +14,7 @@ from .._version import VERSION -class BinaryWithContentTypeApplicationJsonConfiguration(Configuration): +class BinaryWithContentTypeApplicationJsonConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for BinaryWithContentTypeApplicationJson. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyBinary/bodybinary/aio/operations/_upload_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyBinary/bodybinary/aio/operations/_upload_operations.py index 79524b94191..cbd9e647825 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyBinary/bodybinary/aio/operations/_upload_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyBinary/bodybinary/aio/operations/_upload_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, IO, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, IO, Optional, TypeVar from azure.core.exceptions import ( ClientAuthenticationError, @@ -73,7 +72,9 @@ async def file(self, file_param: IO, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -112,7 +113,9 @@ async def binary(self, file_param: IO, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 a384de70d0f..1f0630ffa60 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ( ClientAuthenticationError, @@ -26,7 +25,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, IO, Optional, TypeVar + from typing import Any, Callable, Dict, IO, Optional, TypeVar T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -129,7 +128,9 @@ def file( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -173,7 +174,9 @@ def binary( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyBoolean/bodyboolean/_auto_rest_bool_test_service.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyBoolean/bodyboolean/_auto_rest_bool_test_service.py index 20c24eae8b5..80479a96dbc 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyBoolean/bodyboolean/_auto_rest_bool_test_service.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyBoolean/bodyboolean/_auto_rest_bool_test_service.py @@ -18,7 +18,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Optional + from typing import Any from azure.core.rest import HttpRequest, HttpResponse diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyBoolean/bodyboolean/_configuration.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyBoolean/bodyboolean/_configuration.py index db8c41b81b2..75e5454652a 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyBoolean/bodyboolean/_configuration.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyBoolean/bodyboolean/_configuration.py @@ -18,7 +18,7 @@ from typing import Any -class AutoRestBoolTestServiceConfiguration(Configuration): +class AutoRestBoolTestServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestBoolTestService. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyBoolean/bodyboolean/aio/_auto_rest_bool_test_service.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyBoolean/bodyboolean/aio/_auto_rest_bool_test_service.py index 9ac7998d5a3..b1125897046 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyBoolean/bodyboolean/aio/_auto_rest_bool_test_service.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyBoolean/bodyboolean/aio/_auto_rest_bool_test_service.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional +from typing import Any, Awaitable from azure.core import AsyncPipelineClient from azure.core.rest import AsyncHttpResponse, HttpRequest diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyBoolean/bodyboolean/aio/_configuration.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyBoolean/bodyboolean/aio/_configuration.py index 759e32fbf2e..fd4d1a40235 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyBoolean/bodyboolean/aio/_configuration.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyBoolean/bodyboolean/aio/_configuration.py @@ -14,7 +14,7 @@ from .._version import VERSION -class AutoRestBoolTestServiceConfiguration(Configuration): +class AutoRestBoolTestServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestBoolTestService. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyBoolean/bodyboolean/aio/operations/_bool_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyBoolean/bodyboolean/aio/operations/_bool_operations.py index 6e7cd8e58cb..b7c72c407cb 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyBoolean/bodyboolean/aio/operations/_bool_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyBoolean/bodyboolean/aio/operations/_bool_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ( ClientAuthenticationError, @@ -77,7 +76,9 @@ async def get_true(self, **kwargs: Any) -> bool: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -121,7 +122,9 @@ async def put_true(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -153,7 +156,9 @@ async def get_false(self, **kwargs: Any) -> bool: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -197,7 +202,9 @@ async def put_false(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -229,7 +236,9 @@ async def get_null(self, **kwargs: Any) -> Optional[bool]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -265,7 +274,9 @@ async def get_invalid(self, **kwargs: Any) -> bool: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 a382cce7af7..b4a483a8e45 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ( ClientAuthenticationError, @@ -27,7 +26,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar + from typing import Any, Callable, Dict, Optional, TypeVar T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -212,7 +211,9 @@ def get_true( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -259,7 +260,9 @@ def put_true( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -294,7 +297,9 @@ def get_false( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -341,7 +346,9 @@ def put_false( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -376,7 +383,9 @@ def get_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -415,7 +424,9 @@ def get_invalid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyByte/bodybyte/_auto_rest_swagger_bat_byte_service.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyByte/bodybyte/_auto_rest_swagger_bat_byte_service.py index b00fbecd6bb..91f644e4f15 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyByte/bodybyte/_auto_rest_swagger_bat_byte_service.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyByte/bodybyte/_auto_rest_swagger_bat_byte_service.py @@ -18,7 +18,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Optional + from typing import Any from azure.core.rest import HttpRequest, HttpResponse diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyByte/bodybyte/_configuration.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyByte/bodybyte/_configuration.py index ff076785142..f29dff83519 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyByte/bodybyte/_configuration.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyByte/bodybyte/_configuration.py @@ -18,7 +18,7 @@ from typing import Any -class AutoRestSwaggerBATByteServiceConfiguration(Configuration): +class AutoRestSwaggerBATByteServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestSwaggerBATByteService. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyByte/bodybyte/aio/_auto_rest_swagger_bat_byte_service.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyByte/bodybyte/aio/_auto_rest_swagger_bat_byte_service.py index 52afe9ed761..dcf1515939b 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyByte/bodybyte/aio/_auto_rest_swagger_bat_byte_service.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyByte/bodybyte/aio/_auto_rest_swagger_bat_byte_service.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional +from typing import Any, Awaitable from azure.core import AsyncPipelineClient from azure.core.rest import AsyncHttpResponse, HttpRequest diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyByte/bodybyte/aio/_configuration.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyByte/bodybyte/aio/_configuration.py index 9262696cc4f..5d92724f30f 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyByte/bodybyte/aio/_configuration.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyByte/bodybyte/aio/_configuration.py @@ -14,7 +14,7 @@ from .._version import VERSION -class AutoRestSwaggerBATByteServiceConfiguration(Configuration): +class AutoRestSwaggerBATByteServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestSwaggerBATByteService. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyByte/bodybyte/aio/operations/_byte_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyByte/bodybyte/aio/operations/_byte_operations.py index c35da62e0c0..419d5737e83 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyByte/bodybyte/aio/operations/_byte_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyByte/bodybyte/aio/operations/_byte_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ( ClientAuthenticationError, @@ -76,7 +75,9 @@ async def get_null(self, **kwargs: Any) -> bytearray: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -112,7 +113,9 @@ async def get_empty(self, **kwargs: Any) -> bytearray: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -148,7 +151,9 @@ async def get_non_ascii(self, **kwargs: Any) -> bytearray: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -192,7 +197,9 @@ async def put_non_ascii(self, byte_body: bytearray, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -224,7 +231,9 @@ async def get_invalid(self, **kwargs: Any) -> bytearray: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 670b66e18ff..b9ca4e9a9a0 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ( ClientAuthenticationError, @@ -27,7 +26,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar + from typing import Any, Callable, Dict, Optional, TypeVar T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -184,7 +183,9 @@ def get_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -223,7 +224,9 @@ def get_empty( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -262,7 +265,9 @@ def get_non_ascii( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -311,7 +316,9 @@ def put_non_ascii( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -346,7 +353,9 @@ def get_invalid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyByteWithPackageName/bodybytewithpackagename/_class_name.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyByteWithPackageName/bodybytewithpackagename/_class_name.py index 3cb420b9909..4273c8fd1e7 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyByteWithPackageName/bodybytewithpackagename/_class_name.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyByteWithPackageName/bodybytewithpackagename/_class_name.py @@ -18,7 +18,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Optional + from typing import Any from azure.core.rest import HttpRequest, HttpResponse diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyByteWithPackageName/bodybytewithpackagename/_configuration.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyByteWithPackageName/bodybytewithpackagename/_configuration.py index 5d3ead8be52..b60e4cd2771 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyByteWithPackageName/bodybytewithpackagename/_configuration.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyByteWithPackageName/bodybytewithpackagename/_configuration.py @@ -18,7 +18,7 @@ from typing import Any -class ClassNameConfiguration(Configuration): +class ClassNameConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for ClassName. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyByteWithPackageName/bodybytewithpackagename/aio/_class_name.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyByteWithPackageName/bodybytewithpackagename/aio/_class_name.py index 34e641bc32a..367342dffb5 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyByteWithPackageName/bodybytewithpackagename/aio/_class_name.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyByteWithPackageName/bodybytewithpackagename/aio/_class_name.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional +from typing import Any, Awaitable from azure.core import AsyncPipelineClient from azure.core.rest import AsyncHttpResponse, HttpRequest diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyByteWithPackageName/bodybytewithpackagename/aio/_configuration.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyByteWithPackageName/bodybytewithpackagename/aio/_configuration.py index 180c56814e9..951b5561171 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyByteWithPackageName/bodybytewithpackagename/aio/_configuration.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyByteWithPackageName/bodybytewithpackagename/aio/_configuration.py @@ -14,7 +14,7 @@ from .._version import VERSION -class ClassNameConfiguration(Configuration): +class ClassNameConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for ClassName. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyByteWithPackageName/bodybytewithpackagename/aio/operations/_byte_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyByteWithPackageName/bodybytewithpackagename/aio/operations/_byte_operations.py index 35360e49641..d14548fb541 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyByteWithPackageName/bodybytewithpackagename/aio/operations/_byte_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyByteWithPackageName/bodybytewithpackagename/aio/operations/_byte_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ( ClientAuthenticationError, @@ -76,7 +75,9 @@ async def get_null(self, **kwargs: Any) -> bytearray: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -112,7 +113,9 @@ async def get_empty(self, **kwargs: Any) -> bytearray: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -148,7 +151,9 @@ async def get_non_ascii(self, **kwargs: Any) -> bytearray: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -192,7 +197,9 @@ async def put_non_ascii(self, byte_body: bytearray, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -224,7 +231,9 @@ async def get_invalid(self, **kwargs: Any) -> bytearray: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 878f5f01bf4..b59355d4adc 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ( ClientAuthenticationError, @@ -27,7 +26,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar + from typing import Any, Callable, Dict, Optional, TypeVar T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -184,7 +183,9 @@ def get_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -223,7 +224,9 @@ def get_empty( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -262,7 +265,9 @@ def get_non_ascii( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -311,7 +316,9 @@ def put_non_ascii( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -346,7 +353,9 @@ def get_invalid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/_auto_rest_complex_test_service.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/_auto_rest_complex_test_service.py index f9824d1a50e..80422541b50 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/_auto_rest_complex_test_service.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/_auto_rest_complex_test_service.py @@ -28,12 +28,12 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Optional + from typing import Any from azure.core.rest import HttpRequest, HttpResponse -class AutoRestComplexTestService(object): +class AutoRestComplexTestService(object): # pylint: disable=too-many-instance-attributes """Test Infrastructure for AutoRest. :ivar basic: BasicOperations operations diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/_configuration.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/_configuration.py index 392fc9a4aab..022bceae3b2 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/_configuration.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/_configuration.py @@ -18,13 +18,14 @@ from typing import Any -class AutoRestComplexTestServiceConfiguration(Configuration): +class AutoRestComplexTestServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestComplexTestService. Note that all parameters used to create this instance are saved as instance attributes. - :keyword api_version: Api Version. The default value is "2016-02-29". Note that overriding this default value may result in unsupported behavior. + :keyword api_version: Api Version. The default value is "2016-02-29". Note that overriding this + default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/_auto_rest_complex_test_service.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/_auto_rest_complex_test_service.py index f492c4b975b..2d644e677fd 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/_auto_rest_complex_test_service.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/_auto_rest_complex_test_service.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional +from typing import Any, Awaitable from azure.core import AsyncPipelineClient from azure.core.rest import AsyncHttpResponse, HttpRequest @@ -28,7 +28,7 @@ ) -class AutoRestComplexTestService: +class AutoRestComplexTestService: # pylint: disable=too-many-instance-attributes """Test Infrastructure for AutoRest. :ivar basic: BasicOperations operations diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/_configuration.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/_configuration.py index 3a0eb727003..f056703e66f 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/_configuration.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/_configuration.py @@ -14,13 +14,14 @@ from .._version import VERSION -class AutoRestComplexTestServiceConfiguration(Configuration): +class AutoRestComplexTestServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestComplexTestService. Note that all parameters used to create this instance are saved as instance attributes. - :keyword api_version: Api Version. The default value is "2016-02-29". Note that overriding this default value may result in unsupported behavior. + :keyword api_version: Api Version. The default value is "2016-02-29". Note that overriding this + default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_array_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_array_operations.py index 853ff64473c..5eca7c4ad42 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_array_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_array_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, List, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, List, Optional, TypeVar from azure.core.exceptions import ( ClientAuthenticationError, @@ -76,7 +75,9 @@ async def get_valid(self, **kwargs: Any) -> "_models.ArrayWrapper": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -121,7 +122,9 @@ async def put_valid(self, array: Optional[List[str]] = None, **kwargs: Any) -> N request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -153,7 +156,9 @@ async def get_empty(self, **kwargs: Any) -> "_models.ArrayWrapper": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -198,7 +203,9 @@ async def put_empty(self, array: Optional[List[str]] = None, **kwargs: Any) -> N request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -230,7 +237,9 @@ async def get_not_provided(self, **kwargs: Any) -> "_models.ArrayWrapper": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_basic_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_basic_operations.py index cffb59a2ae6..fad367905a5 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_basic_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_basic_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ( ClientAuthenticationError, @@ -77,7 +76,9 @@ async def get_valid(self, **kwargs: Any) -> "_models.Basic": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -123,7 +124,9 @@ async def put_valid(self, complex_body: "_models.Basic", **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -155,7 +158,9 @@ async def get_invalid(self, **kwargs: Any) -> "_models.Basic": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -191,7 +196,9 @@ async def get_empty(self, **kwargs: Any) -> "_models.Basic": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -227,7 +234,9 @@ async def get_null(self, **kwargs: Any) -> "_models.Basic": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -263,7 +272,9 @@ async def get_not_provided(self, **kwargs: Any) -> "_models.Basic": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_dictionary_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_dictionary_operations.py index d60676ae845..a96fa6a07a8 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_dictionary_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_dictionary_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ( ClientAuthenticationError, @@ -77,7 +76,9 @@ async def get_valid(self, **kwargs: Any) -> "_models.DictionaryWrapper": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -122,7 +123,9 @@ async def put_valid(self, default_program: Optional[Dict[str, str]] = None, **kw request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -154,7 +157,9 @@ async def get_empty(self, **kwargs: Any) -> "_models.DictionaryWrapper": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -199,7 +204,9 @@ async def put_empty(self, default_program: Optional[Dict[str, str]] = None, **kw request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -231,7 +238,9 @@ async def get_null(self, **kwargs: Any) -> "_models.DictionaryWrapper": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -267,7 +276,9 @@ async def get_not_provided(self, **kwargs: Any) -> "_models.DictionaryWrapper": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_flattencomplex_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_flattencomplex_operations.py index b3e679fcea7..1dfb2168ca7 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_flattencomplex_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_flattencomplex_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ( ClientAuthenticationError, @@ -70,7 +69,9 @@ async def get_valid(self, **kwargs: Any) -> "_models.MyBaseType": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_inheritance_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_inheritance_operations.py index 8d80429a2ae..7b7880d60c8 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_inheritance_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_inheritance_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ( ClientAuthenticationError, @@ -70,7 +69,9 @@ async def get_valid(self, **kwargs: Any) -> "_models.Siamese": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -116,7 +117,9 @@ async def put_valid(self, complex_body: "_models.Siamese", **kwargs: Any) -> Non request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_polymorphicrecursive_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_polymorphicrecursive_operations.py index 0f33b96f862..b6e97146e1c 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_polymorphicrecursive_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_polymorphicrecursive_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ( ClientAuthenticationError, @@ -70,7 +69,9 @@ async def get_valid(self, **kwargs: Any) -> "_models.Fish": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -166,7 +167,9 @@ async def put_valid(self, complex_body: "_models.Fish", **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_polymorphism_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_polymorphism_operations.py index d4c3b40feb1..ada24d038a6 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_polymorphism_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_polymorphism_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ( ClientAuthenticationError, @@ -80,7 +79,9 @@ async def get_valid(self, **kwargs: Any) -> "_models.Fish": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -156,7 +157,9 @@ async def put_valid(self, complex_body: "_models.Fish", **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -188,7 +191,9 @@ async def get_dot_syntax(self, **kwargs: Any) -> "_models.DotFish": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -226,7 +231,9 @@ async def get_composed_with_discriminator(self, **kwargs: Any) -> "_models.DotFi request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -264,7 +271,9 @@ async def get_composed_without_discriminator(self, **kwargs: Any) -> "_models.Do request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -301,7 +310,9 @@ async def get_complicated(self, **kwargs: Any) -> "_models.Salmon": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -346,7 +357,9 @@ async def put_complicated(self, complex_body: "_models.Salmon", **kwargs: Any) - request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -386,7 +399,9 @@ async def put_missing_discriminator(self, complex_body: "_models.Salmon", **kwar request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -457,7 +472,9 @@ async def put_valid_missing_required(self, complex_body: "_models.Fish", **kwarg request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_primitive_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_primitive_operations.py index 9d4593b8fb5..22981e353f0 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_primitive_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_primitive_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -6,9 +7,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import datetime -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ( ClientAuthenticationError, @@ -53,7 +52,7 @@ ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] -class PrimitiveOperations: +class PrimitiveOperations: # pylint: disable=too-many-public-methods """PrimitiveOperations async operations. You should not instantiate this class directly. Instead, you should create a Client instance that @@ -94,7 +93,9 @@ async def get_int(self, **kwargs: Any) -> "_models.IntWrapper": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -138,7 +139,9 @@ async def put_int(self, complex_body: "_models.IntWrapper", **kwargs: Any) -> No request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -170,7 +173,9 @@ async def get_long(self, **kwargs: Any) -> "_models.LongWrapper": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -214,7 +219,9 @@ async def put_long(self, complex_body: "_models.LongWrapper", **kwargs: Any) -> request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -246,7 +253,9 @@ async def get_float(self, **kwargs: Any) -> "_models.FloatWrapper": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -290,7 +299,9 @@ async def put_float(self, complex_body: "_models.FloatWrapper", **kwargs: Any) - request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -322,7 +333,9 @@ async def get_double(self, **kwargs: Any) -> "_models.DoubleWrapper": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -367,7 +380,9 @@ async def put_double(self, complex_body: "_models.DoubleWrapper", **kwargs: Any) request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -399,7 +414,9 @@ async def get_bool(self, **kwargs: Any) -> "_models.BooleanWrapper": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -443,7 +460,9 @@ async def put_bool(self, complex_body: "_models.BooleanWrapper", **kwargs: Any) request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -475,7 +494,9 @@ async def get_string(self, **kwargs: Any) -> "_models.StringWrapper": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -519,7 +540,9 @@ async def put_string(self, complex_body: "_models.StringWrapper", **kwargs: Any) request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -551,7 +574,9 @@ async def get_date(self, **kwargs: Any) -> "_models.DateWrapper": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -595,7 +620,9 @@ async def put_date(self, complex_body: "_models.DateWrapper", **kwargs: Any) -> request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -627,7 +654,9 @@ async def get_date_time(self, **kwargs: Any) -> "_models.DatetimeWrapper": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -671,7 +700,9 @@ async def put_date_time(self, complex_body: "_models.DatetimeWrapper", **kwargs: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -703,7 +734,9 @@ async def get_date_time_rfc1123(self, **kwargs: Any) -> "_models.Datetimerfc1123 request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -748,7 +781,9 @@ async def put_date_time_rfc1123(self, complex_body: "_models.Datetimerfc1123Wrap request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -780,7 +815,9 @@ async def get_duration(self, **kwargs: Any) -> "_models.DurationWrapper": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -825,7 +862,9 @@ async def put_duration(self, field: Optional[datetime.timedelta] = None, **kwarg request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -857,7 +896,9 @@ async def get_byte(self, **kwargs: Any) -> "_models.ByteWrapper": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -902,7 +943,9 @@ async def put_byte(self, field: Optional[bytearray] = None, **kwargs: Any) -> No request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_readonlyproperty_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_readonlyproperty_operations.py index 989e5c6b0f0..ec767a8c731 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_readonlyproperty_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_readonlyproperty_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ( ClientAuthenticationError, @@ -70,7 +69,9 @@ async def get_valid(self, **kwargs: Any) -> "_models.ReadonlyObj": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -115,7 +116,9 @@ async def put_valid(self, size: Optional[int] = None, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 35f65decc6a..04c577ea9c5 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ( ClientAuthenticationError, @@ -27,7 +26,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, List, Optional, TypeVar + from typing import Any, Callable, Dict, List, Optional, TypeVar T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -187,7 +186,9 @@ def get_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -237,7 +238,9 @@ def put_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -272,7 +275,9 @@ def get_empty( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -322,7 +327,9 @@ def put_empty( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -357,7 +364,9 @@ def get_not_provided( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 4576ec91c8d..62bf96ec185 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ( ClientAuthenticationError, @@ -27,7 +26,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar + from typing import Any, Callable, Dict, Optional, TypeVar T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -209,7 +208,9 @@ def get_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -260,7 +261,9 @@ def put_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -295,7 +298,9 @@ def get_invalid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -334,7 +339,9 @@ def get_empty( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -373,7 +380,9 @@ def get_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -412,7 +421,9 @@ def get_not_provided( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 23db08e2c5b..26d1c93bb1f 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ( ClientAuthenticationError, @@ -27,7 +26,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar + from typing import Any, Callable, Dict, Optional, TypeVar T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -207,7 +206,9 @@ def get_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -257,7 +258,9 @@ def put_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -292,7 +295,9 @@ def get_empty( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -342,7 +347,9 @@ def put_empty( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -377,7 +384,9 @@ def get_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -416,7 +425,9 @@ def get_not_provided( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 eda82add5c7..d69c92d3715 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ( ClientAuthenticationError, @@ -27,7 +26,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar + from typing import Any, Callable, Dict, Optional, TypeVar T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -99,7 +98,9 @@ def get_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 de72ec8837f..a29035ef210 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ( ClientAuthenticationError, @@ -27,7 +26,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar + from typing import Any, Callable, Dict, Optional, TypeVar T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -123,7 +122,9 @@ def get_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -174,7 +175,9 @@ def put_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 645b08ef673..7a100bb310c 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ( ClientAuthenticationError, @@ -27,7 +26,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar + from typing import Any, Callable, Dict, Optional, TypeVar T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -123,7 +122,9 @@ def get_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -224,7 +225,9 @@ def put_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 b2dab125e90..b64150bf2e4 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ( ClientAuthenticationError, @@ -27,7 +26,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar + from typing import Any, Callable, Dict, Optional, TypeVar T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -275,7 +274,9 @@ def get_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -356,7 +357,9 @@ def put_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -391,7 +394,9 @@ def get_dot_syntax( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -432,7 +437,9 @@ def get_composed_with_discriminator( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -473,7 +480,9 @@ def get_composed_without_discriminator( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -513,7 +522,9 @@ def get_complicated( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -563,7 +574,9 @@ def put_complicated( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -608,7 +621,9 @@ def put_missing_discriminator( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -684,7 +699,9 @@ def put_valid_missing_required( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 377c77e1d01..ad8383ff84f 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -6,9 +7,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import datetime -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ( ClientAuthenticationError, @@ -28,7 +27,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar + from typing import Any, Callable, Dict, Optional, TypeVar T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -520,7 +519,7 @@ def build_put_byte_request( ) # fmt: on -class PrimitiveOperations(object): +class PrimitiveOperations(object): # pylint: disable=too-many-public-methods """PrimitiveOperations operations. You should not instantiate this class directly. Instead, you should create a Client instance that @@ -564,7 +563,9 @@ def get_int( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -613,7 +614,9 @@ def put_int( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -648,7 +651,9 @@ def get_long( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -697,7 +702,9 @@ def put_long( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -732,7 +739,9 @@ def get_float( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -781,7 +790,9 @@ def put_float( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -816,7 +827,9 @@ def get_double( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -866,7 +879,9 @@ def put_double( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -901,7 +916,9 @@ def get_bool( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -950,7 +967,9 @@ def put_bool( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -985,7 +1004,9 @@ def get_string( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1034,7 +1055,9 @@ def put_string( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1069,7 +1092,9 @@ def get_date( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1118,7 +1143,9 @@ def put_date( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1153,7 +1180,9 @@ def get_date_time( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1202,7 +1231,9 @@ def put_date_time( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1237,7 +1268,9 @@ def get_date_time_rfc1123( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1287,7 +1320,9 @@ def put_date_time_rfc1123( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1322,7 +1357,9 @@ def get_duration( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1372,7 +1409,9 @@ def put_duration( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1407,7 +1446,9 @@ def get_byte( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1457,7 +1498,9 @@ def put_byte( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 269f0ce84ea..851444190df 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ( ClientAuthenticationError, @@ -27,7 +26,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar + from typing import Any, Callable, Dict, Optional, TypeVar T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -123,7 +122,9 @@ def get_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -173,7 +174,9 @@ def put_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/_auto_rest_complex_test_service.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/_auto_rest_complex_test_service.py index 40668c2eeda..72bfe293d45 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/_auto_rest_complex_test_service.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/_auto_rest_complex_test_service.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Optional +from typing import Any from azure.core import PipelineClient from azure.core.rest import HttpRequest, HttpResponse @@ -28,7 +28,7 @@ ) -class AutoRestComplexTestService: +class AutoRestComplexTestService: # pylint: disable=too-many-instance-attributes """Test Infrastructure for AutoRest. :ivar basic: BasicOperations operations diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/_configuration.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/_configuration.py index 42e0a7b3f53..43d426d02cb 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/_configuration.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/_configuration.py @@ -14,13 +14,14 @@ from ._version import VERSION -class AutoRestComplexTestServiceConfiguration(Configuration): +class AutoRestComplexTestServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestComplexTestService. Note that all parameters used to create this instance are saved as instance attributes. - :keyword api_version: Api Version. The default value is "2016-02-29". Note that overriding this default value may result in unsupported behavior. + :keyword api_version: Api Version. The default value is "2016-02-29". Note that overriding this + default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/aio/_auto_rest_complex_test_service.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/aio/_auto_rest_complex_test_service.py index 1b95cfb28fc..80c70c457db 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/aio/_auto_rest_complex_test_service.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/aio/_auto_rest_complex_test_service.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional +from typing import Any, Awaitable from azure.core import AsyncPipelineClient from azure.core.rest import AsyncHttpResponse, HttpRequest @@ -28,7 +28,7 @@ ) -class AutoRestComplexTestService: +class AutoRestComplexTestService: # pylint: disable=too-many-instance-attributes """Test Infrastructure for AutoRest. :ivar basic: BasicOperations operations diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/aio/_configuration.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/aio/_configuration.py index bee45666e52..7af266a2c1b 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/aio/_configuration.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/aio/_configuration.py @@ -14,13 +14,14 @@ from .._version import VERSION -class AutoRestComplexTestServiceConfiguration(Configuration): +class AutoRestComplexTestServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestComplexTestService. Note that all parameters used to create this instance are saved as instance attributes. - :keyword api_version: Api Version. The default value is "2016-02-29". Note that overriding this default value may result in unsupported behavior. + :keyword api_version: Api Version. The default value is "2016-02-29". Note that overriding this + default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/aio/operations/_array_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/aio/operations/_array_operations.py index 904c76108e7..33d52901748 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/aio/operations/_array_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/aio/operations/_array_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, List, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, List, Optional, TypeVar from azure.core.exceptions import ( ClientAuthenticationError, @@ -76,7 +75,9 @@ async def get_valid(self, **kwargs: Any) -> "_models.ArrayWrapper": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -121,7 +122,9 @@ async def put_valid(self, array: Optional[List[str]] = None, **kwargs: Any) -> N request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -153,7 +156,9 @@ async def get_empty(self, **kwargs: Any) -> "_models.ArrayWrapper": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -198,7 +203,9 @@ async def put_empty(self, array: Optional[List[str]] = None, **kwargs: Any) -> N request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -230,7 +237,9 @@ async def get_not_provided(self, **kwargs: Any) -> "_models.ArrayWrapper": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/aio/operations/_basic_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/aio/operations/_basic_operations.py index 29c2c9b9835..8f3204c09a7 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/aio/operations/_basic_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/aio/operations/_basic_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ( ClientAuthenticationError, @@ -77,7 +76,9 @@ async def get_valid(self, **kwargs: Any) -> "_models.Basic": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -123,7 +124,9 @@ async def put_valid(self, complex_body: "_models.Basic", **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -155,7 +158,9 @@ async def get_invalid(self, **kwargs: Any) -> "_models.Basic": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -191,7 +196,9 @@ async def get_empty(self, **kwargs: Any) -> "_models.Basic": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -227,7 +234,9 @@ async def get_null(self, **kwargs: Any) -> "_models.Basic": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -263,7 +272,9 @@ async def get_not_provided(self, **kwargs: Any) -> "_models.Basic": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/aio/operations/_dictionary_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/aio/operations/_dictionary_operations.py index 3f5c317002d..43d4239ea73 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/aio/operations/_dictionary_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/aio/operations/_dictionary_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ( ClientAuthenticationError, @@ -77,7 +76,9 @@ async def get_valid(self, **kwargs: Any) -> "_models.DictionaryWrapper": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -122,7 +123,9 @@ async def put_valid(self, default_program: Optional[Dict[str, str]] = None, **kw request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -154,7 +157,9 @@ async def get_empty(self, **kwargs: Any) -> "_models.DictionaryWrapper": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -199,7 +204,9 @@ async def put_empty(self, default_program: Optional[Dict[str, str]] = None, **kw request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -231,7 +238,9 @@ async def get_null(self, **kwargs: Any) -> "_models.DictionaryWrapper": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -267,7 +276,9 @@ async def get_not_provided(self, **kwargs: Any) -> "_models.DictionaryWrapper": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/aio/operations/_flattencomplex_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/aio/operations/_flattencomplex_operations.py index 401d9d538a8..c1ea5f2ba29 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/aio/operations/_flattencomplex_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/aio/operations/_flattencomplex_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ( ClientAuthenticationError, @@ -70,7 +69,9 @@ async def get_valid(self, **kwargs: Any) -> "_models.MyBaseType": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/aio/operations/_inheritance_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/aio/operations/_inheritance_operations.py index c77fa713660..80d55b3fef3 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/aio/operations/_inheritance_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/aio/operations/_inheritance_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ( ClientAuthenticationError, @@ -70,7 +69,9 @@ async def get_valid(self, **kwargs: Any) -> "_models.Siamese": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -116,7 +117,9 @@ async def put_valid(self, complex_body: "_models.Siamese", **kwargs: Any) -> Non request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/aio/operations/_polymorphicrecursive_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/aio/operations/_polymorphicrecursive_operations.py index 8f03d009fc9..ea7e9ffbcd3 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/aio/operations/_polymorphicrecursive_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/aio/operations/_polymorphicrecursive_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ( ClientAuthenticationError, @@ -70,7 +69,9 @@ async def get_valid(self, **kwargs: Any) -> "_models.Fish": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -166,7 +167,9 @@ async def put_valid(self, complex_body: "_models.Fish", **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/aio/operations/_polymorphism_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/aio/operations/_polymorphism_operations.py index b5296bfbe31..80888ccdaa9 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/aio/operations/_polymorphism_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/aio/operations/_polymorphism_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ( ClientAuthenticationError, @@ -80,7 +79,9 @@ async def get_valid(self, **kwargs: Any) -> "_models.Fish": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -156,7 +157,9 @@ async def put_valid(self, complex_body: "_models.Fish", **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -188,7 +191,9 @@ async def get_dot_syntax(self, **kwargs: Any) -> "_models.DotFish": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -226,7 +231,9 @@ async def get_composed_with_discriminator(self, **kwargs: Any) -> "_models.DotFi request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -264,7 +271,9 @@ async def get_composed_without_discriminator(self, **kwargs: Any) -> "_models.Do request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -301,7 +310,9 @@ async def get_complicated(self, **kwargs: Any) -> "_models.Salmon": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -346,7 +357,9 @@ async def put_complicated(self, complex_body: "_models.Salmon", **kwargs: Any) - request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -386,7 +399,9 @@ async def put_missing_discriminator(self, complex_body: "_models.Salmon", **kwar request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -457,7 +472,9 @@ async def put_valid_missing_required(self, complex_body: "_models.Fish", **kwarg request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/aio/operations/_primitive_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/aio/operations/_primitive_operations.py index 78bd4614534..a59f62725a9 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/aio/operations/_primitive_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/aio/operations/_primitive_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -6,9 +7,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import datetime -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ( ClientAuthenticationError, @@ -53,7 +52,7 @@ ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] -class PrimitiveOperations: +class PrimitiveOperations: # pylint: disable=too-many-public-methods """PrimitiveOperations async operations. You should not instantiate this class directly. Instead, you should create a Client instance that @@ -94,7 +93,9 @@ async def get_int(self, **kwargs: Any) -> "_models.IntWrapper": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -138,7 +139,9 @@ async def put_int(self, complex_body: "_models.IntWrapper", **kwargs: Any) -> No request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -170,7 +173,9 @@ async def get_long(self, **kwargs: Any) -> "_models.LongWrapper": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -214,7 +219,9 @@ async def put_long(self, complex_body: "_models.LongWrapper", **kwargs: Any) -> request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -246,7 +253,9 @@ async def get_float(self, **kwargs: Any) -> "_models.FloatWrapper": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -290,7 +299,9 @@ async def put_float(self, complex_body: "_models.FloatWrapper", **kwargs: Any) - request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -322,7 +333,9 @@ async def get_double(self, **kwargs: Any) -> "_models.DoubleWrapper": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -367,7 +380,9 @@ async def put_double(self, complex_body: "_models.DoubleWrapper", **kwargs: Any) request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -399,7 +414,9 @@ async def get_bool(self, **kwargs: Any) -> "_models.BooleanWrapper": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -443,7 +460,9 @@ async def put_bool(self, complex_body: "_models.BooleanWrapper", **kwargs: Any) request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -475,7 +494,9 @@ async def get_string(self, **kwargs: Any) -> "_models.StringWrapper": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -519,7 +540,9 @@ async def put_string(self, complex_body: "_models.StringWrapper", **kwargs: Any) request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -551,7 +574,9 @@ async def get_date(self, **kwargs: Any) -> "_models.DateWrapper": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -595,7 +620,9 @@ async def put_date(self, complex_body: "_models.DateWrapper", **kwargs: Any) -> request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -627,7 +654,9 @@ async def get_date_time(self, **kwargs: Any) -> "_models.DatetimeWrapper": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -671,7 +700,9 @@ async def put_date_time(self, complex_body: "_models.DatetimeWrapper", **kwargs: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -703,7 +734,9 @@ async def get_date_time_rfc1123(self, **kwargs: Any) -> "_models.Datetimerfc1123 request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -748,7 +781,9 @@ async def put_date_time_rfc1123(self, complex_body: "_models.Datetimerfc1123Wrap request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -780,7 +815,9 @@ async def get_duration(self, **kwargs: Any) -> "_models.DurationWrapper": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -825,7 +862,9 @@ async def put_duration(self, field: Optional[datetime.timedelta] = None, **kwarg request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -857,7 +896,9 @@ async def get_byte(self, **kwargs: Any) -> "_models.ByteWrapper": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -902,7 +943,9 @@ async def put_byte(self, field: Optional[bytearray] = None, **kwargs: Any) -> No request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/aio/operations/_readonlyproperty_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/aio/operations/_readonlyproperty_operations.py index 80e50c53501..af46e9ffc9f 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/aio/operations/_readonlyproperty_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/aio/operations/_readonlyproperty_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ( ClientAuthenticationError, @@ -70,7 +69,9 @@ async def get_valid(self, **kwargs: Any) -> "_models.ReadonlyObj": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -115,7 +116,9 @@ async def put_valid(self, size: Optional[int] = None, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 fc37e4c1195..e554fa5f8db 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, List, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, List, Optional, TypeVar from azure.core.exceptions import ( ClientAuthenticationError, @@ -142,7 +141,9 @@ def get_valid(self, **kwargs: Any) -> "_models.ArrayWrapper": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -187,7 +188,9 @@ def put_valid(self, array: Optional[List[str]] = None, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -219,7 +222,9 @@ def get_empty(self, **kwargs: Any) -> "_models.ArrayWrapper": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -264,7 +269,9 @@ def put_empty(self, array: Optional[List[str]] = None, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -296,7 +303,9 @@ def get_not_provided(self, **kwargs: Any) -> "_models.ArrayWrapper": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 4998b1ffe8e..8e5c2c6f67a 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ( ClientAuthenticationError, @@ -157,7 +156,9 @@ def get_valid(self, **kwargs: Any) -> "_models.Basic": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -203,7 +204,9 @@ def put_valid(self, complex_body: "_models.Basic", **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -235,7 +238,9 @@ def get_invalid(self, **kwargs: Any) -> "_models.Basic": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -271,7 +276,9 @@ def get_empty(self, **kwargs: Any) -> "_models.Basic": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -307,7 +314,9 @@ def get_null(self, **kwargs: Any) -> "_models.Basic": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -343,7 +352,9 @@ def get_not_provided(self, **kwargs: Any) -> "_models.Basic": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 abe9ecb0d08..d652d2dd4a1 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ( ClientAuthenticationError, @@ -154,7 +153,9 @@ def get_valid(self, **kwargs: Any) -> "_models.DictionaryWrapper": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -199,7 +200,9 @@ def put_valid(self, default_program: Optional[Dict[str, str]] = None, **kwargs: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -231,7 +234,9 @@ def get_empty(self, **kwargs: Any) -> "_models.DictionaryWrapper": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -276,7 +281,9 @@ def put_empty(self, default_program: Optional[Dict[str, str]] = None, **kwargs: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -308,7 +315,9 @@ def get_null(self, **kwargs: Any) -> "_models.DictionaryWrapper": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -344,7 +353,9 @@ def get_not_provided(self, **kwargs: Any) -> "_models.DictionaryWrapper": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 c9906d2a632..23d5eb2494f 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ( ClientAuthenticationError, @@ -85,7 +84,9 @@ def get_valid(self, **kwargs: Any) -> "_models.MyBaseType": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 35c22fbc995..283886357fb 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ( ClientAuthenticationError, @@ -102,7 +101,9 @@ def get_valid(self, **kwargs: Any) -> "_models.Siamese": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -148,7 +149,9 @@ def put_valid(self, complex_body: "_models.Siamese", **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 78eedd9f100..ea9c2c0efed 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ( ClientAuthenticationError, @@ -102,7 +101,9 @@ def get_valid(self, **kwargs: Any) -> "_models.Fish": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -198,7 +199,9 @@ def put_valid(self, complex_body: "_models.Fish", **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 9750291af2e..80fd5801aca 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ( ClientAuthenticationError, @@ -202,7 +201,9 @@ def get_valid(self, **kwargs: Any) -> "_models.Fish": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -278,7 +279,9 @@ def put_valid(self, complex_body: "_models.Fish", **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -310,7 +313,9 @@ def get_dot_syntax(self, **kwargs: Any) -> "_models.DotFish": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -348,7 +353,9 @@ def get_composed_with_discriminator(self, **kwargs: Any) -> "_models.DotFishMark request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -386,7 +393,9 @@ def get_composed_without_discriminator(self, **kwargs: Any) -> "_models.DotFishM request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -423,7 +432,9 @@ def get_complicated(self, **kwargs: Any) -> "_models.Salmon": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -468,7 +479,9 @@ def put_complicated(self, complex_body: "_models.Salmon", **kwargs: Any) -> None request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -508,7 +521,9 @@ def put_missing_discriminator(self, complex_body: "_models.Salmon", **kwargs: An request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -579,7 +594,9 @@ def put_valid_missing_required(self, complex_body: "_models.Fish", **kwargs: Any request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 7fa3f4f0734..dfd210102f2 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -6,9 +7,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import datetime -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ( ClientAuthenticationError, @@ -342,7 +341,7 @@ def build_put_byte_request(*, json: JSONType = None, content: Any = None, **kwar return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) -class PrimitiveOperations(object): +class PrimitiveOperations(object): # pylint: disable=too-many-public-methods """PrimitiveOperations operations. You should not instantiate this class directly. Instead, you should create a Client instance that @@ -383,7 +382,9 @@ def get_int(self, **kwargs: Any) -> "_models.IntWrapper": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -427,7 +428,9 @@ def put_int(self, complex_body: "_models.IntWrapper", **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -459,7 +462,9 @@ def get_long(self, **kwargs: Any) -> "_models.LongWrapper": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -503,7 +508,9 @@ def put_long(self, complex_body: "_models.LongWrapper", **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -535,7 +542,9 @@ def get_float(self, **kwargs: Any) -> "_models.FloatWrapper": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -579,7 +588,9 @@ def put_float(self, complex_body: "_models.FloatWrapper", **kwargs: Any) -> None request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -611,7 +622,9 @@ def get_double(self, **kwargs: Any) -> "_models.DoubleWrapper": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -656,7 +669,9 @@ def put_double(self, complex_body: "_models.DoubleWrapper", **kwargs: Any) -> No request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -688,7 +703,9 @@ def get_bool(self, **kwargs: Any) -> "_models.BooleanWrapper": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -732,7 +749,9 @@ def put_bool(self, complex_body: "_models.BooleanWrapper", **kwargs: Any) -> Non request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -764,7 +783,9 @@ def get_string(self, **kwargs: Any) -> "_models.StringWrapper": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -808,7 +829,9 @@ def put_string(self, complex_body: "_models.StringWrapper", **kwargs: Any) -> No request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -840,7 +863,9 @@ def get_date(self, **kwargs: Any) -> "_models.DateWrapper": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -884,7 +909,9 @@ def put_date(self, complex_body: "_models.DateWrapper", **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -916,7 +943,9 @@ def get_date_time(self, **kwargs: Any) -> "_models.DatetimeWrapper": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -960,7 +989,9 @@ def put_date_time(self, complex_body: "_models.DatetimeWrapper", **kwargs: Any) request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -992,7 +1023,9 @@ def get_date_time_rfc1123(self, **kwargs: Any) -> "_models.Datetimerfc1123Wrappe request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1037,7 +1070,9 @@ def put_date_time_rfc1123(self, complex_body: "_models.Datetimerfc1123Wrapper", request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1069,7 +1104,9 @@ def get_duration(self, **kwargs: Any) -> "_models.DurationWrapper": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1114,7 +1151,9 @@ def put_duration(self, field: Optional[datetime.timedelta] = None, **kwargs: Any request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1146,7 +1185,9 @@ def get_byte(self, **kwargs: Any) -> "_models.ByteWrapper": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1191,7 +1232,9 @@ def put_byte(self, field: Optional[bytearray] = None, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 0f2be4918de..529ad2bd8a6 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ( ClientAuthenticationError, @@ -102,7 +101,9 @@ def get_valid(self, **kwargs: Any) -> "_models.ReadonlyObj": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -147,7 +148,9 @@ def put_valid(self, size: Optional[int] = None, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyDate/bodydate/_auto_rest_date_test_service.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyDate/bodydate/_auto_rest_date_test_service.py index 444afd81232..31860e290f2 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyDate/bodydate/_auto_rest_date_test_service.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyDate/bodydate/_auto_rest_date_test_service.py @@ -18,7 +18,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Optional + from typing import Any from azure.core.rest import HttpRequest, HttpResponse diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyDate/bodydate/_configuration.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyDate/bodydate/_configuration.py index 53d2becacbf..6f88527b90e 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyDate/bodydate/_configuration.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyDate/bodydate/_configuration.py @@ -18,7 +18,7 @@ from typing import Any -class AutoRestDateTestServiceConfiguration(Configuration): +class AutoRestDateTestServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestDateTestService. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyDate/bodydate/aio/_auto_rest_date_test_service.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyDate/bodydate/aio/_auto_rest_date_test_service.py index b6592ee1ad8..86833548831 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyDate/bodydate/aio/_auto_rest_date_test_service.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyDate/bodydate/aio/_auto_rest_date_test_service.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional +from typing import Any, Awaitable from azure.core import AsyncPipelineClient from azure.core.rest import AsyncHttpResponse, HttpRequest diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyDate/bodydate/aio/_configuration.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyDate/bodydate/aio/_configuration.py index 4f71dfb033d..b6aa3ee8416 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyDate/bodydate/aio/_configuration.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyDate/bodydate/aio/_configuration.py @@ -14,7 +14,7 @@ from .._version import VERSION -class AutoRestDateTestServiceConfiguration(Configuration): +class AutoRestDateTestServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestDateTestService. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyDate/bodydate/aio/operations/_date_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyDate/bodydate/aio/operations/_date_operations.py index 0b58aa826eb..ad88e852540 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyDate/bodydate/aio/operations/_date_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyDate/bodydate/aio/operations/_date_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -6,9 +7,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import datetime -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ( ClientAuthenticationError, @@ -80,7 +79,9 @@ async def get_null(self, **kwargs: Any) -> Optional[datetime.date]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -116,7 +117,9 @@ async def get_invalid_date(self, **kwargs: Any) -> datetime.date: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -152,7 +155,9 @@ async def get_overflow_date(self, **kwargs: Any) -> datetime.date: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -188,7 +193,9 @@ async def get_underflow_date(self, **kwargs: Any) -> datetime.date: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -232,7 +239,9 @@ async def put_max_date(self, date_body: datetime.date, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -264,7 +273,9 @@ async def get_max_date(self, **kwargs: Any) -> datetime.date: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -308,7 +319,9 @@ async def put_min_date(self, date_body: datetime.date, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -340,7 +353,9 @@ async def get_min_date(self, **kwargs: Any) -> datetime.date: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 762c45e1698..e10224d2c79 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -6,9 +7,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import datetime -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ( ClientAuthenticationError, @@ -28,7 +27,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar + from typing import Any, Callable, Dict, Optional, TypeVar T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -249,7 +248,9 @@ def get_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -288,7 +289,9 @@ def get_invalid_date( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -327,7 +330,9 @@ def get_overflow_date( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -366,7 +371,9 @@ def get_underflow_date( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -415,7 +422,9 @@ def put_max_date( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -450,7 +459,9 @@ def get_max_date( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -499,7 +510,9 @@ def put_min_date( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -534,7 +547,9 @@ def get_min_date( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyDateTime/bodydatetime/_auto_rest_date_time_test_service.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyDateTime/bodydatetime/_auto_rest_date_time_test_service.py index f696f2c0819..937bd1e1357 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyDateTime/bodydatetime/_auto_rest_date_time_test_service.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyDateTime/bodydatetime/_auto_rest_date_time_test_service.py @@ -18,7 +18,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Optional + from typing import Any from azure.core.rest import HttpRequest, HttpResponse diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyDateTime/bodydatetime/_configuration.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyDateTime/bodydatetime/_configuration.py index 41ec3af9b67..d00579e11b8 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyDateTime/bodydatetime/_configuration.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyDateTime/bodydatetime/_configuration.py @@ -18,7 +18,7 @@ from typing import Any -class AutoRestDateTimeTestServiceConfiguration(Configuration): +class AutoRestDateTimeTestServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestDateTimeTestService. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyDateTime/bodydatetime/aio/_auto_rest_date_time_test_service.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyDateTime/bodydatetime/aio/_auto_rest_date_time_test_service.py index ade5b4ecf2e..568d7da4129 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyDateTime/bodydatetime/aio/_auto_rest_date_time_test_service.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyDateTime/bodydatetime/aio/_auto_rest_date_time_test_service.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional +from typing import Any, Awaitable from azure.core import AsyncPipelineClient from azure.core.rest import AsyncHttpResponse, HttpRequest diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyDateTime/bodydatetime/aio/_configuration.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyDateTime/bodydatetime/aio/_configuration.py index fece892264c..6d637375ab1 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyDateTime/bodydatetime/aio/_configuration.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyDateTime/bodydatetime/aio/_configuration.py @@ -14,7 +14,7 @@ from .._version import VERSION -class AutoRestDateTimeTestServiceConfiguration(Configuration): +class AutoRestDateTimeTestServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestDateTimeTestService. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyDateTime/bodydatetime/aio/operations/_datetime_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyDateTime/bodydatetime/aio/operations/_datetime_operations.py index 36af5ce4b4f..64a08801dd3 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyDateTime/bodydatetime/aio/operations/_datetime_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyDateTime/bodydatetime/aio/operations/_datetime_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -6,9 +7,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import datetime -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ( ClientAuthenticationError, @@ -53,7 +52,7 @@ ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] -class DatetimeOperations: +class DatetimeOperations: # pylint: disable=too-many-public-methods """DatetimeOperations async operations. You should not instantiate this class directly. Instead, you should create a Client instance that @@ -94,7 +93,9 @@ async def get_null(self, **kwargs: Any) -> Optional[datetime.datetime]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -130,7 +131,9 @@ async def get_invalid(self, **kwargs: Any) -> datetime.datetime: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -166,7 +169,9 @@ async def get_overflow(self, **kwargs: Any) -> datetime.datetime: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -202,7 +207,9 @@ async def get_underflow(self, **kwargs: Any) -> datetime.datetime: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -246,7 +253,9 @@ async def put_utc_max_date_time(self, datetime_body: datetime.datetime, **kwargs request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -289,7 +298,9 @@ async def put_utc_max_date_time7_digits(self, datetime_body: datetime.datetime, request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -321,7 +332,9 @@ async def get_utc_lowercase_max_date_time(self, **kwargs: Any) -> datetime.datet request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -357,7 +370,9 @@ async def get_utc_uppercase_max_date_time(self, **kwargs: Any) -> datetime.datet request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -396,7 +411,9 @@ async def get_utc_uppercase_max_date_time7_digits(self, **kwargs: Any) -> dateti request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -440,7 +457,9 @@ async def put_local_positive_offset_max_date_time(self, datetime_body: datetime. request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -472,7 +491,9 @@ async def get_local_positive_offset_lowercase_max_date_time(self, **kwargs: Any) request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -508,7 +529,9 @@ async def get_local_positive_offset_uppercase_max_date_time(self, **kwargs: Any) request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -552,7 +575,9 @@ async def put_local_negative_offset_max_date_time(self, datetime_body: datetime. request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -584,7 +609,9 @@ async def get_local_negative_offset_uppercase_max_date_time(self, **kwargs: Any) request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -620,7 +647,9 @@ async def get_local_negative_offset_lowercase_max_date_time(self, **kwargs: Any) request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -664,7 +693,9 @@ async def put_utc_min_date_time(self, datetime_body: datetime.datetime, **kwargs request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -696,7 +727,9 @@ async def get_utc_min_date_time(self, **kwargs: Any) -> datetime.datetime: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -740,7 +773,9 @@ async def put_local_positive_offset_min_date_time(self, datetime_body: datetime. request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -772,7 +807,9 @@ async def get_local_positive_offset_min_date_time(self, **kwargs: Any) -> dateti request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -816,7 +853,9 @@ async def put_local_negative_offset_min_date_time(self, datetime_body: datetime. request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -848,7 +887,9 @@ async def get_local_negative_offset_min_date_time(self, **kwargs: Any) -> dateti request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -884,7 +925,9 @@ async def get_local_no_offset_min_date_time(self, **kwargs: Any) -> datetime.dat request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 751774b6976..1ab9e7589c0 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -6,9 +7,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import datetime -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ( ClientAuthenticationError, @@ -28,7 +27,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar + from typing import Any, Callable, Dict, Optional, TypeVar T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -505,7 +504,7 @@ def build_get_local_no_offset_min_date_time_request( ) # fmt: on -class DatetimeOperations(object): +class DatetimeOperations(object): # pylint: disable=too-many-public-methods """DatetimeOperations operations. You should not instantiate this class directly. Instead, you should create a Client instance that @@ -549,7 +548,9 @@ def get_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -588,7 +589,9 @@ def get_invalid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -627,7 +630,9 @@ def get_overflow( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -666,7 +671,9 @@ def get_underflow( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -715,7 +722,9 @@ def put_utc_max_date_time( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -763,7 +772,9 @@ def put_utc_max_date_time7_digits( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -798,7 +809,9 @@ def get_utc_lowercase_max_date_time( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -837,7 +850,9 @@ def get_utc_uppercase_max_date_time( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -879,7 +894,9 @@ def get_utc_uppercase_max_date_time7_digits( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -928,7 +945,9 @@ def put_local_positive_offset_max_date_time( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -963,7 +982,9 @@ def get_local_positive_offset_lowercase_max_date_time( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1002,7 +1023,9 @@ def get_local_positive_offset_uppercase_max_date_time( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1051,7 +1074,9 @@ def put_local_negative_offset_max_date_time( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1086,7 +1111,9 @@ def get_local_negative_offset_uppercase_max_date_time( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1125,7 +1152,9 @@ def get_local_negative_offset_lowercase_max_date_time( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1174,7 +1203,9 @@ def put_utc_min_date_time( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1209,7 +1240,9 @@ def get_utc_min_date_time( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1258,7 +1291,9 @@ def put_local_positive_offset_min_date_time( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1293,7 +1328,9 @@ def get_local_positive_offset_min_date_time( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1342,7 +1379,9 @@ def put_local_negative_offset_min_date_time( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1377,7 +1416,9 @@ def get_local_negative_offset_min_date_time( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1416,7 +1457,9 @@ def get_local_no_offset_min_date_time( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyDateTimeRfc1123/bodydatetimerfc1123/_auto_rest_rfc1123_date_time_test_service.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyDateTimeRfc1123/bodydatetimerfc1123/_auto_rest_rfc1123_date_time_test_service.py index cd55bcbd43a..f778cfed98c 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyDateTimeRfc1123/bodydatetimerfc1123/_auto_rest_rfc1123_date_time_test_service.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyDateTimeRfc1123/bodydatetimerfc1123/_auto_rest_rfc1123_date_time_test_service.py @@ -18,7 +18,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Optional + from typing import Any from azure.core.rest import HttpRequest, HttpResponse diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyDateTimeRfc1123/bodydatetimerfc1123/_configuration.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyDateTimeRfc1123/bodydatetimerfc1123/_configuration.py index 4048a5a7f59..724d16fde5d 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyDateTimeRfc1123/bodydatetimerfc1123/_configuration.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyDateTimeRfc1123/bodydatetimerfc1123/_configuration.py @@ -18,7 +18,7 @@ from typing import Any -class AutoRestRFC1123DateTimeTestServiceConfiguration(Configuration): +class AutoRestRFC1123DateTimeTestServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestRFC1123DateTimeTestService. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyDateTimeRfc1123/bodydatetimerfc1123/aio/_auto_rest_rfc1123_date_time_test_service.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyDateTimeRfc1123/bodydatetimerfc1123/aio/_auto_rest_rfc1123_date_time_test_service.py index 68637f1ebb2..5098c247c12 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyDateTimeRfc1123/bodydatetimerfc1123/aio/_auto_rest_rfc1123_date_time_test_service.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyDateTimeRfc1123/bodydatetimerfc1123/aio/_auto_rest_rfc1123_date_time_test_service.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional +from typing import Any, Awaitable from azure.core import AsyncPipelineClient from azure.core.rest import AsyncHttpResponse, HttpRequest diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyDateTimeRfc1123/bodydatetimerfc1123/aio/_configuration.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyDateTimeRfc1123/bodydatetimerfc1123/aio/_configuration.py index a5f8aa98c35..0ab8b3ec958 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyDateTimeRfc1123/bodydatetimerfc1123/aio/_configuration.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyDateTimeRfc1123/bodydatetimerfc1123/aio/_configuration.py @@ -14,7 +14,7 @@ from .._version import VERSION -class AutoRestRFC1123DateTimeTestServiceConfiguration(Configuration): +class AutoRestRFC1123DateTimeTestServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestRFC1123DateTimeTestService. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyDateTimeRfc1123/bodydatetimerfc1123/aio/operations/_datetimerfc1123_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyDateTimeRfc1123/bodydatetimerfc1123/aio/operations/_datetimerfc1123_operations.py index 40a8e62b073..319cd01e4a7 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyDateTimeRfc1123/bodydatetimerfc1123/aio/operations/_datetimerfc1123_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyDateTimeRfc1123/bodydatetimerfc1123/aio/operations/_datetimerfc1123_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -6,9 +7,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import datetime -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ( ClientAuthenticationError, @@ -81,7 +80,9 @@ async def get_null(self, **kwargs: Any) -> Optional[datetime.datetime]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -117,7 +118,9 @@ async def get_invalid(self, **kwargs: Any) -> datetime.datetime: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -153,7 +156,9 @@ async def get_overflow(self, **kwargs: Any) -> datetime.datetime: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -189,7 +194,9 @@ async def get_underflow(self, **kwargs: Any) -> datetime.datetime: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -233,7 +240,9 @@ async def put_utc_max_date_time(self, datetime_body: datetime.datetime, **kwargs request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -265,7 +274,9 @@ async def get_utc_lowercase_max_date_time(self, **kwargs: Any) -> datetime.datet request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -301,7 +312,9 @@ async def get_utc_uppercase_max_date_time(self, **kwargs: Any) -> datetime.datet request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -345,7 +358,9 @@ async def put_utc_min_date_time(self, datetime_body: datetime.datetime, **kwargs request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -377,7 +392,9 @@ async def get_utc_min_date_time(self, **kwargs: Any) -> datetime.datetime: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 58c083c4c32..6bf85f8df53 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -6,9 +7,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import datetime -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ( ClientAuthenticationError, @@ -28,7 +27,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar + from typing import Any, Callable, Dict, Optional, TypeVar T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -269,7 +268,9 @@ def get_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -308,7 +309,9 @@ def get_invalid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -347,7 +350,9 @@ def get_overflow( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -386,7 +391,9 @@ def get_underflow( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -435,7 +442,9 @@ def put_utc_max_date_time( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -470,7 +479,9 @@ def get_utc_lowercase_max_date_time( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -509,7 +520,9 @@ def get_utc_uppercase_max_date_time( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -558,7 +571,9 @@ def put_utc_min_date_time( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -593,7 +608,9 @@ def get_utc_min_date_time( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyDictionary/bodydictionary/_auto_rest_swagger_ba_tdictionary_service.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyDictionary/bodydictionary/_auto_rest_swagger_ba_tdictionary_service.py index b68702975af..51186072cff 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyDictionary/bodydictionary/_auto_rest_swagger_ba_tdictionary_service.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyDictionary/bodydictionary/_auto_rest_swagger_ba_tdictionary_service.py @@ -18,7 +18,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Optional + from typing import Any from azure.core.rest import HttpRequest, HttpResponse diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyDictionary/bodydictionary/_configuration.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyDictionary/bodydictionary/_configuration.py index c8d4d966970..477da49e3ff 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyDictionary/bodydictionary/_configuration.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyDictionary/bodydictionary/_configuration.py @@ -18,7 +18,7 @@ from typing import Any -class AutoRestSwaggerBATDictionaryServiceConfiguration(Configuration): +class AutoRestSwaggerBATDictionaryServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestSwaggerBATDictionaryService. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyDictionary/bodydictionary/aio/_auto_rest_swagger_ba_tdictionary_service.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyDictionary/bodydictionary/aio/_auto_rest_swagger_ba_tdictionary_service.py index 36955be40f0..f8a67f2e60f 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyDictionary/bodydictionary/aio/_auto_rest_swagger_ba_tdictionary_service.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyDictionary/bodydictionary/aio/_auto_rest_swagger_ba_tdictionary_service.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional +from typing import Any, Awaitable from azure.core import AsyncPipelineClient from azure.core.rest import AsyncHttpResponse, HttpRequest diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyDictionary/bodydictionary/aio/_configuration.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyDictionary/bodydictionary/aio/_configuration.py index 01218333453..7efa1013d5e 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyDictionary/bodydictionary/aio/_configuration.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyDictionary/bodydictionary/aio/_configuration.py @@ -14,7 +14,7 @@ from .._version import VERSION -class AutoRestSwaggerBATDictionaryServiceConfiguration(Configuration): +class AutoRestSwaggerBATDictionaryServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestSwaggerBATDictionaryService. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyDictionary/bodydictionary/aio/operations/_dictionary_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyDictionary/bodydictionary/aio/operations/_dictionary_operations.py index 7c4cb9173d0..e3438e530ec 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyDictionary/bodydictionary/aio/operations/_dictionary_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyDictionary/bodydictionary/aio/operations/_dictionary_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -6,9 +7,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import datetime -import functools -from typing import Any, Callable, Dict, Generic, List, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, List, Optional, TypeVar from azure.core.exceptions import ( ClientAuthenticationError, @@ -96,7 +95,7 @@ ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] -class DictionaryOperations: +class DictionaryOperations: # pylint: disable=too-many-public-methods """DictionaryOperations async operations. You should not instantiate this class directly. Instead, you should create a Client instance that @@ -137,7 +136,9 @@ async def get_null(self, **kwargs: Any) -> Dict[str, int]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -173,7 +174,9 @@ async def get_empty(self, **kwargs: Any) -> Dict[str, int]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -217,7 +220,9 @@ async def put_empty(self, array_body: Dict[str, str], **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -249,7 +254,9 @@ async def get_null_value(self, **kwargs: Any) -> Dict[str, str]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -285,7 +292,9 @@ async def get_null_key(self, **kwargs: Any) -> Dict[str, str]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -321,7 +330,9 @@ async def get_empty_string_key(self, **kwargs: Any) -> Dict[str, str]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -357,7 +368,9 @@ async def get_invalid(self, **kwargs: Any) -> Dict[str, str]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -393,7 +406,9 @@ async def get_boolean_tfft(self, **kwargs: Any) -> Dict[str, bool]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -437,7 +452,9 @@ async def put_boolean_tfft(self, array_body: Dict[str, bool], **kwargs: Any) -> request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -469,7 +486,9 @@ async def get_boolean_invalid_null(self, **kwargs: Any) -> Dict[str, bool]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -505,7 +524,9 @@ async def get_boolean_invalid_string(self, **kwargs: Any) -> Dict[str, bool]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -541,7 +562,9 @@ async def get_integer_valid(self, **kwargs: Any) -> Dict[str, int]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -585,7 +608,9 @@ async def put_integer_valid(self, array_body: Dict[str, int], **kwargs: Any) -> request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -617,7 +642,9 @@ async def get_int_invalid_null(self, **kwargs: Any) -> Dict[str, int]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -653,7 +680,9 @@ async def get_int_invalid_string(self, **kwargs: Any) -> Dict[str, int]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -689,7 +718,9 @@ async def get_long_valid(self, **kwargs: Any) -> Dict[str, int]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -733,7 +764,9 @@ async def put_long_valid(self, array_body: Dict[str, int], **kwargs: Any) -> Non request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -765,7 +798,9 @@ async def get_long_invalid_null(self, **kwargs: Any) -> Dict[str, int]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -801,7 +836,9 @@ async def get_long_invalid_string(self, **kwargs: Any) -> Dict[str, int]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -837,7 +874,9 @@ async def get_float_valid(self, **kwargs: Any) -> Dict[str, float]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -881,7 +920,9 @@ async def put_float_valid(self, array_body: Dict[str, float], **kwargs: Any) -> request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -913,7 +954,9 @@ async def get_float_invalid_null(self, **kwargs: Any) -> Dict[str, float]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -949,7 +992,9 @@ async def get_float_invalid_string(self, **kwargs: Any) -> Dict[str, float]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -985,7 +1030,9 @@ async def get_double_valid(self, **kwargs: Any) -> Dict[str, float]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1029,7 +1076,9 @@ async def put_double_valid(self, array_body: Dict[str, float], **kwargs: Any) -> request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1061,7 +1110,9 @@ async def get_double_invalid_null(self, **kwargs: Any) -> Dict[str, float]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1097,7 +1148,9 @@ async def get_double_invalid_string(self, **kwargs: Any) -> Dict[str, float]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1133,7 +1186,9 @@ async def get_string_valid(self, **kwargs: Any) -> Dict[str, str]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1177,7 +1232,9 @@ async def put_string_valid(self, array_body: Dict[str, str], **kwargs: Any) -> N request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1209,7 +1266,9 @@ async def get_string_with_null(self, **kwargs: Any) -> Dict[str, str]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1245,7 +1304,9 @@ async def get_string_with_invalid(self, **kwargs: Any) -> Dict[str, str]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1281,7 +1342,9 @@ async def get_date_valid(self, **kwargs: Any) -> Dict[str, datetime.date]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1325,7 +1388,9 @@ async def put_date_valid(self, array_body: Dict[str, datetime.date], **kwargs: A request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1357,7 +1422,9 @@ async def get_date_invalid_null(self, **kwargs: Any) -> Dict[str, datetime.date] request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1393,7 +1460,9 @@ async def get_date_invalid_chars(self, **kwargs: Any) -> Dict[str, datetime.date request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1430,7 +1499,9 @@ async def get_date_time_valid(self, **kwargs: Any) -> Dict[str, datetime.datetim request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1475,7 +1546,9 @@ async def put_date_time_valid(self, array_body: Dict[str, datetime.datetime], ** request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1507,7 +1580,9 @@ async def get_date_time_invalid_null(self, **kwargs: Any) -> Dict[str, datetime. request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1543,7 +1618,9 @@ async def get_date_time_invalid_chars(self, **kwargs: Any) -> Dict[str, datetime request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1580,7 +1657,9 @@ async def get_date_time_rfc1123_valid(self, **kwargs: Any) -> Dict[str, datetime request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1625,7 +1704,9 @@ async def put_date_time_rfc1123_valid(self, array_body: Dict[str, datetime.datet request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1657,7 +1738,9 @@ async def get_duration_valid(self, **kwargs: Any) -> Dict[str, datetime.timedelt request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1701,7 +1784,9 @@ async def put_duration_valid(self, array_body: Dict[str, datetime.timedelta], ** request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1734,7 +1819,9 @@ async def get_byte_valid(self, **kwargs: Any) -> Dict[str, bytearray]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1779,7 +1866,9 @@ async def put_byte_valid(self, array_body: Dict[str, bytearray], **kwargs: Any) request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1812,7 +1901,9 @@ async def get_byte_invalid_null(self, **kwargs: Any) -> Dict[str, bytearray]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1849,7 +1940,9 @@ async def get_base64_url(self, **kwargs: Any) -> Dict[str, bytes]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1885,7 +1978,9 @@ async def get_complex_null(self, **kwargs: Any) -> Optional[Dict[str, "_models.W request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1921,7 +2016,9 @@ async def get_complex_empty(self, **kwargs: Any) -> Dict[str, "_models.Widget"]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1958,7 +2055,9 @@ async def get_complex_item_null(self, **kwargs: Any) -> Dict[str, "_models.Widge request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1995,7 +2094,9 @@ async def get_complex_item_empty(self, **kwargs: Any) -> Dict[str, "_models.Widg request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2032,7 +2133,9 @@ async def get_complex_valid(self, **kwargs: Any) -> Dict[str, "_models.Widget"]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2077,7 +2180,9 @@ async def put_complex_valid(self, array_body: Dict[str, "_models.Widget"], **kwa request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2109,7 +2214,9 @@ async def get_array_null(self, **kwargs: Any) -> Optional[Dict[str, List[str]]]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2145,7 +2252,9 @@ async def get_array_empty(self, **kwargs: Any) -> Dict[str, List[str]]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2181,7 +2290,9 @@ async def get_array_item_null(self, **kwargs: Any) -> Dict[str, List[str]]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2217,7 +2328,9 @@ async def get_array_item_empty(self, **kwargs: Any) -> Dict[str, List[str]]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2254,7 +2367,9 @@ async def get_array_valid(self, **kwargs: Any) -> Dict[str, List[str]]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2299,7 +2414,9 @@ async def put_array_valid(self, array_body: Dict[str, List[str]], **kwargs: Any) request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2331,7 +2448,9 @@ async def get_dictionary_null(self, **kwargs: Any) -> Dict[str, Dict[str, str]]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2367,7 +2486,9 @@ async def get_dictionary_empty(self, **kwargs: Any) -> Dict[str, Dict[str, str]] request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2404,7 +2525,9 @@ async def get_dictionary_item_null(self, **kwargs: Any) -> Dict[str, Dict[str, s request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2441,7 +2564,9 @@ async def get_dictionary_item_empty(self, **kwargs: Any) -> Dict[str, Dict[str, request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2479,7 +2604,9 @@ async def get_dictionary_valid(self, **kwargs: Any) -> Dict[str, Dict[str, str]] request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2525,7 +2652,9 @@ async def put_dictionary_valid(self, array_body: Dict[str, Dict[str, str]], **kw request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 772300276b5..d96b9d8a95c 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -6,9 +7,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import datetime -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ( ClientAuthenticationError, @@ -28,7 +27,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, List, Optional, TypeVar + from typing import Any, Callable, Dict, List, Optional, TypeVar T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -1397,7 +1396,7 @@ def build_put_dictionary_valid_request( ) # fmt: on -class DictionaryOperations(object): +class DictionaryOperations(object): # pylint: disable=too-many-public-methods """DictionaryOperations operations. You should not instantiate this class directly. Instead, you should create a Client instance that @@ -1441,7 +1440,9 @@ def get_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1480,7 +1481,9 @@ def get_empty( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1529,7 +1532,9 @@ def put_empty( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1564,7 +1569,9 @@ def get_null_value( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1603,7 +1610,9 @@ def get_null_key( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1642,7 +1651,9 @@ def get_empty_string_key( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1681,7 +1692,9 @@ def get_invalid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1720,7 +1733,9 @@ def get_boolean_tfft( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1769,7 +1784,9 @@ def put_boolean_tfft( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1804,7 +1821,9 @@ def get_boolean_invalid_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1843,7 +1862,9 @@ def get_boolean_invalid_string( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1882,7 +1903,9 @@ def get_integer_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1931,7 +1954,9 @@ def put_integer_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1966,7 +1991,9 @@ def get_int_invalid_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2005,7 +2032,9 @@ def get_int_invalid_string( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2044,7 +2073,9 @@ def get_long_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2093,7 +2124,9 @@ def put_long_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2128,7 +2161,9 @@ def get_long_invalid_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2167,7 +2202,9 @@ def get_long_invalid_string( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2206,7 +2243,9 @@ def get_float_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2255,7 +2294,9 @@ def put_float_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2290,7 +2331,9 @@ def get_float_invalid_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2329,7 +2372,9 @@ def get_float_invalid_string( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2368,7 +2413,9 @@ def get_double_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2417,7 +2464,9 @@ def put_double_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2452,7 +2501,9 @@ def get_double_invalid_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2491,7 +2542,9 @@ def get_double_invalid_string( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2530,7 +2583,9 @@ def get_string_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2579,7 +2634,9 @@ def put_string_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2614,7 +2671,9 @@ def get_string_with_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2653,7 +2712,9 @@ def get_string_with_invalid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2692,7 +2753,9 @@ def get_date_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2741,7 +2804,9 @@ def put_date_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2776,7 +2841,9 @@ def get_date_invalid_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2815,7 +2882,9 @@ def get_date_invalid_chars( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2855,7 +2924,9 @@ def get_date_time_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2905,7 +2976,9 @@ def put_date_time_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2940,7 +3013,9 @@ def get_date_time_invalid_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2979,7 +3054,9 @@ def get_date_time_invalid_chars( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3019,7 +3096,9 @@ def get_date_time_rfc1123_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3069,7 +3148,9 @@ def put_date_time_rfc1123_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3104,7 +3185,9 @@ def get_duration_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3153,7 +3236,9 @@ def put_duration_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3189,7 +3274,9 @@ def get_byte_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3239,7 +3326,9 @@ def put_byte_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3275,7 +3364,9 @@ def get_byte_invalid_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3315,7 +3406,9 @@ def get_base64_url( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3354,7 +3447,9 @@ def get_complex_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3393,7 +3488,9 @@ def get_complex_empty( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3433,7 +3530,9 @@ def get_complex_item_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3473,7 +3572,9 @@ def get_complex_item_empty( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3513,7 +3614,9 @@ def get_complex_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3563,7 +3666,9 @@ def put_complex_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3598,7 +3703,9 @@ def get_array_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3637,7 +3744,9 @@ def get_array_empty( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3676,7 +3785,9 @@ def get_array_item_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3715,7 +3826,9 @@ def get_array_item_empty( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3755,7 +3868,9 @@ def get_array_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3805,7 +3920,9 @@ def put_array_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3840,7 +3957,9 @@ def get_dictionary_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3879,7 +3998,9 @@ def get_dictionary_empty( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3919,7 +4040,9 @@ def get_dictionary_item_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -3959,7 +4082,9 @@ def get_dictionary_item_empty( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -4000,7 +4125,9 @@ def get_dictionary_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -4051,7 +4178,9 @@ def put_dictionary_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyDuration/bodyduration/_auto_rest_duration_test_service.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyDuration/bodyduration/_auto_rest_duration_test_service.py index 58cce5ae7e9..d0a64a7fa0a 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyDuration/bodyduration/_auto_rest_duration_test_service.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyDuration/bodyduration/_auto_rest_duration_test_service.py @@ -18,7 +18,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Optional + from typing import Any from azure.core.rest import HttpRequest, HttpResponse diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyDuration/bodyduration/_configuration.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyDuration/bodyduration/_configuration.py index 8b18f16d3f2..134f68d4bef 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyDuration/bodyduration/_configuration.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyDuration/bodyduration/_configuration.py @@ -18,7 +18,7 @@ from typing import Any -class AutoRestDurationTestServiceConfiguration(Configuration): +class AutoRestDurationTestServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestDurationTestService. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyDuration/bodyduration/aio/_auto_rest_duration_test_service.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyDuration/bodyduration/aio/_auto_rest_duration_test_service.py index d870240475e..31bdb4d087d 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyDuration/bodyduration/aio/_auto_rest_duration_test_service.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyDuration/bodyduration/aio/_auto_rest_duration_test_service.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional +from typing import Any, Awaitable from azure.core import AsyncPipelineClient from azure.core.rest import AsyncHttpResponse, HttpRequest diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyDuration/bodyduration/aio/_configuration.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyDuration/bodyduration/aio/_configuration.py index f7cece514e6..029a04192bc 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyDuration/bodyduration/aio/_configuration.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyDuration/bodyduration/aio/_configuration.py @@ -14,7 +14,7 @@ from .._version import VERSION -class AutoRestDurationTestServiceConfiguration(Configuration): +class AutoRestDurationTestServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestDurationTestService. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyDuration/bodyduration/aio/operations/_duration_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyDuration/bodyduration/aio/operations/_duration_operations.py index c5e046e5f25..eb92012dbcb 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyDuration/bodyduration/aio/operations/_duration_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyDuration/bodyduration/aio/operations/_duration_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -6,9 +7,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import datetime -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ( ClientAuthenticationError, @@ -76,7 +75,9 @@ async def get_null(self, **kwargs: Any) -> Optional[datetime.timedelta]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -120,7 +121,9 @@ async def put_positive_duration(self, duration_body: datetime.timedelta, **kwarg request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -152,7 +155,9 @@ async def get_positive_duration(self, **kwargs: Any) -> datetime.timedelta: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -188,7 +193,9 @@ async def get_invalid(self, **kwargs: Any) -> datetime.timedelta: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 e1dce8db854..128e21e33c1 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -6,9 +7,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import datetime -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ( ClientAuthenticationError, @@ -28,7 +27,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar + from typing import Any, Callable, Dict, Optional, TypeVar T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -165,7 +164,9 @@ def get_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -214,7 +215,9 @@ def put_positive_duration( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -249,7 +252,9 @@ def get_positive_duration( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -288,7 +293,9 @@ def get_invalid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyFile/bodyfile/_auto_rest_swagger_bat_file_service.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyFile/bodyfile/_auto_rest_swagger_bat_file_service.py index ae2b0a3219a..6d89df1d01b 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyFile/bodyfile/_auto_rest_swagger_bat_file_service.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyFile/bodyfile/_auto_rest_swagger_bat_file_service.py @@ -18,7 +18,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Optional + from typing import Any from azure.core.rest import HttpRequest, HttpResponse diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyFile/bodyfile/_configuration.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyFile/bodyfile/_configuration.py index 06ec4ffc805..dbafd93dae1 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyFile/bodyfile/_configuration.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyFile/bodyfile/_configuration.py @@ -18,7 +18,7 @@ from typing import Any -class AutoRestSwaggerBATFileServiceConfiguration(Configuration): +class AutoRestSwaggerBATFileServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestSwaggerBATFileService. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyFile/bodyfile/aio/_auto_rest_swagger_bat_file_service.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyFile/bodyfile/aio/_auto_rest_swagger_bat_file_service.py index 379fbe91727..dad727ee3cf 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyFile/bodyfile/aio/_auto_rest_swagger_bat_file_service.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyFile/bodyfile/aio/_auto_rest_swagger_bat_file_service.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional +from typing import Any, Awaitable from azure.core import AsyncPipelineClient from azure.core.rest import AsyncHttpResponse, HttpRequest diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyFile/bodyfile/aio/_configuration.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyFile/bodyfile/aio/_configuration.py index 668abb62f8e..4ae048a7d95 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyFile/bodyfile/aio/_configuration.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyFile/bodyfile/aio/_configuration.py @@ -14,7 +14,7 @@ from .._version import VERSION -class AutoRestSwaggerBATFileServiceConfiguration(Configuration): +class AutoRestSwaggerBATFileServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestSwaggerBATFileService. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyFile/bodyfile/aio/operations/_files_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyFile/bodyfile/aio/operations/_files_operations.py index caa76d0a848..573aff33c78 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyFile/bodyfile/aio/operations/_files_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyFile/bodyfile/aio/operations/_files_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, IO, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, IO, Optional, TypeVar from azure.core.exceptions import ( ClientAuthenticationError, @@ -74,7 +73,9 @@ async def get_file(self, **kwargs: Any) -> IO: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=True, **kwargs) + pipeline_response = await self._client._pipeline.run( # pylint: disable=protected-access + request, stream=True, **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -110,7 +111,9 @@ async def get_file_large(self, **kwargs: Any) -> IO: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=True, **kwargs) + pipeline_response = await self._client._pipeline.run( # pylint: disable=protected-access + request, stream=True, **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -146,7 +149,9 @@ async def get_empty_file(self, **kwargs: Any) -> IO: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=True, **kwargs) + pipeline_response = await self._client._pipeline.run( # pylint: disable=protected-access + request, stream=True, **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: 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 b7cc2ed23bd..dd46fef4376 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ( ClientAuthenticationError, @@ -27,7 +26,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, IO, Optional, TypeVar + from typing import Any, Callable, Dict, IO, Optional, TypeVar T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -140,7 +139,9 @@ def get_file( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=True, **kwargs) + pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access + request, stream=True, **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -179,7 +180,9 @@ def get_file_large( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=True, **kwargs) + pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access + request, stream=True, **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -218,7 +221,9 @@ def get_empty_file( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=True, **kwargs) + pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access + request, stream=True, **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyFormData/bodyformdata/_auto_rest_swagger_bat_form_data_service.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyFormData/bodyformdata/_auto_rest_swagger_bat_form_data_service.py index 23a0239ad95..0853855e9ed 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyFormData/bodyformdata/_auto_rest_swagger_bat_form_data_service.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyFormData/bodyformdata/_auto_rest_swagger_bat_form_data_service.py @@ -18,7 +18,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Optional + from typing import Any from azure.core.rest import HttpRequest, HttpResponse diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyFormData/bodyformdata/_configuration.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyFormData/bodyformdata/_configuration.py index 7e429aea40b..29b659ad257 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyFormData/bodyformdata/_configuration.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyFormData/bodyformdata/_configuration.py @@ -18,7 +18,7 @@ from typing import Any -class AutoRestSwaggerBATFormDataServiceConfiguration(Configuration): +class AutoRestSwaggerBATFormDataServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestSwaggerBATFormDataService. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyFormData/bodyformdata/aio/_auto_rest_swagger_bat_form_data_service.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyFormData/bodyformdata/aio/_auto_rest_swagger_bat_form_data_service.py index cbbcf09b357..3727226adea 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyFormData/bodyformdata/aio/_auto_rest_swagger_bat_form_data_service.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyFormData/bodyformdata/aio/_auto_rest_swagger_bat_form_data_service.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional +from typing import Any, Awaitable from azure.core import AsyncPipelineClient from azure.core.rest import AsyncHttpResponse, HttpRequest diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyFormData/bodyformdata/aio/_configuration.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyFormData/bodyformdata/aio/_configuration.py index 6728a757294..c5eef4f228c 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyFormData/bodyformdata/aio/_configuration.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyFormData/bodyformdata/aio/_configuration.py @@ -14,7 +14,7 @@ from .._version import VERSION -class AutoRestSwaggerBATFormDataServiceConfiguration(Configuration): +class AutoRestSwaggerBATFormDataServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestSwaggerBATFormDataService. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyFormData/bodyformdata/aio/operations/_formdata_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyFormData/bodyformdata/aio/operations/_formdata_operations.py index 1a10afe6d48..b2aa5a02a28 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyFormData/bodyformdata/aio/operations/_formdata_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyFormData/bodyformdata/aio/operations/_formdata_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, IO, List, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, IO, List, Optional, TypeVar from azure.core.exceptions import ( ClientAuthenticationError, @@ -88,7 +87,9 @@ async def upload_file(self, file_content: IO, file_name: str, **kwargs: Any) -> request = _convert_request(request, _files) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=True, **kwargs) + pipeline_response = await self._client._pipeline.run( # pylint: disable=protected-access + request, stream=True, **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -132,7 +133,9 @@ async def upload_file_via_body(self, file_content: IO, **kwargs: Any) -> IO: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=True, **kwargs) + pipeline_response = await self._client._pipeline.run( # pylint: disable=protected-access + request, stream=True, **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -179,7 +182,9 @@ async def upload_files(self, file_content: List[IO], **kwargs: Any) -> IO: request = _convert_request(request, _files) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=True, **kwargs) + pipeline_response = await self._client._pipeline.run( # pylint: disable=protected-access + request, stream=True, **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: 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 d0d97ed7eb5..2986d1c4163 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ( ClientAuthenticationError, @@ -27,7 +26,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, IO, List, 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]] @@ -169,7 +168,9 @@ def upload_file( request = _convert_request(request, _files) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=True, **kwargs) + pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access + request, stream=True, **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -218,7 +219,9 @@ def upload_file_via_body( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=True, **kwargs) + pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access + request, stream=True, **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -270,7 +273,9 @@ def upload_files( request = _convert_request(request, _files) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=True, **kwargs) + pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access + request, stream=True, **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyFormUrlEncodedData/bodyformurlencodeddata/_body_forms_data_url_encoded.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyFormUrlEncodedData/bodyformurlencodeddata/_body_forms_data_url_encoded.py index eb2056242b7..0a4cea88d39 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyFormUrlEncodedData/bodyformurlencodeddata/_body_forms_data_url_encoded.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyFormUrlEncodedData/bodyformurlencodeddata/_body_forms_data_url_encoded.py @@ -18,7 +18,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Optional + from typing import Any from azure.core.rest import HttpRequest, HttpResponse diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyFormUrlEncodedData/bodyformurlencodeddata/_configuration.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyFormUrlEncodedData/bodyformurlencodeddata/_configuration.py index 1630989c8c5..83bcfde1427 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyFormUrlEncodedData/bodyformurlencodeddata/_configuration.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyFormUrlEncodedData/bodyformurlencodeddata/_configuration.py @@ -18,7 +18,7 @@ from typing import Any -class BodyFormsDataURLEncodedConfiguration(Configuration): +class BodyFormsDataURLEncodedConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for BodyFormsDataURLEncoded. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyFormUrlEncodedData/bodyformurlencodeddata/aio/_body_forms_data_url_encoded.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyFormUrlEncodedData/bodyformurlencodeddata/aio/_body_forms_data_url_encoded.py index 5a946a8e3cc..d8d692ea151 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyFormUrlEncodedData/bodyformurlencodeddata/aio/_body_forms_data_url_encoded.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyFormUrlEncodedData/bodyformurlencodeddata/aio/_body_forms_data_url_encoded.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional +from typing import Any, Awaitable from azure.core import AsyncPipelineClient from azure.core.rest import AsyncHttpResponse, HttpRequest diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyFormUrlEncodedData/bodyformurlencodeddata/aio/_configuration.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyFormUrlEncodedData/bodyformurlencodeddata/aio/_configuration.py index 71cd7fc41ca..60d34b8149c 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyFormUrlEncodedData/bodyformurlencodeddata/aio/_configuration.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyFormUrlEncodedData/bodyformurlencodeddata/aio/_configuration.py @@ -14,7 +14,7 @@ from .._version import VERSION -class BodyFormsDataURLEncodedConfiguration(Configuration): +class BodyFormsDataURLEncodedConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for BodyFormsDataURLEncoded. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyFormUrlEncodedData/bodyformurlencodeddata/aio/operations/_formdataurlencoded_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyFormUrlEncodedData/bodyformurlencodeddata/aio/operations/_formdataurlencoded_operations.py index feab8719888..0e89e6a8db6 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyFormUrlEncodedData/bodyformurlencodeddata/aio/operations/_formdataurlencoded_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyFormUrlEncodedData/bodyformurlencodeddata/aio/operations/_formdataurlencoded_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar, Union from azure.core.exceptions import ( ClientAuthenticationError, @@ -110,7 +109,9 @@ async def update_pet_with_form( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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, 405]: @@ -162,7 +163,9 @@ async def partial_constant_body(self, service: str, access_token: str, **kwargs: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 a420835407c..a51c44f907d 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ( ClientAuthenticationError, @@ -27,7 +26,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union + from typing import Any, Callable, Dict, Optional, TypeVar, Union T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -165,7 +164,9 @@ def update_pet_with_form( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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, 405]: @@ -223,7 +224,9 @@ def partial_constant_body( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyInteger/bodyinteger/_auto_rest_integer_test_service.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyInteger/bodyinteger/_auto_rest_integer_test_service.py index 7f79d0cdb83..746cbb63f80 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyInteger/bodyinteger/_auto_rest_integer_test_service.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyInteger/bodyinteger/_auto_rest_integer_test_service.py @@ -18,7 +18,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Optional + from typing import Any from azure.core.rest import HttpRequest, HttpResponse diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyInteger/bodyinteger/_configuration.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyInteger/bodyinteger/_configuration.py index fc5968bb1a7..66bb98cc16b 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyInteger/bodyinteger/_configuration.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyInteger/bodyinteger/_configuration.py @@ -18,7 +18,7 @@ from typing import Any -class AutoRestIntegerTestServiceConfiguration(Configuration): +class AutoRestIntegerTestServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestIntegerTestService. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyInteger/bodyinteger/aio/_auto_rest_integer_test_service.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyInteger/bodyinteger/aio/_auto_rest_integer_test_service.py index 2534f52b683..f436cc08cf9 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyInteger/bodyinteger/aio/_auto_rest_integer_test_service.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyInteger/bodyinteger/aio/_auto_rest_integer_test_service.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional +from typing import Any, Awaitable from azure.core import AsyncPipelineClient from azure.core.rest import AsyncHttpResponse, HttpRequest diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyInteger/bodyinteger/aio/_configuration.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyInteger/bodyinteger/aio/_configuration.py index 68ab8b27e32..5a760bb48ef 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyInteger/bodyinteger/aio/_configuration.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyInteger/bodyinteger/aio/_configuration.py @@ -14,7 +14,7 @@ from .._version import VERSION -class AutoRestIntegerTestServiceConfiguration(Configuration): +class AutoRestIntegerTestServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestIntegerTestService. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyInteger/bodyinteger/aio/operations/_int_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyInteger/bodyinteger/aio/operations/_int_operations.py index 55f6dd0ca85..7fe260db529 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyInteger/bodyinteger/aio/operations/_int_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyInteger/bodyinteger/aio/operations/_int_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -6,9 +7,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import datetime -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ( ClientAuthenticationError, @@ -86,7 +85,9 @@ async def get_null(self, **kwargs: Any) -> Optional[int]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -122,7 +123,9 @@ async def get_invalid(self, **kwargs: Any) -> int: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -158,7 +161,9 @@ async def get_overflow_int32(self, **kwargs: Any) -> int: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -194,7 +199,9 @@ async def get_underflow_int32(self, **kwargs: Any) -> int: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -230,7 +237,9 @@ async def get_overflow_int64(self, **kwargs: Any) -> int: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -266,7 +275,9 @@ async def get_underflow_int64(self, **kwargs: Any) -> int: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -310,7 +321,9 @@ async def put_max32(self, int_body: int, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -350,7 +363,9 @@ async def put_max64(self, int_body: int, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -390,7 +405,9 @@ async def put_min32(self, int_body: int, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -430,7 +447,9 @@ async def put_min64(self, int_body: int, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -462,7 +481,9 @@ async def get_unix_time(self, **kwargs: Any) -> datetime.datetime: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -506,7 +527,9 @@ async def put_unix_time_date(self, int_body: datetime.datetime, **kwargs: Any) - request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -538,7 +561,9 @@ async def get_invalid_unix_time(self, **kwargs: Any) -> datetime.datetime: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -574,7 +599,9 @@ async def get_null_unix_time(self, **kwargs: Any) -> Optional[datetime.datetime] request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 6f83f4e1cda..6a20ff8004a 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -6,9 +7,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import datetime -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ( ClientAuthenticationError, @@ -28,7 +27,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar + from typing import Any, Callable, Dict, Optional, TypeVar T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -381,7 +380,9 @@ def get_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -420,7 +421,9 @@ def get_invalid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -459,7 +462,9 @@ def get_overflow_int32( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -498,7 +503,9 @@ def get_underflow_int32( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -537,7 +544,9 @@ def get_overflow_int64( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -576,7 +585,9 @@ def get_underflow_int64( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -625,7 +636,9 @@ def put_max32( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -670,7 +683,9 @@ def put_max64( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -715,7 +730,9 @@ def put_min32( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -760,7 +777,9 @@ def put_min64( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -795,7 +814,9 @@ def get_unix_time( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -844,7 +865,9 @@ def put_unix_time_date( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -879,7 +902,9 @@ def get_invalid_unix_time( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -918,7 +943,9 @@ def get_null_unix_time( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyNumber/bodynumber/_auto_rest_number_test_service.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyNumber/bodynumber/_auto_rest_number_test_service.py index 179fd0d2403..43b4d018764 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyNumber/bodynumber/_auto_rest_number_test_service.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyNumber/bodynumber/_auto_rest_number_test_service.py @@ -18,7 +18,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Optional + from typing import Any from azure.core.rest import HttpRequest, HttpResponse diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyNumber/bodynumber/_configuration.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyNumber/bodynumber/_configuration.py index da1fbd323a5..a7668be4f77 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyNumber/bodynumber/_configuration.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyNumber/bodynumber/_configuration.py @@ -18,7 +18,7 @@ from typing import Any -class AutoRestNumberTestServiceConfiguration(Configuration): +class AutoRestNumberTestServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestNumberTestService. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyNumber/bodynumber/aio/_auto_rest_number_test_service.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyNumber/bodynumber/aio/_auto_rest_number_test_service.py index 0f3cdc6d48a..89e30ff9a1d 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyNumber/bodynumber/aio/_auto_rest_number_test_service.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyNumber/bodynumber/aio/_auto_rest_number_test_service.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional +from typing import Any, Awaitable from azure.core import AsyncPipelineClient from azure.core.rest import AsyncHttpResponse, HttpRequest diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyNumber/bodynumber/aio/_configuration.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyNumber/bodynumber/aio/_configuration.py index aa79cc51c32..40dac1b308b 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyNumber/bodynumber/aio/_configuration.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyNumber/bodynumber/aio/_configuration.py @@ -14,7 +14,7 @@ from .._version import VERSION -class AutoRestNumberTestServiceConfiguration(Configuration): +class AutoRestNumberTestServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestNumberTestService. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyNumber/bodynumber/aio/operations/_number_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyNumber/bodynumber/aio/operations/_number_operations.py index 54d1d8e4083..6dccebe2124 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyNumber/bodynumber/aio/operations/_number_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyNumber/bodynumber/aio/operations/_number_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ( ClientAuthenticationError, @@ -54,7 +53,7 @@ ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] -class NumberOperations: +class NumberOperations: # pylint: disable=too-many-public-methods """NumberOperations async operations. You should not instantiate this class directly. Instead, you should create a Client instance that @@ -95,7 +94,9 @@ async def get_null(self, **kwargs: Any) -> Optional[float]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -131,7 +132,9 @@ async def get_invalid_float(self, **kwargs: Any) -> float: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -167,7 +170,9 @@ async def get_invalid_double(self, **kwargs: Any) -> float: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -203,7 +208,9 @@ async def get_invalid_decimal(self, **kwargs: Any) -> float: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -247,7 +254,9 @@ async def put_big_float(self, number_body: float, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -279,7 +288,9 @@ async def get_big_float(self, **kwargs: Any) -> float: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -323,7 +334,9 @@ async def put_big_double(self, number_body: float, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -355,7 +368,9 @@ async def get_big_double(self, **kwargs: Any) -> float: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -399,7 +414,9 @@ async def put_big_double_positive_decimal(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -431,7 +448,9 @@ async def get_big_double_positive_decimal(self, **kwargs: Any) -> float: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -475,7 +494,9 @@ async def put_big_double_negative_decimal(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -507,7 +528,9 @@ async def get_big_double_negative_decimal(self, **kwargs: Any) -> float: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -551,7 +574,9 @@ async def put_big_decimal(self, number_body: float, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -583,7 +608,9 @@ async def get_big_decimal(self, **kwargs: Any) -> float: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -627,7 +654,9 @@ async def put_big_decimal_positive_decimal(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -659,7 +688,9 @@ async def get_big_decimal_positive_decimal(self, **kwargs: Any) -> float: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -703,7 +734,9 @@ async def put_big_decimal_negative_decimal(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -735,7 +768,9 @@ async def get_big_decimal_negative_decimal(self, **kwargs: Any) -> float: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -779,7 +814,9 @@ async def put_small_float(self, number_body: float, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -811,7 +848,9 @@ async def get_small_float(self, **kwargs: Any) -> float: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -855,7 +894,9 @@ async def put_small_double(self, number_body: float, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -887,7 +928,9 @@ async def get_small_double(self, **kwargs: Any) -> float: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -931,7 +974,9 @@ async def put_small_decimal(self, number_body: float, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -963,7 +1008,9 @@ async def get_small_decimal(self, **kwargs: Any) -> float: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 d77be7e5071..fe7d419130c 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ( ClientAuthenticationError, @@ -27,7 +26,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar + from typing import Any, Callable, Dict, Optional, TypeVar T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -564,7 +563,7 @@ def build_get_small_decimal_request( ) # fmt: on -class NumberOperations(object): +class NumberOperations(object): # pylint: disable=too-many-public-methods """NumberOperations operations. You should not instantiate this class directly. Instead, you should create a Client instance that @@ -608,7 +607,9 @@ def get_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -647,7 +648,9 @@ def get_invalid_float( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -686,7 +689,9 @@ def get_invalid_double( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -725,7 +730,9 @@ def get_invalid_decimal( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -774,7 +781,9 @@ def put_big_float( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -809,7 +818,9 @@ def get_big_float( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -858,7 +869,9 @@ def put_big_double( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -893,7 +906,9 @@ def get_big_double( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -940,7 +955,9 @@ def put_big_double_positive_decimal( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -975,7 +992,9 @@ def get_big_double_positive_decimal( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1022,7 +1041,9 @@ def put_big_double_negative_decimal( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1057,7 +1078,9 @@ def get_big_double_negative_decimal( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1106,7 +1129,9 @@ def put_big_decimal( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1141,7 +1166,9 @@ def get_big_decimal( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1188,7 +1215,9 @@ def put_big_decimal_positive_decimal( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1223,7 +1252,9 @@ def get_big_decimal_positive_decimal( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1270,7 +1301,9 @@ def put_big_decimal_negative_decimal( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1305,7 +1338,9 @@ def get_big_decimal_negative_decimal( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1354,7 +1389,9 @@ def put_small_float( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1389,7 +1426,9 @@ def get_small_float( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1438,7 +1477,9 @@ def put_small_double( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1473,7 +1514,9 @@ def get_small_double( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1522,7 +1565,9 @@ def put_small_decimal( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1557,7 +1602,9 @@ def get_small_decimal( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyString/bodystring/_auto_rest_swagger_bat_service.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyString/bodystring/_auto_rest_swagger_bat_service.py index 752a41e29e0..9702c0c53f5 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyString/bodystring/_auto_rest_swagger_bat_service.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyString/bodystring/_auto_rest_swagger_bat_service.py @@ -18,7 +18,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Optional + from typing import Any from azure.core.rest import HttpRequest, HttpResponse diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyString/bodystring/_configuration.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyString/bodystring/_configuration.py index 79befee47c6..507d1a2123d 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyString/bodystring/_configuration.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyString/bodystring/_configuration.py @@ -18,7 +18,7 @@ from typing import Any -class AutoRestSwaggerBATServiceConfiguration(Configuration): +class AutoRestSwaggerBATServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestSwaggerBATService. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyString/bodystring/aio/_auto_rest_swagger_bat_service.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyString/bodystring/aio/_auto_rest_swagger_bat_service.py index 196bebd74bc..20bad6b97a8 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyString/bodystring/aio/_auto_rest_swagger_bat_service.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyString/bodystring/aio/_auto_rest_swagger_bat_service.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional +from typing import Any, Awaitable from azure.core import AsyncPipelineClient from azure.core.rest import AsyncHttpResponse, HttpRequest diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyString/bodystring/aio/_configuration.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyString/bodystring/aio/_configuration.py index b78427e6b41..9f14e32ca57 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyString/bodystring/aio/_configuration.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyString/bodystring/aio/_configuration.py @@ -14,7 +14,7 @@ from .._version import VERSION -class AutoRestSwaggerBATServiceConfiguration(Configuration): +class AutoRestSwaggerBATServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestSwaggerBATService. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyString/bodystring/aio/operations/_enum_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyString/bodystring/aio/operations/_enum_operations.py index 03937948fe8..d3adc2702c5 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyString/bodystring/aio/operations/_enum_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyString/bodystring/aio/operations/_enum_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar, Union from azure.core.exceptions import ( ClientAuthenticationError, @@ -77,7 +76,9 @@ async def get_not_expandable(self, **kwargs: Any) -> Union[str, "_models.Colors" request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -121,7 +122,9 @@ async def put_not_expandable(self, string_body: Union[str, "_models.Colors"], ** request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -153,7 +156,9 @@ async def get_referenced(self, **kwargs: Any) -> Union[str, "_models.Colors"]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -197,7 +202,9 @@ async def put_referenced(self, enum_string_body: Union[str, "_models.Colors"], * request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -229,7 +236,9 @@ async def get_referenced_constant(self, **kwargs: Any) -> "_models.RefColorConst request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -278,7 +287,9 @@ async def put_referenced_constant(self, field1: Optional[str] = None, **kwargs: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyString/bodystring/aio/operations/_string_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyString/bodystring/aio/operations/_string_operations.py index d0fd0e470a0..00b23a72517 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyString/bodystring/aio/operations/_string_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyString/bodystring/aio/operations/_string_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ( ClientAuthenticationError, @@ -84,7 +83,9 @@ async def get_null(self, **kwargs: Any) -> Optional[str]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -131,7 +132,9 @@ async def put_null(self, string_body: Optional[str] = None, **kwargs: Any) -> No request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -163,7 +166,9 @@ async def get_empty(self, **kwargs: Any) -> str: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -207,7 +212,9 @@ async def put_empty(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -239,7 +246,9 @@ async def get_mbcs(self, **kwargs: Any) -> str: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -286,7 +295,9 @@ async def put_mbcs(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -320,7 +331,9 @@ async def get_whitespace(self, **kwargs: Any) -> str: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -369,7 +382,9 @@ async def put_whitespace(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -401,7 +416,9 @@ async def get_not_provided(self, **kwargs: Any) -> str: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -437,7 +454,9 @@ async def get_base64_encoded(self, **kwargs: Any) -> bytearray: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -473,7 +492,9 @@ async def get_base64_url_encoded(self, **kwargs: Any) -> bytes: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -517,7 +538,9 @@ async def put_base64_url_encoded(self, string_body: bytes, **kwargs: Any) -> Non request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -549,7 +572,9 @@ async def get_null_base64_url_encoded(self, **kwargs: Any) -> Optional[bytes]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 7c4623a2054..e3ef36307ff 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ( ClientAuthenticationError, @@ -27,7 +26,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union + from typing import Any, Callable, Dict, Optional, TypeVar, Union T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -212,7 +211,9 @@ def get_not_expandable( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -261,7 +262,9 @@ def put_not_expandable( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -296,7 +299,9 @@ def get_referenced( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -345,7 +350,9 @@ def put_referenced( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -380,7 +387,9 @@ def get_referenced_constant( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -434,7 +443,9 @@ def put_referenced_constant( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 e10e7ee11c7..2b2dc3c2578 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ( ClientAuthenticationError, @@ -27,7 +26,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar + from typing import Any, Callable, Dict, Optional, TypeVar T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -366,7 +365,9 @@ def get_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -418,7 +419,9 @@ def put_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -453,7 +456,9 @@ def get_empty( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -500,7 +505,9 @@ def put_empty( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -535,7 +542,9 @@ def get_mbcs( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -585,7 +594,9 @@ def put_mbcs( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -622,7 +633,9 @@ def get_whitespace( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -674,7 +687,9 @@ def put_whitespace( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -709,7 +724,9 @@ def get_not_provided( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -748,7 +765,9 @@ def get_base64_encoded( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -787,7 +806,9 @@ def get_base64_url_encoded( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -836,7 +857,9 @@ def put_base64_url_encoded( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -871,7 +894,9 @@ def get_null_base64_url_encoded( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyTime/bodytime/_auto_rest_time_test_service.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyTime/bodytime/_auto_rest_time_test_service.py index 45b7958c9bf..a367cbf2d86 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyTime/bodytime/_auto_rest_time_test_service.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyTime/bodytime/_auto_rest_time_test_service.py @@ -18,7 +18,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Optional + from typing import Any from azure.core.rest import HttpRequest, HttpResponse diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyTime/bodytime/_configuration.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyTime/bodytime/_configuration.py index afe602fc9d6..e2c9aebec5c 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyTime/bodytime/_configuration.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyTime/bodytime/_configuration.py @@ -18,7 +18,7 @@ from typing import Any -class AutoRestTimeTestServiceConfiguration(Configuration): +class AutoRestTimeTestServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestTimeTestService. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyTime/bodytime/aio/_auto_rest_time_test_service.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyTime/bodytime/aio/_auto_rest_time_test_service.py index d73a6264b05..2d5b9fec5c1 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyTime/bodytime/aio/_auto_rest_time_test_service.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyTime/bodytime/aio/_auto_rest_time_test_service.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional +from typing import Any, Awaitable from azure.core import AsyncPipelineClient from azure.core.rest import AsyncHttpResponse, HttpRequest diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyTime/bodytime/aio/_configuration.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyTime/bodytime/aio/_configuration.py index b77c2f46895..4cc72dc2ebf 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyTime/bodytime/aio/_configuration.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyTime/bodytime/aio/_configuration.py @@ -14,7 +14,7 @@ from .._version import VERSION -class AutoRestTimeTestServiceConfiguration(Configuration): +class AutoRestTimeTestServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestTimeTestService. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyTime/bodytime/aio/operations/_time_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyTime/bodytime/aio/operations/_time_operations.py index 3c0505fc4c1..817946bb5d2 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyTime/bodytime/aio/operations/_time_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyTime/bodytime/aio/operations/_time_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -6,9 +7,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import datetime -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ( ClientAuthenticationError, @@ -71,7 +70,9 @@ async def get(self, **kwargs: Any) -> datetime.time: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -115,7 +116,9 @@ async def put(self, time_body: datetime.time, **kwargs: Any) -> str: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 4011d6cc00e..cf9945e25ca 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -6,9 +7,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import datetime -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ( ClientAuthenticationError, @@ -28,7 +27,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar + from typing import Any, Callable, Dict, Optional, TypeVar T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -125,7 +124,9 @@ def get( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -174,7 +175,9 @@ def put( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/Constants/constants/_auto_rest_swagger_constant_service.py b/test/vanilla/legacy/Expected/AcceptanceTests/Constants/constants/_auto_rest_swagger_constant_service.py index 899e9f7c8d6..476bcebd623 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/Constants/constants/_auto_rest_swagger_constant_service.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/Constants/constants/_auto_rest_swagger_constant_service.py @@ -18,7 +18,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Optional + from typing import Any from azure.core.rest import HttpRequest, HttpResponse diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/Constants/constants/_configuration.py b/test/vanilla/legacy/Expected/AcceptanceTests/Constants/constants/_configuration.py index 2c1083cce5b..348b23b2249 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/Constants/constants/_configuration.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/Constants/constants/_configuration.py @@ -18,17 +18,23 @@ from typing import Any -class AutoRestSwaggerConstantServiceConfiguration(Configuration): +class AutoRestSwaggerConstantServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestSwaggerConstantService. Note that all parameters used to create this instance are saved as instance attributes. - :keyword header_constant: Constant header property on the client that is a required parameter for operation 'constants_putClientConstants'. The default value is True. Note that overriding this default value may result in unsupported behavior. + :keyword header_constant: Constant header property on the client that is a required parameter + for operation 'constants_putClientConstants'. The default value is True. Note that overriding + this default value may result in unsupported behavior. :paramtype header_constant: bool - :keyword query_constant: Constant query property on the client that is a required parameter for operation 'constants_putClientConstants'. The default value is 100. Note that overriding this default value may result in unsupported behavior. + :keyword query_constant: Constant query property on the client that is a required parameter for + operation 'constants_putClientConstants'. The default value is 100. Note that overriding this + default value may result in unsupported behavior. :paramtype query_constant: int - :keyword path_constant: Constant path property on the client that is a required parameter for operation 'constants_putClientConstants'. The default value is "path". Note that overriding this default value may result in unsupported behavior. + :keyword path_constant: Constant path property on the client that is a required parameter for + operation 'constants_putClientConstants'. The default value is "path". Note that overriding + this default value may result in unsupported behavior. :paramtype path_constant: str """ diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/Constants/constants/aio/_auto_rest_swagger_constant_service.py b/test/vanilla/legacy/Expected/AcceptanceTests/Constants/constants/aio/_auto_rest_swagger_constant_service.py index bd83a105609..1e5dfdd6954 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/Constants/constants/aio/_auto_rest_swagger_constant_service.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/Constants/constants/aio/_auto_rest_swagger_constant_service.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional +from typing import Any, Awaitable from azure.core import AsyncPipelineClient from azure.core.rest import AsyncHttpResponse, HttpRequest diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/Constants/constants/aio/_configuration.py b/test/vanilla/legacy/Expected/AcceptanceTests/Constants/constants/aio/_configuration.py index 0f10bc85b73..220039724e9 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/Constants/constants/aio/_configuration.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/Constants/constants/aio/_configuration.py @@ -14,17 +14,23 @@ from .._version import VERSION -class AutoRestSwaggerConstantServiceConfiguration(Configuration): +class AutoRestSwaggerConstantServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestSwaggerConstantService. Note that all parameters used to create this instance are saved as instance attributes. - :keyword header_constant: Constant header property on the client that is a required parameter for operation 'constants_putClientConstants'. The default value is True. Note that overriding this default value may result in unsupported behavior. + :keyword header_constant: Constant header property on the client that is a required parameter + for operation 'constants_putClientConstants'. The default value is True. Note that overriding + this default value may result in unsupported behavior. :paramtype header_constant: bool - :keyword query_constant: Constant query property on the client that is a required parameter for operation 'constants_putClientConstants'. The default value is 100. Note that overriding this default value may result in unsupported behavior. + :keyword query_constant: Constant query property on the client that is a required parameter for + operation 'constants_putClientConstants'. The default value is 100. Note that overriding this + default value may result in unsupported behavior. :paramtype query_constant: int - :keyword path_constant: Constant path property on the client that is a required parameter for operation 'constants_putClientConstants'. The default value is "path". Note that overriding this default value may result in unsupported behavior. + :keyword path_constant: Constant path property on the client that is a required parameter for + operation 'constants_putClientConstants'. The default value is "path". Note that overriding + this default value may result in unsupported behavior. :paramtype path_constant: str """ diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/Constants/constants/aio/operations/_contants_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/Constants/constants/aio/operations/_contants_operations.py index 38088f57e97..e7d2f15e09d 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/Constants/constants/aio/operations/_contants_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/Constants/constants/aio/operations/_contants_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar, Union from azure.core.exceptions import ( ClientAuthenticationError, @@ -97,7 +96,9 @@ async def put_no_model_as_string_no_required_two_value_no_default( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [201]: @@ -137,7 +138,9 @@ async def put_no_model_as_string_no_required_two_value_default( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [201]: @@ -175,7 +178,9 @@ async def put_no_model_as_string_no_required_one_value_no_default( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [201]: @@ -213,7 +218,9 @@ async def put_no_model_as_string_no_required_one_value_default( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [201]: @@ -251,7 +258,9 @@ async def put_no_model_as_string_required_two_value_no_default( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [201]: @@ -289,7 +298,9 @@ async def put_no_model_as_string_required_two_value_default( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [201]: @@ -328,7 +339,9 @@ async def put_no_model_as_string_required_one_value_no_default(self, **kwargs: A request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [201]: @@ -367,7 +380,9 @@ async def put_no_model_as_string_required_one_value_default(self, **kwargs: Any) request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [201]: @@ -407,7 +422,9 @@ async def put_model_as_string_no_required_two_value_no_default( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [201]: @@ -447,7 +464,9 @@ async def put_model_as_string_no_required_two_value_default( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [201]: @@ -487,7 +506,9 @@ async def put_model_as_string_no_required_one_value_no_default( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [201]: @@ -527,7 +548,9 @@ async def put_model_as_string_no_required_one_value_default( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [201]: @@ -565,7 +588,9 @@ async def put_model_as_string_required_two_value_no_default( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [201]: @@ -603,7 +628,9 @@ async def put_model_as_string_required_two_value_default( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [201]: @@ -641,7 +668,9 @@ async def put_model_as_string_required_one_value_no_default( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [201]: @@ -679,7 +708,9 @@ async def put_model_as_string_required_one_value_default( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [201]: @@ -714,7 +745,9 @@ async def put_client_constants(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 5d7585dd4b7..7f2f07f83d5 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ( ClientAuthenticationError, @@ -27,7 +26,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union + from typing import Any, Callable, Dict, Optional, TypeVar, Union T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -464,7 +463,9 @@ def put_no_model_as_string_no_required_two_value_no_default( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [201]: @@ -505,7 +506,9 @@ def put_no_model_as_string_no_required_two_value_default( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [201]: @@ -546,7 +549,9 @@ def put_no_model_as_string_no_required_one_value_no_default( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [201]: @@ -587,7 +592,9 @@ def put_no_model_as_string_no_required_one_value_default( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [201]: @@ -628,7 +635,9 @@ def put_no_model_as_string_required_two_value_no_default( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [201]: @@ -669,7 +678,9 @@ def put_no_model_as_string_required_two_value_default( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [201]: @@ -711,7 +722,9 @@ def put_no_model_as_string_required_one_value_no_default( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [201]: @@ -753,7 +766,9 @@ def put_no_model_as_string_required_one_value_default( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [201]: @@ -794,7 +809,9 @@ def put_model_as_string_no_required_two_value_no_default( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [201]: @@ -835,7 +852,9 @@ def put_model_as_string_no_required_two_value_default( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [201]: @@ -876,7 +895,9 @@ def put_model_as_string_no_required_one_value_no_default( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [201]: @@ -917,7 +938,9 @@ def put_model_as_string_no_required_one_value_default( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [201]: @@ -958,7 +981,9 @@ def put_model_as_string_required_two_value_no_default( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [201]: @@ -999,7 +1024,9 @@ def put_model_as_string_required_two_value_default( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [201]: @@ -1040,7 +1067,9 @@ def put_model_as_string_required_one_value_no_default( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [201]: @@ -1081,7 +1110,9 @@ def put_model_as_string_required_one_value_default( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [201]: @@ -1119,7 +1150,9 @@ def put_client_constants( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/_configuration.py b/test/vanilla/legacy/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/_configuration.py index 164a6df014a..054bd122156 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/_configuration.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/_configuration.py @@ -18,7 +18,7 @@ from typing import Any -class AutoRestParameterizedHostTestClientConfiguration(Configuration): +class AutoRestParameterizedHostTestClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestParameterizedHostTestClient. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/aio/_configuration.py b/test/vanilla/legacy/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/aio/_configuration.py index cf7cbb01aaf..54699ce96b9 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/aio/_configuration.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/aio/_configuration.py @@ -14,7 +14,7 @@ from .._version import VERSION -class AutoRestParameterizedHostTestClientConfiguration(Configuration): +class AutoRestParameterizedHostTestClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestParameterizedHostTestClient. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/aio/operations/_paths_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/aio/operations/_paths_operations.py index 14c724b05ec..1a153118780 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/aio/operations/_paths_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/aio/operations/_paths_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ( ClientAuthenticationError, @@ -76,7 +75,9 @@ async def get_empty(self, account_name: str, **kwargs: Any) -> None: } request.url = self._client.format_url(request.url, **path_format_arguments) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 05f2bebe9bf..664c8c47974 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ( ClientAuthenticationError, @@ -27,7 +26,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar + from typing import Any, Callable, Dict, Optional, TypeVar T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -107,7 +106,9 @@ def get_empty( } request.url = self._client.format_url(request.url, **path_format_arguments) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/CustomBaseUriMoreOptions/custombaseurlmoreoptions/_configuration.py b/test/vanilla/legacy/Expected/AcceptanceTests/CustomBaseUriMoreOptions/custombaseurlmoreoptions/_configuration.py index 9d325677e59..2b9f03db1a6 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/CustomBaseUriMoreOptions/custombaseurlmoreoptions/_configuration.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/CustomBaseUriMoreOptions/custombaseurlmoreoptions/_configuration.py @@ -18,7 +18,9 @@ from typing import Any -class AutoRestParameterizedCustomHostTestClientConfiguration(Configuration): +class AutoRestParameterizedCustomHostTestClientConfiguration( + Configuration +): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestParameterizedCustomHostTestClient. Note that all parameters used to create this instance are saved as instance @@ -26,7 +28,8 @@ class AutoRestParameterizedCustomHostTestClientConfiguration(Configuration): :param subscription_id: The subscription id with value 'test12'. :type subscription_id: str - :param dns_suffix: A string value that is used as a global part of the parameterized host. Default value 'host'. + :param dns_suffix: A string value that is used as a global part of the parameterized host. + Default value 'host'. :type dns_suffix: str """ diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/CustomBaseUriMoreOptions/custombaseurlmoreoptions/aio/_configuration.py b/test/vanilla/legacy/Expected/AcceptanceTests/CustomBaseUriMoreOptions/custombaseurlmoreoptions/aio/_configuration.py index b99c9e62730..da0209e9a1f 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/CustomBaseUriMoreOptions/custombaseurlmoreoptions/aio/_configuration.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/CustomBaseUriMoreOptions/custombaseurlmoreoptions/aio/_configuration.py @@ -14,7 +14,9 @@ from .._version import VERSION -class AutoRestParameterizedCustomHostTestClientConfiguration(Configuration): +class AutoRestParameterizedCustomHostTestClientConfiguration( + Configuration +): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestParameterizedCustomHostTestClient. Note that all parameters used to create this instance are saved as instance @@ -22,7 +24,8 @@ class AutoRestParameterizedCustomHostTestClientConfiguration(Configuration): :param subscription_id: The subscription id with value 'test12'. :type subscription_id: str - :param dns_suffix: A string value that is used as a global part of the parameterized host. Default value 'host'. + :param dns_suffix: A string value that is used as a global part of the parameterized host. + Default value 'host'. :type dns_suffix: str """ diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/CustomBaseUriMoreOptions/custombaseurlmoreoptions/aio/operations/_paths_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/CustomBaseUriMoreOptions/custombaseurlmoreoptions/aio/operations/_paths_operations.py index 1f9e1739dcb..8f2d8ba3b47 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/CustomBaseUriMoreOptions/custombaseurlmoreoptions/aio/operations/_paths_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/CustomBaseUriMoreOptions/custombaseurlmoreoptions/aio/operations/_paths_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ( ClientAuthenticationError, @@ -90,7 +89,9 @@ async def get_empty( } request.url = self._client.format_url(request.url, **path_format_arguments) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 8969ce50da1..8fd098c4c94 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ( ClientAuthenticationError, @@ -27,7 +26,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar + from typing import Any, Callable, Dict, Optional, TypeVar T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -139,7 +138,9 @@ def get_empty( } request.url = self._client.format_url(request.url, **path_format_arguments) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/ExtensibleEnums/extensibleenumsswagger/_configuration.py b/test/vanilla/legacy/Expected/AcceptanceTests/ExtensibleEnums/extensibleenumsswagger/_configuration.py index 32885416ee0..1655c68a216 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/ExtensibleEnums/extensibleenumsswagger/_configuration.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/ExtensibleEnums/extensibleenumsswagger/_configuration.py @@ -18,7 +18,7 @@ from typing import Any -class PetStoreIncConfiguration(Configuration): +class PetStoreIncConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for PetStoreInc. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/ExtensibleEnums/extensibleenumsswagger/_pet_store_inc.py b/test/vanilla/legacy/Expected/AcceptanceTests/ExtensibleEnums/extensibleenumsswagger/_pet_store_inc.py index a81ac3fde50..615f9dbe766 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/ExtensibleEnums/extensibleenumsswagger/_pet_store_inc.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/ExtensibleEnums/extensibleenumsswagger/_pet_store_inc.py @@ -18,7 +18,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Optional + from typing import Any from azure.core.rest import HttpRequest, HttpResponse diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/ExtensibleEnums/extensibleenumsswagger/aio/_configuration.py b/test/vanilla/legacy/Expected/AcceptanceTests/ExtensibleEnums/extensibleenumsswagger/aio/_configuration.py index f20dc3de00b..dbcf37bdcd3 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/ExtensibleEnums/extensibleenumsswagger/aio/_configuration.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/ExtensibleEnums/extensibleenumsswagger/aio/_configuration.py @@ -14,7 +14,7 @@ from .._version import VERSION -class PetStoreIncConfiguration(Configuration): +class PetStoreIncConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for PetStoreInc. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/ExtensibleEnums/extensibleenumsswagger/aio/_pet_store_inc.py b/test/vanilla/legacy/Expected/AcceptanceTests/ExtensibleEnums/extensibleenumsswagger/aio/_pet_store_inc.py index 7b19bbd46d8..360f35e9108 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/ExtensibleEnums/extensibleenumsswagger/aio/_pet_store_inc.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/ExtensibleEnums/extensibleenumsswagger/aio/_pet_store_inc.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional +from typing import Any, Awaitable from azure.core import AsyncPipelineClient from azure.core.rest import AsyncHttpResponse, HttpRequest diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/ExtensibleEnums/extensibleenumsswagger/aio/operations/_pet_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/ExtensibleEnums/extensibleenumsswagger/aio/operations/_pet_operations.py index ef42db8457a..1c2ec434be4 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/ExtensibleEnums/extensibleenumsswagger/aio/operations/_pet_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/ExtensibleEnums/extensibleenumsswagger/aio/operations/_pet_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ( ClientAuthenticationError, @@ -73,7 +72,9 @@ async def get_by_pet_id(self, pet_id: str, **kwargs: Any) -> "_models.Pet": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -119,7 +120,9 @@ async def add_pet(self, pet_param: Optional["_models.Pet"] = None, **kwargs: Any request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 c71aa2c6f0e..d0be2db5816 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ( ClientAuthenticationError, @@ -27,7 +26,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar + from typing import Any, Callable, Dict, Optional, TypeVar T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -135,7 +134,9 @@ def get_by_pet_id( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -186,7 +187,9 @@ def add_pet( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/Header/header/_auto_rest_swagger_bat_header_service.py b/test/vanilla/legacy/Expected/AcceptanceTests/Header/header/_auto_rest_swagger_bat_header_service.py index c466b6dceb0..de0ea8a5397 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/Header/header/_auto_rest_swagger_bat_header_service.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/Header/header/_auto_rest_swagger_bat_header_service.py @@ -18,7 +18,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Optional + from typing import Any from azure.core.rest import HttpRequest, HttpResponse diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/Header/header/_configuration.py b/test/vanilla/legacy/Expected/AcceptanceTests/Header/header/_configuration.py index 25a01661b0c..8a24111f859 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/Header/header/_configuration.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/Header/header/_configuration.py @@ -18,7 +18,7 @@ from typing import Any -class AutoRestSwaggerBATHeaderServiceConfiguration(Configuration): +class AutoRestSwaggerBATHeaderServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestSwaggerBATHeaderService. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/Header/header/aio/_auto_rest_swagger_bat_header_service.py b/test/vanilla/legacy/Expected/AcceptanceTests/Header/header/aio/_auto_rest_swagger_bat_header_service.py index 468be86357d..51cf9c2c8cb 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/Header/header/aio/_auto_rest_swagger_bat_header_service.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/Header/header/aio/_auto_rest_swagger_bat_header_service.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional +from typing import Any, Awaitable from azure.core import AsyncPipelineClient from azure.core.rest import AsyncHttpResponse, HttpRequest diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/Header/header/aio/_configuration.py b/test/vanilla/legacy/Expected/AcceptanceTests/Header/header/aio/_configuration.py index d7e96d2334c..04c790d0397 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/Header/header/aio/_configuration.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/Header/header/aio/_configuration.py @@ -14,7 +14,7 @@ from .._version import VERSION -class AutoRestSwaggerBATHeaderServiceConfiguration(Configuration): +class AutoRestSwaggerBATHeaderServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestSwaggerBATHeaderService. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/Header/header/aio/operations/_header_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/Header/header/aio/operations/_header_operations.py index 82c8bf5bfbf..5d1a1c23fb4 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/Header/header/aio/operations/_header_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/Header/header/aio/operations/_header_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -6,9 +7,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import datetime -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar, Union from azure.core.exceptions import ( ClientAuthenticationError, @@ -60,7 +59,7 @@ ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] -class HeaderOperations: +class HeaderOperations: # pylint: disable=too-many-public-methods """HeaderOperations async operations. You should not instantiate this class directly. Instead, you should create a Client instance that @@ -104,7 +103,9 @@ async def param_existing_key(self, user_agent_parameter: str, **kwargs: Any) -> request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -136,7 +137,9 @@ async def response_existing_key(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -174,7 +177,9 @@ async def param_protected_key(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -206,7 +211,9 @@ async def response_protected_key(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -248,7 +255,9 @@ async def param_integer(self, scenario: str, value: int, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -283,7 +292,9 @@ async def response_integer(self, scenario: str, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -325,7 +336,9 @@ async def param_long(self, scenario: str, value: int, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -360,7 +373,9 @@ async def response_long(self, scenario: str, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -402,7 +417,9 @@ async def param_float(self, scenario: str, value: float, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -437,7 +454,9 @@ async def response_float(self, scenario: str, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -479,7 +498,9 @@ async def param_double(self, scenario: str, value: float, **kwargs: Any) -> None request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -514,7 +535,9 @@ async def response_double(self, scenario: str, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -556,7 +579,9 @@ async def param_bool(self, scenario: str, value: bool, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -591,7 +616,9 @@ async def response_bool(self, scenario: str, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -635,7 +662,9 @@ async def param_string(self, scenario: str, value: Optional[str] = None, **kwarg request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -671,7 +700,9 @@ async def response_string(self, scenario: str, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -713,7 +744,9 @@ async def param_date(self, scenario: str, value: datetime.date, **kwargs: Any) - request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -748,7 +781,9 @@ async def response_date(self, scenario: str, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -791,7 +826,9 @@ async def param_datetime(self, scenario: str, value: datetime.datetime, **kwargs request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -826,7 +863,9 @@ async def response_datetime(self, scenario: str, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -871,7 +910,9 @@ async def param_datetime_rfc1123( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -907,7 +948,9 @@ async def response_datetime_rfc1123(self, scenario: str, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -948,7 +991,9 @@ async def param_duration(self, scenario: str, value: datetime.timedelta, **kwarg request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -983,7 +1028,9 @@ async def response_duration(self, scenario: str, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1024,7 +1071,9 @@ async def param_byte(self, scenario: str, value: bytearray, **kwargs: Any) -> No request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1059,7 +1108,9 @@ async def response_byte(self, scenario: str, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1104,7 +1155,9 @@ async def param_enum( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1140,7 +1193,9 @@ async def response_enum(self, scenario: str, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1176,7 +1231,9 @@ async def custom_request_id(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 4368aeb99f8..24e268701a9 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -6,9 +7,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import datetime -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ( ClientAuthenticationError, @@ -28,7 +27,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union + from typing import Any, Callable, Dict, Optional, TypeVar, Union T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -722,7 +721,7 @@ def build_custom_request_id_request( ) # fmt: on -class HeaderOperations(object): +class HeaderOperations(object): # pylint: disable=too-many-public-methods """HeaderOperations operations. You should not instantiate this class directly. Instead, you should create a Client instance that @@ -771,7 +770,9 @@ def param_existing_key( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -806,7 +807,9 @@ def response_existing_key( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -847,7 +850,9 @@ def param_protected_key( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -882,7 +887,9 @@ def response_protected_key( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -930,7 +937,9 @@ def param_integer( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -970,7 +979,9 @@ def response_integer( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1018,7 +1029,9 @@ def param_long( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1058,7 +1071,9 @@ def response_long( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1106,7 +1121,9 @@ def param_float( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1146,7 +1163,9 @@ def response_float( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1194,7 +1213,9 @@ def param_double( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1234,7 +1255,9 @@ def response_double( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1282,7 +1305,9 @@ def param_bool( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1322,7 +1347,9 @@ def response_bool( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1372,7 +1399,9 @@ def param_string( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1413,7 +1442,9 @@ def response_string( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1461,7 +1492,9 @@ def param_date( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1501,7 +1534,9 @@ def response_date( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1550,7 +1585,9 @@ def param_datetime( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1590,7 +1627,9 @@ def response_datetime( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1639,7 +1678,9 @@ def param_datetime_rfc1123( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1680,7 +1721,9 @@ def response_datetime_rfc1123( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1727,7 +1770,9 @@ def param_duration( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1767,7 +1812,9 @@ def response_duration( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1814,7 +1861,9 @@ def param_byte( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1854,7 +1903,9 @@ def response_byte( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1903,7 +1954,9 @@ def param_enum( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1944,7 +1997,9 @@ def response_enum( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1983,7 +2038,9 @@ def custom_request_id( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/_auto_rest_http_infrastructure_test_service.py b/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/_auto_rest_http_infrastructure_test_service.py index 9bc17237bb9..a4cbc5ae937 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/_auto_rest_http_infrastructure_test_service.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/_auto_rest_http_infrastructure_test_service.py @@ -26,12 +26,12 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Optional + from typing import Any from azure.core.rest import HttpRequest, HttpResponse -class AutoRestHttpInfrastructureTestService(object): +class AutoRestHttpInfrastructureTestService(object): # pylint: disable=too-many-instance-attributes """Test Infrastructure for AutoRest. :ivar http_failure: HttpFailureOperations operations diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/_configuration.py b/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/_configuration.py index 4ec368ae08d..01ebca54ba3 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/_configuration.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/_configuration.py @@ -18,7 +18,7 @@ from typing import Any -class AutoRestHttpInfrastructureTestServiceConfiguration(Configuration): +class AutoRestHttpInfrastructureTestServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestHttpInfrastructureTestService. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/aio/_auto_rest_http_infrastructure_test_service.py b/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/aio/_auto_rest_http_infrastructure_test_service.py index 68d44ebfbc3..6772b9eb996 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/aio/_auto_rest_http_infrastructure_test_service.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/aio/_auto_rest_http_infrastructure_test_service.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional +from typing import Any, Awaitable from azure.core import AsyncPipelineClient from azure.core.rest import AsyncHttpResponse, HttpRequest @@ -26,7 +26,7 @@ ) -class AutoRestHttpInfrastructureTestService: +class AutoRestHttpInfrastructureTestService: # pylint: disable=too-many-instance-attributes """Test Infrastructure for AutoRest. :ivar http_failure: HttpFailureOperations operations diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/aio/_configuration.py b/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/aio/_configuration.py index 3e8df985edb..cae367ee2b7 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/aio/_configuration.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/aio/_configuration.py @@ -14,7 +14,7 @@ from .._version import VERSION -class AutoRestHttpInfrastructureTestServiceConfiguration(Configuration): +class AutoRestHttpInfrastructureTestServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestHttpInfrastructureTestService. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations/_http_client_failure_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations/_http_client_failure_operations.py index f47851278e0..87656b8cebf 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations/_http_client_failure_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations/_http_client_failure_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ( ClientAuthenticationError, @@ -56,7 +55,7 @@ ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] -class HttpClientFailureOperations: +class HttpClientFailureOperations: # pylint: disable=too-many-public-methods """HttpClientFailureOperations async operations. You should not instantiate this class directly. Instead, you should create a Client instance that @@ -97,7 +96,9 @@ async def head400(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 []: @@ -129,7 +130,9 @@ async def get400(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 []: @@ -161,7 +164,9 @@ async def options400(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 []: @@ -204,7 +209,9 @@ async def put400(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> N request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 []: @@ -247,7 +254,9 @@ async def patch400(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 []: @@ -290,7 +299,9 @@ async def post400(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 []: @@ -333,7 +344,9 @@ async def delete400(self, boolean_value: Optional[bool] = True, **kwargs: Any) - request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 []: @@ -365,7 +378,9 @@ async def head401(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 []: @@ -397,7 +412,9 @@ async def get402(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 []: @@ -429,7 +446,9 @@ async def options403(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 []: @@ -461,7 +480,9 @@ async def get403(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 []: @@ -504,7 +525,9 @@ async def put404(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> N request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 []: @@ -547,7 +570,9 @@ async def patch405(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 []: @@ -590,7 +615,9 @@ async def post406(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 []: @@ -633,7 +660,9 @@ async def delete407(self, boolean_value: Optional[bool] = True, **kwargs: Any) - request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 []: @@ -676,7 +705,9 @@ async def put409(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> N request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 []: @@ -708,7 +739,9 @@ async def head410(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 []: @@ -740,7 +773,9 @@ async def get411(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 []: @@ -772,7 +807,9 @@ async def options412(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 []: @@ -804,7 +841,9 @@ async def get412(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 []: @@ -847,7 +886,9 @@ async def put413(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> N request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 []: @@ -890,7 +931,9 @@ async def patch414(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 []: @@ -933,7 +976,9 @@ async def post415(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 []: @@ -965,7 +1010,9 @@ async def get416(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 []: @@ -1008,7 +1055,9 @@ async def delete417(self, boolean_value: Optional[bool] = True, **kwargs: Any) - request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 []: @@ -1040,7 +1089,9 @@ async def head429(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 []: diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations/_http_failure_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations/_http_failure_operations.py index 937f80fea77..7d83e170b39 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations/_http_failure_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations/_http_failure_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ( ClientAuthenticationError, @@ -74,7 +73,9 @@ async def get_empty_error(self, **kwargs: Any) -> bool: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -110,7 +111,9 @@ async def get_no_model_error(self, **kwargs: Any) -> bool: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -145,7 +148,9 @@ async def get_no_model_empty(self, **kwargs: Any) -> bool: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations/_http_redirects_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations/_http_redirects_operations.py index 8adf15637b3..ec44661bfca 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations/_http_redirects_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations/_http_redirects_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, List, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, List, Optional, TypeVar from azure.core.exceptions import ( ClientAuthenticationError, @@ -87,7 +86,9 @@ async def head300(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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, 300]: @@ -123,7 +124,9 @@ async def get300(self, **kwargs: Any) -> Optional[List[str]]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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, 300]: @@ -164,7 +167,9 @@ async def head301(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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, 301]: @@ -200,7 +205,9 @@ async def get301(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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, 301]: @@ -248,7 +255,9 @@ async def put301(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> N request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [301]: @@ -283,7 +292,9 @@ async def head302(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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, 302]: @@ -319,7 +330,9 @@ async def get302(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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, 302]: @@ -367,7 +380,9 @@ async def patch302(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [302]: @@ -414,7 +429,9 @@ async def post303(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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, 303]: @@ -450,7 +467,9 @@ async def head307(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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, 307]: @@ -486,7 +505,9 @@ async def get307(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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, 307]: @@ -522,7 +543,9 @@ async def options307(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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, 307]: @@ -569,7 +592,9 @@ async def put307(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> N request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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, 307]: @@ -616,7 +641,9 @@ async def patch307(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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, 307]: @@ -663,7 +690,9 @@ async def post307(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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, 307]: @@ -710,7 +739,9 @@ async def delete307(self, boolean_value: Optional[bool] = True, **kwargs: Any) - request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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, 307]: diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations/_http_retry_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations/_http_retry_operations.py index 8c890e4d548..0bb54878f44 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations/_http_retry_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations/_http_retry_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ( ClientAuthenticationError, @@ -80,7 +79,9 @@ async def head408(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -123,7 +124,9 @@ async def put500(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> N request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -166,7 +169,9 @@ async def patch500(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -198,7 +203,9 @@ async def get502(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -230,7 +237,9 @@ async def options502(self, **kwargs: Any) -> bool: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -277,7 +286,9 @@ async def post503(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -320,7 +331,9 @@ async def delete503(self, boolean_value: Optional[bool] = True, **kwargs: Any) - request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -363,7 +376,9 @@ async def put504(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> N request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -406,7 +421,9 @@ async def patch504(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations/_http_server_failure_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations/_http_server_failure_operations.py index 8a1ce204cc3..6f3cd4a9b1c 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations/_http_server_failure_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations/_http_server_failure_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ( ClientAuthenticationError, @@ -75,7 +74,9 @@ async def head501(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 []: @@ -107,7 +108,9 @@ async def get501(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 []: @@ -150,7 +153,9 @@ async def post505(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 []: @@ -193,7 +198,9 @@ async def delete505(self, boolean_value: Optional[bool] = True, **kwargs: Any) - request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 []: diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations/_http_success_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations/_http_success_operations.py index b0642ca8e5e..dcf7043ef57 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations/_http_success_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations/_http_success_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ( ClientAuthenticationError, @@ -90,7 +89,9 @@ async def head200(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -122,7 +123,9 @@ async def get200(self, **kwargs: Any) -> bool: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -158,7 +161,9 @@ async def options200(self, **kwargs: Any) -> bool: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -205,7 +210,9 @@ async def put200(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> N request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -248,7 +255,9 @@ async def patch200(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -291,7 +300,9 @@ async def post200(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -334,7 +345,9 @@ async def delete200(self, boolean_value: Optional[bool] = True, **kwargs: Any) - request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -377,7 +390,9 @@ async def put201(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> N request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [201]: @@ -420,7 +435,9 @@ async def post201(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [201]: @@ -463,7 +480,9 @@ async def put202(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> N request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202]: @@ -506,7 +525,9 @@ async def patch202(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202]: @@ -549,7 +570,9 @@ async def post202(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202]: @@ -592,7 +615,9 @@ async def delete202(self, boolean_value: Optional[bool] = True, **kwargs: Any) - request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202]: @@ -624,7 +649,9 @@ async def head204(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [204]: @@ -667,7 +694,9 @@ async def put204(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> N request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [204]: @@ -710,7 +739,9 @@ async def patch204(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [204]: @@ -753,7 +784,9 @@ async def post204(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [204]: @@ -796,7 +829,9 @@ async def delete204(self, boolean_value: Optional[bool] = True, **kwargs: Any) - request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [204]: @@ -828,7 +863,9 @@ async def head404(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [204, 404]: diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations/_multiple_responses_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations/_multiple_responses_operations.py index ba3194b5c4b..092530c4d43 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations/_multiple_responses_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations/_multiple_responses_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar, Union from azure.core.exceptions import ( ClientAuthenticationError, @@ -64,7 +63,7 @@ ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] -class MultipleResponsesOperations: +class MultipleResponsesOperations: # pylint: disable=too-many-public-methods """MultipleResponsesOperations async operations. You should not instantiate this class directly. Instead, you should create a Client instance that @@ -105,7 +104,9 @@ async def get200_model204_no_model_default_error200_valid(self, **kwargs: Any) - request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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, 204]: @@ -143,7 +144,9 @@ async def get200_model204_no_model_default_error204_valid(self, **kwargs: Any) - request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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, 204]: @@ -181,7 +184,9 @@ async def get200_model204_no_model_default_error201_invalid(self, **kwargs: Any) request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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, 204]: @@ -219,7 +224,9 @@ async def get200_model204_no_model_default_error202_none(self, **kwargs: Any) -> request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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, 204]: @@ -257,7 +264,9 @@ async def get200_model204_no_model_default_error400_valid(self, **kwargs: Any) - request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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, 204]: @@ -297,7 +306,9 @@ async def get200_model201_model_default_error200_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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, 201]: @@ -339,7 +350,9 @@ async def get200_model201_model_default_error201_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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, 201]: @@ -381,7 +394,9 @@ async def get200_model201_model_default_error400_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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, 201]: @@ -424,7 +439,9 @@ async def get200_model_a201_model_c404_model_d_default_error200_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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, 201, 404]: @@ -470,7 +487,9 @@ async def get200_model_a201_model_c404_model_d_default_error201_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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, 201, 404]: @@ -516,7 +535,9 @@ async def get200_model_a201_model_c404_model_d_default_error404_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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, 201, 404]: @@ -562,7 +583,9 @@ async def get200_model_a201_model_c404_model_d_default_error400_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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, 201, 404]: @@ -605,7 +628,9 @@ async def get202_none204_none_default_error202_none(self, **kwargs: Any) -> None request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202, 204]: @@ -637,7 +662,9 @@ async def get202_none204_none_default_error204_none(self, **kwargs: Any) -> None request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202, 204]: @@ -669,7 +696,9 @@ async def get202_none204_none_default_error400_valid(self, **kwargs: Any) -> Non request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202, 204]: @@ -701,7 +730,9 @@ async def get202_none204_none_default_none202_invalid(self, **kwargs: Any) -> No request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202, 204]: @@ -732,7 +763,9 @@ async def get202_none204_none_default_none204_none(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202, 204]: @@ -763,7 +796,9 @@ async def get202_none204_none_default_none400_none(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202, 204]: @@ -794,7 +829,9 @@ async def get202_none204_none_default_none400_invalid(self, **kwargs: Any) -> No request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202, 204]: @@ -825,7 +862,9 @@ async def get_default_model_a200_valid(self, **kwargs: Any) -> "_models.MyExcept request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -860,7 +899,9 @@ async def get_default_model_a200_none(self, **kwargs: Any) -> "_models.MyExcepti request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -895,7 +936,9 @@ async def get_default_model_a400_valid(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -927,7 +970,9 @@ async def get_default_model_a400_none(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -959,7 +1004,9 @@ async def get_default_none200_invalid(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -990,7 +1037,9 @@ async def get_default_none200_none(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1021,7 +1070,9 @@ async def get_default_none400_invalid(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1052,7 +1103,9 @@ async def get_default_none400_none(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1084,7 +1137,9 @@ async def get200_model_a200_none(self, **kwargs: Any) -> "_models.MyException": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1119,7 +1174,9 @@ async def get200_model_a200_valid(self, **kwargs: Any) -> "_models.MyException": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1154,7 +1211,9 @@ async def get200_model_a200_invalid(self, **kwargs: Any) -> "_models.MyException request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1189,7 +1248,9 @@ async def get200_model_a400_none(self, **kwargs: Any) -> "_models.MyException": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1224,7 +1285,9 @@ async def get200_model_a400_valid(self, **kwargs: Any) -> "_models.MyException": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1259,7 +1322,9 @@ async def get200_model_a400_invalid(self, **kwargs: Any) -> "_models.MyException request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1294,7 +1359,9 @@ async def get200_model_a202_valid(self, **kwargs: Any) -> "_models.MyException": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 17cb27169a8..5a8e339ad25 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ( ClientAuthenticationError, @@ -27,7 +26,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar + from typing import Any, Callable, Dict, Optional, TypeVar T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -608,7 +607,7 @@ def build_head429_request( ) # fmt: on -class HttpClientFailureOperations(object): +class HttpClientFailureOperations(object): # pylint: disable=too-many-public-methods """HttpClientFailureOperations operations. You should not instantiate this class directly. Instead, you should create a Client instance that @@ -652,7 +651,9 @@ def head400( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 []: @@ -687,7 +688,9 @@ def get400( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 []: @@ -722,7 +725,9 @@ def options400( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 []: @@ -770,7 +775,9 @@ def put400( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 []: @@ -818,7 +825,9 @@ def patch400( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 []: @@ -866,7 +875,9 @@ def post400( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 []: @@ -914,7 +925,9 @@ def delete400( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 []: @@ -949,7 +962,9 @@ def head401( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 []: @@ -984,7 +999,9 @@ def get402( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 []: @@ -1019,7 +1036,9 @@ def options403( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 []: @@ -1054,7 +1073,9 @@ def get403( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 []: @@ -1102,7 +1123,9 @@ def put404( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 []: @@ -1150,7 +1173,9 @@ def patch405( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 []: @@ -1198,7 +1223,9 @@ def post406( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 []: @@ -1246,7 +1273,9 @@ def delete407( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 []: @@ -1294,7 +1323,9 @@ def put409( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 []: @@ -1329,7 +1360,9 @@ def head410( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 []: @@ -1364,7 +1397,9 @@ def get411( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 []: @@ -1399,7 +1434,9 @@ def options412( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 []: @@ -1434,7 +1471,9 @@ def get412( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 []: @@ -1482,7 +1521,9 @@ def put413( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 []: @@ -1530,7 +1571,9 @@ def patch414( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 []: @@ -1578,7 +1621,9 @@ def post415( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 []: @@ -1613,7 +1658,9 @@ def get416( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 []: @@ -1661,7 +1708,9 @@ def delete417( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 []: @@ -1696,7 +1745,9 @@ def head429( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 []: 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 4b8bbdf8682..21d36997b30 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ( ClientAuthenticationError, @@ -27,7 +26,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar + from typing import Any, Callable, Dict, Optional, TypeVar T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -140,7 +139,9 @@ def get_empty_error( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -179,7 +180,9 @@ def get_no_model_error( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -217,7 +220,9 @@ def get_no_model_empty( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 1592d39efe4..c77d4ba27ec 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ( ClientAuthenticationError, @@ -27,7 +26,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, List, Optional, TypeVar + from typing import Any, Callable, Dict, List, Optional, TypeVar T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -428,7 +427,9 @@ def head300( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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, 300]: @@ -467,7 +468,9 @@ def get300( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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, 300]: @@ -511,7 +514,9 @@ def head301( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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, 301]: @@ -550,7 +555,9 @@ def get301( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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, 301]: @@ -603,7 +610,9 @@ def put301( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [301]: @@ -641,7 +650,9 @@ def head302( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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, 302]: @@ -680,7 +691,9 @@ def get302( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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, 302]: @@ -733,7 +746,9 @@ def patch302( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [302]: @@ -785,7 +800,9 @@ def post303( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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, 303]: @@ -824,7 +841,9 @@ def head307( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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, 307]: @@ -863,7 +882,9 @@ def get307( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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, 307]: @@ -902,7 +923,9 @@ def options307( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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, 307]: @@ -954,7 +977,9 @@ def put307( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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, 307]: @@ -1006,7 +1031,9 @@ def patch307( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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, 307]: @@ -1058,7 +1085,9 @@ def post307( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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, 307]: @@ -1110,7 +1139,9 @@ def delete307( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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, 307]: 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 2d053de625f..06ad872ba74 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ( ClientAuthenticationError, @@ -27,7 +26,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar + from typing import Any, Callable, Dict, Optional, TypeVar T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -284,7 +283,9 @@ def head408( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -332,7 +333,9 @@ def put500( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -380,7 +383,9 @@ def patch500( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -415,7 +420,9 @@ def get502( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -450,7 +457,9 @@ def options502( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -502,7 +511,9 @@ def post503( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -550,7 +561,9 @@ def delete503( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -598,7 +611,9 @@ def put504( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -646,7 +661,9 @@ def patch504( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 e51005cbd40..d14b54dbe95 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ( ClientAuthenticationError, @@ -27,7 +26,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar + from typing import Any, Callable, Dict, Optional, TypeVar T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -168,7 +167,9 @@ def head501( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 []: @@ -203,7 +204,9 @@ def get501( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 []: @@ -251,7 +254,9 @@ def post505( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 []: @@ -299,7 +304,9 @@ def delete505( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 []: 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 90a4c3688ab..68e7107d4e7 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ( ClientAuthenticationError, @@ -27,7 +26,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar + from typing import Any, Callable, Dict, Optional, TypeVar T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -516,7 +515,9 @@ def head200( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -551,7 +552,9 @@ def get200( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -590,7 +593,9 @@ def options200( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -642,7 +647,9 @@ def put200( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -690,7 +697,9 @@ def patch200( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -738,7 +747,9 @@ def post200( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -786,7 +797,9 @@ def delete200( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -834,7 +847,9 @@ def put201( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [201]: @@ -882,7 +897,9 @@ def post201( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [201]: @@ -930,7 +947,9 @@ def put202( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202]: @@ -978,7 +997,9 @@ def patch202( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202]: @@ -1026,7 +1047,9 @@ def post202( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202]: @@ -1074,7 +1097,9 @@ def delete202( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202]: @@ -1109,7 +1134,9 @@ def head204( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [204]: @@ -1157,7 +1184,9 @@ def put204( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [204]: @@ -1205,7 +1234,9 @@ def patch204( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [204]: @@ -1253,7 +1284,9 @@ def post204( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [204]: @@ -1301,7 +1334,9 @@ def delete204( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [204]: @@ -1336,7 +1371,9 @@ def head404( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [204, 404]: 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 f7e61d56f22..e589a29058f 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ( ClientAuthenticationError, @@ -27,7 +26,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union + from typing import Any, Callable, Dict, Optional, TypeVar, Union T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -668,7 +667,7 @@ def build_get200_model_a202_valid_request( ) # fmt: on -class MultipleResponsesOperations(object): +class MultipleResponsesOperations(object): # pylint: disable=too-many-public-methods """MultipleResponsesOperations operations. You should not instantiate this class directly. Instead, you should create a Client instance that @@ -712,7 +711,9 @@ def get200_model204_no_model_default_error200_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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, 204]: @@ -753,7 +754,9 @@ def get200_model204_no_model_default_error204_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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, 204]: @@ -794,7 +797,9 @@ def get200_model204_no_model_default_error201_invalid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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, 204]: @@ -835,7 +840,9 @@ def get200_model204_no_model_default_error202_none( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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, 204]: @@ -876,7 +883,9 @@ def get200_model204_no_model_default_error400_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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, 204]: @@ -917,7 +926,9 @@ def get200_model201_model_default_error200_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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, 201]: @@ -960,7 +971,9 @@ def get200_model201_model_default_error201_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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, 201]: @@ -1003,7 +1016,9 @@ def get200_model201_model_default_error400_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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, 201]: @@ -1047,7 +1062,9 @@ def get200_model_a201_model_c404_model_d_default_error200_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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, 201, 404]: @@ -1094,7 +1111,9 @@ def get200_model_a201_model_c404_model_d_default_error201_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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, 201, 404]: @@ -1141,7 +1160,9 @@ def get200_model_a201_model_c404_model_d_default_error404_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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, 201, 404]: @@ -1188,7 +1209,9 @@ def get200_model_a201_model_c404_model_d_default_error400_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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, 201, 404]: @@ -1234,7 +1257,9 @@ def get202_none204_none_default_error202_none( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202, 204]: @@ -1269,7 +1294,9 @@ def get202_none204_none_default_error204_none( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202, 204]: @@ -1304,7 +1331,9 @@ def get202_none204_none_default_error400_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202, 204]: @@ -1339,7 +1368,9 @@ def get202_none204_none_default_none202_invalid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202, 204]: @@ -1373,7 +1404,9 @@ def get202_none204_none_default_none204_none( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202, 204]: @@ -1407,7 +1440,9 @@ def get202_none204_none_default_none400_none( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202, 204]: @@ -1441,7 +1476,9 @@ def get202_none204_none_default_none400_invalid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202, 204]: @@ -1475,7 +1512,9 @@ def get_default_model_a200_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1513,7 +1552,9 @@ def get_default_model_a200_none( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1551,7 +1592,9 @@ def get_default_model_a400_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1586,7 +1629,9 @@ def get_default_model_a400_none( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1621,7 +1666,9 @@ def get_default_none200_invalid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1655,7 +1702,9 @@ def get_default_none200_none( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1689,7 +1738,9 @@ def get_default_none400_invalid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1723,7 +1774,9 @@ def get_default_none400_none( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1758,7 +1811,9 @@ def get200_model_a200_none( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1796,7 +1851,9 @@ def get200_model_a200_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1834,7 +1891,9 @@ def get200_model_a200_invalid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1872,7 +1931,9 @@ def get200_model_a400_none( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1910,7 +1971,9 @@ def get200_model_a400_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1948,7 +2011,9 @@ def get200_model_a400_invalid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1986,7 +2051,9 @@ def get200_model_a202_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/IncorrectErrorResponse/incorrecterrorresponse/_configuration.py b/test/vanilla/legacy/Expected/AcceptanceTests/IncorrectErrorResponse/incorrecterrorresponse/_configuration.py index a5f2e613aa7..cce7981824a 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/IncorrectErrorResponse/incorrecterrorresponse/_configuration.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/IncorrectErrorResponse/incorrecterrorresponse/_configuration.py @@ -18,7 +18,7 @@ from typing import Any -class IncorrectReturnedErrorModelConfiguration(Configuration): +class IncorrectReturnedErrorModelConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for IncorrectReturnedErrorModel. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/IncorrectErrorResponse/incorrecterrorresponse/_incorrect_returned_error_model.py b/test/vanilla/legacy/Expected/AcceptanceTests/IncorrectErrorResponse/incorrecterrorresponse/_incorrect_returned_error_model.py index b38258faa9d..cf62cf96180 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/IncorrectErrorResponse/incorrecterrorresponse/_incorrect_returned_error_model.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/IncorrectErrorResponse/incorrecterrorresponse/_incorrect_returned_error_model.py @@ -18,13 +18,14 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Optional + from typing import Any from azure.core.rest import HttpRequest, HttpResponse class IncorrectReturnedErrorModel(IncorrectReturnedErrorModelOperationsMixin): - """Test to see when throwing an HttpResponseError whether we swallow error model deserialization errors. + """Test to see when throwing an HttpResponseError whether we swallow error model deserialization + errors. :param base_url: Service URL. Default value is 'http://localhost:3000'. :type base_url: str diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/IncorrectErrorResponse/incorrecterrorresponse/aio/_configuration.py b/test/vanilla/legacy/Expected/AcceptanceTests/IncorrectErrorResponse/incorrecterrorresponse/aio/_configuration.py index 556842de3fd..1b670d174d9 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/IncorrectErrorResponse/incorrecterrorresponse/aio/_configuration.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/IncorrectErrorResponse/incorrecterrorresponse/aio/_configuration.py @@ -14,7 +14,7 @@ from .._version import VERSION -class IncorrectReturnedErrorModelConfiguration(Configuration): +class IncorrectReturnedErrorModelConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for IncorrectReturnedErrorModel. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/IncorrectErrorResponse/incorrecterrorresponse/aio/_incorrect_returned_error_model.py b/test/vanilla/legacy/Expected/AcceptanceTests/IncorrectErrorResponse/incorrecterrorresponse/aio/_incorrect_returned_error_model.py index e67f162cfba..ac8dd8530d2 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/IncorrectErrorResponse/incorrecterrorresponse/aio/_incorrect_returned_error_model.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/IncorrectErrorResponse/incorrecterrorresponse/aio/_incorrect_returned_error_model.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional +from typing import Any, Awaitable from azure.core import AsyncPipelineClient from azure.core.rest import AsyncHttpResponse, HttpRequest @@ -19,7 +19,8 @@ class IncorrectReturnedErrorModel(IncorrectReturnedErrorModelOperationsMixin): - """Test to see when throwing an HttpResponseError whether we swallow error model deserialization errors. + """Test to see when throwing an HttpResponseError whether we swallow error model deserialization + errors. :param base_url: Service URL. Default value is 'http://localhost:3000'. :type base_url: str diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/IncorrectErrorResponse/incorrecterrorresponse/aio/operations/_incorrect_returned_error_model_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/IncorrectErrorResponse/incorrecterrorresponse/aio/operations/_incorrect_returned_error_model_operations.py index 874139ff006..999502f0235 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/IncorrectErrorResponse/incorrecterrorresponse/aio/operations/_incorrect_returned_error_model_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/IncorrectErrorResponse/incorrecterrorresponse/aio/operations/_incorrect_returned_error_model_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ( ClientAuthenticationError, @@ -50,7 +49,9 @@ async def get_incorrect_error_from_server(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 3ccdf42787b..92b98828608 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ( ClientAuthenticationError, @@ -27,7 +26,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar + from typing import Any, Callable, Dict, Optional, TypeVar T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -74,7 +73,9 @@ def get_incorrect_error_from_server( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/MediaTypes/mediatypes/_configuration.py b/test/vanilla/legacy/Expected/AcceptanceTests/MediaTypes/mediatypes/_configuration.py index 4fb0dd8a354..230d39d3ddc 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/MediaTypes/mediatypes/_configuration.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/MediaTypes/mediatypes/_configuration.py @@ -18,7 +18,7 @@ from typing import Any -class MediaTypesClientConfiguration(Configuration): +class MediaTypesClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for MediaTypesClient. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/MediaTypes/mediatypes/_media_types_client.py b/test/vanilla/legacy/Expected/AcceptanceTests/MediaTypes/mediatypes/_media_types_client.py index 70be699931a..16bf051fb92 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/MediaTypes/mediatypes/_media_types_client.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/MediaTypes/mediatypes/_media_types_client.py @@ -18,7 +18,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Optional + from typing import Any from azure.core.rest import HttpRequest, HttpResponse diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/MediaTypes/mediatypes/aio/_configuration.py b/test/vanilla/legacy/Expected/AcceptanceTests/MediaTypes/mediatypes/aio/_configuration.py index 4048232998c..ac6169f2c7c 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/MediaTypes/mediatypes/aio/_configuration.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/MediaTypes/mediatypes/aio/_configuration.py @@ -14,7 +14,7 @@ from .._version import VERSION -class MediaTypesClientConfiguration(Configuration): +class MediaTypesClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for MediaTypesClient. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/MediaTypes/mediatypes/aio/_media_types_client.py b/test/vanilla/legacy/Expected/AcceptanceTests/MediaTypes/mediatypes/aio/_media_types_client.py index 14995d89b46..92209b4f2cf 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/MediaTypes/mediatypes/aio/_media_types_client.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/MediaTypes/mediatypes/aio/_media_types_client.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional +from typing import Any, Awaitable from azure.core import AsyncPipelineClient from azure.core.rest import AsyncHttpResponse, HttpRequest diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/MediaTypes/mediatypes/aio/operations/_media_types_client_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/MediaTypes/mediatypes/aio/operations/_media_types_client_operations.py index 9b71da223c6..4c02e52ee4d 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/MediaTypes/mediatypes/aio/operations/_media_types_client_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/MediaTypes/mediatypes/aio/operations/_media_types_client_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, IO, Optional, TypeVar, Union -import warnings +from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union from azure.core.exceptions import ( ClientAuthenticationError, @@ -81,7 +80,9 @@ async def analyze_body(self, input: Optional[Union[IO, "_models.SourcePath"]] = request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -144,7 +145,9 @@ async def analyze_body_no_accept_header( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202]: @@ -183,7 +186,9 @@ async def content_type_with_encoding(self, input: Optional[str] = None, **kwargs request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -227,7 +232,9 @@ async def binary_body_with_two_content_types(self, message: IO, **kwargs: Any) - request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -277,7 +284,9 @@ async def binary_body_with_three_content_types(self, message: Union[IO, str], ** request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -333,7 +342,9 @@ async def put_text_and_json_body(self, message: Union[str, str], **kwargs: Any) request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 f652b354a0c..8f81a152cc8 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ( ClientAuthenticationError, @@ -27,7 +26,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, IO, Optional, TypeVar, Union + from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -228,7 +227,9 @@ def analyze_body( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -294,7 +295,9 @@ def analyze_body_no_accept_header( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [202]: @@ -338,7 +341,9 @@ def content_type_with_encoding( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -387,7 +392,9 @@ def binary_body_with_two_content_types( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -442,7 +449,9 @@ def binary_body_with_three_content_types( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -503,7 +512,9 @@ def put_text_and_json_body( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/MergePatchJson/mergepatchjson/_configuration.py b/test/vanilla/legacy/Expected/AcceptanceTests/MergePatchJson/mergepatchjson/_configuration.py index d380abbde51..ce5aab76f27 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/MergePatchJson/mergepatchjson/_configuration.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/MergePatchJson/mergepatchjson/_configuration.py @@ -18,7 +18,7 @@ from typing import Any -class MergePatchJsonClientConfiguration(Configuration): +class MergePatchJsonClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for MergePatchJsonClient. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/MergePatchJson/mergepatchjson/_merge_patch_json_client.py b/test/vanilla/legacy/Expected/AcceptanceTests/MergePatchJson/mergepatchjson/_merge_patch_json_client.py index c789629298e..59a3ed34907 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/MergePatchJson/mergepatchjson/_merge_patch_json_client.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/MergePatchJson/mergepatchjson/_merge_patch_json_client.py @@ -17,7 +17,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Dict, Optional + from typing import Any, Dict from azure.core.rest import HttpRequest, HttpResponse diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/MergePatchJson/mergepatchjson/aio/_configuration.py b/test/vanilla/legacy/Expected/AcceptanceTests/MergePatchJson/mergepatchjson/aio/_configuration.py index 89b78fceea2..2b49cb02c75 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/MergePatchJson/mergepatchjson/aio/_configuration.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/MergePatchJson/mergepatchjson/aio/_configuration.py @@ -14,7 +14,7 @@ from .._version import VERSION -class MergePatchJsonClientConfiguration(Configuration): +class MergePatchJsonClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for MergePatchJsonClient. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/MergePatchJson/mergepatchjson/aio/_merge_patch_json_client.py b/test/vanilla/legacy/Expected/AcceptanceTests/MergePatchJson/mergepatchjson/aio/_merge_patch_json_client.py index 733f98c31a1..28763af97ae 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/MergePatchJson/mergepatchjson/aio/_merge_patch_json_client.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/MergePatchJson/mergepatchjson/aio/_merge_patch_json_client.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional, TYPE_CHECKING +from typing import Any, Awaitable, TYPE_CHECKING from azure.core import AsyncPipelineClient from azure.core.rest import AsyncHttpResponse, HttpRequest diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/MergePatchJson/mergepatchjson/aio/operations/_merge_patch_json_client_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/MergePatchJson/mergepatchjson/aio/operations/_merge_patch_json_client_operations.py index 81659c08329..0e8f91729d9 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/MergePatchJson/mergepatchjson/aio/operations/_merge_patch_json_client_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/MergePatchJson/mergepatchjson/aio/operations/_merge_patch_json_client_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ( ClientAuthenticationError, @@ -56,7 +55,9 @@ async def patch_single(self, body: Any, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 e84154add28..f4eb3fbd2ee 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ( ClientAuthenticationError, @@ -26,7 +25,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar + from typing import Any, Callable, Dict, Optional, TypeVar T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -92,7 +91,9 @@ def patch_single( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/ModelFlattening/modelflattening/_auto_rest_resource_flattening_test_service.py b/test/vanilla/legacy/Expected/AcceptanceTests/ModelFlattening/modelflattening/_auto_rest_resource_flattening_test_service.py index 34adc2fb177..a62f69b01a8 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/ModelFlattening/modelflattening/_auto_rest_resource_flattening_test_service.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/ModelFlattening/modelflattening/_auto_rest_resource_flattening_test_service.py @@ -18,7 +18,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Optional + from typing import Any from azure.core.rest import HttpRequest, HttpResponse diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/ModelFlattening/modelflattening/_configuration.py b/test/vanilla/legacy/Expected/AcceptanceTests/ModelFlattening/modelflattening/_configuration.py index 70070e83c02..a469a7b3370 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/ModelFlattening/modelflattening/_configuration.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/ModelFlattening/modelflattening/_configuration.py @@ -18,7 +18,7 @@ from typing import Any -class AutoRestResourceFlatteningTestServiceConfiguration(Configuration): +class AutoRestResourceFlatteningTestServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestResourceFlatteningTestService. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/ModelFlattening/modelflattening/aio/_auto_rest_resource_flattening_test_service.py b/test/vanilla/legacy/Expected/AcceptanceTests/ModelFlattening/modelflattening/aio/_auto_rest_resource_flattening_test_service.py index ec95e5765ad..740112e8971 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/ModelFlattening/modelflattening/aio/_auto_rest_resource_flattening_test_service.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/ModelFlattening/modelflattening/aio/_auto_rest_resource_flattening_test_service.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional +from typing import Any, Awaitable from azure.core import AsyncPipelineClient from azure.core.rest import AsyncHttpResponse, HttpRequest diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/ModelFlattening/modelflattening/aio/_configuration.py b/test/vanilla/legacy/Expected/AcceptanceTests/ModelFlattening/modelflattening/aio/_configuration.py index c4cc1600aaf..73c510afe25 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/ModelFlattening/modelflattening/aio/_configuration.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/ModelFlattening/modelflattening/aio/_configuration.py @@ -14,7 +14,7 @@ from .._version import VERSION -class AutoRestResourceFlatteningTestServiceConfiguration(Configuration): +class AutoRestResourceFlatteningTestServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestResourceFlatteningTestService. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/ModelFlattening/modelflattening/aio/operations/_auto_rest_resource_flattening_test_service_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/ModelFlattening/modelflattening/aio/operations/_auto_rest_resource_flattening_test_service_operations.py index 30ec8b9274a..387b0191f59 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/ModelFlattening/modelflattening/aio/operations/_auto_rest_resource_flattening_test_service_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/ModelFlattening/modelflattening/aio/operations/_auto_rest_resource_flattening_test_service_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, List, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, List, Optional, TypeVar from azure.core.exceptions import ( ClientAuthenticationError, @@ -72,7 +71,9 @@ async def put_array(self, resource_array: Optional[List["_models.Resource"]] = N request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -104,7 +105,9 @@ async def get_array(self, **kwargs: Any) -> List["_models.FlattenedProduct"]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -154,7 +157,9 @@ async def put_wrapped_array( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -187,7 +192,9 @@ async def get_wrapped_array(self, **kwargs: Any) -> List["_models.ProductWrapper request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -236,7 +243,9 @@ async def put_dictionary( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -268,7 +277,9 @@ async def get_dictionary(self, **kwargs: Any) -> Dict[str, "_models.FlattenedPro request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -317,7 +328,9 @@ async def put_resource_collection( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -349,7 +362,9 @@ async def get_resource_collection(self, **kwargs: Any) -> "_models.ResourceColle request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -398,7 +413,9 @@ async def put_simple_product( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -474,7 +491,9 @@ async def post_flattened_simple_product( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -549,7 +568,9 @@ async def put_simple_product_with_grouping( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 4f130422312..97acce220b6 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ( ClientAuthenticationError, @@ -27,7 +26,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, List, Optional, TypeVar + from typing import Any, Callable, Dict, List, Optional, TypeVar T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -326,7 +325,9 @@ def put_array( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -361,7 +362,9 @@ def get_array( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -414,7 +417,9 @@ def put_wrapped_array( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -450,7 +455,9 @@ def get_wrapped_array( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -502,7 +509,9 @@ def put_dictionary( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -537,7 +546,9 @@ def get_dictionary( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -589,7 +600,9 @@ def put_resource_collection( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -624,7 +637,9 @@ def get_resource_collection( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -676,7 +691,9 @@ def put_simple_product( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -753,7 +770,9 @@ def post_flattened_simple_product( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -831,7 +850,9 @@ def put_simple_product_with_grouping( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/_configuration.py b/test/vanilla/legacy/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/_configuration.py index 3bf3a3a50bc..5c706485cc0 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/_configuration.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/_configuration.py @@ -18,7 +18,7 @@ from typing import Any -class MultipleInheritanceServiceClientConfiguration(Configuration): +class MultipleInheritanceServiceClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for MultipleInheritanceServiceClient. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/_multiple_inheritance_service_client.py b/test/vanilla/legacy/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/_multiple_inheritance_service_client.py index 16a0e8a3546..408a83d8829 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/_multiple_inheritance_service_client.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/_multiple_inheritance_service_client.py @@ -18,7 +18,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Optional + from typing import Any from azure.core.rest import HttpRequest, HttpResponse diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/aio/_configuration.py b/test/vanilla/legacy/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/aio/_configuration.py index 795387844ed..8e8d260c441 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/aio/_configuration.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/aio/_configuration.py @@ -14,7 +14,7 @@ from .._version import VERSION -class MultipleInheritanceServiceClientConfiguration(Configuration): +class MultipleInheritanceServiceClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for MultipleInheritanceServiceClient. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/aio/_multiple_inheritance_service_client.py b/test/vanilla/legacy/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/aio/_multiple_inheritance_service_client.py index 8eb31a232f3..2d1c98e4c12 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/aio/_multiple_inheritance_service_client.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/aio/_multiple_inheritance_service_client.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional +from typing import Any, Awaitable from azure.core import AsyncPipelineClient from azure.core.rest import AsyncHttpResponse, HttpRequest diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/aio/operations/_multiple_inheritance_service_client_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/aio/operations/_multiple_inheritance_service_client_operations.py index 54aa8aced93..c86b1fa4758 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/aio/operations/_multiple_inheritance_service_client_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/aio/operations/_multiple_inheritance_service_client_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ( ClientAuthenticationError, @@ -60,7 +59,9 @@ async def get_horse(self, **kwargs: Any) -> "_models.Horse": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -104,7 +105,9 @@ async def put_horse(self, horse: "_models.Horse", **kwargs: Any) -> str: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -139,7 +142,9 @@ async def get_pet(self, **kwargs: Any) -> "_models.Pet": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -184,7 +189,9 @@ async def put_pet(self, name: str, **kwargs: Any) -> str: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -219,7 +226,9 @@ async def get_feline(self, **kwargs: Any) -> "_models.Feline": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -263,7 +272,9 @@ async def put_feline(self, feline: "_models.Feline", **kwargs: Any) -> str: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -298,7 +309,9 @@ async def get_cat(self, **kwargs: Any) -> "_models.Cat": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -342,7 +355,9 @@ async def put_cat(self, cat: "_models.Cat", **kwargs: Any) -> str: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -378,7 +393,9 @@ async def get_kitten(self, **kwargs: Any) -> "_models.Kitten": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -424,7 +441,9 @@ async def put_kitten(self, kitten: "_models.Kitten", **kwargs: Any) -> str: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 94b4e269c5c..f30d0a6dd6b 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ( ClientAuthenticationError, @@ -27,7 +26,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar + from typing import Any, Callable, Dict, Optional, TypeVar T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -279,7 +278,9 @@ def get_horse( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -328,7 +329,9 @@ def put_horse( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -366,7 +369,9 @@ def get_pet( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -416,7 +421,9 @@ def put_pet( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -454,7 +461,9 @@ def get_feline( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -503,7 +512,9 @@ def put_feline( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -541,7 +552,9 @@ def get_cat( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -590,7 +603,9 @@ def put_cat( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -629,7 +644,9 @@ def get_kitten( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -680,7 +697,9 @@ def put_kitten( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/NonStringEnums/nonstringenums/_configuration.py b/test/vanilla/legacy/Expected/AcceptanceTests/NonStringEnums/nonstringenums/_configuration.py index a29dd58414b..6f6c70b8da2 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/NonStringEnums/nonstringenums/_configuration.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/NonStringEnums/nonstringenums/_configuration.py @@ -18,7 +18,7 @@ from typing import Any -class NonStringEnumsClientConfiguration(Configuration): +class NonStringEnumsClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for NonStringEnumsClient. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/NonStringEnums/nonstringenums/_non_string_enums_client.py b/test/vanilla/legacy/Expected/AcceptanceTests/NonStringEnums/nonstringenums/_non_string_enums_client.py index 187a0a813f1..32262aa98cc 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/NonStringEnums/nonstringenums/_non_string_enums_client.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/NonStringEnums/nonstringenums/_non_string_enums_client.py @@ -17,7 +17,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Dict, Optional + from typing import Any, Dict from azure.core.rest import HttpRequest, HttpResponse diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/NonStringEnums/nonstringenums/aio/_configuration.py b/test/vanilla/legacy/Expected/AcceptanceTests/NonStringEnums/nonstringenums/aio/_configuration.py index 7daa742b2c9..148880bd3ec 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/NonStringEnums/nonstringenums/aio/_configuration.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/NonStringEnums/nonstringenums/aio/_configuration.py @@ -14,7 +14,7 @@ from .._version import VERSION -class NonStringEnumsClientConfiguration(Configuration): +class NonStringEnumsClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for NonStringEnumsClient. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/NonStringEnums/nonstringenums/aio/_non_string_enums_client.py b/test/vanilla/legacy/Expected/AcceptanceTests/NonStringEnums/nonstringenums/aio/_non_string_enums_client.py index 08eccf482bc..ea154d0720f 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/NonStringEnums/nonstringenums/aio/_non_string_enums_client.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/NonStringEnums/nonstringenums/aio/_non_string_enums_client.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional, TYPE_CHECKING +from typing import Any, Awaitable, TYPE_CHECKING from azure.core import AsyncPipelineClient from azure.core.rest import AsyncHttpResponse, HttpRequest diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/NonStringEnums/nonstringenums/aio/operations/_float_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/NonStringEnums/nonstringenums/aio/operations/_float_operations.py index 4ba232fdd1b..88f15675edc 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/NonStringEnums/nonstringenums/aio/operations/_float_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/NonStringEnums/nonstringenums/aio/operations/_float_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar, Union from azure.core.exceptions import ( ClientAuthenticationError, @@ -77,7 +76,9 @@ async def put(self, input: Optional[Union[float, "_models.FloatEnum"]] = None, * request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -112,7 +113,9 @@ async def get(self, **kwargs: Any) -> Union[float, "_models.FloatEnum"]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/NonStringEnums/nonstringenums/aio/operations/_int_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/NonStringEnums/nonstringenums/aio/operations/_int_operations.py index 19d71cae33d..843b0bda260 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/NonStringEnums/nonstringenums/aio/operations/_int_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/NonStringEnums/nonstringenums/aio/operations/_int_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar, Union from azure.core.exceptions import ( ClientAuthenticationError, @@ -77,7 +76,9 @@ async def put(self, input: Optional[Union[int, "_models.IntEnum"]] = None, **kwa request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -112,7 +113,9 @@ async def get(self, **kwargs: Any) -> Union[int, "_models.IntEnum"]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 98c5e2ede4e..4d07a3980e0 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ( ClientAuthenticationError, @@ -27,7 +26,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union + from typing import Any, Callable, Dict, Optional, TypeVar, Union T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -133,7 +132,9 @@ def put( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -171,7 +172,9 @@ def get( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 3958137f0fd..510c7f8d462 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ( ClientAuthenticationError, @@ -27,7 +26,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union + from typing import Any, Callable, Dict, Optional, TypeVar, Union T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -133,7 +132,9 @@ def put( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -171,7 +172,9 @@ def get( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/ObjectType/objecttype/_configuration.py b/test/vanilla/legacy/Expected/AcceptanceTests/ObjectType/objecttype/_configuration.py index b8c2eb028e2..59c8713f1b6 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/ObjectType/objecttype/_configuration.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/ObjectType/objecttype/_configuration.py @@ -18,7 +18,7 @@ from typing import Any -class ObjectTypeClientConfiguration(Configuration): +class ObjectTypeClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for ObjectTypeClient. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/ObjectType/objecttype/_object_type_client.py b/test/vanilla/legacy/Expected/AcceptanceTests/ObjectType/objecttype/_object_type_client.py index 3e86486fa6a..fd14b834921 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/ObjectType/objecttype/_object_type_client.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/ObjectType/objecttype/_object_type_client.py @@ -17,7 +17,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Dict, Optional + from typing import Any, Dict from azure.core.rest import HttpRequest, HttpResponse diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/ObjectType/objecttype/aio/_configuration.py b/test/vanilla/legacy/Expected/AcceptanceTests/ObjectType/objecttype/aio/_configuration.py index 5c8877fc3b9..8e6db9a7d20 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/ObjectType/objecttype/aio/_configuration.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/ObjectType/objecttype/aio/_configuration.py @@ -14,7 +14,7 @@ from .._version import VERSION -class ObjectTypeClientConfiguration(Configuration): +class ObjectTypeClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for ObjectTypeClient. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/ObjectType/objecttype/aio/_object_type_client.py b/test/vanilla/legacy/Expected/AcceptanceTests/ObjectType/objecttype/aio/_object_type_client.py index 7061faa0de3..242dc9867ee 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/ObjectType/objecttype/aio/_object_type_client.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/ObjectType/objecttype/aio/_object_type_client.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional, TYPE_CHECKING +from typing import Any, Awaitable, TYPE_CHECKING from azure.core import AsyncPipelineClient from azure.core.rest import AsyncHttpResponse, HttpRequest diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/ObjectType/objecttype/aio/operations/_object_type_client_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/ObjectType/objecttype/aio/operations/_object_type_client_operations.py index 5e7b0afb06d..8ae2020afa5 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/ObjectType/objecttype/aio/operations/_object_type_client_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/ObjectType/objecttype/aio/operations/_object_type_client_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ( ClientAuthenticationError, @@ -49,7 +48,9 @@ async def get(self, **kwargs: Any) -> Any: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -94,7 +95,9 @@ async def put(self, put_object: Any, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 df3fd000640..2d2e1ea9d3b 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ( ClientAuthenticationError, @@ -26,7 +25,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar + from typing import Any, Callable, Dict, Optional, TypeVar T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -103,7 +102,9 @@ def get( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -153,7 +154,9 @@ def put( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/ParameterFlattening/parameterflattening/_auto_rest_parameter_flattening.py b/test/vanilla/legacy/Expected/AcceptanceTests/ParameterFlattening/parameterflattening/_auto_rest_parameter_flattening.py index b9b8b6cac6a..77c183e7295 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/ParameterFlattening/parameterflattening/_auto_rest_parameter_flattening.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/ParameterFlattening/parameterflattening/_auto_rest_parameter_flattening.py @@ -18,7 +18,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Optional + from typing import Any from azure.core.rest import HttpRequest, HttpResponse diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/ParameterFlattening/parameterflattening/_configuration.py b/test/vanilla/legacy/Expected/AcceptanceTests/ParameterFlattening/parameterflattening/_configuration.py index ad161b32967..fd9dd71475d 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/ParameterFlattening/parameterflattening/_configuration.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/ParameterFlattening/parameterflattening/_configuration.py @@ -18,7 +18,7 @@ from typing import Any -class AutoRestParameterFlatteningConfiguration(Configuration): +class AutoRestParameterFlatteningConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestParameterFlattening. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/ParameterFlattening/parameterflattening/aio/_auto_rest_parameter_flattening.py b/test/vanilla/legacy/Expected/AcceptanceTests/ParameterFlattening/parameterflattening/aio/_auto_rest_parameter_flattening.py index e33d8e1fec2..9f20f4100d3 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/ParameterFlattening/parameterflattening/aio/_auto_rest_parameter_flattening.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/ParameterFlattening/parameterflattening/aio/_auto_rest_parameter_flattening.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional +from typing import Any, Awaitable from azure.core import AsyncPipelineClient from azure.core.rest import AsyncHttpResponse, HttpRequest diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/ParameterFlattening/parameterflattening/aio/_configuration.py b/test/vanilla/legacy/Expected/AcceptanceTests/ParameterFlattening/parameterflattening/aio/_configuration.py index 2def2fa1a10..5bcb4b1198f 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/ParameterFlattening/parameterflattening/aio/_configuration.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/ParameterFlattening/parameterflattening/aio/_configuration.py @@ -14,7 +14,7 @@ from .._version import VERSION -class AutoRestParameterFlatteningConfiguration(Configuration): +class AutoRestParameterFlatteningConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestParameterFlattening. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/ParameterFlattening/parameterflattening/aio/operations/_availability_sets_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/ParameterFlattening/parameterflattening/aio/operations/_availability_sets_operations.py index a8598dd4423..da672e99e57 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/ParameterFlattening/parameterflattening/aio/operations/_availability_sets_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/ParameterFlattening/parameterflattening/aio/operations/_availability_sets_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ( ClientAuthenticationError, @@ -85,7 +84,9 @@ async def update(self, resource_group_name: str, avset: str, tags: Dict[str, str request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 620d1480ca5..994380e4200 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ( ClientAuthenticationError, @@ -27,7 +26,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar + from typing import Any, Callable, Dict, Optional, TypeVar T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -129,7 +128,9 @@ def update( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/ParameterizedEndpoint/parameterizedendpoint/_configuration.py b/test/vanilla/legacy/Expected/AcceptanceTests/ParameterizedEndpoint/parameterizedendpoint/_configuration.py index 551be228881..88f1dffbf6a 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/ParameterizedEndpoint/parameterizedendpoint/_configuration.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/ParameterizedEndpoint/parameterizedendpoint/_configuration.py @@ -18,7 +18,7 @@ from typing import Any -class ParmaterizedEndpointClientConfiguration(Configuration): +class ParmaterizedEndpointClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for ParmaterizedEndpointClient. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/ParameterizedEndpoint/parameterizedendpoint/aio/_configuration.py b/test/vanilla/legacy/Expected/AcceptanceTests/ParameterizedEndpoint/parameterizedendpoint/aio/_configuration.py index ea820d0034b..96ac0e13f69 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/ParameterizedEndpoint/parameterizedendpoint/aio/_configuration.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/ParameterizedEndpoint/parameterizedendpoint/aio/_configuration.py @@ -14,7 +14,7 @@ from .._version import VERSION -class ParmaterizedEndpointClientConfiguration(Configuration): +class ParmaterizedEndpointClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for ParmaterizedEndpointClient. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/ParameterizedEndpoint/parameterizedendpoint/aio/operations/_parmaterized_endpoint_client_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/ParameterizedEndpoint/parameterizedendpoint/aio/operations/_parmaterized_endpoint_client_operations.py index ddb3797a3cc..22c5f301874 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/ParameterizedEndpoint/parameterizedendpoint/aio/operations/_parmaterized_endpoint_client_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/ParameterizedEndpoint/parameterizedendpoint/aio/operations/_parmaterized_endpoint_client_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ( ClientAuthenticationError, @@ -51,7 +50,9 @@ async def get(self, **kwargs: Any) -> None: } request.url = self._client.format_url(request.url, **path_format_arguments) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 b228f2aeb62..3a72ae8fe00 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ( ClientAuthenticationError, @@ -26,7 +25,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar + from typing import Any, Callable, Dict, Optional, TypeVar T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -75,7 +74,9 @@ def get( } request.url = self._client.format_url(request.url, **path_format_arguments) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/Report/report/_auto_rest_report_service.py b/test/vanilla/legacy/Expected/AcceptanceTests/Report/report/_auto_rest_report_service.py index 062767db1c1..2e4992c8c7a 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/Report/report/_auto_rest_report_service.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/Report/report/_auto_rest_report_service.py @@ -18,7 +18,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Optional + from typing import Any from azure.core.rest import HttpRequest, HttpResponse diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/Report/report/_configuration.py b/test/vanilla/legacy/Expected/AcceptanceTests/Report/report/_configuration.py index 80e1163ce47..e61b4de7048 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/Report/report/_configuration.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/Report/report/_configuration.py @@ -18,7 +18,7 @@ from typing import Any -class AutoRestReportServiceConfiguration(Configuration): +class AutoRestReportServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestReportService. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/Report/report/aio/_auto_rest_report_service.py b/test/vanilla/legacy/Expected/AcceptanceTests/Report/report/aio/_auto_rest_report_service.py index 93dc2dcd037..9b53b16debb 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/Report/report/aio/_auto_rest_report_service.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/Report/report/aio/_auto_rest_report_service.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional +from typing import Any, Awaitable from azure.core import AsyncPipelineClient from azure.core.rest import AsyncHttpResponse, HttpRequest diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/Report/report/aio/_configuration.py b/test/vanilla/legacy/Expected/AcceptanceTests/Report/report/aio/_configuration.py index 0b086b995d9..deffe2972cc 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/Report/report/aio/_configuration.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/Report/report/aio/_configuration.py @@ -14,7 +14,7 @@ from .._version import VERSION -class AutoRestReportServiceConfiguration(Configuration): +class AutoRestReportServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestReportService. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/Report/report/aio/operations/_auto_rest_report_service_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/Report/report/aio/operations/_auto_rest_report_service_operations.py index 9872b83ad3b..c8e6bb82c68 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/Report/report/aio/operations/_auto_rest_report_service_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/Report/report/aio/operations/_auto_rest_report_service_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ( ClientAuthenticationError, @@ -57,7 +56,9 @@ async def get_report(self, qualifier: Optional[str] = None, **kwargs: Any) -> Di request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -98,7 +99,9 @@ async def get_optional_report(self, qualifier: Optional[str] = None, **kwargs: A request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 7a5cdd6079e..d7614011b2a 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ( ClientAuthenticationError, @@ -27,7 +26,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar + from typing import Any, Callable, Dict, Optional, TypeVar T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -122,7 +121,9 @@ def get_report( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -168,7 +169,9 @@ def get_optional_report( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/RequiredOptional/requiredoptional/_configuration.py b/test/vanilla/legacy/Expected/AcceptanceTests/RequiredOptional/requiredoptional/_configuration.py index 6e31b436139..78e3af232e8 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/RequiredOptional/requiredoptional/_configuration.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/RequiredOptional/requiredoptional/_configuration.py @@ -18,7 +18,7 @@ from typing import Any, Optional -class AutoRestRequiredOptionalTestServiceConfiguration(Configuration): +class AutoRestRequiredOptionalTestServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestRequiredOptionalTestService. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/RequiredOptional/requiredoptional/aio/_configuration.py b/test/vanilla/legacy/Expected/AcceptanceTests/RequiredOptional/requiredoptional/aio/_configuration.py index 2a219b5169e..7e8ed6d197f 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/RequiredOptional/requiredoptional/aio/_configuration.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/RequiredOptional/requiredoptional/aio/_configuration.py @@ -14,7 +14,7 @@ from .._version import VERSION -class AutoRestRequiredOptionalTestServiceConfiguration(Configuration): +class AutoRestRequiredOptionalTestServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestRequiredOptionalTestService. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/RequiredOptional/requiredoptional/aio/operations/_explicit_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/RequiredOptional/requiredoptional/aio/operations/_explicit_operations.py index 954d5c79fce..7d553f2558e 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/RequiredOptional/requiredoptional/aio/operations/_explicit_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/RequiredOptional/requiredoptional/aio/operations/_explicit_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, IO, List, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, IO, List, Optional, TypeVar from azure.core.exceptions import ( ClientAuthenticationError, @@ -54,7 +53,7 @@ ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] -class ExplicitOperations: +class ExplicitOperations: # pylint: disable=too-many-public-methods """ExplicitOperations async operations. You should not instantiate this class directly. Instead, you should create a Client instance that @@ -103,7 +102,9 @@ async def put_optional_binary_body(self, body_parameter: Optional[IO] = None, ** request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -143,7 +144,9 @@ async def put_required_binary_body(self, body_parameter: IO, **kwargs: Any) -> N request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -184,7 +187,9 @@ async def post_required_integer_parameter(self, body_parameter: int, **kwargs: A request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -227,7 +232,9 @@ async def post_optional_integer_parameter(self, body_parameter: Optional[int] = request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -269,7 +276,9 @@ async def post_required_integer_property(self, value: int, **kwargs: Any) -> Non request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -313,7 +322,9 @@ async def post_optional_integer_property(self, value: Optional[int] = None, **kw request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -349,7 +360,9 @@ async def post_required_integer_header(self, header_parameter: int, **kwargs: An request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -384,7 +397,9 @@ async def post_optional_integer_header(self, header_parameter: Optional[int] = N request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -425,7 +440,9 @@ async def post_required_string_parameter(self, body_parameter: str, **kwargs: An request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -468,7 +485,9 @@ async def post_optional_string_parameter(self, body_parameter: Optional[str] = N request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -510,7 +529,9 @@ async def post_required_string_property(self, value: str, **kwargs: Any) -> None request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -554,7 +575,9 @@ async def post_optional_string_property(self, value: Optional[str] = None, **kwa request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -590,7 +613,9 @@ async def post_required_string_header(self, header_parameter: str, **kwargs: Any request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -625,7 +650,9 @@ async def post_optional_string_header(self, body_parameter: Optional[str] = None request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -666,7 +693,9 @@ async def post_required_class_parameter(self, body_parameter: "_models.Product", request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -711,7 +740,9 @@ async def post_optional_class_parameter( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -753,7 +784,9 @@ async def post_required_class_property(self, value: "_models.Product", **kwargs: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -797,7 +830,9 @@ async def post_optional_class_property(self, value: Optional["_models.Product"] request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -838,7 +873,9 @@ async def post_required_array_parameter(self, body_parameter: List[str], **kwarg request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -881,7 +918,9 @@ async def post_optional_array_parameter(self, body_parameter: Optional[List[str] request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -923,7 +962,9 @@ async def post_required_array_property(self, value: List[str], **kwargs: Any) -> request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -967,7 +1008,9 @@ async def post_optional_array_property(self, value: Optional[List[str]] = None, request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1003,7 +1046,9 @@ async def post_required_array_header(self, header_parameter: List[str], **kwargs request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1038,7 +1083,9 @@ async def post_optional_array_header(self, header_parameter: Optional[List[str]] request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/RequiredOptional/requiredoptional/aio/operations/_implicit_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/RequiredOptional/requiredoptional/aio/operations/_implicit_operations.py index a8ba5b6fc59..05d8e2583f5 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/RequiredOptional/requiredoptional/aio/operations/_implicit_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/RequiredOptional/requiredoptional/aio/operations/_implicit_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, IO, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, IO, Optional, TypeVar from azure.core.exceptions import ( ClientAuthenticationError, @@ -82,7 +81,9 @@ async def get_required_path(self, path_parameter: str, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -117,7 +118,9 @@ async def put_optional_query(self, query_parameter: Optional[str] = None, **kwar request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -152,7 +155,9 @@ async def put_optional_header(self, query_parameter: Optional[str] = None, **kwa request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -195,7 +200,9 @@ async def put_optional_body(self, body_parameter: Optional[str] = None, **kwargs request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -235,7 +242,9 @@ async def put_optional_binary_body(self, body_parameter: Optional[IO] = None, ** request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -268,7 +277,9 @@ async def get_required_global_path(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -301,7 +312,9 @@ async def get_required_global_query(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -334,7 +347,9 @@ async def get_optional_global_query(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 e5eb120db25..52511ce5688 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ( ClientAuthenticationError, @@ -27,7 +26,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, IO, List, 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]] @@ -608,7 +607,7 @@ def build_post_optional_array_header_request( ) # fmt: on -class ExplicitOperations(object): +class ExplicitOperations(object): # pylint: disable=too-many-public-methods """ExplicitOperations operations. You should not instantiate this class directly. Instead, you should create a Client instance that @@ -662,7 +661,9 @@ def put_optional_binary_body( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -707,7 +708,9 @@ def put_required_binary_body( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -753,7 +756,9 @@ def post_required_integer_parameter( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -801,7 +806,9 @@ def post_optional_integer_parameter( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -848,7 +855,9 @@ def post_required_integer_property( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -897,7 +906,9 @@ def post_optional_integer_property( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -938,7 +949,9 @@ def post_required_integer_header( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -978,7 +991,9 @@ def post_optional_integer_header( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1024,7 +1039,9 @@ def post_required_string_parameter( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1072,7 +1089,9 @@ def post_optional_string_parameter( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1119,7 +1138,9 @@ def post_required_string_property( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1168,7 +1189,9 @@ def post_optional_string_property( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1209,7 +1232,9 @@ def post_required_string_header( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1249,7 +1274,9 @@ def post_optional_string_header( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1295,7 +1322,9 @@ def post_required_class_parameter( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1343,7 +1372,9 @@ def post_optional_class_parameter( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1390,7 +1421,9 @@ def post_required_class_property( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1439,7 +1472,9 @@ def post_optional_class_property( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1485,7 +1520,9 @@ def post_required_array_parameter( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1533,7 +1570,9 @@ def post_optional_array_parameter( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1580,7 +1619,9 @@ def post_required_array_property( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1629,7 +1670,9 @@ def post_optional_array_property( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1670,7 +1713,9 @@ def post_required_array_header( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1710,7 +1755,9 @@ def post_optional_array_header( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 8fb2f9c7498..bc29ccc34e3 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ( ClientAuthenticationError, @@ -27,7 +26,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, IO, Optional, TypeVar + from typing import Any, Callable, Dict, IO, Optional, TypeVar T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -291,7 +290,9 @@ def get_required_path( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -331,7 +332,9 @@ def put_optional_query( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -371,7 +374,9 @@ def put_optional_header( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -419,7 +424,9 @@ def put_optional_body( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -464,7 +471,9 @@ def put_optional_binary_body( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -500,7 +509,9 @@ def get_required_global_path( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -536,7 +547,9 @@ def get_required_global_query( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -572,7 +585,9 @@ def get_optional_global_query( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/ReservedWords/reservedwords/_configuration.py b/test/vanilla/legacy/Expected/AcceptanceTests/ReservedWords/reservedwords/_configuration.py index 015bcabd8e4..2c14e7cf97c 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/ReservedWords/reservedwords/_configuration.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/ReservedWords/reservedwords/_configuration.py @@ -18,7 +18,7 @@ from typing import Any -class ReservedWordsClientConfiguration(Configuration): +class ReservedWordsClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for ReservedWordsClient. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/ReservedWords/reservedwords/_reserved_words_client.py b/test/vanilla/legacy/Expected/AcceptanceTests/ReservedWords/reservedwords/_reserved_words_client.py index fc7791871ad..a13bc23c545 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/ReservedWords/reservedwords/_reserved_words_client.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/ReservedWords/reservedwords/_reserved_words_client.py @@ -18,7 +18,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Optional + from typing import Any from azure.core.rest import HttpRequest, HttpResponse diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/ReservedWords/reservedwords/aio/_configuration.py b/test/vanilla/legacy/Expected/AcceptanceTests/ReservedWords/reservedwords/aio/_configuration.py index b3c39889d49..14375a5d2f6 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/ReservedWords/reservedwords/aio/_configuration.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/ReservedWords/reservedwords/aio/_configuration.py @@ -14,7 +14,7 @@ from .._version import VERSION -class ReservedWordsClientConfiguration(Configuration): +class ReservedWordsClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for ReservedWordsClient. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/ReservedWords/reservedwords/aio/_reserved_words_client.py b/test/vanilla/legacy/Expected/AcceptanceTests/ReservedWords/reservedwords/aio/_reserved_words_client.py index 77194b3e593..21a29598ccf 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/ReservedWords/reservedwords/aio/_reserved_words_client.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/ReservedWords/reservedwords/aio/_reserved_words_client.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional +from typing import Any, Awaitable from azure.core import AsyncPipelineClient from azure.core.rest import AsyncHttpResponse, HttpRequest diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/ReservedWords/reservedwords/aio/operations/_import_operations_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/ReservedWords/reservedwords/aio/operations/_import_operations_operations.py index cebd76368a7..7aaa9cafa03 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/ReservedWords/reservedwords/aio/operations/_import_operations_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/ReservedWords/reservedwords/aio/operations/_import_operations_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ( ClientAuthenticationError, @@ -73,7 +72,9 @@ async def operation_one(self, parameter1: str, **kwargs: Any) -> Any: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 04d6b1b64cc..2345befce25 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, IO, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, IO, Optional, TypeVar from azure.core.exceptions import ( ClientAuthenticationError, @@ -62,7 +61,9 @@ async def operation_with_content_param(self, content: IO, **kwargs: Any) -> Any: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -105,7 +106,9 @@ async def operation_with_json_param(self, json: Any, **kwargs: Any) -> Any: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -154,7 +157,9 @@ async def operation_with_data_param(self, data: str, world: str, **kwargs: Any) request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -203,7 +208,9 @@ async def operation_with_files_param(self, files: IO, file_name: str, **kwargs: request = _convert_request(request, _files) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 06e67723cc9..cb16d307870 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ( ClientAuthenticationError, @@ -27,7 +26,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar + from typing import Any, Callable, Dict, Optional, TypeVar T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -112,7 +111,9 @@ def operation_one( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 c2a19b9125b..67dbdb06f84 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ( ClientAuthenticationError, @@ -27,7 +26,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, IO, Optional, TypeVar + from typing import Any, Callable, Dict, IO, Optional, TypeVar T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -165,7 +164,9 @@ def operation_with_content_param( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -213,7 +214,9 @@ def operation_with_json_param( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -268,7 +271,9 @@ def operation_with_data_param( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -323,7 +328,9 @@ def operation_with_files_param( request = _convert_request(request, _files) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/Url/url/_configuration.py b/test/vanilla/legacy/Expected/AcceptanceTests/Url/url/_configuration.py index 80e0a0fd1a9..1dce6bc196e 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/Url/url/_configuration.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/Url/url/_configuration.py @@ -18,7 +18,7 @@ from typing import Any, Optional -class AutoRestUrlTestServiceConfiguration(Configuration): +class AutoRestUrlTestServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestUrlTestService. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/Url/url/aio/_configuration.py b/test/vanilla/legacy/Expected/AcceptanceTests/Url/url/aio/_configuration.py index e5a929b5629..48b8c2ec5b0 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/Url/url/aio/_configuration.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/Url/url/aio/_configuration.py @@ -14,7 +14,7 @@ from .._version import VERSION -class AutoRestUrlTestServiceConfiguration(Configuration): +class AutoRestUrlTestServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestUrlTestService. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/Url/url/aio/operations/_path_items_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/Url/url/aio/operations/_path_items_operations.py index 65711910f38..9eed01b591d 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/Url/url/aio/operations/_path_items_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/Url/url/aio/operations/_path_items_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ( ClientAuthenticationError, @@ -99,7 +98,9 @@ async def get_all_with_values( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -155,7 +156,9 @@ async def get_global_query_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -211,7 +214,9 @@ async def get_global_and_local_query_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -266,7 +271,9 @@ async def get_local_path_item_query_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/Url/url/aio/operations/_paths_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/Url/url/aio/operations/_paths_operations.py index bf2e170f022..6a9a2aca2fb 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/Url/url/aio/operations/_paths_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/Url/url/aio/operations/_paths_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -6,9 +7,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import datetime -import functools -from typing import Any, Callable, Dict, Generic, List, Optional, TypeVar, Union -import warnings +from typing import Any, Callable, Dict, List, Optional, TypeVar, Union from azure.core.exceptions import ( ClientAuthenticationError, @@ -58,7 +57,7 @@ ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] -class PathsOperations: +class PathsOperations: # pylint: disable=too-many-public-methods """PathsOperations async operations. You should not instantiate this class directly. Instead, you should create a Client instance that @@ -105,7 +104,9 @@ async def get_boolean_true(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -143,7 +144,9 @@ async def get_boolean_false(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -181,7 +184,9 @@ async def get_int_one_million(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -219,7 +224,9 @@ async def get_int_negative_one_million(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -257,7 +264,9 @@ async def get_ten_billion(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -295,7 +304,9 @@ async def get_negative_ten_billion(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -333,7 +344,9 @@ async def float_scientific_positive(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -371,7 +384,9 @@ async def float_scientific_negative(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -409,7 +424,9 @@ async def double_decimal_positive(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -447,7 +464,9 @@ async def double_decimal_negative(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -485,7 +504,9 @@ async def string_unicode(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -524,7 +545,9 @@ async def string_url_encoded(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -565,7 +588,9 @@ async def string_url_non_encoded(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -603,7 +628,9 @@ async def string_empty(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -638,7 +665,9 @@ async def string_null(self, string_path: str, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [400]: @@ -673,7 +702,9 @@ async def enum_valid(self, enum_path: Union[str, "_models.UriColor"], **kwargs: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -708,7 +739,9 @@ async def enum_null(self, enum_path: Union[str, "_models.UriColor"], **kwargs: A request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [400]: @@ -743,7 +776,9 @@ async def byte_multi_byte(self, byte_path: bytearray, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -781,7 +816,9 @@ async def byte_empty(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -816,7 +853,9 @@ async def byte_null(self, byte_path: bytearray, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [400]: @@ -854,7 +893,9 @@ async def date_valid(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -890,7 +931,9 @@ async def date_null(self, date_path: datetime.date, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [400]: @@ -929,7 +972,9 @@ async def date_time_valid(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -964,7 +1009,9 @@ async def date_time_null(self, date_time_path: datetime.datetime, **kwargs: Any) request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [400]: @@ -999,7 +1046,9 @@ async def base64_url(self, base64_url_path: bytes, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1036,7 +1085,9 @@ async def array_csv_in_path(self, array_path: List[str], **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1071,7 +1122,9 @@ async def unix_time_url(self, unix_time_url_path: datetime.datetime, **kwargs: A request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/Url/url/aio/operations/_queries_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/Url/url/aio/operations/_queries_operations.py index 93680752fbf..fb3f17e2a7d 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/Url/url/aio/operations/_queries_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/Url/url/aio/operations/_queries_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -6,9 +7,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import datetime -import functools -from typing import Any, Callable, Dict, Generic, List, Optional, TypeVar, Union -import warnings +from typing import Any, Callable, Dict, List, Optional, TypeVar, Union from azure.core.exceptions import ( ClientAuthenticationError, @@ -66,7 +65,7 @@ ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] -class QueriesOperations: +class QueriesOperations: # pylint: disable=too-many-public-methods """QueriesOperations async operations. You should not instantiate this class directly. Instead, you should create a Client instance that @@ -113,7 +112,9 @@ async def get_boolean_true(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -151,7 +152,9 @@ async def get_boolean_false(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -186,7 +189,9 @@ async def get_boolean_null(self, bool_query: Optional[bool] = None, **kwargs: An request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -224,7 +229,9 @@ async def get_int_one_million(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -262,7 +269,9 @@ async def get_int_negative_one_million(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -297,7 +306,9 @@ async def get_int_null(self, int_query: Optional[int] = None, **kwargs: Any) -> request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -335,7 +346,9 @@ async def get_ten_billion(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -373,7 +386,9 @@ async def get_negative_ten_billion(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -408,7 +423,9 @@ async def get_long_null(self, long_query: Optional[int] = None, **kwargs: Any) - request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -446,7 +463,9 @@ async def float_scientific_positive(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -484,7 +503,9 @@ async def float_scientific_negative(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -519,7 +540,9 @@ async def float_null(self, float_query: Optional[float] = None, **kwargs: Any) - request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -557,7 +580,9 @@ async def double_decimal_positive(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -595,7 +620,9 @@ async def double_decimal_negative(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -630,7 +657,9 @@ async def double_null(self, double_query: Optional[float] = None, **kwargs: Any) request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -668,7 +697,9 @@ async def string_unicode(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -707,7 +738,9 @@ async def string_url_encoded(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -745,7 +778,9 @@ async def string_empty(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -780,7 +815,9 @@ async def string_null(self, string_query: Optional[str] = None, **kwargs: Any) - request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -815,7 +852,9 @@ async def enum_valid(self, enum_query: Optional[Union[str, "_models.UriColor"]] request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -850,7 +889,9 @@ async def enum_null(self, enum_query: Optional[Union[str, "_models.UriColor"]] = request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -885,7 +926,9 @@ async def byte_multi_byte(self, byte_query: Optional[bytearray] = None, **kwargs request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -923,7 +966,9 @@ async def byte_empty(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -958,7 +1003,9 @@ async def byte_null(self, byte_query: Optional[bytearray] = None, **kwargs: Any) request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -996,7 +1043,9 @@ async def date_valid(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1031,7 +1080,9 @@ async def date_null(self, date_query: Optional[datetime.date] = None, **kwargs: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1070,7 +1121,9 @@ async def date_time_valid(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1105,7 +1158,9 @@ async def date_time_null(self, date_time_query: Optional[datetime.datetime] = No request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1142,7 +1197,9 @@ async def array_string_csv_valid(self, array_query: Optional[List[str]] = None, request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1177,7 +1234,9 @@ async def array_string_csv_null(self, array_query: Optional[List[str]] = None, * request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1212,7 +1271,9 @@ async def array_string_csv_empty(self, array_query: Optional[List[str]] = None, request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1250,7 +1311,9 @@ async def array_string_no_collection_format_empty( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1287,7 +1350,9 @@ async def array_string_ssv_valid(self, array_query: Optional[List[str]] = None, request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1324,7 +1389,9 @@ async def array_string_tsv_valid(self, array_query: Optional[List[str]] = None, request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1361,7 +1428,9 @@ async def array_string_pipes_valid(self, array_query: Optional[List[str]] = None request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 1194ab13d99..769d7a4d33b 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ( ClientAuthenticationError, @@ -27,7 +26,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar + from typing import Any, Callable, Dict, Optional, TypeVar T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -48,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') + 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'), @@ -92,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') + 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'), @@ -136,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') + 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'), @@ -180,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') + 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'), @@ -277,7 +276,9 @@ def get_all_with_values( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -334,7 +335,9 @@ def get_global_query_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -391,7 +394,9 @@ def get_global_and_local_query_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -447,7 +452,9 @@ def get_local_path_item_query_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 aa416f9a66f..9844b6f09c2 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -6,9 +7,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import datetime -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ( ClientAuthenticationError, @@ -28,7 +27,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, List, Optional, TypeVar, Union + from typing import Any, Callable, Dict, List, Optional, TypeVar, Union T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -341,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}') + 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'), } @@ -710,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}') + 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=','), } @@ -755,7 +754,7 @@ def build_unix_time_url_request( ) # fmt: on -class PathsOperations(object): +class PathsOperations(object): # pylint: disable=too-many-public-methods """PathsOperations operations. You should not instantiate this class directly. Instead, you should create a Client instance that @@ -805,7 +804,9 @@ def get_boolean_true( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -846,7 +847,9 @@ def get_boolean_false( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -887,7 +890,9 @@ def get_int_one_million( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -928,7 +933,9 @@ def get_int_negative_one_million( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -969,7 +976,9 @@ def get_ten_billion( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1010,7 +1019,9 @@ def get_negative_ten_billion( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1051,7 +1062,9 @@ def float_scientific_positive( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1092,7 +1105,9 @@ def float_scientific_negative( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1133,7 +1148,9 @@ def double_decimal_positive( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1174,7 +1191,9 @@ def double_decimal_negative( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1215,7 +1234,9 @@ def string_unicode( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1257,7 +1278,9 @@ def string_url_encoded( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1301,7 +1324,9 @@ def string_url_non_encoded( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1342,7 +1367,9 @@ def string_empty( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1382,7 +1409,9 @@ def string_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [400]: @@ -1422,7 +1451,9 @@ def enum_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1462,7 +1493,9 @@ def enum_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [400]: @@ -1502,7 +1535,9 @@ def byte_multi_byte( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1543,7 +1578,9 @@ def byte_empty( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1583,7 +1620,9 @@ def byte_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [400]: @@ -1624,7 +1663,9 @@ def date_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1665,7 +1706,9 @@ def date_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [400]: @@ -1707,7 +1750,9 @@ def date_time_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1747,7 +1792,9 @@ def date_time_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [400]: @@ -1787,7 +1834,9 @@ def base64_url( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1829,7 +1878,9 @@ def array_csv_in_path( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1869,7 +1920,9 @@ def unix_time_url( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 60d7929188a..ba29c28c43f 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -6,9 +7,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import datetime -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ( ClientAuthenticationError, @@ -28,7 +27,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, List, Optional, TypeVar, Union + from typing import Any, Callable, Dict, List, Optional, TypeVar, Union T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -1000,7 +999,7 @@ def build_array_string_pipes_valid_request( ) # fmt: on -class QueriesOperations(object): +class QueriesOperations(object): # pylint: disable=too-many-public-methods """QueriesOperations operations. You should not instantiate this class directly. Instead, you should create a Client instance that @@ -1050,7 +1049,9 @@ def get_boolean_true( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1091,7 +1092,9 @@ def get_boolean_false( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1131,7 +1134,9 @@ def get_boolean_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1172,7 +1177,9 @@ def get_int_one_million( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1213,7 +1220,9 @@ def get_int_negative_one_million( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1253,7 +1262,9 @@ def get_int_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1294,7 +1305,9 @@ def get_ten_billion( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1335,7 +1348,9 @@ def get_negative_ten_billion( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1375,7 +1390,9 @@ def get_long_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1416,7 +1433,9 @@ def float_scientific_positive( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1457,7 +1476,9 @@ def float_scientific_negative( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1497,7 +1518,9 @@ def float_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1538,7 +1561,9 @@ def double_decimal_positive( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1579,7 +1604,9 @@ def double_decimal_negative( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1619,7 +1646,9 @@ def double_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1660,7 +1689,9 @@ def string_unicode( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1702,7 +1733,9 @@ def string_url_encoded( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1743,7 +1776,9 @@ def string_empty( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1783,7 +1818,9 @@ def string_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1823,7 +1860,9 @@ def enum_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1863,7 +1902,9 @@ def enum_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1903,7 +1944,9 @@ def byte_multi_byte( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1944,7 +1987,9 @@ def byte_empty( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1984,7 +2029,9 @@ def byte_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2025,7 +2072,9 @@ def date_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2065,7 +2114,9 @@ def date_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2107,7 +2158,9 @@ def date_time_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2147,7 +2200,9 @@ def date_time_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2189,7 +2244,9 @@ def array_string_csv_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2229,7 +2286,9 @@ def array_string_csv_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2269,7 +2328,9 @@ def array_string_csv_empty( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2310,7 +2371,9 @@ def array_string_no_collection_format_empty( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2352,7 +2415,9 @@ def array_string_ssv_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2394,7 +2459,9 @@ def array_string_tsv_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2436,7 +2503,9 @@ def array_string_pipes_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/UrlMultiCollectionFormat/urlmulticollectionformat/_auto_rest_url_mutli_collection_format_test_service.py b/test/vanilla/legacy/Expected/AcceptanceTests/UrlMultiCollectionFormat/urlmulticollectionformat/_auto_rest_url_mutli_collection_format_test_service.py index bc4fae2f2c3..dc1690e7574 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/UrlMultiCollectionFormat/urlmulticollectionformat/_auto_rest_url_mutli_collection_format_test_service.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/UrlMultiCollectionFormat/urlmulticollectionformat/_auto_rest_url_mutli_collection_format_test_service.py @@ -18,7 +18,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Optional + from typing import Any from azure.core.rest import HttpRequest, HttpResponse diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/UrlMultiCollectionFormat/urlmulticollectionformat/_configuration.py b/test/vanilla/legacy/Expected/AcceptanceTests/UrlMultiCollectionFormat/urlmulticollectionformat/_configuration.py index 3ea2f6ac0ac..98f9289675b 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/UrlMultiCollectionFormat/urlmulticollectionformat/_configuration.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/UrlMultiCollectionFormat/urlmulticollectionformat/_configuration.py @@ -18,7 +18,9 @@ from typing import Any -class AutoRestUrlMutliCollectionFormatTestServiceConfiguration(Configuration): +class AutoRestUrlMutliCollectionFormatTestServiceConfiguration( + Configuration +): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestUrlMutliCollectionFormatTestService. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/UrlMultiCollectionFormat/urlmulticollectionformat/aio/_auto_rest_url_mutli_collection_format_test_service.py b/test/vanilla/legacy/Expected/AcceptanceTests/UrlMultiCollectionFormat/urlmulticollectionformat/aio/_auto_rest_url_mutli_collection_format_test_service.py index 8f688943313..1e21f3798cd 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/UrlMultiCollectionFormat/urlmulticollectionformat/aio/_auto_rest_url_mutli_collection_format_test_service.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/UrlMultiCollectionFormat/urlmulticollectionformat/aio/_auto_rest_url_mutli_collection_format_test_service.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional +from typing import Any, Awaitable from azure.core import AsyncPipelineClient from azure.core.rest import AsyncHttpResponse, HttpRequest diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/UrlMultiCollectionFormat/urlmulticollectionformat/aio/_configuration.py b/test/vanilla/legacy/Expected/AcceptanceTests/UrlMultiCollectionFormat/urlmulticollectionformat/aio/_configuration.py index 30b9cb9fe74..51186d27106 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/UrlMultiCollectionFormat/urlmulticollectionformat/aio/_configuration.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/UrlMultiCollectionFormat/urlmulticollectionformat/aio/_configuration.py @@ -14,7 +14,9 @@ from .._version import VERSION -class AutoRestUrlMutliCollectionFormatTestServiceConfiguration(Configuration): +class AutoRestUrlMutliCollectionFormatTestServiceConfiguration( + Configuration +): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestUrlMutliCollectionFormatTestService. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/UrlMultiCollectionFormat/urlmulticollectionformat/aio/operations/_queries_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/UrlMultiCollectionFormat/urlmulticollectionformat/aio/operations/_queries_operations.py index 8605f3803ea..cf26e082fc9 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/UrlMultiCollectionFormat/urlmulticollectionformat/aio/operations/_queries_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/UrlMultiCollectionFormat/urlmulticollectionformat/aio/operations/_queries_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, List, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, List, Optional, TypeVar from azure.core.exceptions import ( ClientAuthenticationError, @@ -77,7 +76,9 @@ async def array_string_multi_null(self, array_query: Optional[List[str]] = None, request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -112,7 +113,9 @@ async def array_string_multi_empty(self, array_query: Optional[List[str]] = None request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -149,7 +152,9 @@ async def array_string_multi_valid(self, array_query: Optional[List[str]] = None request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 8b947823358..6e211ac5d93 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ( ClientAuthenticationError, @@ -27,7 +26,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, List, Optional, TypeVar + from typing import Any, Callable, Dict, List, Optional, TypeVar T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -169,7 +168,9 @@ def array_string_multi_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -209,7 +210,9 @@ def array_string_multi_empty( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -251,7 +254,9 @@ def array_string_multi_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/Validation/validation/_auto_rest_validation_test.py b/test/vanilla/legacy/Expected/AcceptanceTests/Validation/validation/_auto_rest_validation_test.py index 9b8fec305b8..4a2a7eda602 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/Validation/validation/_auto_rest_validation_test.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/Validation/validation/_auto_rest_validation_test.py @@ -18,7 +18,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Optional + from typing import Any from azure.core.rest import HttpRequest, HttpResponse diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/Validation/validation/_configuration.py b/test/vanilla/legacy/Expected/AcceptanceTests/Validation/validation/_configuration.py index 600b4f10c5b..8d1f66a06a3 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/Validation/validation/_configuration.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/Validation/validation/_configuration.py @@ -18,7 +18,7 @@ from typing import Any -class AutoRestValidationTestConfiguration(Configuration): +class AutoRestValidationTestConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestValidationTest. Note that all parameters used to create this instance are saved as instance @@ -26,7 +26,8 @@ class AutoRestValidationTestConfiguration(Configuration): :param subscription_id: Subscription ID. :type subscription_id: str - :keyword api_version: Api Version. The default value is "1.0.0". Note that overriding this default value may result in unsupported behavior. + :keyword api_version: Api Version. The default value is "1.0.0". Note that overriding this + default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/Validation/validation/aio/_auto_rest_validation_test.py b/test/vanilla/legacy/Expected/AcceptanceTests/Validation/validation/aio/_auto_rest_validation_test.py index 55fea7ae5ca..ab70424fb64 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/Validation/validation/aio/_auto_rest_validation_test.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/Validation/validation/aio/_auto_rest_validation_test.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional +from typing import Any, Awaitable from azure.core import AsyncPipelineClient from azure.core.rest import AsyncHttpResponse, HttpRequest diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/Validation/validation/aio/_configuration.py b/test/vanilla/legacy/Expected/AcceptanceTests/Validation/validation/aio/_configuration.py index b94ec5a513f..c5cf575016b 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/Validation/validation/aio/_configuration.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/Validation/validation/aio/_configuration.py @@ -14,7 +14,7 @@ from .._version import VERSION -class AutoRestValidationTestConfiguration(Configuration): +class AutoRestValidationTestConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestValidationTest. Note that all parameters used to create this instance are saved as instance @@ -22,7 +22,8 @@ class AutoRestValidationTestConfiguration(Configuration): :param subscription_id: Subscription ID. :type subscription_id: str - :keyword api_version: Api Version. The default value is "1.0.0". Note that overriding this default value may result in unsupported behavior. + :keyword api_version: Api Version. The default value is "1.0.0". Note that overriding this + default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/Validation/validation/aio/operations/_auto_rest_validation_test_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/Validation/validation/aio/operations/_auto_rest_validation_test_operations.py index 622e0494e3e..34689fa1f74 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/Validation/validation/aio/operations/_auto_rest_validation_test_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/Validation/validation/aio/operations/_auto_rest_validation_test_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ( ClientAuthenticationError, @@ -66,7 +65,9 @@ async def validation_of_method_parameters( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -124,7 +125,9 @@ async def validation_of_body( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -166,7 +169,9 @@ async def get_with_constant_in_path(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -215,7 +220,9 @@ async def post_with_constant_in_body( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 72bf8f07f6b..938a3d3b2df 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ( ClientAuthenticationError, @@ -27,7 +26,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar + from typing import Any, Callable, Dict, Optional, TypeVar T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -199,7 +198,9 @@ def validation_of_method_parameters( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -262,7 +263,9 @@ def validation_of_body( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -307,7 +310,9 @@ def get_with_constant_in_path( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -359,7 +364,9 @@ def post_with_constant_in_body( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/Xml/xmlservice/_auto_rest_swagger_batxml_service.py b/test/vanilla/legacy/Expected/AcceptanceTests/Xml/xmlservice/_auto_rest_swagger_batxml_service.py index 333e08c62b4..a00339a3e6b 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/Xml/xmlservice/_auto_rest_swagger_batxml_service.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/Xml/xmlservice/_auto_rest_swagger_batxml_service.py @@ -18,7 +18,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Optional + from typing import Any from azure.core.rest import HttpRequest, HttpResponse diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/Xml/xmlservice/_configuration.py b/test/vanilla/legacy/Expected/AcceptanceTests/Xml/xmlservice/_configuration.py index d8887a241fe..eb27a65aba2 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/Xml/xmlservice/_configuration.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/Xml/xmlservice/_configuration.py @@ -18,7 +18,7 @@ from typing import Any -class AutoRestSwaggerBATXMLServiceConfiguration(Configuration): +class AutoRestSwaggerBATXMLServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestSwaggerBATXMLService. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/Xml/xmlservice/aio/_auto_rest_swagger_batxml_service.py b/test/vanilla/legacy/Expected/AcceptanceTests/Xml/xmlservice/aio/_auto_rest_swagger_batxml_service.py index b91c0fb8964..7f0b58b504f 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/Xml/xmlservice/aio/_auto_rest_swagger_batxml_service.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/Xml/xmlservice/aio/_auto_rest_swagger_batxml_service.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional +from typing import Any, Awaitable from azure.core import AsyncPipelineClient from azure.core.rest import AsyncHttpResponse, HttpRequest diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/Xml/xmlservice/aio/_configuration.py b/test/vanilla/legacy/Expected/AcceptanceTests/Xml/xmlservice/aio/_configuration.py index 8cd31cae2e5..c6d89c576de 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/Xml/xmlservice/aio/_configuration.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/Xml/xmlservice/aio/_configuration.py @@ -14,7 +14,7 @@ from .._version import VERSION -class AutoRestSwaggerBATXMLServiceConfiguration(Configuration): +class AutoRestSwaggerBATXMLServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AutoRestSwaggerBATXMLService. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/Xml/xmlservice/aio/operations/_xml_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/Xml/xmlservice/aio/operations/_xml_operations.py index 0ae6288615b..4033b835152 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/Xml/xmlservice/aio/operations/_xml_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/Xml/xmlservice/aio/operations/_xml_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, List, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, List, Optional, TypeVar from azure.core.exceptions import ( ClientAuthenticationError, @@ -64,7 +63,7 @@ ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] -class XmlOperations: +class XmlOperations: # pylint: disable=too-many-public-methods """XmlOperations async operations. You should not instantiate this class directly. Instead, you should create a Client instance that @@ -105,7 +104,9 @@ async def get_complex_type_ref_no_meta(self, **kwargs: Any) -> "_models.RootWith request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -148,7 +149,9 @@ async def put_complex_type_ref_no_meta(self, model: "_models.RootWithRefAndNoMet request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [201]: @@ -179,7 +182,9 @@ async def get_complex_type_ref_with_meta(self, **kwargs: Any) -> "_models.RootWi request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -222,7 +227,9 @@ async def put_complex_type_ref_with_meta(self, model: "_models.RootWithRefAndMet request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [201]: @@ -253,7 +260,9 @@ async def get_simple(self, **kwargs: Any) -> "_models.Slideshow": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -297,7 +306,9 @@ async def put_simple(self, slideshow: "_models.Slideshow", **kwargs: Any) -> Non request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [201]: @@ -329,7 +340,9 @@ async def get_wrapped_lists(self, **kwargs: Any) -> "_models.AppleBarrel": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -372,7 +385,9 @@ async def put_wrapped_lists(self, wrapped_lists: "_models.AppleBarrel", **kwargs request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [201]: @@ -404,7 +419,9 @@ async def get_headers(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -438,7 +455,9 @@ async def get_empty_list(self, **kwargs: Any) -> "_models.Slideshow": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -481,7 +500,9 @@ async def put_empty_list(self, slideshow: "_models.Slideshow", **kwargs: Any) -> request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [201]: @@ -512,7 +533,9 @@ async def get_empty_wrapped_lists(self, **kwargs: Any) -> "_models.AppleBarrel": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -555,7 +578,9 @@ async def put_empty_wrapped_lists(self, apple_barrel: "_models.AppleBarrel", **k request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [201]: @@ -586,7 +611,9 @@ async def get_root_list(self, **kwargs: Any) -> List["_models.Banana"]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -630,7 +657,9 @@ async def put_root_list(self, bananas: List["_models.Banana"], **kwargs: Any) -> request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [201]: @@ -661,7 +690,9 @@ async def get_root_list_single_item(self, **kwargs: Any) -> List["_models.Banana request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -705,7 +736,9 @@ async def put_root_list_single_item(self, bananas: List["_models.Banana"], **kwa request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [201]: @@ -736,7 +769,9 @@ async def get_empty_root_list(self, **kwargs: Any) -> List["_models.Banana"]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -780,7 +815,9 @@ async def put_empty_root_list(self, bananas: List["_models.Banana"], **kwargs: A request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [201]: @@ -811,7 +848,9 @@ async def get_empty_child_element(self, **kwargs: Any) -> "_models.Banana": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -854,7 +893,9 @@ async def put_empty_child_element(self, banana: "_models.Banana", **kwargs: Any) request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [201]: @@ -891,7 +932,9 @@ async def list_containers(self, **kwargs: Any) -> "_models.ListContainersRespons request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -937,7 +980,9 @@ async def get_service_properties(self, **kwargs: Any) -> "_models.StorageService request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -990,7 +1035,9 @@ async def put_service_properties(self, properties: "_models.StorageServiceProper request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [201]: @@ -1032,7 +1079,9 @@ async def get_acls(self, **kwargs: Any) -> List["_models.SignedIdentifier"]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1088,7 +1137,9 @@ async def put_acls(self, properties: List["_models.SignedIdentifier"], **kwargs: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [201]: @@ -1130,7 +1181,9 @@ async def list_blobs(self, **kwargs: Any) -> "_models.ListBlobsResponse": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1175,7 +1228,9 @@ async def json_input(self, id: Optional[int] = None, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1206,7 +1261,9 @@ async def json_output(self, **kwargs: Any) -> "_models.JSONOutput": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1242,7 +1299,9 @@ async def get_xms_text(self, **kwargs: Any) -> "_models.ObjectWithXMsTextPropert request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1277,7 +1336,9 @@ async def get_bytes(self, **kwargs: Any) -> "_models.ModelWithByteProperty": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1322,7 +1383,9 @@ async def put_binary(self, bytes: Optional[bytearray] = None, **kwargs: Any) -> request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [201]: @@ -1354,7 +1417,9 @@ async def get_uri(self, **kwargs: Any) -> "_models.ModelWithUrlProperty": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1399,7 +1464,9 @@ async def put_uri(self, url: Optional[str] = None, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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 [201]: 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 a2d37a603a9..75f6755bc08 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ( ClientAuthenticationError, @@ -27,7 +26,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, List, Optional, TypeVar + from typing import Any, Callable, Dict, List, Optional, TypeVar T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -798,7 +797,7 @@ def build_put_uri_request( ) # fmt: on -class XmlOperations(object): +class XmlOperations(object): # pylint: disable=too-many-public-methods """XmlOperations operations. You should not instantiate this class directly. Instead, you should create a Client instance that @@ -842,7 +841,9 @@ def get_complex_type_ref_no_meta( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -890,7 +891,9 @@ def put_complex_type_ref_no_meta( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [201]: @@ -924,7 +927,9 @@ def get_complex_type_ref_with_meta( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -972,7 +977,9 @@ def put_complex_type_ref_with_meta( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [201]: @@ -1006,7 +1013,9 @@ def get_simple( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1055,7 +1064,9 @@ def put_simple( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [201]: @@ -1090,7 +1101,9 @@ def get_wrapped_lists( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1138,7 +1151,9 @@ def put_wrapped_lists( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [201]: @@ -1173,7 +1188,9 @@ def get_headers( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1210,7 +1227,9 @@ def get_empty_list( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1258,7 +1277,9 @@ def put_empty_list( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [201]: @@ -1292,7 +1313,9 @@ def get_empty_wrapped_lists( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1340,7 +1363,9 @@ def put_empty_wrapped_lists( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [201]: @@ -1374,7 +1399,9 @@ def get_root_list( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1423,7 +1450,9 @@ def put_root_list( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [201]: @@ -1457,7 +1486,9 @@ def get_root_list_single_item( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1506,7 +1537,9 @@ def put_root_list_single_item( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [201]: @@ -1540,7 +1573,9 @@ def get_empty_root_list( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1589,7 +1624,9 @@ def put_empty_root_list( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [201]: @@ -1623,7 +1660,9 @@ def get_empty_child_element( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1671,7 +1710,9 @@ def put_empty_child_element( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [201]: @@ -1711,7 +1752,9 @@ def list_containers( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1760,7 +1803,9 @@ def get_service_properties( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1818,7 +1863,9 @@ def put_service_properties( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [201]: @@ -1863,7 +1910,9 @@ def get_acls( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -1924,7 +1973,9 @@ def put_acls( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [201]: @@ -1969,7 +2020,9 @@ def list_blobs( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2019,7 +2072,9 @@ def json_input( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2053,7 +2108,9 @@ def json_output( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2092,7 +2149,9 @@ def get_xms_text( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2130,7 +2189,9 @@ def get_bytes( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2180,7 +2241,9 @@ def put_binary( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [201]: @@ -2215,7 +2278,9 @@ def get_uri( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -2265,7 +2330,9 @@ def put_uri( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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 [201]: diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/XmsErrorResponse/xmserrorresponse/_configuration.py b/test/vanilla/legacy/Expected/AcceptanceTests/XmsErrorResponse/xmserrorresponse/_configuration.py index 4f88e442feb..322dd9c6f88 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/XmsErrorResponse/xmserrorresponse/_configuration.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/XmsErrorResponse/xmserrorresponse/_configuration.py @@ -18,7 +18,7 @@ from typing import Any -class XMSErrorResponseExtensionsConfiguration(Configuration): +class XMSErrorResponseExtensionsConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for XMSErrorResponseExtensions. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/XmsErrorResponse/xmserrorresponse/_xms_error_response_extensions.py b/test/vanilla/legacy/Expected/AcceptanceTests/XmsErrorResponse/xmserrorresponse/_xms_error_response_extensions.py index 887988a9327..04e6ec74439 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/XmsErrorResponse/xmserrorresponse/_xms_error_response_extensions.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/XmsErrorResponse/xmserrorresponse/_xms_error_response_extensions.py @@ -18,7 +18,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Optional + from typing import Any from azure.core.rest import HttpRequest, HttpResponse diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/XmsErrorResponse/xmserrorresponse/aio/_configuration.py b/test/vanilla/legacy/Expected/AcceptanceTests/XmsErrorResponse/xmserrorresponse/aio/_configuration.py index 6f7dc1e94db..95f1b3c4181 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/XmsErrorResponse/xmserrorresponse/aio/_configuration.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/XmsErrorResponse/xmserrorresponse/aio/_configuration.py @@ -14,7 +14,7 @@ from .._version import VERSION -class XMSErrorResponseExtensionsConfiguration(Configuration): +class XMSErrorResponseExtensionsConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for XMSErrorResponseExtensions. Note that all parameters used to create this instance are saved as instance diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/XmsErrorResponse/xmserrorresponse/aio/_xms_error_response_extensions.py b/test/vanilla/legacy/Expected/AcceptanceTests/XmsErrorResponse/xmserrorresponse/aio/_xms_error_response_extensions.py index 97a74a4b5e4..999414888ae 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/XmsErrorResponse/xmserrorresponse/aio/_xms_error_response_extensions.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/XmsErrorResponse/xmserrorresponse/aio/_xms_error_response_extensions.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional +from typing import Any, Awaitable from azure.core import AsyncPipelineClient from azure.core.rest import AsyncHttpResponse, HttpRequest diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/XmsErrorResponse/xmserrorresponse/aio/operations/_pet_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/XmsErrorResponse/xmserrorresponse/aio/operations/_pet_operations.py index 52ff6713396..4774028549e 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/XmsErrorResponse/xmserrorresponse/aio/operations/_pet_operations.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/XmsErrorResponse/xmserrorresponse/aio/operations/_pet_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ( ClientAuthenticationError, @@ -85,7 +84,9 @@ async def get_pet_by_id(self, pet_id: str, **kwargs: Any) -> Optional["_models.P request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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, 202]: @@ -132,7 +133,9 @@ async def do_something(self, what_action: str, **kwargs: Any) -> "_models.PetAct request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -180,7 +183,9 @@ async def has_models_param(self, models: Optional[str] = "value1", **kwargs: Any request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + 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]: 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 ccc3bd6089b..b9dd9f2cc79 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 @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings from azure.core.exceptions import ( ClientAuthenticationError, @@ -27,7 +26,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar + from typing import Any, Callable, Dict, Optional, TypeVar T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -173,7 +172,9 @@ def get_pet_by_id( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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, 202]: @@ -225,7 +226,9 @@ def do_something( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: @@ -278,7 +281,9 @@ def has_models_param( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + 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]: